photoprism/assets/templates/manifest.json
Michael Mayer eb6a7a82cc PWA: Improve manifest.json #3181
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-09 10:19:49 +01:00

99 lines
2.6 KiB
JSON

{
"name": "{{ .config.AppName }}",
"categories": ["photo"],
"short_name": "{{ printf "%.32s" .config.AppName }}",
"description": "{{ .config.SiteDescription }}",
"icons": [
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/16.png",
"sizes": "16x16",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/32.png",
"sizes": "32x32",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/114.png",
"sizes": "114x114",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/152.png",
"sizes": "152x152",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/160.png",
"sizes": "160x160",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/167.png",
"sizes": "167x167",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/180.png",
"sizes": "180x180",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/196.png",
"sizes": "196x196",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/400.png",
"sizes": "400x400",
"type": "image/png"
},
{
"src": "{{ .config.StaticUri }}/icons/{{ .config.AppIcon }}/512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"scope": "{{ .config.BaseUri }}/",
"start_url": "{{ .config.BaseUri }}/library/",
"serviceworker": {
"src": "sw.js",
"scope": "{{ .config.BaseUri }}/",
"use_cache": true
},
"display": "{{ .config.AppMode }}",
"theme_color": "#000000",
"background_color": "#000000",
"permissions": [
"geolocation",
"downloads",
"storage"
]
}