Skip to content

Commit

Permalink
Updated PWA and Resources
Browse files Browse the repository at this point in the history
  • Loading branch information
MIKEINTOSHSYSTEMS committed Oct 24, 2024
1 parent bce5044 commit 461792f
Show file tree
Hide file tree
Showing 8 changed files with 1,142 additions and 1,109 deletions.
4 changes: 2 additions & 2 deletions app/include/appsettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -751,9 +751,9 @@
$strLastSQL = "";
$showCustomMarkerOnPrint = false;

$projectBuildKey = "464_1729433252";
$projectBuildKey = "465_1729433252";
$wizardBuildKey = "39558";
$projectBuildNumber = "464";
$projectBuildNumber = "465";

$mlang_messages = array();
$mlang_charsets = array();
Expand Down
26 changes: 24 additions & 2 deletions app/include/footer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
<div align="center"><br> <br> <p>Dereja Monitoring and Evaluation System <b><i>Version 4.0</i></b> | DEREJA.COM © <script>document.write(new Date().getFullYear())</script> All Rights Reserved. | Designed and Developed By <a href="https://merqconsultancy.org">MERQ Consultancy</a> </p></div>
<div align="center" style="margin: 30px 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);">
<p style="font-size: 16px; color: #333; margin: 0;">
<strong>Dereja Monitoring & Evaluation System</strong> <br>
<span style="font-style: italic; color: #555;">Version 4.0 | Build 10</span><br>
<span style="color: #777;">All Rights Reserved.</span>
<a href="https://dereja.com" style="text-decoration: none; color: #007BFF; font-weight: bold;">DEREJA</a> ©
<script>document.write(new Date().getFullYear())</script><br>
<span style="color: #777;">Designed & Developed By</span>
<a href="https://merqconsultancy.org" style="text-decoration: none; color: #007BFF; font-weight: bold;">MERQ Consultancy</a>
</p>
</div>
<!--
If you have any issues or need any support please contact
Michael K. Teferra (MIKEINTOSH SYSTEMS)
Telegram: @mikeintosh
Phone: +251913391985 or +251938048182
Email: mikeintoshsys@gmail.com | michael@mikeintoshsys.com
Web: https://mikeintoshsys.com
-->
<!--
<script type="module">
import 'https://cdn.jsdelivr.net/npm/@pwabuilder/pwaupdate';
const el = document.createElement('pwa-update');
document.body.appendChild(el);
</script>
</script>
-->
4 changes: 2 additions & 2 deletions app/include/menunodes_DerejaMenuSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -2126,8 +2126,8 @@ function getMenuNodes_DerejaMenuSet($menuNodesObject)
$menuNode["pageId"] = "";
$menuNode["openType"] = "None";

$menuNode["icon"] = "";
$menuNode["iconType"] = "0";
$menuNode["icon"] = "fa-file-text-o";
$menuNode["iconType"] = "3";
$menuNode["iconShow"] = "1";

$menuNode["color"] = "";
Expand Down
2 changes: 0 additions & 2 deletions app/pwabuilder-sw.js
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@

const CACHE="pwabuilder-offline";const QUEUE_NAME="bgSyncQueue";importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js');self.addEventListener("message",(event)=>{if(event.data&&event.data.type==="SKIP_WAITING"){self.skipWaiting();}});const bgSyncPlugin=new workbox.backgroundSync.BackgroundSyncPlugin(QUEUE_NAME,{maxRetentionTime:24*60});workbox.routing.registerRoute(new RegExp('/*'),new workbox.strategies.StaleWhileRevalidate({cacheName:CACHE,plugins:[bgSyncPlugin]}));
1,099 changes: 1,094 additions & 5 deletions index.php

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions maintenance.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div style="margin-top: 11%;" class="server-message">
<h1 style="font-size: 85px;margin: 0;font-weight: 300; line-height: 1.1;color:grey;text-align: center;">Dereja M&E System is Under Maintenance!</h1>
<h2 style="margin-top: 2%;margin-bottom: 2%;font-weight: 300; line-height: 1.1;color: #a56565;;text-align: center;">Please wait patiently while we are working our magic! :)</h2>
<p style="font-size: 35px;margin: 1%;font-weight: 300; line-height: 1.1;color:grey;text-align: center;"><a href="http://merqconsultancy.org">Designed and Developed by</a> <br> <br> <a href="https://merqconsultancy.org/">MERQ Consultancy</a> <br><a href="./start.php"> Information Systems & Digital Health Unit</a></p>
</div>
17 changes: 15 additions & 2 deletions pwabuilder-sw.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@

const CACHE = "pwabuilder-offline"; const QUEUE_NAME = "bgSyncQueue"; importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js'); self.addEventListener("message", (event) => { if (event.data && event.data.type === "SKIP_WAITING") { self.skipWaiting(); } }); const bgSyncPlugin = new workbox.backgroundSync.BackgroundSyncPlugin(QUEUE_NAME, { maxRetentionTime: 24 * 60 }); workbox.routing.registerRoute(new RegExp('/*'), new workbox.strategies.StaleWhileRevalidate({ cacheName: CACHE, plugins: [bgSyncPlugin] }));
const CACHE = "pwabuilder-offline";
const QUEUE_NAME = "bgSyncQueue";
importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.4/workbox-sw.js');
self.addEventListener("message", (event) => {
if (event.data && event.data.type === "SKIP_WAITING") {
self.skipWaiting();
}
});
const bgSyncPlugin = new workbox.backgroundSync.BackgroundSyncPlugin(QUEUE_NAME, {
maxRetentionTime: 24 * 60
});
workbox.routing.registerRoute(new RegExp('/*'), new workbox.strategies.StaleWhileRevalidate({
cacheName: CACHE,
plugins: [bgSyncPlugin]
}));
Loading

0 comments on commit 461792f

Please sign in to comment.