Przebudowa - code review aplikaacji, podział na moduły.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
const cfg = window.APP_CONFIG || {};
|
||||
|
||||
export const geoBypassHosts = Array.isArray(cfg.geoBypassHosts)
|
||||
? cfg.geoBypassHosts
|
||||
: [];
|
||||
|
||||
export const endpoints = {
|
||||
analytics: cfg.endpoints?.analytics || "../api/analytics.php",
|
||||
guestActionQueue: cfg.endpoints?.guestActionQueue || "../api/guest_action_queue.php",
|
||||
geoBypass: cfg.endpoints?.geoBypass || "../api/geo_bypass.php",
|
||||
gusLookup: cfg.endpoints?.gusLookup || "../api/gus_lookup.php",
|
||||
kds: cfg.endpoints?.kds || "../api/kds.php",
|
||||
bills: cfg.endpoints?.bills || "../api/bills.php",
|
||||
};
|
||||
|
||||
export const loaderMinMs = Number(cfg.loaderMinMs) || 10_000;
|
||||
|
||||
export const MENU_ASSET_VERSION =
|
||||
window.MENU_ASSET_VERSION || window.APP_ASSET_VERSION || "1";
|
||||
Reference in New Issue
Block a user