Spaces:
Sleeping
Sleeping
Upload 4 files
Browse files- .gitattributes +2 -0
- static/Icon-192.png +3 -0
- static/Icon-512.png +3 -0
- static/manifest.json +20 -0
- static/service-worker.js +20 -0
.gitattributes
CHANGED
|
@@ -37,3 +37,5 @@ templates/TaskBot[[:space:]]logo.png filter=lfs diff=lfs merge=lfs -text
|
|
| 37 |
thumbnail.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
static/static/Icon-192.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
static/static/Icon-512.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 37 |
thumbnail.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
static/static/Icon-192.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
static/static/Icon-512.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
static/Icon-192.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
static/Icon-512.png filter=lfs diff=lfs merge=lfs -text
|
static/Icon-192.png
ADDED
|
|
Git LFS Details
|
static/Icon-512.png
ADDED
|
|
Git LFS Details
|
static/manifest.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "TaskBot AI",
|
| 3 |
+
"short_name": "TaskBot",
|
| 4 |
+
"start_url": "/",
|
| 5 |
+
"display": "standalone",
|
| 6 |
+
"background_color": "#ffffff",
|
| 7 |
+
"theme_color": "#007bff",
|
| 8 |
+
"icons": [
|
| 9 |
+
{
|
| 10 |
+
"src": "/static/icon-192.png",
|
| 11 |
+
"type": "image/png",
|
| 12 |
+
"sizes": "192x192"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"src": "/static/icon-512.png",
|
| 16 |
+
"type": "image/png",
|
| 17 |
+
"sizes": "512x512"
|
| 18 |
+
}
|
| 19 |
+
]
|
| 20 |
+
}
|
static/service-worker.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
self.addEventListener('install', function(event) {
|
| 2 |
+
event.waitUntil(
|
| 3 |
+
caches.open('taskbot-cache').then(function(cache) {
|
| 4 |
+
return cache.addAll([
|
| 5 |
+
'/',
|
| 6 |
+
'/static/style.css',
|
| 7 |
+
'/static/script.js',
|
| 8 |
+
'/static/icon-192.png'
|
| 9 |
+
]);
|
| 10 |
+
})
|
| 11 |
+
);
|
| 12 |
+
});
|
| 13 |
+
|
| 14 |
+
self.addEventListener('fetch', function(event) {
|
| 15 |
+
event.respondWith(
|
| 16 |
+
caches.match(event.request).then(function(response) {
|
| 17 |
+
return response || fetch(event.request);
|
| 18 |
+
})
|
| 19 |
+
);
|
| 20 |
+
});
|