summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
Diffstat (limited to 'dist')
-rwxr-xr-xdist/cache_name.txt2
-rwxr-xr-xdist/js/app.js2
-rwxr-xr-xdist/js/meals.js4
-rwxr-xr-xdist/pages/about.html2
-rwxr-xr-xdist/pages/changelog.html305
-rwxr-xr-xdist/pages/meals.html2
-rwxr-xr-xdist/sw.js4
7 files changed, 166 insertions, 155 deletions
diff --git a/dist/cache_name.txt b/dist/cache_name.txt
index 66c4f1d..4401b64 100755
--- a/dist/cache_name.txt
+++ b/dist/cache_name.txt
@@ -2,4 +2,4 @@
-///site-static-1.0.15.0-beta-bd565da|||
+///site-static-1.0.15.0-beta-47c8dd3|||
diff --git a/dist/js/app.js b/dist/js/app.js
index b37978c..7bbd5b9 100755
--- a/dist/js/app.js
+++ b/dist/js/app.js
@@ -3,7 +3,7 @@
const app_version = "1.0.15.0-beta";
-const previous_commit = "bd565dab653a0e10e083d5b1a2898d00a1f6a4da";
+const previous_commit = "47c8dd3a9874dcaf505abcea61cd550a2e87c816";
const BEZIAPP_UPDATE_INTERVAL = 300; // update vsakih 300 sekund
if ("serviceWorker" in navigator) {
diff --git a/dist/js/meals.js b/dist/js/meals.js
index 5c2aecb..adaf275 100755
--- a/dist/js/meals.js
+++ b/dist/js/meals.js
@@ -23,8 +23,8 @@ setLoading(false);},error:()=>{setLoading(false);UIAlert(D("lopolisAPIConnection
async function setMenu(date,menu){let choice={};choice[date]=menu;getToken(getMenus,[setMenus,choice]);}
function setupEventListeners(){$("#meals-login").click(()=>{lopolisLogin();});$("#meals-logout").click(()=>{lopolisLogout();});}
var mealClickHandler=(eventClickInfo)=>{let meal_date=eventClickInfo.event.id;let meal_object=meals_data_global[meal_date];$("#meal-type").text(meal_object.meal);let meal_date_obj=new Date(meal_date);$("#meal-date").text(dateString.longFormatted(meal_date_obj));if(!(meal_object.readonly)){document.getElementById("meal-readonly").style.display="none";}else{document.getElementById("meal-readonly").style.display="block";}
-document.getElementById("meal-options").innerHTML="";for(const[option_index,option_object]of Object.entries(meal_object.menu_options)){let menu_option_li_el=document.createElement("li");let menu_option_a_el=document.createElement("button");menu_option_a_el.innerText=option_object.text;if(option_object.selected!=null){if(option_object.selected){menu_option_a_el.className="selected-meal";}}
-menu_option_a_el.classList="waves-effect waves-light btn-large";menu_option_a_el.style="color: var(--color-text); background-color: rgba(0,0,0,0); line-height: 1.2; height:auto !important;";menu_option_a_el.id="menu_index_"+option_index;if(!(meal_object.readonly)){menu_option_a_el.onclick=()=>{setMenu(meal_date,option_object.value);menu_option_a_el.className="to-be-selected-meal";let sidenav_element=document.getElementById("meal-info");let sidenav_instance=M.Sidenav.getInstance(sidenav_element);sidenav_instance.close();};}
+document.getElementById("meal-options").innerHTML="";for(const[option_index,option_object]of Object.entries(meal_object.menu_options)){let menu_option_li_el=document.createElement("li");let menu_option_a_el=document.createElement("button");menu_option_a_el.innerText=option_object.text;let classlist="";if(option_object.selected!=null){if(option_object.selected){classlist="color: green; font-weight: bold";}}
+menu_option_a_el.classList="waves-effect waves-light btn-large";menu_option_a_el.style="color: var(--color-text); background-color: rgba(0,0,0,0); line-height: 1.2; height:auto; "+classlist+" !important";menu_option_a_el.id="menu_index_"+option_index;if(!(meal_object.readonly)){menu_option_a_el.onclick=()=>{setMenu(meal_date,option_object.value);menu_option_a_el.className="to-be-selected-meal";let sidenav_element=document.getElementById("meal-info");let sidenav_instance=M.Sidenav.getInstance(sidenav_element);sidenav_instance.close();};}
menu_option_li_el.appendChild(menu_option_a_el);document.getElementById("meal-options").appendChild(menu_option_li_el);}
let sidenav_element=document.getElementById("meal-info");let sidenav_instance=M.Sidenav.getInstance(sidenav_element);sidenav_instance.open();}
document.addEventListener("DOMContentLoaded",async()=>{checkLogin();var calendarEl=document.getElementById("meals-calendar");meals_calendar_obj=new FullCalendar.Calendar(calendarEl,{firstDay:1,plugins:["dayGrid"],defaultDate:getDateString(),navLinks:false,editable:false,events:[],eventClick:mealClickHandler,height:"parent"});meals_calendar_obj.render();setupEventListeners();$("#refresh-icon").click(function(){refreshMeals();});const menus=document.querySelectorAll('.side-menu');M.Sidenav.init(menus,{edge:'right',draggable:true});const modals=document.querySelectorAll('.side-modal');M.Sidenav.init(modals,{edge:'left',draggable:false});document.getElementsByClassName("fc-today-button")[0].style="display:none !important";var elemsx=document.querySelectorAll('select');M.FormSelect.init(elemsx);var datepickerelems=document.querySelectorAll('.datepicker');var today=new Date();M.Datepicker.init(datepickerelems,{firstDay:1,minDate:today,showDaysInNextAndPreviousMonths:true,showClearBtn:true,format:"dddd, dd. mmmm yyyy"});refreshMeals();}); \ No newline at end of file
diff --git a/dist/pages/about.html b/dist/pages/about.html
index 5e28ce2..2f3b033 100755
--- a/dist/pages/about.html
+++ b/dist/pages/about.html
@@ -160,7 +160,7 @@
<div class="row">
<p>
<small>
- ^HEAD bd565dab653a0e10e083d5b1a2898d00a1f6a4da
+ ^HEAD 47c8dd3a9874dcaf505abcea61cd550a2e87c816
</small>
</p>
</div>
diff --git a/dist/pages/changelog.html b/dist/pages/changelog.html
index 2fbf933..9f8cbab 100755
--- a/dist/pages/changelog.html
+++ b/dist/pages/changelog.html
@@ -2,150 +2,161 @@
-<!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>Changelog &laquo; BežiApp</title>
-
- <!-- Materialize -->
- <link type="text/css" href="/css/materialize.min.css" rel="stylesheet">
- <link href="/css/materialicons.css" rel="stylesheet">
- <link href="/css/fontawesome.min.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/changelog.js"></script>
-
- <link rel="manifest" href="/manifest.json">
- <script src="/js/app.js"></script>
- <script src="/js/lib/themes.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>
- <nav class="z-depth-0" id="navigation-main">
- <div class="nav-wrapper container">
- <b class="app-header-bold">Beži</b><span class="app-header-span">App</span> &raquo; <x-su>changelog</x-su>
- <span class="right white-text" id="nav-back-button">
- <i class="material-icons">arrow_back</i>
- </span>
- </div>
- <div id="loading-bar" class="progress hidden">
- <div class="indeterminate"></div>
- </div>
- </nav>
-
- <div class="container">
- <div class="row">
- <h3 class="general-text"><x-su>changelog</x-su></h3>
- <ul class="collapsible">
- <li>
- <div class="collapsible-header">Version 1.0.14-beta</div>
- <div class="collapsible-body">
- <ul class="collection">
- <li class="collection-item">Added themes (dark, light, night, defaulting to light)</li>
- <li class="collection-item">"Additional options" (before anyone gets triggered, their order <i>is</i> random)</li>
- <li class="collection-item">New messaging look</li>
- <li class="collection-item">Messaging has been overhauled, now better then ever. Powered by GimSIS™</li>
- <li class="collection-item">Added videoconferencing (via video.gimb)</li>
- <li class="collection-item">More network requests go directly to GimSISExt (with gsec.js)</li>
- <li class="collection-item">Many bug fixes</li>
- </ul>
- </div>
-
- <div class="collapsible-header">Version 1.0.13-beta</div>
- <div class="collapsible-body">
- <ul class="collection">
- <li class="collection-item">Various bug fixes</li>
- </ul>
- </div>
-
- <div class="collapsible-header">Version 1.0.12-beta</div>
- <div class="collapsible-body">
- <ul class="collection">
- <li class="collection-item">Now update does not clear whole database => you stay logged in</li>
- <li class="collection-item">Added multilanguage support</li>
- </ul>
- </div>
-
- <div class="collapsible-header">Version 1.0.11-beta</div>
- <div class="collapsible-body">
- <ul class="collection">
- <li class="collection-item">Added end-to-end encrypton support to messaging</li>
- </ul>
- </div>
-
- <div class="collapsible-header">Version 1.0.10-beta</div>
- <div class="collapsible-body">
- <ul class="collection">
- <li class="collection-item">Added meals</li>
- </ul>
- </div>
-
- <div class="collapsible-header">Version 1.0.9-beta</div>
- <div class="collapsible-body">
- <ul class="collection">
- <li class="collection-item">Added image sending support to messaging</li>
- </ul>
- </div>
-
- <div class="collapsible-header">Version 1.0.8-beta</div>
- <div class="collapsible-body">
- <ul class="collection">
- <li class="collection-item">Added messaging</li>
- </ul>
- </div>
-
- <div class="collapsible-header">Version 1.0.7-beta</div>
- <div class="collapsible-body">
- <ul class="collection">
- <li class="collection-item">Enter key now triggers login in the login form</li>
- </ul>
- </div>
-
- <div class="collapsible-header">Version 1.0.6-beta</div>
- <div class="collapsible-body">
- <ul class="collection">
- <li class="collection-item">Fixed a typo (related to #5)</li>
- </ul>
- </div>
-
- <div class="collapsible-header">Version 1.0.5-beta</div>
- <div class="collapsible-body">
- <ul class="collection">
- <li class="collection-item">Fixed default view on startup</li>
- <li class="collection-item">Changed promise handling in gradings (#5)</li>
- </ul>
- </div>
-
- <div class="collapsible-header">Version 1.0.4-beta</div>
- <div class="collapsible-body">
- <ul class="collection">
- <li class="collection-item">Introduced the changelog</li>
- <li class="collection-item">Fixed date picker color</li>
- <li class="collection-item">Changed weekly timetable accent color</li>
- <li class="collection-item">Option for including/excluding temporary grades in average
- calculation (credit: Tinkara)</li>
- </ul>
- </div>
- </li>
- </ul>
- </div>
- </div>
-
-</body>
-
-</html>
+ <!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>Changelog &laquo; BežiApp</title>
+
+ <!-- Materialize -->
+ <link type="text/css" href="/css/materialize.min.css" rel="stylesheet">
+ <link href="/css/materialicons.css" rel="stylesheet">
+ <link href="/css/fontawesome.min.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/changelog.js"></script>
+
+ <link rel="manifest" href="/manifest.json">
+ <script src="/js/app.js"></script>
+ <script src="/js/lib/themes.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>
+ <nav class="z-depth-0" id="navigation-main">
+ <div class="nav-wrapper container">
+ <b class="app-header-bold">Beži</b><span class="app-header-span">App</span> &raquo; <x-su>changelog</x-su>
+ <span class="right white-text" id="nav-back-button">
+ <i class="material-icons">arrow_back</i>
+ </span>
+ </div>
+ <div id="loading-bar" class="progress hidden">
+ <div class="indeterminate"></div>
+ </div>
+ </nav>
+
+ <div class="container">
+ <div class="row">
+ <h3 class="general-text">
+ <x-su>changelog</x-su>
+ </h3>
+ <ul class="collapsible">
+ <li>
+ <div class="collapsible-header">Version 1.0.15-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Changed meals layout</li>
+ </ul>
+ </div>
+
+
+ <div class="collapsible-header">Version 1.0.14-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Added themes (dark, light, night, defaulting to light)</li>
+ <li class="collection-item">"Additional options" (before anyone gets triggered, their order <i>is</i> random)</li>
+ <li class="collection-item">New messaging look</li>
+ <li class="collection-item">Messaging has been overhauled, now better then ever. Powered by GimSIS™</li>
+ <li class="collection-item">Added videoconferencing (via video.gimb)</li>
+ <li class="collection-item">More network requests go directly to GimSISExt (with gsec.js)</li>
+ <li class="collection-item">Many bug fixes</li>
+ </ul>
+ </div>
+
+ <div class="collapsible-header">Version 1.0.13-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Various bug fixes</li>
+ </ul>
+ </div>
+
+ <div class="collapsible-header">Version 1.0.12-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Now update does not clear whole database => you stay logged in</li>
+ <li class="collection-item">Added multilanguage support</li>
+ </ul>
+ </div>
+
+ <div class="collapsible-header">Version 1.0.11-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Added end-to-end encrypton support to messaging</li>
+ </ul>
+ </div>
+
+ <div class="collapsible-header">Version 1.0.10-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Added meals</li>
+ </ul>
+ </div>
+
+ <div class="collapsible-header">Version 1.0.9-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Added image sending support to messaging</li>
+ </ul>
+ </div>
+
+ <div class="collapsible-header">Version 1.0.8-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Added messaging</li>
+ </ul>
+ </div>
+
+ <div class="collapsible-header">Version 1.0.7-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Enter key now triggers login in the login form</li>
+ </ul>
+ </div>
+
+ <div class="collapsible-header">Version 1.0.6-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Fixed a typo (related to #5)</li>
+ </ul>
+ </div>
+
+ <div class="collapsible-header">Version 1.0.5-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Fixed default view on startup</li>
+ <li class="collection-item">Changed promise handling in gradings (#5)</li>
+ </ul>
+ </div>
+
+ <div class="collapsible-header">Version 1.0.4-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Introduced the changelog</li>
+ <li class="collection-item">Fixed date picker color</li>
+ <li class="collection-item">Changed weekly timetable accent color</li>
+ <li class="collection-item">Option for including/excluding temporary grades in average
+ calculation (credit: Tinkara)</li>
+ </ul>
+ </div>
+ </li>
+ </ul>
+ </div>
+ </div>
+
+ </body>
+
+ </html>
diff --git a/dist/pages/meals.html b/dist/pages/meals.html
index 6918eae..56e0af3 100755
--- a/dist/pages/meals.html
+++ b/dist/pages/meals.html
@@ -140,7 +140,7 @@
</div>
</div>
<div class="meals-container container" hidden="hidden" id="meals-container">
- <h4>Meals
+ <h4><x-su>meals</x-su>
<button id="meals-logout" type="button" class="waves-effect waves-light btn" style="float: right">
<x-su>logOutFromLopolis</x-su>
<i class="material-icons right">exit_to_app</i>
diff --git a/dist/sw.js b/dist/sw.js
index dbe1db3..9097aa5 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.15.0-beta-bd565da";
-// commit before the latest is bd565dab653a0e10e083d5b1a2898d00a1f6a4da
+const static_cache_name = "site-static-1.0.15.0-beta-47c8dd3";
+// commit before the latest is 47c8dd3a9874dcaf505abcea61cd550a2e87c816
// Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js
// sw.js NE SME BITI CACHAN, ker vsebuje verzijo!