From db9dac71b874782b37c47ab0029344affe1b7561 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 11 Sep 2023 21:48:07 +0300 Subject: Some comments --- src/js/app.js | 7 +++++++ src/js/arching-kaos-web-ui-settings.js | 11 +++++++++++ src/js/environment-setup.js | 7 ------- 3 files changed, 18 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/js/app.js b/src/js/app.js index e246a19..86f201b 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -1,6 +1,13 @@ // Irrelevant for now if (DEBUG) console.log(window.location); + +/* + * Body and pageLayout resizer to device's resolution. + * + * TODO: Figure out why it doesn't work in fullscreen App mode (android) + * + */ body.width = window.innerWidth; body.height = window.innerHeight; pageLayout.width = window.innerWidth; diff --git a/src/js/arching-kaos-web-ui-settings.js b/src/js/arching-kaos-web-ui-settings.js index 18dfafa..a8901f5 100644 --- a/src/js/arching-kaos-web-ui-settings.js +++ b/src/js/arching-kaos-web-ui-settings.js @@ -49,6 +49,9 @@ var default_settings = { zblockBasedDepthSeek: 10, } +// TODO: Make up a settings configuration page to set this up initially rather +// than forcing visitors to just save them into their local storage. +// // We are overriding the settings each time to test our changes // with the settings above. // @@ -56,7 +59,15 @@ var default_settings = { window.localStorage.setItem("ak-settings", JSON.stringify(default_settings)) // } var activeSettings = JSON.parse(window.localStorage.getItem("ak-settings")); +// +// All comments above are replaced by temporary initializing without saving +// anything in the localStorage + +// Also, remove any settings stored from previous runs +// Full functionality for Stellar intergration, requires clearnet connection +// However, we have other ways of running the WEB-UI, eg locally or via a +// cjdns-based ipfs gateway. if (( location.origin === "http://z.kaotisk-hund.com") || ( location.origin === "http://gw.ipfs.z.kaotisk-hund.com") || ( location.origin === "http://[fc59:6076:6299:6776:c13d:fbb2:1226:ead0]")) { diff --git a/src/js/environment-setup.js b/src/js/environment-setup.js index 35b944f..75431f7 100644 --- a/src/js/environment-setup.js +++ b/src/js/environment-setup.js @@ -6,13 +6,6 @@ var holders = []; var stellarNetworkConfiguredAddresses = 0; var zchain = new Array; var zchains = new Array; - -/* - * Body and pageLayout resizer to device's resolution. - * - * TODO: Figure out why it doesn't work in fullscreen App mode (android) - * - */ var body = document.querySelector('body'); var pageLayout = document.querySelector('.page-layout'); var mainContainer = document.querySelector('.main'); -- cgit v1.2.3