mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-17 01:26:40 +03:00
feat(webui): add PWA support for mobile home screen installation
- Add manifest.json with icons for install prompt - Add service worker with cache-first for static assets - Register SW in main.tsx - Link manifest in index.html
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "nanobot",
|
||||
"short_name": "nanobot",
|
||||
"description": "nanobot AI assistant",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#161618",
|
||||
"theme_color": "#161618",
|
||||
"orientation": "any",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/brand/nanobot_apple_touch.png",
|
||||
"sizes": "180x180",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/brand/nanobot_icon_192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/brand/nanobot_icon_512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/brand/nanobot_icon_maskable.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user