Modification site web
This commit is contained in:
+456
-727
File diff suppressed because it is too large
Load Diff
+19
-14
@@ -1,17 +1,22 @@
|
||||
{
|
||||
"name": "SafeAccess — Gestion de badges",
|
||||
"short_name": "SafeAccess",
|
||||
"description": "Gestion de badges d'accès NFC, RFID, QR Code et Bluetooth avec 2FA",
|
||||
"start_url": "/index.html",
|
||||
"name": "CyberusGate Access",
|
||||
"short_name": "CG Access",
|
||||
"start_url": "index.html",
|
||||
"display": "standalone",
|
||||
"background_color": "#0D2B5E",
|
||||
"theme_color": "#1565C0",
|
||||
"orientation": "portrait",
|
||||
"background_color": "#070c16",
|
||||
"theme_color": "#070c16",
|
||||
"icons": [
|
||||
{ "src": "icons/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any maskable" },
|
||||
{ "src": "icons/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any maskable" }
|
||||
],
|
||||
"categories": ["security", "utilities", "business"],
|
||||
"lang": "fr",
|
||||
"scope": "/"
|
||||
}
|
||||
{
|
||||
"src": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDBkMmZmIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIGQ9Ik0xMiAyMnM4LTQgOC0xMFY1bC04LTMtOCAzdjdjMCA2IDggMTAgOCAxMHoiPjwvcGF0aD48L3N2Zz4=",
|
||||
"sizes": "192x192",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "any maskable"
|
||||
},
|
||||
{
|
||||
"src": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDBkMmZmIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIGQ9Ik0xMiAyMnM4LTQgOC0xMFY1bC04LTMtOCAzdjdjMCA2IDggMTAgOCAxMHoiPjwvcGF0aD48L3N2Zz4=",
|
||||
"sizes": "512x512",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "any maskable"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,12 +1,10 @@
|
||||
const CACHE = 'safeaccess-v1';
|
||||
const ASSETS = ['/', '/index.html', '/manifest.json'];
|
||||
const CACHE_NAME = 'cyberus-cache-v3';
|
||||
const urlsToCache = ['./', './index.html', './manifest.json'];
|
||||
|
||||
self.addEventListener('install', e => {
|
||||
e.waitUntil(caches.open(CACHE).then(c => c.addAll(ASSETS)));
|
||||
self.addEventListener('install', event => {
|
||||
event.waitUntil(caches.open(CACHE_NAME).then(cache => cache.addAll(urlsToCache)));
|
||||
});
|
||||
|
||||
self.addEventListener('fetch', e => {
|
||||
e.respondWith(
|
||||
caches.match(e.request).then(r => r || fetch(e.request)).catch(() => caches.match('/index.html'))
|
||||
);
|
||||
});
|
||||
self.addEventListener('fetch', event => {
|
||||
event.respondWith(caches.match(event.request).then(response => response || fetch(event.request)));
|
||||
});
|
||||
Reference in New Issue
Block a user