Przebudowa - code review aplikaacji, podział na moduły.

This commit is contained in:
2026-09-25 15:33:32 +02:00
parent 45354071bd
commit 9d25de0d89
17 changed files with 2646 additions and 2148 deletions
+19
View File
@@ -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";