All GET calls in client.ts now fall back to Dexie when a network error (TypeError) is caught, so pages render from cached data when the server is unreachable: - entries.list() → db.entries filtered by day_key range - days.list() → db.closed_days filtered by day_key range - weeks.list() → db.closed_weeks filtered by week_key range - weeks.balance() → computed locally from closed_weeks + balance_adjustments - balance.list() → db.balance_adjustments ordered by effective_at DESC - settings.current() → db.settings_history, latest row with effective_from <= today - settings.history() → db.settings_history ordered by effective_from DESC Day/week close and reopen remain online-only (they require server-side computation). Add isOnline store (navigator.onLine + window online/offline events) and an amber 'Offline — showing cached data' banner in +layout.svelte shown whenever the store is false.
sv
Everything you need to build a Svelte project, powered by sv.
Creating a project
If you're seeing this, you've probably already done this step. Congrats!
# create a new project
npx sv create my-app
To recreate this project with the same configuration:
# recreate this project
npx sv@0.15.2 create --template minimal --types ts --install npm web
Developing
Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
Building
To create a production version of your app:
npm run build
You can preview the production build with npm run preview.
To deploy your app, you may need to install an adapter for your target environment.