Skip to content

Commit

Permalink
update examples with new endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Jun 7, 2024
1 parent 68c73ba commit 8d815b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions fullcalendar/examples/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const thirdLevelDomain = window.location.hostname.split('.')[0];
const isStaging = ( thirdLevelDomain.includes( '-staging' ) || window.location.pathname.includes( '-staging' ) );
const stagingURL = isStaging ? '-staging' : '';
const endpointV = isStaging ? 'dev' : 'v3';
const endpointURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/LitCalEngine.php`;
const metadataURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/LitCalMetadata.php`;
const endpointURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/`;
const metadataURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/metadata/`;
const supportedUILocales = [ 'de', 'en', 'es', 'fr', 'it', 'la', 'pt', 'nl' ];

let messages = null,
Expand Down
4 changes: 2 additions & 2 deletions javascript/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const thirdLevelDomain = window.location.hostname.split('.')[0];
const isStaging = ( thirdLevelDomain === 'litcal-staging' || window.location.pathname.includes( '-staging' ) );
const stagingURL = isStaging ? '-staging' : '';
const endpointV = isStaging ? 'dev' : 'v3';
const endpointURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/LitCalEngine.php`;
const metadataURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/LitCalMetadata.php`;
const endpointURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/`;
const metadataURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/metadata/`;

if(Cookies.get("currentLocale") === undefined){
Cookies.set("currentLocale", navigator.language );
Expand Down
4 changes: 2 additions & 2 deletions php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
$isStaging = ( strpos( $_SERVER['HTTP_HOST'], "-staging" ) !== false );
$stagingURL = $isStaging ? "-staging" : "";
$endpointV = $isStaging ? "dev" : "v3";
define("LITCAL_API_URL", "https://litcal.johnromanodorazio.com/api/{$endpointV}/LitCalEngine.php");
define("METADATA_URL", "https://litcal.johnromanodorazio.com/api/{$endpointV}/LitCalMetadata.php");
define("LITCAL_API_URL", "https://litcal.johnromanodorazio.com/api/{$endpointV}/");
define("METADATA_URL", "https://litcal.johnromanodorazio.com/api/{$endpointV}/metadata/");

$litSettings = new LitSettings( $_GET );

Expand Down

0 comments on commit 8d815b0

Please sign in to comment.