feat: add manifest.json for pwa (#144)

* chore: update `i18nStore`

* feat: add pwa `manifest.json`
This commit is contained in:
XQ
2022-08-12 21:30:59 +08:00
committed by GitHub
parent 87f5ac8b71
commit dfac877957
3 changed files with 36 additions and 0 deletions

18
web/public/manifest.json Normal file
View File

@@ -0,0 +1,18 @@
{
"short_name": "Memos",
"name": "Memos",
"icons": [
{
"src": "/logo.png",
"type": "image/png",
"sizes": "200x200"
}
],
"start_url": "/",
"background_color": "#f6f5f4",
"display": "standalone",
"scope": "/",
"theme_color": "#f6f5f4",
"description": "usememos/memos"
}

10
web/public/sw.js Normal file
View File

@@ -0,0 +1,10 @@
self.addEventListener("install", (event) => {
event.waitUntil((async () => {})());
});
self.addEventListener("activate", (event) => {
event.waitUntil((async () => {})());
});
self.addEventListener("fetch", (event) => {});