Working on rewrite version 3. Focus on caching for now.

This commit is contained in:
Scott Idem
2022-03-07 18:21:05 -05:00
parent a72cb27ed8
commit 1d7c14dedb
16 changed files with 695 additions and 635 deletions

View File

@@ -56,7 +56,8 @@
<script src="https://static.oneskyit.com/js/utilities.js"></script>
<script defer src="svelte/build/bundle.js" crossorigin></script>
<!-- <script defer src="svelte/build/bundle.js" crossorigin></script> -->
<script defer src="http://dev.oneskyit.local:5000/static/svelte/build/bundle.js" crossorigin></script>
<!-- JavaScript (JS) end -->
</head>
@@ -83,6 +84,7 @@
<!-- One Sky IT site custom JavaScript (JS) -->
<script>const app = require('./js/module_app');</script>
<script src="js/app_v3.js"></script>
<!-- <script src="js/app_api.js"></script> -->
<!-- <script src="js/app_idb.js"></script> -->
<!-- <script src="js/app_ui_misc.js"></script> -->
@@ -103,13 +105,16 @@ const app_env = 'development_local'; // 'development_local', 'development_remote
const api_env = 'development_local'; // 'development_local', 'development_remote'
const app_mode = 'onsite'; // null, 'default', 'onsite'
let account_id = app_config.account_id;
let client_account_id = app_config.account_id;
console.log(client_account_id);
let event_id = app_config.event_id;
let event_location_id = app_config.event_location_id;
const page_for = { 'event': event_id, 'event_location': event_location_id }; // Simple key value like object
console.log(page_for);
const host_file_cache_path = app_config.host_file_cache_path; // 'file_cache/'
/* ***** **** *** ** * ### * ** *** **** ***** */
@@ -121,7 +126,9 @@ console.log(page_for);
// let api_update_datetime = Date.now();
// let waiting_on_api_token = false;
const secret_key = app_config.api_secret_key;
const access_control_allow_origin = app_config.access_control_allow_origin;
const api_secret_key = app_config.api_secret_key;
console.log(api_secret_key);
let api_temporary_token = null;
let api_base_url = null;