Work on checking data and cache.

This commit is contained in:
Scott Idem
2022-03-17 18:56:06 -04:00
parent 021a624030
commit bab40978c7
2 changed files with 33 additions and 21 deletions

View File

@@ -57,6 +57,34 @@
<script src="https://static.oneskyit.com/js/utilities.js"></script>
<script src="js/app_idb.js"></script>
<script>const app = require('./js/app_v3');</script>
<script>
let app_config = app.load_config();
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 = 'app'; // null, 'default', 'onsite', 'app'
let client_account_id = app_config.account_id;
console.log(client_account_id);
let event_id = app_config.event_id;
let event_device_id = app_config.event_device_id;
let event_location_id = app_config.event_location_id;
const page_for = { 'event': event_id, 'event_device': event_device_id, 'event_location': event_location_id }; // Simple key value like object
console.log(page_for);
const host_file_cache_path = 'file_cache'; // app_config.host_file_cache_path; // 'file_cache/'
console.log(host_file_cache_path);
const host_file_temp_path = 'temp' // app_config.host_file_temp_path; // 'temp/'
console.log(host_file_temp_path);
let idb_name = app_config.idb_name;
</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 -->
@@ -85,7 +113,7 @@
<!-- One Sky IT site custom JavaScript (JS) -->
<!-- <script>const app = require('./js/module_app');</script> -->
<script>const app = require('./js/app_v3');</script>
<!-- <script>const app = require('./js/app_v3');</script> -->
<!-- <script src="js/app_v3.js"></script> -->
<!-- <script src="js/app_api.js"></script> -->
<!-- <script src="js/app_idb.js"></script> -->
@@ -99,25 +127,7 @@
/* ***** **** *** ** * ### * ** *** **** ***** */
let app_config = app.load_config();
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 = 'app'; // null, 'default', 'onsite', 'app'
let client_account_id = app_config.account_id;
console.log(client_account_id);
let event_id = app_config.event_id;
let event_device_id = app_config.event_device_id;
let event_location_id = app_config.event_location_id;
const page_for = { 'event': event_id, 'event_device': event_device_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/'
const host_file_temp_path = app_config.host_file_temp_path; // 'temp/'
/* ***** **** *** ** * ### * ** *** **** ***** */
@@ -158,7 +168,7 @@ window.addEventListener('offline', app.currently_offline);
/* ***** **** *** ** * ### * ** *** **** ***** */
// BEGIN: Load IDB section
let idb_name = app_config.idb_name;
// let idb_name = app_config.idb_name;
// let tbl_event = null;
// let tbl_event_location = null;

View File

@@ -35,7 +35,7 @@ function createWindow () {
win = new BrowserWindow({
width: 1500, // 1500 1280
height: 1024, // 1024
backgroundColor: '#fff',
backgroundColor: '#aaa',
icon: './app/img/favicon.ico',
webPreferences: {
contextIsolation: false,
@@ -50,6 +50,8 @@ function createWindow () {
//win.setFullScreenable(false)
win.FullScreenable = false;
// win.webContents.session.clearStorageData(['filesystem']); // Does this do anything???
// and load the index.html of the app.
win.loadFile('app/index.html');