diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png new file mode 100644 index 0000000..ab452bb Binary files /dev/null and b/static/apple-touch-icon.png differ diff --git a/static/favicon-96x96.png b/static/favicon-96x96.png new file mode 100644 index 0000000..37b0cc3 Binary files /dev/null and b/static/favicon-96x96.png differ diff --git a/static/favicon.ico b/static/favicon.ico index ed94b90..b9deb8f 100644 Binary files a/static/favicon.ico and b/static/favicon.ico differ diff --git a/static/favicon.svg b/static/favicon.svg new file mode 100644 index 0000000..dd982dc --- /dev/null +++ b/static/favicon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/static/icons/android-launchericon-144-144.png b/static/icons/android-launchericon-144-144.png deleted file mode 100644 index b077e84..0000000 Binary files a/static/icons/android-launchericon-144-144.png and /dev/null differ diff --git a/static/icons/android-launchericon-192-192.png b/static/icons/android-launchericon-192-192.png deleted file mode 100644 index 4f4c83d..0000000 Binary files a/static/icons/android-launchericon-192-192.png and /dev/null differ diff --git a/static/icons/android-launchericon-512-512.png b/static/icons/android-launchericon-512-512.png deleted file mode 100644 index 653c9cc..0000000 Binary files a/static/icons/android-launchericon-512-512.png and /dev/null differ diff --git a/static/service-worker.js b/static/service-worker.js index 92d09ad..ce7f439 100644 --- a/static/service-worker.js +++ b/static/service-worker.js @@ -1,22 +1,15 @@ -self.addEventListener('install', function (event) { - event.waitUntil( - caches.open('my-cache').then(function (cache) { - return cache.addAll([ - '/', - '/index.html', - '/static/styles.css', - '/static/script.js', - '/static/icons/icon-192x192.png', - '/static/icons/icon-512x512.png' - ]); - }) - ); +self.addEventListener('install', e => { + // console.log('[Service Worker] Installed'); }); -self.addEventListener('fetch', function (event) { - event.respondWith( - caches.match(event.request).then(function (response) { - return response || fetch(event.request); - }) - ); +self.addEventListener('activate', e => { + // console.log('[Service Worker] Activated'); }); + +self.addEventListener('fetch', e => { + // e.respondWith( + // caches.match(e.request).then(res => { + // return res || fetch(e.request); + // }) + // ); +}); \ No newline at end of file diff --git a/static/site.webmanifest b/static/site.webmanifest new file mode 100644 index 0000000..7fbf004 --- /dev/null +++ b/static/site.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "kTvManager", + "short_name": "kTv", + "icons": [ + { + "src": "/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} \ No newline at end of file diff --git a/static/web-app-manifest-192x192.png b/static/web-app-manifest-192x192.png new file mode 100644 index 0000000..9bb4ca7 Binary files /dev/null and b/static/web-app-manifest-192x192.png differ diff --git a/static/web-app-manifest-512x512.png b/static/web-app-manifest-512x512.png new file mode 100644 index 0000000..5b179f0 Binary files /dev/null and b/static/web-app-manifest-512x512.png differ diff --git a/templates/index.html b/templates/index.html index a37ae61..35dbb9c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,7 +6,12 @@