summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-10-04 20:28:36 +0200
committersijanec <sijanecantonluka@gmail.com>2020-10-04 20:28:36 +0200
commit796e614c642b2dd998bb1e997741f472abecdb3a (patch)
tree6d5bf0fb6891f34b311ed502bc0796be107a83e9 /assets/js
parent24 urni format in verzija (diff)
downloadbeziapp-796e614c642b2dd998bb1e997741f472abecdb3a.tar
beziapp-796e614c642b2dd998bb1e997741f472abecdb3a.tar.gz
beziapp-796e614c642b2dd998bb1e997741f472abecdb3a.tar.bz2
beziapp-796e614c642b2dd998bb1e997741f472abecdb3a.tar.lz
beziapp-796e614c642b2dd998bb1e997741f472abecdb3a.tar.xz
beziapp-796e614c642b2dd998bb1e997741f472abecdb3a.tar.zst
beziapp-796e614c642b2dd998bb1e997741f472abecdb3a.zip
Diffstat (limited to '')
-rw-r--r--assets/js/app.js.bvr2
-rw-r--r--assets/js/lang/bundle.js.bvr (renamed from assets/js/lang/bundle.js)6
-rw-r--r--assets/js/setup-storage.js.bvr (renamed from assets/js/setup-storage.js)8
3 files changed, 11 insertions, 5 deletions
diff --git a/assets/js/app.js.bvr b/assets/js/app.js.bvr
index a96ea88..c99124b 100644
--- a/assets/js/app.js.bvr
+++ b/assets/js/app.js.bvr
@@ -1,5 +1,5 @@
<@?i global@>
-// @begin=html@
+// @begin=js@
const app_version = "<@?g app_version@>";
const previous_commit = "<@?g latest_commit@>";
const BEZIAPP_UPDATE_INTERVAL = 300; // update vsakih 300 sekund
diff --git a/assets/js/lang/bundle.js b/assets/js/lang/bundle.js.bvr
index bd0335c..125d3c6 100644
--- a/assets/js/lang/bundle.js
+++ b/assets/js/lang/bundle.js.bvr
@@ -1,3 +1,5 @@
+<@?i global@>
+// @begin=js@
// there's an DoS backdoor in BežiApp because of this (-:<
var chosenLang;
var dateString = {
@@ -49,7 +51,7 @@ async function refreshLangDOM() {
async function setLangConfigAndReload() {
let promises_to_run = [
/* localforage.setItem("chosenCapitalize", true), */ // F for unused code
- localforage.setItem("chosenLang", "en")
+ localforage.setItem("chosenLang", "<@?g app_default_language@>")
];
await Promise.all(promises_to_run);
window.location.reload();
@@ -141,6 +143,7 @@ var langstrings = {
theToS: "the terms and conditions",
and: "and",
thePrivacyPolicy: "the privacy policy",
+ thePrivacyPolicy_rodilnik: "the privacy policy",
loginFailed: "login failed",
browserNotSupported: "bežiapp won't work on your device, unless you update your Internet browser",
// index
@@ -353,6 +356,7 @@ var langstrings = {
theToS: "pogoji uporabe (v angleščini)",
and: "in",
thePrivacyPolicy: "politika zasebnosti (v angleščini)",
+ thePrivacyPolicy_rodilnik: "politiko zasebnosti (v angleščini)",
loginFailed: "prijava je spodletela",
browserNotSupported: "BežiApp ne bo deloval na vaši napravi, če ne posodobite vašega Internetnega brskalnika",
// timetable
diff --git a/assets/js/setup-storage.js b/assets/js/setup-storage.js.bvr
index b29c959..3d3b554 100644
--- a/assets/js/setup-storage.js
+++ b/assets/js/setup-storage.js.bvr
@@ -1,3 +1,5 @@
+<@?i global@>
+// @begin=js@
async function setupStorage(force = false) {
let logged_in;
promises_check_if_already_installed = [
@@ -18,9 +20,6 @@ async function setupStorage(force = false) {
localforage.setItem("messages", [[], [], []]), // see messages.js:129, commit 8eb9ca9caca30fbbe023243657535ab4088be377
localforage.setItem("directory", {}), //\\ well I could remember my own code but I didn't.
localforage.setItem("meals", {}),
- localforage.setItem("chosenLang", "en"),
- localforage.setItem("theme", "light"),
- localforage.setItem("errorReporting", "on"),
localforage.setItem("lastUpdate", 0),
localforage.setItem("triggerWarningAccepted", false)
];
@@ -34,6 +33,9 @@ async function setupStorage(force = false) {
localforage.setItem("logged_in", false),
localforage.setItem("username", ""),
localforage.setItem("password", ""),
+ localforage.setItem("chosenLang", "<@?g app_default_language@>"),
+ localforage.setItem("theme", "light"),
+ localforage.setItem("errorReporting", "on"),
];
await localforage.clear();
await Promise.all(promises_first_install);