feat: make miniplan a PWA
Deploy Miniplan / build (push) Failing after 1m20s

This commit is contained in:
2026-07-21 13:41:18 +02:00
parent 2dac1598ff
commit 0350b80cda
19 changed files with 9212 additions and 368 deletions
File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 276 B

After

Width:  |  Height:  |  Size: 58 KiB

+13
View File
@@ -4,6 +4,19 @@ import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { registerSW } from 'virtual:pwa-register'
registerSW({
onNeedRefresh() {
if (confirm('New content available. Reload?')) {
window.location.reload()
}
},
onOfflineReady() {
console.log('App ready to work offline')
}
})
const app = createApp(App)
app.use(router)