diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-09-11 21:48:07 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-09-11 21:48:07 +0300 |
commit | db9dac71b874782b37c47ab0029344affe1b7561 (patch) | |
tree | e50b6e46c8691c9f9c362f9f1faffc080061c115 /src | |
parent | 63530324338de5e25853eaf8d7a85dbd8ca724ee (diff) | |
download | arching-kaos-web-ui-db9dac71b874782b37c47ab0029344affe1b7561.tar.gz arching-kaos-web-ui-db9dac71b874782b37c47ab0029344affe1b7561.tar.bz2 arching-kaos-web-ui-db9dac71b874782b37c47ab0029344affe1b7561.zip |
Some comments
Diffstat (limited to 'src')
-rw-r--r-- | src/js/app.js | 7 | ||||
-rw-r--r-- | src/js/arching-kaos-web-ui-settings.js | 11 | ||||
-rw-r--r-- | src/js/environment-setup.js | 7 |
3 files changed, 18 insertions, 7 deletions
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'); |