Spaces:
Running
Running
Delete static
Browse files- static/Icon-192.png +0 -3
- static/Icon-512.png +0 -3
- static/manifest.json +0 -20
- static/service-worker.js +0 -32
static/Icon-192.png
DELETED
Git LFS Details
|
static/Icon-512.png
DELETED
Git LFS Details
|
static/manifest.json
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "TaskBot v1",
|
3 |
-
"short_name": "TaskBot",
|
4 |
-
"start_url": "/",
|
5 |
-
"display": "standalone",
|
6 |
-
"background_color": "#2f2f2f",
|
7 |
-
"theme_color": "#2f2f2f",
|
8 |
-
"icons": [
|
9 |
-
{
|
10 |
-
"src": "/static/icons/icon-192.png",
|
11 |
-
"sizes": "192x192",
|
12 |
-
"type": "image/png"
|
13 |
-
},
|
14 |
-
{
|
15 |
-
"src": "/static/icons/icon-512.png",
|
16 |
-
"sizes": "512x512",
|
17 |
-
"type": "image/png"
|
18 |
-
}
|
19 |
-
]
|
20 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static/service-worker.js
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
// static/service-worker.js
|
2 |
-
const CACHE_NAME = "taskbot-v1-cache-v1";
|
3 |
-
const toCache = [
|
4 |
-
"/", // cache root HTML
|
5 |
-
"/static/icons/icon-192.png",
|
6 |
-
"/static/icons/icon-512.png",
|
7 |
-
// (any CSS/JS files you serve statically, if you want them offline)
|
8 |
-
];
|
9 |
-
|
10 |
-
self.addEventListener("install", (event) => {
|
11 |
-
event.waitUntil(
|
12 |
-
caches.open(CACHE_NAME).then((cache) => cache.addAll(toCache))
|
13 |
-
);
|
14 |
-
});
|
15 |
-
|
16 |
-
self.addEventListener("fetch", (event) => {
|
17 |
-
// Try cache first, then network
|
18 |
-
event.respondWith(
|
19 |
-
caches.match(event.request).then((cachedResp) => {
|
20 |
-
return (
|
21 |
-
cachedResp ||
|
22 |
-
fetch(event.request).then((networkResp) => {
|
23 |
-
// (Optionally) update the cache
|
24 |
-
caches.open(CACHE_NAME).then((cache) => {
|
25 |
-
cache.put(event.request, networkResp.clone());
|
26 |
-
});
|
27 |
-
return networkResp;
|
28 |
-
})
|
29 |
-
);
|
30 |
-
})
|
31 |
-
);
|
32 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|