- web/public/manifest.json with display=standalone, theme_color=#faff69, 192+512 icons - web/public/sw.js with app-shell cache strategy (API calls network-only) - web/public/icons/icon-192.png and icon-512.png generated via gen-icons.cjs - web/scripts/gen-icons.cjs pure-Node.js PNG icon generator (black canvas, volt H monogram) - web/src/hooks/usePWA.ts registers service worker on app load - web/index.html: added theme-color meta tag - web/src/App.tsx: calls usePWA() hook
26 lines
617 B
JSON
26 lines
617 B
JSON
{
|
|
"name": "HWLab",
|
|
"short_name": "HWLab",
|
|
"description": "Self-hosted hardware inventory with AI photo intake",
|
|
"start_url": "/",
|
|
"display": "standalone",
|
|
"background_color": "#000000",
|
|
"theme_color": "#faff69",
|
|
"orientation": "portrait-primary",
|
|
"icons": [
|
|
{
|
|
"src": "/icons/icon-192.png",
|
|
"sizes": "192x192",
|
|
"type": "image/png",
|
|
"purpose": "any maskable"
|
|
},
|
|
{
|
|
"src": "/icons/icon-512.png",
|
|
"sizes": "512x512",
|
|
"type": "image/png",
|
|
"purpose": "any maskable"
|
|
}
|
|
],
|
|
"categories": ["utilities", "productivity"],
|
|
"screenshots": []
|
|
}
|