diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ca85d4f..2a8fd34 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -12,7 +12,11 @@ <%= csrf_meta_tags %> <%= csp_meta_tag %> - + <%# ?v=2: the files in public/ get a one year cache header, and the placeholder had these names. %> + + + + <%= stylesheet_link_tag :app, "data-turbo-track": "reload" %> <%= javascript_include_tag "application", "data-turbo-track": "reload", type: "module" %> diff --git a/app/views/pwa/manifest.json.erb b/app/views/pwa/manifest.json.erb deleted file mode 100644 index 459bb10..0000000 --- a/app/views/pwa/manifest.json.erb +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "Stash", - "icons": [ - { - "src": "/icon.png", - "type": "image/png", - "sizes": "512x512" - }, - { - "src": "/icon.png", - "type": "image/png", - "sizes": "512x512", - "purpose": "maskable" - } - ], - "start_url": "/", - "display": "standalone", - "scope": "/", - "description": "Stash.", - "theme_color": "red", - "background_color": "red" -} diff --git a/app/views/pwa/service-worker.js b/app/views/pwa/service-worker.js deleted file mode 100644 index b3a13fb..0000000 --- a/app/views/pwa/service-worker.js +++ /dev/null @@ -1,26 +0,0 @@ -// Add a service worker for processing Web Push notifications: -// -// self.addEventListener("push", async (event) => { -// const { title, options } = await event.data.json() -// event.waitUntil(self.registration.showNotification(title, options)) -// }) -// -// self.addEventListener("notificationclick", function(event) { -// event.notification.close() -// event.waitUntil( -// clients.matchAll({ type: "window" }).then((clientList) => { -// for (let i = 0; i < clientList.length; i++) { -// let client = clientList[i] -// let clientPath = (new URL(client.url)).pathname -// -// if (clientPath == event.notification.data.path && "focus" in client) { -// return client.focus() -// } -// } -// -// if (clients.openWindow) { -// return clients.openWindow(event.notification.data.path) -// } -// }) -// ) -// }) diff --git a/public/icon.png b/public/icon.png index c4c9dbf..cb6b05c 100644 Binary files a/public/icon.png and b/public/icon.png differ diff --git a/public/icon.svg b/public/icon.svg index 04b34bf..cd12cfc 100644 --- a/public/icon.svg +++ b/public/icon.svg @@ -1,3 +1,7 @@ - - + + + + + +