Work on checking data and cache.
This commit is contained in:
@@ -57,6 +57,34 @@
|
|||||||
<script src="https://static.oneskyit.com/js/utilities.js"></script>
|
<script src="https://static.oneskyit.com/js/utilities.js"></script>
|
||||||
<script src="js/app_idb.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="svelte/build/bundle.js" crossorigin></script> -->
|
||||||
<script defer src="http://dev.oneskyit.local:5000/static/svelte/build/bundle.js" crossorigin></script>
|
<script defer src="http://dev.oneskyit.local:5000/static/svelte/build/bundle.js" crossorigin></script>
|
||||||
<!-- JavaScript (JS) end -->
|
<!-- JavaScript (JS) end -->
|
||||||
@@ -85,7 +113,7 @@
|
|||||||
|
|
||||||
<!-- One Sky IT site custom JavaScript (JS) -->
|
<!-- One Sky IT site custom JavaScript (JS) -->
|
||||||
<!-- <script>const app = require('./js/module_app');</script> -->
|
<!-- <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_v3.js"></script> -->
|
||||||
<!-- <script src="js/app_api.js"></script> -->
|
<!-- <script src="js/app_api.js"></script> -->
|
||||||
<!-- <script src="js/app_idb.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
|
// 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 = null;
|
||||||
// let tbl_event_location = null;
|
// let tbl_event_location = null;
|
||||||
|
|||||||
4
index.js
4
index.js
@@ -35,7 +35,7 @@ function createWindow () {
|
|||||||
win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
width: 1500, // 1500 1280
|
width: 1500, // 1500 1280
|
||||||
height: 1024, // 1024
|
height: 1024, // 1024
|
||||||
backgroundColor: '#fff',
|
backgroundColor: '#aaa',
|
||||||
icon: './app/img/favicon.ico',
|
icon: './app/img/favicon.ico',
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
contextIsolation: false,
|
contextIsolation: false,
|
||||||
@@ -50,6 +50,8 @@ function createWindow () {
|
|||||||
//win.setFullScreenable(false)
|
//win.setFullScreenable(false)
|
||||||
win.FullScreenable = false;
|
win.FullScreenable = false;
|
||||||
|
|
||||||
|
// win.webContents.session.clearStorageData(['filesystem']); // Does this do anything???
|
||||||
|
|
||||||
// and load the index.html of the app.
|
// and load the index.html of the app.
|
||||||
win.loadFile('app/index.html');
|
win.loadFile('app/index.html');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user