feat(pwa): installable manifest and icons

This commit is contained in:
hh committed 2026-10-16 02:35:39 +00:00
1 parent a2711f1667
commit c27da77aab
5 files changed
+31 -1

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@
@ffui_on query ffui=on @ffui_on query ffui=on
header @ffui_on Set-Cookie "ffui=; Path=/; Max-Age=0; Secure; HttpOnly; SameSite=Lax" header @ffui_on Set-Cookie "ffui=; Path=/; Max-Age=0; Secure; HttpOnly; SameSite=Lax"
@ffui_assets path /_app/* /favicon.svg @ffui_assets path /_app/* /favicon.svg /manifest.webmanifest /icon-192.png /icon-512.png
handle @ffui_assets { handle @ffui_assets {
reverse_proxy firefly-ui-frontend:3000 reverse_proxy firefly-ui-frontend:3000
} }
+3
View File
@@ -5,6 +5,9 @@
<meta content="width=device-width, initial-scale=1" name="viewport"> <meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="scale" name="text-scale"> <meta content="scale" name="text-scale">
<link href="%sveltekit.assets%/favicon.svg" rel="icon" type="image/svg+xml"> <link href="%sveltekit.assets%/favicon.svg" rel="icon" type="image/svg+xml">
<link href="%sveltekit.assets%/manifest.webmanifest" rel="manifest">
<link href="%sveltekit.assets%/icon-192.png" rel="apple-touch-icon">
<meta content="#3c8dbc" name="theme-color">
%sveltekit.head% %sveltekit.head%
</head> </head>
<body data-sveltekit-preload-data="hover"> <body data-sveltekit-preload-data="hover">
Binary file not shown.

After

Width:  |  Height:  |  Size: 638 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

+27
View File
@@ -0,0 +1,27 @@
{
"name": "Firefly III",
"short_name": "Firefly",
"start_url": "/",
"scope": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#3c8dbc",
"icons": [
{
"src": "/icon-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "/icon-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
}
],
"shortcuts": [
{ "name": "New expense", "url": "/transactions/create/withdrawal" },
{ "name": "Transactions", "url": "/transactions/all" }
]
}