diff options
| author | leiyu3 <s444814187@gmail.com> | 2025-07-17 16:05:51 -0400 |
|---|---|---|
| committer | leiyu3 <s444814187@gmail.com> | 2025-07-17 16:05:51 -0400 |
| commit | 3fb613d92481883b2751a6f5b882796a355008bd (patch) | |
| tree | 7a77bc6dd75efb3af58a0e0f34e652f15dc39b11 /static | |
| parent | 410b700036782b10ce5b5a7324a9c2b2c16fb286 (diff) | |
| download | letsworship-3fb613d92481883b2751a6f5b882796a355008bd.tar.gz letsworship-3fb613d92481883b2751a6f5b882796a355008bd.zip | |
convert to pwa
Diffstat (limited to 'static')
| -rw-r--r-- | static/manifest.webmanifest | 73 | ||||
| -rw-r--r-- | static/sw.js | 3 |
2 files changed, 76 insertions, 0 deletions
diff --git a/static/manifest.webmanifest b/static/manifest.webmanifest new file mode 100644 index 0000000..99b4ef2 --- /dev/null +++ b/static/manifest.webmanifest | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | { | ||
| 2 | "lang": "en", | ||
| 3 | "short_name": "Let's Worship!", | ||
| 4 | "name": "🎶Let's Worship!🎵", | ||
| 5 | "description": "Distraction Free Worship Song Book", | ||
| 6 | "icons": [ | ||
| 7 | { | ||
| 8 | "src": "/favicon-192.png", | ||
| 9 | "type": "image/png", | ||
| 10 | "sizes": "192x192" | ||
| 11 | }, | ||
| 12 | { | ||
| 13 | "src": "/maskable_favicon-192.png", | ||
| 14 | "type": "image/png", | ||
| 15 | "sizes": "192x192", | ||
| 16 | "purpose": "maskable" | ||
| 17 | }, | ||
| 18 | { | ||
| 19 | "src": "/favicon-512.png", | ||
| 20 | "type": "image/png", | ||
| 21 | "sizes": "512x512" | ||
| 22 | }, | ||
| 23 | { | ||
| 24 | "src": "/maskable_favicon-512.png", | ||
| 25 | "type": "image/png", | ||
| 26 | "sizes": "512x512", | ||
| 27 | "purpose": "maskable" | ||
| 28 | } | ||
| 29 | ], | ||
| 30 | "start_url": "/?utm_source=pwa", | ||
| 31 | "scope": "/", | ||
| 32 | "background_color": "#29241E", | ||
| 33 | "theme_color": "#29241E", | ||
| 34 | "display": "standalone", | ||
| 35 | "shortcuts": [ | ||
| 36 | { | ||
| 37 | "name": "Shortcut 1", | ||
| 38 | "description": "Shortcut to important page in my PWA", | ||
| 39 | "url": "/shortcut1/?utm_source=pwa", | ||
| 40 | "icons": [ | ||
| 41 | { | ||
| 42 | "src": "/favicon-192.png", | ||
| 43 | "type": "image/png", | ||
| 44 | "sizes": "192x192" | ||
| 45 | }, | ||
| 46 | { | ||
| 47 | "src": "/maskable_favicon-192.png", | ||
| 48 | "type": "image/png", | ||
| 49 | "sizes": "192x192", | ||
| 50 | "purpose": "maskable" | ||
| 51 | } | ||
| 52 | ] | ||
| 53 | }, | ||
| 54 | { | ||
| 55 | "name": "Shortcut 2", | ||
| 56 | "description": "Shortcut to another important page in my PWA", | ||
| 57 | "url": "/shortcut2/?utm_source=pwa", | ||
| 58 | "icons": [ | ||
| 59 | { | ||
| 60 | "src": "/favicon-192.png", | ||
| 61 | "type": "image/png", | ||
| 62 | "sizes": "192x192" | ||
| 63 | }, | ||
| 64 | { | ||
| 65 | "src": "/maskable_favicon-192.png", | ||
| 66 | "type": "image/png", | ||
| 67 | "sizes": "192x192", | ||
| 68 | "purpose": "maskable" | ||
| 69 | } | ||
| 70 | ] | ||
| 71 | } | ||
| 72 | ] | ||
| 73 | } \ No newline at end of file | ||
diff --git a/static/sw.js b/static/sw.js new file mode 100644 index 0000000..258caf0 --- /dev/null +++ b/static/sw.js | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | self.addEventListener ('fetch', function(event) { | ||
| 2 | |||
| 3 | }); | ||
