From 3fb613d92481883b2751a6f5b882796a355008bd Mon Sep 17 00:00:00 2001 From: leiyu3 Date: Thu, 17 Jul 2025 16:05:51 -0400 Subject: convert to pwa --- static/manifest.webmanifest | 73 +++++++++++++++++++++++++++++++++++++++++++++ static/sw.js | 3 ++ 2 files changed, 76 insertions(+) create mode 100644 static/manifest.webmanifest create mode 100644 static/sw.js (limited to 'static') 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 @@ +{ + "lang": "en", + "short_name": "Let's Worship!", + "name": "🎶Let's Worship!🎵", + "description": "Distraction Free Worship Song Book", + "icons": [ + { + "src": "/favicon-192.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "/maskable_favicon-192.png", + "type": "image/png", + "sizes": "192x192", + "purpose": "maskable" + }, + { + "src": "/favicon-512.png", + "type": "image/png", + "sizes": "512x512" + }, + { + "src": "/maskable_favicon-512.png", + "type": "image/png", + "sizes": "512x512", + "purpose": "maskable" + } + ], + "start_url": "/?utm_source=pwa", + "scope": "/", + "background_color": "#29241E", + "theme_color": "#29241E", + "display": "standalone", + "shortcuts": [ + { + "name": "Shortcut 1", + "description": "Shortcut to important page in my PWA", + "url": "/shortcut1/?utm_source=pwa", + "icons": [ + { + "src": "/favicon-192.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "/maskable_favicon-192.png", + "type": "image/png", + "sizes": "192x192", + "purpose": "maskable" + } + ] + }, + { + "name": "Shortcut 2", + "description": "Shortcut to another important page in my PWA", + "url": "/shortcut2/?utm_source=pwa", + "icons": [ + { + "src": "/favicon-192.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "/maskable_favicon-192.png", + "type": "image/png", + "sizes": "192x192", + "purpose": "maskable" + } + ] + } + ] +} \ 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 @@ +self.addEventListener ('fetch', function(event) { + +}); -- cgit v1.2.3