summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-17 13:49:56 +0200
committerrstular <rok@stular.eu>2020-05-17 13:49:56 +0200
commit96dd81ddf1188377bf1402e866c4b263dbd55d1c (patch)
treed981d7d5822c8c56b3071176fd85dc1127b3a21f
parentRemoved duplicate files (diff)
downloadbeziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.tar
beziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.tar.gz
beziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.tar.bz2
beziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.tar.lz
beziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.tar.xz
beziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.tar.zst
beziapp-96dd81ddf1188377bf1402e866c4b263dbd55d1c.zip
-rw-r--r--dist/assets/root/directory.json4
-rw-r--r--dist/assets/root/favicon.pngbin50 -> 0 bytes
-rw-r--r--dist/assets/root/index.html27
-rw-r--r--dist/assets/root/login.html66
-rw-r--r--dist/assets/root/logout.html26
-rw-r--r--dist/assets/root/manifest.json59
-rw-r--r--dist/pages/about.html2
-rw-r--r--dist/sw.js (renamed from dist/assets/root/sw.js.bvr)4
-rwxr-xr-xinstall12
9 files changed, 9 insertions, 191 deletions
diff --git a/dist/assets/root/directory.json b/dist/assets/root/directory.json
deleted file mode 100644
index f0670fd..0000000
--- a/dist/assets/root/directory.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "Anton Luka Šijanec": 6326,
- "Rok Štular": 5313
-
diff --git a/dist/assets/root/favicon.png b/dist/assets/root/favicon.png
deleted file mode 100644
index 0834007..0000000
--- a/dist/assets/root/favicon.png
+++ /dev/null
Binary files differ
diff --git a/dist/assets/root/index.html b/dist/assets/root/index.html
deleted file mode 100644
index 2a861a1..0000000
--- a/dist/assets/root/index.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <meta name="google" content="notranslate">
- <title>BežiApp</title>
-
- <script type="text/javascript" src="/js/lib/localforage.min.js"></script>
- <script type="text/javascript" src="/js/setup-storage.js"></script>
- <script type="text/javascript" src="/js/initialize.js"></script>
-
- <link rel="manifest" href="/manifest.json">
- <script src="/js/app.js"></script>
- <link rel="shortcut icon" type="image/png" href="/favicon.png" />
-
- <!-- iOS support -->
- <link rel="apple-touch-icon" href="/img/icons/icon_96.png">
- <link rel="apple-touch-icon" href="/img/icons/icon_512.png">
- <meta name="apple-mobile-web-app-status-bar" content="#004d32">
-</head>
-
-<body>
-</body>
-
-</html>
diff --git a/dist/assets/root/login.html b/dist/assets/root/login.html
deleted file mode 100644
index bbacb7d..0000000
--- a/dist/assets/root/login.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <meta name="google" content="notranslate">
- <title>Login &laquo; BežiApp</title>
-
- <!-- Materialize -->
- <link type="text/css" href="/css/materialize.min.css" rel="stylesheet">
- <link href="/css/materialicons.css" rel="stylesheet">
- <script type="text/javascript" src="/js/lib/materialize.min.js"></script>
-
- <script src="/js/lib/jquery.min.js"></script>
- <script type="text/javascript" src="/js/lib/localforage.min.js"></script>
-
- <link type="text/css" href="/css/styles.css" rel="stylesheet">
- <script type="text/javascript" src="/js/gsec.js"></script> <!-- gimsisextclient -->
- <script type="text/javascript" src="/js/login.js"></script>
-
- <link rel="manifest" href="/manifest.json">
- <script src="/js/app.js"></script>
- <script src="/js/lang/bundle.js"></script>
- <link rel="shortcut icon" type="image/png" href="/favicon.png" />
-
- <!-- iOS support -->
- <link rel="apple-touch-icon" href="/img/icons/icon_96.png">
- <link rel="apple-touch-icon" href="/img/icons/icon_512.png">
- <meta name="apple-mobile-web-app-status-bar" content="#004d32">
-</head>
-
-<body>
- <div class="container">
- <div class="row center-align">
- <div class="row">
- <div class="col s12">
- <h3 class="center-align"><b class="title-secondary">Beži</b><span class="title-primary">App</span>
- </h3>
- </div>
- </div>
- <div class="row">
- <div class="input-field col s12">
- <input id="username" type="text" class="validate">
- <label for="username">GimSIS <x-sl>username</x-sl></label>
- </div>
- </div>
- <div class="row">
- <div class="input-field col s12">
- <input autocomplete="new-password" id="password" type="password" class="validate">
- <label for="password"><x-su>password</x-su></label>
- </div>
- </div>
- <div class="row">
- <button id="login-button" class="btn waves-effect waves-light"><x-sl>signIn</x-sl></button>
- </div>
- <div class="row">
- <p class="grey-text text-darken-2"><x-su>bySigningInYouAgreeTo</x-su> <a href="/pages/tos.html"><x-sl>theToS</x-sl></a> <x-sl>and</x-sl>
- <a href="/pages/privacypolicy.html"><x-dl>thePrivacyPolicy</x-dl></a>
- </p>
- </div>
- </div>
- </div>
-</body>
-
-</html>
diff --git a/dist/assets/root/logout.html b/dist/assets/root/logout.html
deleted file mode 100644
index c3f9b41..0000000
--- a/dist/assets/root/logout.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <meta name="google" content="notranslate">
- <title>Logout &laquo; BežiApp</title>
-
- <script type="text/javascript" src="/js/lib/localforage.min.js"></script>
- <script type="text/javascript" src="/js/logout.js"></script>
-
- <link rel="manifest" href="/manifest.json">
- <script src="/js/app.js"></script>
- <link rel="shortcut icon" type="image/png" href="/favicon.png" />
-
- <!-- iOS support -->
- <link rel="apple-touch-icon" href="/img/icons/icon_96.png">
- <link rel="apple-touch-icon" href="/img/icons/icon_512.png">
- <meta name="apple-mobile-web-app-status-bar" content="#004d32">
-</head>
-
-<body>
-</body>
-
-</html>
diff --git a/dist/assets/root/manifest.json b/dist/assets/root/manifest.json
deleted file mode 100644
index d2c833f..0000000
--- a/dist/assets/root/manifest.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "name": "BežiApp",
- "short_name": "BežiApp",
- "description": "Unofficial app for GimB students",
-
- "start_url": "/index.html",
- "scope": "/",
-
- "display": "standalone",
- "orientation": "portrait-primary",
-
- "background_color": "#008053",
- "theme_color": "#004d32",
- "icons": [
- {
- "src": "/img/icons/icon_48.png",
- "type": "image/png",
- "sizes": "48x48"
- },
- {
- "src": "/img/icons/icon_72.png",
- "type": "image/png",
- "sizes": "72x72"
- },
- {
- "src": "/img/icons/icon_96.png",
- "type": "image/png",
- "sizes": "96x96"
- },
- {
- "src": "/img/icons/icon_144.png",
- "type": "image/png",
- "sizes": "144x144"
- },
- {
- "src": "/img/icons/icon_192.png",
- "type": "image/png",
- "sizes": "192x192"
- },
- {
- "src": "/img/icons/icon_384.png",
- "type": "image/png",
- "sizes": "384x384"
- },
- {
- "src": "/img/icons/icon_512.png",
- "type": "image/png",
- "sizes": "512x512"
- }
- ],
-
- "dir": "auto",
- "lang": "en-US",
- "categories": [
- "education",
- "productivity",
- "utilities"
- ]
-
diff --git a/dist/pages/about.html b/dist/pages/about.html
index 9bc68ef..16b0540 100644
--- a/dist/pages/about.html
+++ b/dist/pages/about.html
@@ -142,7 +142,7 @@
<div class="row">
<p>
<small>
- ^HEAD 48de23d1c8a36a0cd322d8a72ebdca2cb822cb24
+ ^HEAD c2d13f23711f90b86cff6ca06552b69dd2228932
</p>
</div>
</div>
diff --git a/dist/assets/root/sw.js.bvr b/dist/sw.js
index 41e0112..57d1646 100644
--- a/dist/assets/root/sw.js.bvr
+++ b/dist/sw.js
@@ -3,8 +3,8 @@
// Change version to cause cache refresh
-const static_cache_name = "site-static-1.0.13-beta-48de23d";
-// latest commit is 48de23d1c8a36a0cd322d8a72ebdca2cb822cb24
+const static_cache_name = "site-static-1.0.13-beta-c2d13f2";
+// latest commit is c2d13f23711f90b86cff6ca06552b69dd2228932
// Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js
// sw.js NE SME BITI CACHAN, ker vsebuje verzijo!
diff --git a/install b/install
index a563698..20d6480 100755
--- a/install
+++ b/install
@@ -1,9 +1,9 @@
#!/bin/bash
./bin/compose-html assets/pages-src/ dist/pages/ .html
# mkdir dist # dist itak naredi compose-html
-cp -r assets/css dist/css
-cp -r assets/fonts dist/fonts
-cp -r assets/img dist/img
-cp -r assets/js dist/js
-find assets/root/ \( ! -name "*.bvr" \) -exec cp "{}" dist/ \;
-find assets/root/* -exec ./bin/compose-single "{}" dist/"{}" \;
+cp -r assets/css dist/
+cp -r assets/fonts dist/
+cp -r assets/img dist/
+cp -r assets/js dist/
+find assets/root/ -type f \( ! -name "*.bvr" \) -exec cp -r "{}" dist/ \;
+find assets/root/ -name "*.bvr" -printf "%f\n" | xargs -I % bash -c "FILE='%'; FILE_DST="dist/\${FILE/.bvr/}"; ./bin/compose-single \"assets/root/\$FILE\" \"\$FILE_DST\""