Rework of loading the index file.
This commit is contained in:
139
app/index.html
139
app/index.html
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<title>One Sky IT's Aether App</title>
|
||||
<title>One Sky IT's Aether App (default)</title>
|
||||
|
||||
<link rel="shortcut icon" type="image/png" href="img/favicon.ico">
|
||||
|
||||
@@ -20,29 +20,31 @@
|
||||
<!-- One Sky IT default custom Cascading Style Sheets (CSS) -->
|
||||
|
||||
<!-- One Sky IT site custom Cascading Style Sheets (CSS) -->
|
||||
<!-- <link rel="stylesheet" href="https://lci.oneskyit.com/static/svelte/build/aether_css_variables.css"> -->
|
||||
<link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/svelte/build/aether_css_variables.css">
|
||||
<!-- <link rel="stylesheet" href="https://lci.oneskyit.com/static/svelte/build/aether_utilities.css"> -->
|
||||
<link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/svelte/build/aether_utilities.css">
|
||||
<!-- <link rel="stylesheet" href="https://lci.oneskyit.com/static/svelte/build/aether_elements.css"> -->
|
||||
<link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/svelte/build/aether_elements.css">
|
||||
<link rel="stylesheet" href="https://lci.oneskyit.com/static/svelte/build/aether_css_variables.css">
|
||||
<!-- <link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/svelte/build/aether_css_variables.css"> -->
|
||||
<link rel="stylesheet" href="https://lci.oneskyit.com/static/svelte/build/aether_utilities.css">
|
||||
<!-- <link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/svelte/build/aether_utilities.css"> -->
|
||||
<link rel="stylesheet" href="https://lci.oneskyit.com/static/svelte/build/aether_elements.css">
|
||||
<!-- <link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/svelte/build/aether_elements.css"> -->
|
||||
<!-- <link rel="stylesheet" href="https://lci.oneskyit.com/static/css/aether_system.css"> -->
|
||||
<!-- <link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/css/aether_system.css"> -->
|
||||
<!-- <link rel="stylesheet" href="https://lci.oneskyit.com/static/svelte/build/aether_modules_core.css"> -->
|
||||
<link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/svelte/build/aether_modules_core.css">
|
||||
<link rel="stylesheet" href="https://lci.oneskyit.com/static/svelte/build/aether_modules_core.css">
|
||||
<!-- <link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/svelte/build/aether_modules_core.css"> -->
|
||||
|
||||
<!-- <link rel="stylesheet" href="https://lci.oneskyit.com/static/svelte/build/aether_layout_v5_root.css"> -->
|
||||
<link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/svelte/build/aether_layout_v5_root.css">
|
||||
<!-- <link rel="stylesheet" href="https://lci.oneskyit.com/static/svelte/build/aether_layout_v5_system.css"> -->
|
||||
<link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/svelte/build/aether_layout_v5_system.css">
|
||||
<link rel="stylesheet" href="https://lci.oneskyit.com/static/svelte/build/aether_layout_v5_root.css">
|
||||
<!-- <link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/svelte/build/aether_layout_v5_root.css"> -->
|
||||
<link rel="stylesheet" href="https://lci.oneskyit.com/static/svelte/build/aether_layout_v5_system.css">
|
||||
<!-- <link rel="stylesheet" href="http://dev-app.oneskyit.local:5000/static/svelte/build/aether_layout_v5_system.css"> -->
|
||||
|
||||
<!-- <link href="https://lci.oneskyit.com/static/svelte/build/bundle.css" rel="stylesheet"> -->
|
||||
<link href="http://dev-app.oneskyit.local:5000/static/svelte/build/bundle.css" rel="stylesheet">
|
||||
<!-- <link href="https://lci.oneskyit.com/static/svelte/build/reloading.css" rel="stylesheet"> -->
|
||||
<link href="http://dev-app.oneskyit.local:5000/static/svelte/build/reloading.css" rel="stylesheet">
|
||||
<link href="https://lci.oneskyit.com/static/svelte/build/bundle.css" rel="stylesheet">
|
||||
<!-- <link href="http://dev-app.oneskyit.local:5000/static/svelte/build/bundle.css" rel="stylesheet"> -->
|
||||
<link href="https://lci.oneskyit.com/static/svelte/build/reloading.css" rel="stylesheet">
|
||||
<!-- <link href="http://dev-app.oneskyit.local:5000/static/svelte/build/reloading.css" rel="stylesheet"> -->
|
||||
|
||||
<link href="http://dev-app.oneskyit.local:5000/static/svelte/build/event.css" rel="stylesheet">
|
||||
<link href="http://dev-app.oneskyit.local:5000/static/svelte/build/event_launcher.css" rel="stylesheet">
|
||||
<link href="https://lci.oneskyit.com/static/svelte/build/event.css" rel="stylesheet">
|
||||
<!-- <link href="http://dev-app.oneskyit.local:5000/static/svelte/build/event.css" rel="stylesheet"> -->
|
||||
<link href="https://lci.oneskyit.com/static/svelte/build/event_launcher.css" rel="stylesheet">
|
||||
<!-- <link href="http://dev-app.oneskyit.local:5000/static/svelte/build/event_launcher.css" rel="stylesheet"> -->
|
||||
|
||||
<link rel="stylesheet" href="css/aether_app_native_v3.css">
|
||||
|
||||
@@ -62,7 +64,6 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/localforage/1.10.0/localforage.min.js" integrity="sha512-+BMamP0e7wn39JGL8nKAZ3yAQT2dL5oaXWr4ZYlTGkKOaoXM/Yj7c4oy50Ngz5yoUutAG17flueD4F6QpTlPng==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
|
||||
<!-- <script src="https://static.oneskyit.com/js/utilities.js"></script> -->
|
||||
<!-- <script src="js/app_idb.js"></script> -->
|
||||
|
||||
<script>
|
||||
const native_app = require('./js/aether_app_native_v4');
|
||||
@@ -76,10 +77,6 @@
|
||||
|
||||
// Environment options: development_local, development_remote, production_local, production_remote,
|
||||
|
||||
// const api_base_url = 'http://dev-fastapi.oneskyit.local:5005';
|
||||
// const fastapi_base_url = 'http://dev-fastapi.oneskyit.local:5005';
|
||||
// const api_temporary_token = 'viOhiwXybrM';
|
||||
// const fastapi_temporary_token = 'viOhiwXybrM';
|
||||
// END: Environment constants set by server when rendering HTML
|
||||
|
||||
// BEGIN: Content constants set by server when rendering HTML
|
||||
@@ -113,44 +110,6 @@
|
||||
document.aether.cfg.api = {"protocol": native_app_config.api_protocol, "server": native_app_config.api_server, "port": native_app_config.api_port, "path": native_app_config.api_path, "secret_key": native_app_config.api_secret_key, "base_url": null, "temporary_token": {"token": null, "expire_on": null}, "protocol_backup": native_app_config.api_protocol_backup, "server_backup": native_app_config.api_server_backup, "port_backup": native_app_config.api_port_backup, "path_backup": native_app_config.api_path_backup, "secret_key_backup": native_app_config.api_secret_key_backup, "base_url_backup": null, "temporary_token_backup": {"token": null, "expire_on": null}};
|
||||
document.aether.cfg.idb = {"name": native_app_config.idb_name};
|
||||
|
||||
|
||||
|
||||
// const flask_env = 'development'; // 'development', 'production'
|
||||
// const env = 'development'; // 'development', 'production'
|
||||
// const app_env = 'development_local'; // 'development_local', 'development_remote'
|
||||
// const api_env = 'development_local'; // 'development_local', 'development_remote'
|
||||
// const app_mode = 'native'; // null, 'default', 'native', 'onsite'
|
||||
|
||||
|
||||
// let event_id = native_app_config.event_id;
|
||||
// let event_device_id = native_app_config.event_device_id;
|
||||
// let event_location_id = native_app_config.event_location_id;
|
||||
|
||||
// const local_file_cache_path = native_app_config.local_file_cache_path; // 'file_cache/'
|
||||
// console.log(local_file_cache_path);
|
||||
// const host_file_temp_path = native_app_config.host_file_temp_path; // 'temp/'
|
||||
// console.log(host_file_temp_path);
|
||||
|
||||
// let idb_name = native_app_config.idb_name;
|
||||
|
||||
// BEGIN: API section
|
||||
|
||||
// const access_control_allow_origin = native_app_config.access_control_allow_origin;
|
||||
// const api_secret_key = native_app_config.api_secret_key;
|
||||
// console.log(api_secret_key);
|
||||
// let api_temporary_token = null;
|
||||
|
||||
// let api_base_url = native_app_config.api_base_url; // null;
|
||||
// let api_base_url_bak = native_app_config.api_base_url_bak;
|
||||
// let app_server_base_url = native_app_config.app_server_base_url;
|
||||
// let file_base_url = native_app_config.file_server_base_url;
|
||||
|
||||
// if (native_app_config.use_local_api) {
|
||||
// api_base_url = native_app_config.api_local_base_url; // 'http://api.localhost:5001'
|
||||
// } else {
|
||||
// api_base_url = native_app_config.api_remote_base_url; // 'https://api.oneskyit.com'
|
||||
// }
|
||||
|
||||
/* ***** **** *** ** * ### * ** *** **** ***** */
|
||||
|
||||
let app_online = false;
|
||||
@@ -210,62 +169,6 @@
|
||||
<script>
|
||||
/* ***** **** *** ** * ### * ** *** **** ***** */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// BEGIN: Load IDB section
|
||||
// let idb_name = native_app_config.idb_name;
|
||||
|
||||
// let tbl_event = null;
|
||||
// let tbl_event_location = null;
|
||||
// let tbl_event_session = null;
|
||||
// let tbl_event_presentation = null;
|
||||
// let tbl_event_presenter = null;
|
||||
// let tbl_event_file = null;
|
||||
// let tbl_hosted_file = null;
|
||||
|
||||
// let tbl_event_key_count = null;
|
||||
// let tbl_event_location_key_count = null;
|
||||
// let tbl_event_session_key_count = null;
|
||||
// let tbl_event_presentation_key_count = null;
|
||||
// let tbl_event_presenter_key_count = null;
|
||||
// let tbl_event_file_key_count = null;
|
||||
// let tbl_hosted_file_key_count = null;
|
||||
|
||||
// let load_idb_tables_result = load_idb_tables()
|
||||
// .then(async function (result) {
|
||||
// console.log('IDB tables have been opened');
|
||||
// idb_tables_opened = load_idb_tables_result;
|
||||
|
||||
// console.log('Attempting to use cached IDB data...');
|
||||
|
||||
// if (tbl_event_key_count
|
||||
// && tbl_event_location_key_count
|
||||
// && tbl_event_session_key_count
|
||||
// && tbl_event_presentation_key_count
|
||||
// && tbl_event_presenter_key_count
|
||||
// && tbl_event_file_key_count) {
|
||||
// console.log('********* Not yet sure how this works... ');
|
||||
// } else {
|
||||
// console.log('One or more of the IDB tables has 0 records. The IDB probably needs to be updated.');
|
||||
// return true;
|
||||
// }
|
||||
|
||||
// console.log(tbl_event);
|
||||
// console.log(tbl_event_location);
|
||||
// console.log(tbl_event_session);
|
||||
// console.log(tbl_event_presentation);
|
||||
// console.log(tbl_event_presenter);
|
||||
// console.log(tbl_event_file);
|
||||
// console.log(tbl_hosted_file);
|
||||
// })
|
||||
// .catch(function (error) {
|
||||
// console.log('Something went wrong opening the IDB tables.');
|
||||
// console.log(error);
|
||||
// return false;
|
||||
// });
|
||||
|
||||
/* ***** **** *** ** * ### * ** *** **** ***** */
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user