injectManifest, a new typed SW source, runtime caching, and a non‑blocking update toast with an action button. The
guest shell now links a dedicated manifest and theme color, and background upload sync is managed in a single
PwaManager component.
Key changes (where/why)
- vite.config.ts: added VitePWA injectManifest config, guest manifest, and output to /public so the SW can control /
scope.
- resources/js/guest/guest-sw.ts: new Workbox SW (precache + runtime caching for guest navigation, GET /api/v1/*,
images, fonts) and preserves push/sync/notification logic.
- resources/js/guest/components/PwaManager.tsx: registers SW, shows update/offline toasts, and processes the upload
queue on sync/online.
- resources/js/guest/components/ToastHost.tsx: action-capable toasts so update prompts can include a CTA.
- resources/js/guest/i18n/messages.ts: added common.updateAvailable, common.updateAction, common.offlineReady.
- resources/views/guest.blade.php: manifest + theme color + apple touch icon.
- .gitignore: ignore generated public/guest-sw.js and public/guest.webmanifest; public/guest-sw.js removed since it’s
now build output.
34 lines
493 B
Plaintext
34 lines
493 B
Plaintext
fotospiel-tenant-app
|
|
/.phpunit.cache
|
|
/bootstrap/ssr
|
|
/node_modules
|
|
/public/build
|
|
/public/hot
|
|
/public/storage
|
|
/public/guest-sw.js
|
|
/public/guest.webmanifest
|
|
/resources/js/actions
|
|
/resources/js/routes
|
|
/resources/js/wayfinder
|
|
/storage/*.key
|
|
/storage/pail
|
|
/vendor
|
|
.env
|
|
.env.backup
|
|
.env.production
|
|
.phpactor.json
|
|
.phpunit.result.cache
|
|
Homestead.json
|
|
Homestead.yaml
|
|
npm-debug.log
|
|
yarn-error.log
|
|
/auth.json
|
|
/.fleet
|
|
/.idea
|
|
/.nova
|
|
/.vscode
|
|
/.zed
|
|
tools/git-askpass.ps1
|
|
podman-compose.dev.yml
|
|
test-results
|