summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-20 19:39:13 +0200
committerrstular <rok@stular.eu>2020-05-20 19:39:13 +0200
commit0ff5c4b1c811fb086c1cd0ce918ef2e3c36a0921 (patch)
tree689e9395aaef4cf57fc22f0fd4d74edbb7c65a75
parentNight theme (diff)
parentshould be ok to merge (diff)
downloadbeziapp-0ff5c4b1c811fb086c1cd0ce918ef2e3c36a0921.tar
beziapp-0ff5c4b1c811fb086c1cd0ce918ef2e3c36a0921.tar.gz
beziapp-0ff5c4b1c811fb086c1cd0ce918ef2e3c36a0921.tar.bz2
beziapp-0ff5c4b1c811fb086c1cd0ce918ef2e3c36a0921.tar.lz
beziapp-0ff5c4b1c811fb086c1cd0ce918ef2e3c36a0921.tar.xz
beziapp-0ff5c4b1c811fb086c1cd0ce918ef2e3c36a0921.tar.zst
beziapp-0ff5c4b1c811fb086c1cd0ce918ef2e3c36a0921.zip
-rw-r--r--assets/css/styles.css6
-rw-r--r--assets/js/lang/bundle.js2
-rw-r--r--assets/js/settings.js3
-rw-r--r--assets/js/setup-storage.js2
-rw-r--r--assets/pages-src/settings.bvr57
-rwxr-xr-xdist/css/styles.css6
-rwxr-xr-xdist/js/app.js2
-rw-r--r--dist/js/lang/bundle.js2
-rw-r--r--dist/js/settings.js3
-rw-r--r--dist/js/setup-storage.js2
-rwxr-xr-xdist/pages/about.html2
-rwxr-xr-xdist/pages/settings.html61
-rwxr-xr-xdist/sw.js4
13 files changed, 84 insertions, 68 deletions
diff --git a/assets/css/styles.css b/assets/css/styles.css
index e2fa509..ae21606 100644
--- a/assets/css/styles.css
+++ b/assets/css/styles.css
@@ -383,4 +383,8 @@ p {
.select-dropdown {
color: var(--color-text) !important;
-} \ No newline at end of file
+}
+
+h1, h2, h3, h4, h5, h6 {
+ color: var(--color-text) !important;
+}
diff --git a/assets/js/lang/bundle.js b/assets/js/lang/bundle.js
index 6c53d94..75fae14 100644
--- a/assets/js/lang/bundle.js
+++ b/assets/js/lang/bundle.js
@@ -297,6 +297,7 @@ var langstrings = {
errorReporting: "error reporting",
on: "on",
off: "off",
+ selectErrorReporting: "should error reports be submitted to the developers?",
// gsec
gsecErrNet: "GimSIS connection error",
gsecErrLogin: "GimSIS login error (bad password?), try logging out",
@@ -493,6 +494,7 @@ var langstrings = {
errorReporting: "pošiljanje napak",
on: "vklopljeno",
off: "izklopljeno",
+ selectErrorReporting: "ali naj so napake v aplikaciji posredovane razvijalcem?",
// gsec
gsecErrNet: "napaka povezave na GimSIS",
gsecErrLogin: "prijava v GimSIS ni uspela (napačno geslo?), poskusite se odjaviti",
diff --git a/assets/js/settings.js b/assets/js/settings.js
index 7ea0b47..1dd3bfc 100644
--- a/assets/js/settings.js
+++ b/assets/js/settings.js
@@ -66,6 +66,9 @@ document.addEventListener("DOMContentLoaded", async () => {
var elems = document.querySelectorAll(".theme-select");
M.FormSelect.init(elems, {});
+ var elems = document.querySelectorAll(".errorreporting-select");
+ M.FormSelect.init(elems, {});
+
// Setup language select dropdown
var elems = document.querySelectorAll(".lang-select");
M.FormSelect.init(elems, {});
diff --git a/assets/js/setup-storage.js b/assets/js/setup-storage.js
index ce66bba..7aaa089 100644
--- a/assets/js/setup-storage.js
+++ b/assets/js/setup-storage.js
@@ -19,7 +19,7 @@ async function setupStorage(force = false) {
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("theme", "light"),
localforage.setItem("errorReporting", "on")
];
diff --git a/assets/pages-src/settings.bvr b/assets/pages-src/settings.bvr
index 960adb5..6fa0a64 100644
--- a/assets/pages-src/settings.bvr
+++ b/assets/pages-src/settings.bvr
@@ -68,37 +68,36 @@
</div>
</div>
- <div class="row">
- <div class="col s12">
- <h5 class="general-text"><x-su>theme</x-su></h5>
- </div>
- <div class="input-field col s12">
- <i class="material-icons prefix">palette</i>
- <select class="theme-select input-select" id="select-theme">
- <option value="light" id="option-light" data-theme="light" selected><x-su>themeLight</x-su></option>
- <option value="dark" id="option-dark" data-theme="dark"><x-su>themeDark</x-su></option>
- <option value="night" id="option-night" data-theme="night"><x-su>themeNight</x-su></option>
- </select>
- <label><x-su>selectTheme</x-su></label>
- </div>
- </div>
-
+ <div class="row">
+ <div class="col s12">
+ <h5 class="general-text"><x-su>theme</x-su></h5>
+ </div>
+ <div class="input-field col s12">
+ <i class="material-icons prefix">palette</i>
+ <select class="theme-select input-select" id="select-theme">
+ <option value="light" id="option-light" data-theme="light" selected>Light / svetla</option>
+ <option value="dark" id="option-dark" data-theme="dark">Dark / temna</option>
+ <option value="night" id="option-night" data-theme="night">Night / nočna</x-su></option>
+ </select>
+ <label><x-su>selectTheme</x-su></label>
+ </div>
+ </div>
- <div class="row">
- <div class="col s12">
- <h5 class="general-text"><x-su>errorReporting</x-su></h5>
- </div>
- <div class="input-field col s12">
- <i class="material-icons prefix">report_problem</i>
- <select class="errorreporting-select input-select" id="select-errorreporting">
- <option value="on" id="option-on" data-errorreporting="on" selected><x-su>on</x-su></option>
- <option value="off" id="option-off" data-errorreporting="off"><x-su>off</x-su></option>
- </select>
- <label><x-su>selectErrorReporting</x-su></label>
- </div>
- </div>
- </div>
+ <div class="row">
+ <div class="col s12">
+ <h5 class="general-text"><x-su>errorReporting</x-su></h5>
+ </div>
+ <div class="input-field col s12">
+ <i class="material-icons prefix">report_problem</i>
+ <select class="errorreporting-select input-select" id="select-errorreporting">
+ <option value="on" id="option-on" data-errorreporting="on" selected>On / Vklopljeno</option>
+ <option value="off" id="option-off" data-errorreporting="off">Off / Izklopljeno</option>
+ </select>
+ <label><x-su>selectErrorReporting</x-su></label>
+ </div>
+ </div>
+ </div>
</body>
</html>
diff --git a/dist/css/styles.css b/dist/css/styles.css
index e2fa509..ae21606 100755
--- a/dist/css/styles.css
+++ b/dist/css/styles.css
@@ -383,4 +383,8 @@ p {
.select-dropdown {
color: var(--color-text) !important;
-} \ No newline at end of file
+}
+
+h1, h2, h3, h4, h5, h6 {
+ color: var(--color-text) !important;
+}
diff --git a/dist/js/app.js b/dist/js/app.js
index 84a4c3a..8c82665 100755
--- a/dist/js/app.js
+++ b/dist/js/app.js
@@ -3,7 +3,7 @@
const app_version = "1.0.13-beta";
-const previous_commit = "448708182490d551721767bffc34ef35375f5082";
+const previous_commit = "cbef4f9e7f6b39469d9e6ac77b5a7237f69022ee";
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/sw.js")
diff --git a/dist/js/lang/bundle.js b/dist/js/lang/bundle.js
index 6c53d94..75fae14 100644
--- a/dist/js/lang/bundle.js
+++ b/dist/js/lang/bundle.js
@@ -297,6 +297,7 @@ var langstrings = {
errorReporting: "error reporting",
on: "on",
off: "off",
+ selectErrorReporting: "should error reports be submitted to the developers?",
// gsec
gsecErrNet: "GimSIS connection error",
gsecErrLogin: "GimSIS login error (bad password?), try logging out",
@@ -493,6 +494,7 @@ var langstrings = {
errorReporting: "pošiljanje napak",
on: "vklopljeno",
off: "izklopljeno",
+ selectErrorReporting: "ali naj so napake v aplikaciji posredovane razvijalcem?",
// gsec
gsecErrNet: "napaka povezave na GimSIS",
gsecErrLogin: "prijava v GimSIS ni uspela (napačno geslo?), poskusite se odjaviti",
diff --git a/dist/js/settings.js b/dist/js/settings.js
index 7ea0b47..1dd3bfc 100644
--- a/dist/js/settings.js
+++ b/dist/js/settings.js
@@ -66,6 +66,9 @@ document.addEventListener("DOMContentLoaded", async () => {
var elems = document.querySelectorAll(".theme-select");
M.FormSelect.init(elems, {});
+ var elems = document.querySelectorAll(".errorreporting-select");
+ M.FormSelect.init(elems, {});
+
// Setup language select dropdown
var elems = document.querySelectorAll(".lang-select");
M.FormSelect.init(elems, {});
diff --git a/dist/js/setup-storage.js b/dist/js/setup-storage.js
index ce66bba..7aaa089 100644
--- a/dist/js/setup-storage.js
+++ b/dist/js/setup-storage.js
@@ -19,7 +19,7 @@ async function setupStorage(force = false) {
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("theme", "light"),
localforage.setItem("errorReporting", "on")
];
diff --git a/dist/pages/about.html b/dist/pages/about.html
index 3d86337..8a2908c 100755
--- a/dist/pages/about.html
+++ b/dist/pages/about.html
@@ -142,7 +142,7 @@
<div class="row">
<p>
<small>
- ^HEAD 448708182490d551721767bffc34ef35375f5082
+ ^HEAD cbef4f9e7f6b39469d9e6ac77b5a7237f69022ee
</small>
</p>
</div>
diff --git a/dist/pages/settings.html b/dist/pages/settings.html
index afc93bd..1316581 100755
--- a/dist/pages/settings.html
+++ b/dist/pages/settings.html
@@ -88,37 +88,36 @@
</div>
</div>
- <div class="row">
- <div class="col s12">
- <h5 class="general-text"><x-su>theme</x-su></h5>
- </div>
- <div class="input-field col s12">
- <i class="material-icons prefix">palette</i>
- <select class="theme-select input-select" id="select-theme">
- <option value="light" id="option-light" data-theme="light" selected><x-su>themeLight</x-su></option>
- <option value="dark" id="option-dark" data-theme="dark"><x-su>themeDark</x-su></option>
- <option value="night" id="option-night" data-theme="night"><x-su>themeNight</x-su></option>
- </select>
- <label><x-su>selectTheme</x-su></label>
- </div>
- </div>
-
-
- <div class="row">
- <div class="col s12">
- <h5 class="general-text"><x-su>errorReporting</x-su></h5>
- </div>
- <div class="input-field col s12">
- <i class="material-icons prefix">report_problem</i>
- <select class="errorreporting-select input-select" id="select-errorreporting">
- <option value="on" id="option-on" data-errorreporting="on" selected><x-su>on</x-su></option>
- <option value="off" id="option-off" data-errorreporting="off"><x-su>off</x-su></option>
- </select>
- <label><x-su>selectErrorReporting</x-su></label>
- </div>
- </div>
-
- </div>
+ <div class="row">
+ <div class="col s12">
+ <h5 class="general-text"><x-su>theme</x-su></h5>
+ </div>
+ <div class="input-field col s12">
+ <i class="material-icons prefix">palette</i>
+ <select class="theme-select input-select" id="select-theme">
+ <option value="light" id="option-light" data-theme="light" selected>Light / svetla</option>
+ <option value="dark" id="option-dark" data-theme="dark">Dark / temna</option>
+ <option value="night" id="option-night" data-theme="night">Night / nočna</x-su></option>
+ </select>
+ <label><x-su>selectTheme</x-su></label>
+ </div>
+ </div>
+
+
+ <div class="row">
+ <div class="col s12">
+ <h5 class="general-text"><x-su>errorReporting</x-su></h5>
+ </div>
+ <div class="input-field col s12">
+ <i class="material-icons prefix">report_problem</i>
+ <select class="errorreporting-select input-select" id="select-errorreporting">
+ <option value="on" id="option-on" data-errorreporting="on" selected>On / Vklopljeno</option>
+ <option value="off" id="option-off" data-errorreporting="off">Off / Izklopljeno</option>
+ </select>
+ <label><x-su>selectErrorReporting</x-su></label>
+ </div>
+ </div>
+ </div>
</body>
</html>
diff --git a/dist/sw.js b/dist/sw.js
index e08b250..e9eab51 100755
--- a/dist/sw.js
+++ b/dist/sw.js
@@ -3,8 +3,8 @@
// Change version to cause cache refresh
-const static_cache_name = "site-static-1.0.13-beta-4487081";
-// latest commit is 448708182490d551721767bffc34ef35375f5082
+const static_cache_name = "site-static-1.0.13-beta-cbef4f9";
+// latest commit is cbef4f9e7f6b39469d9e6ac77b5a7237f69022ee
// Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js
// sw.js NE SME BITI CACHAN, ker vsebuje verzijo!