From 9887173427b46fc860438440c7f0139e1f68419f Mon Sep 17 00:00:00 2001 From: sijanec Date: Wed, 23 Sep 2020 20:01:42 +0200 Subject: final fixes and minification --- dist/cache_name.txt | 2 +- dist/js/app.js | 2 +- dist/js/meals.js | 4 +- dist/pages/about.html | 2 +- dist/pages/changelog.html | 305 ++++++++++++++++++++++++---------------------- dist/pages/meals.html | 2 +- dist/sw.js | 4 +- 7 files changed, 166 insertions(+), 155 deletions(-) (limited to 'dist') 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 @@

- ^HEAD bd565dab653a0e10e083d5b1a2898d00a1f6a4da + ^HEAD 47c8dd3a9874dcaf505abcea61cd550a2e87c816

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 @@ - - - - - - - - Changelog « BežiApp - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-

changelog

-
    -
  • -
    Version 1.0.14-beta
    -
    -
      -
    • Added themes (dark, light, night, defaulting to light)
    • -
    • "Additional options" (before anyone gets triggered, their order is random)
    • -
    • New messaging look
    • -
    • Messaging has been overhauled, now better then ever. Powered by GimSIS™
    • -
    • Added videoconferencing (via video.gimb)
    • -
    • More network requests go directly to GimSISExt (with gsec.js)
    • -
    • Many bug fixes
    • -
    -
    - -
    Version 1.0.13-beta
    -
    -
      -
    • Various bug fixes
    • -
    -
    - -
    Version 1.0.12-beta
    -
    -
      -
    • Now update does not clear whole database => you stay logged in
    • -
    • Added multilanguage support
    • -
    -
    - -
    Version 1.0.11-beta
    -
    -
      -
    • Added end-to-end encrypton support to messaging
    • -
    -
    - -
    Version 1.0.10-beta
    -
    -
      -
    • Added meals
    • -
    -
    - -
    Version 1.0.9-beta
    -
    -
      -
    • Added image sending support to messaging
    • -
    -
    - -
    Version 1.0.8-beta
    -
    -
      -
    • Added messaging
    • -
    -
    - -
    Version 1.0.7-beta
    -
    -
      -
    • Enter key now triggers login in the login form
    • -
    -
    - -
    Version 1.0.6-beta
    -
    -
      -
    • Fixed a typo (related to #5)
    • -
    -
    - -
    Version 1.0.5-beta
    -
    -
      -
    • Fixed default view on startup
    • -
    • Changed promise handling in gradings (#5)
    • -
    -
    - -
    Version 1.0.4-beta
    -
    -
      -
    • Introduced the changelog
    • -
    • Fixed date picker color
    • -
    • Changed weekly timetable accent color
    • -
    • Option for including/excluding temporary grades in average - calculation (credit: Tinkara)
    • -
    -
    -
  • -
-
-
- - - - + + + + + + + + + Changelog « BežiApp + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

+ changelog +

+
    +
  • +
    Version 1.0.15-beta
    +
    +
      +
    • Changed meals layout
    • +
    +
    + + +
    Version 1.0.14-beta
    +
    +
      +
    • Added themes (dark, light, night, defaulting to light)
    • +
    • "Additional options" (before anyone gets triggered, their order is random)
    • +
    • New messaging look
    • +
    • Messaging has been overhauled, now better then ever. Powered by GimSIS™
    • +
    • Added videoconferencing (via video.gimb)
    • +
    • More network requests go directly to GimSISExt (with gsec.js)
    • +
    • Many bug fixes
    • +
    +
    + +
    Version 1.0.13-beta
    +
    +
      +
    • Various bug fixes
    • +
    +
    + +
    Version 1.0.12-beta
    +
    +
      +
    • Now update does not clear whole database => you stay logged in
    • +
    • Added multilanguage support
    • +
    +
    + +
    Version 1.0.11-beta
    +
    +
      +
    • Added end-to-end encrypton support to messaging
    • +
    +
    + +
    Version 1.0.10-beta
    +
    +
      +
    • Added meals
    • +
    +
    + +
    Version 1.0.9-beta
    +
    +
      +
    • Added image sending support to messaging
    • +
    +
    + +
    Version 1.0.8-beta
    +
    +
      +
    • Added messaging
    • +
    +
    + +
    Version 1.0.7-beta
    +
    +
      +
    • Enter key now triggers login in the login form
    • +
    +
    + +
    Version 1.0.6-beta
    +
    +
      +
    • Fixed a typo (related to #5)
    • +
    +
    + +
    Version 1.0.5-beta
    +
    +
      +
    • Fixed default view on startup
    • +
    • Changed promise handling in gradings (#5)
    • +
    +
    + +
    Version 1.0.4-beta
    +
    +
      +
    • Introduced the changelog
    • +
    • Fixed date picker color
    • +
    • Changed weekly timetable accent color
    • +
    • Option for including/excluding temporary grades in average + calculation (credit: Tinkara)
    • +
    +
    +
  • +
+
+
+ + + + 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 @@