-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
500b422
commit dfed8b1
Showing
126 changed files
with
666 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/// <reference types="@sveltejs/kit" /> | ||
import { build, files, version } from '$service-worker'; | ||
|
||
// Create a unique cache name for this deployment | ||
const CACHE = `cache-${version}`; | ||
|
||
const ASSETS = [ | ||
...build, // the app itself | ||
...files // everything in `static` | ||
]; | ||
|
||
self.addEventListener('install', (event) => { | ||
// Create a new cache and add all files to it | ||
async function addFilesToCache() { | ||
const cache = await caches.open(CACHE); | ||
await cache.addAll(ASSETS); | ||
} | ||
|
||
event.waitUntil(addFilesToCache()); | ||
}); | ||
|
||
self.addEventListener('activate', (event) => { | ||
// Remove previous cached data from disk | ||
async function deleteOldCaches() { | ||
for (const key of await caches.keys()) { | ||
if (key !== CACHE) await caches.delete(key); | ||
} | ||
} | ||
|
||
event.waitUntil(deleteOldCaches()); | ||
}); | ||
|
||
self.addEventListener('fetch', (event) => { | ||
// ignore POST requests etc | ||
if (event.request.method !== 'GET') return; | ||
|
||
async function respond() { | ||
const url = new URL(event.request.url); | ||
const cache = await caches.open(CACHE); | ||
|
||
// `build`/`files` can always be served from the cache | ||
if (ASSETS.includes(url.pathname)) { | ||
return cache.match(url.pathname); | ||
} | ||
|
||
// for everything else, try the network first, but | ||
// fall back to the cache if we're offline | ||
try { | ||
const response = await fetch(event.request); | ||
|
||
if (response.status === 200) { | ||
cache.put(event.request, response.clone()); | ||
} | ||
|
||
return response; | ||
} catch { | ||
return cache.match(event.request); | ||
} | ||
} | ||
|
||
event.respondWith(respond()); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+249 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-16.png
Oops, something went wrong.
Binary file added
BIN
+235 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-20.png
Oops, something went wrong.
Binary file added
BIN
+307 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-24.png
Oops, something went wrong.
Binary file added
BIN
+2.22 KB
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-256.png
Oops, something went wrong.
Binary file added
BIN
+286 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-30.png
Oops, something went wrong.
Binary file added
BIN
+349 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-32.png
Oops, something went wrong.
Binary file added
BIN
+374 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-36.png
Oops, something went wrong.
Binary file added
BIN
+403 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-40.png
Oops, something went wrong.
Binary file added
BIN
+453 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-44.png
Oops, something went wrong.
Binary file added
BIN
+464 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-48.png
Oops, something went wrong.
Binary file added
BIN
+539 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-60.png
Oops, something went wrong.
Binary file added
BIN
+559 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-64.png
Oops, something went wrong.
Binary file added
BIN
+604 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-72.png
Oops, something went wrong.
Binary file added
BIN
+794 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-80.png
Oops, something went wrong.
Binary file added
BIN
+856 Bytes
static/icons/windows11/Square44x44Logo.altform-lightunplated_targetsize-96.png
Oops, something went wrong.
Binary file added
BIN
+249 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-16.png
Oops, something went wrong.
Binary file added
BIN
+235 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-20.png
Oops, something went wrong.
Binary file added
BIN
+307 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-24.png
Oops, something went wrong.
Binary file added
BIN
+2.22 KB
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-256.png
Oops, something went wrong.
Binary file added
BIN
+286 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-30.png
Oops, something went wrong.
Binary file added
BIN
+349 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-32.png
Oops, something went wrong.
Binary file added
BIN
+374 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-36.png
Oops, something went wrong.
Binary file added
BIN
+403 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-40.png
Oops, something went wrong.
Binary file added
BIN
+453 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-44.png
Oops, something went wrong.
Binary file added
BIN
+464 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-48.png
Oops, something went wrong.
Binary file added
BIN
+539 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-60.png
Oops, something went wrong.
Binary file added
BIN
+559 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-64.png
Oops, something went wrong.
Binary file added
BIN
+604 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-72.png
Oops, something went wrong.
Binary file added
BIN
+794 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-80.png
Oops, something went wrong.
Binary file added
BIN
+856 Bytes
static/icons/windows11/Square44x44Logo.altform-unplated_targetsize-96.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Oops, something went wrong.