First commit for bicorder-app

This commit is contained in:
Nathan Schneider
2025-11-25 13:20:21 -05:00
parent 3a55d3dbb9
commit b541f6049e
24 changed files with 8883 additions and 0 deletions

21
bicorder-app/src/main.ts Normal file
View File

@@ -0,0 +1,21 @@
import './app.css'
import App from './App.svelte'
import { registerSW } from 'virtual:pwa-register'
// Register service worker
const updateSW = registerSW({
onNeedRefresh() {
if (confirm('New content available. Reload?')) {
updateSW(true)
}
},
onOfflineReady() {
console.log('App ready to work offline')
},
})
const app = new App({
target: document.getElementById('app')!,
})
export default app