Logo
Explore Help
Sign In
hjess/ti
1
0
Fork 0
You've already forked ti
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
b640d9950c5d40b4f37a718aa59f94c0f456268f
ti/static/manifest.webmanifest

15 lines
412 B
Plaintext
Raw Normal View History

feat(pwa): offline support so the list works in-store with no net No signal inside the store made the server-rendered app unusable. Make it an installable PWA: - service worker (static/sw.js) caches pages (network-first, cache fallback) and assets, served from root so scope is / - offline.js: cittiFetch() queues check-off / price / qty / pick POSTs in localStorage when offline and replays them in order on reconnect, with an optimistic response and an Offline/Syncing status badge - manifest + icon for add-to-home-screen; PWA meta tags on the in-store pages - in-store mutations (saveToServer, pick/unpick) go through cittiFetch; archive/refresh/add still need net by design - Dockerfile copies static/ Open once online first so the SW can cache; then it works offline.
2026-10-30 11:54:38 +01:00
{
"name": "Citti Indkøbsseddel",
"short_name": "Citti",
"description": "Indkøbsseddel og Lübeck-tilbud — virker offline i butikken.",
"start_url": "/",
"scope": "/",
"display": "standalone",
"orientation": "portrait",
"background_color": "#f5f2ed",
"theme_color": "#c84b2f",
"icons": [
{ "src": "/icon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "any maskable" }
]
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 30ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API