feat(pwa): installable manifest and icons
This commit is contained in:
1 parent
a2711f1667
commit
c27da77aab
5 files changed
+31
-1
No files matched your search
@@ -20,7 +20,7 @@
|
||||
@ffui_on query ffui=on
|
||||
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 {
|
||||
reverse_proxy firefly-ui-frontend:3000
|
||||
}
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
<meta content="width=device-width, initial-scale=1" name="viewport">
|
||||
<meta content="scale" name="text-scale">
|
||||
<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%
|
||||
</head>
|
||||
<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 |
@@ -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" }
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user