feat: add service worker for PWA support (offline caching, installability)
- Add sw.js with stale-while-revalidate caching for static assets - Network-first for HTML navigation, skip API/WS requests - Register service worker in main.tsx on page load - Enhanced manifest.json with orientation, categories, and all icon sizes - App is now installable as a standalone PWA on mobile and desktop
This commit is contained in:
@@ -1,12 +1,24 @@
|
||||
{
|
||||
"name": "PinchChat",
|
||||
"short_name": "PinchChat",
|
||||
"description": "A sleek, dark-themed webchat UI for OpenClaw",
|
||||
"description": "A sleek, dark-themed webchat UI for OpenClaw — monitor sessions, stream responses, and inspect tool calls in real-time.",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#1e1e24",
|
||||
"theme_color": "#1e1e24",
|
||||
"orientation": "any",
|
||||
"categories": ["developer", "productivity", "utilities"],
|
||||
"icons": [
|
||||
{
|
||||
"src": "/favicon-16.png",
|
||||
"sizes": "16x16",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/favicon-32.png",
|
||||
"sizes": "32x32",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/logo-192.png",
|
||||
"sizes": "192x192",
|
||||
|
||||
Reference in New Issue
Block a user