Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: PWA Additions #3896

Merged
87 changes: 83 additions & 4 deletions frontend/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,22 @@ export default {
},
manifest: {
start_url: "/",
scope: "/",
lang: "en",
dir: "auto",
name: "Mealie",
short_name: "Mealie",
id: "mealie",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW this defaults to the PWA's host at time of installation. Using a fixed value in the manifest will prevent users from installing potentially multiple different Mealie instances. Not that this is a common use case but worth mentioning nontheless.

https://developer.chrome.com/docs/capabilities/pwa-manifest-id

description: "Mealie is a recipe management and meal planning app",
theme_color: process.env.THEME_LIGHT_PRIMARY || "#E58325",
background_color: "#FFFFFF",
display: "standalone",
display_override: [
"standalone",
"minimal-ui",
"browser",
"window-controls-overlay"
],
share_target: {
action: "/r/create/url",
method: "GET",
Expand Down Expand Up @@ -395,6 +404,56 @@ export default {
purpose: "maskable",
},
],
screenshots: [
{
"src": "/screenshots/home-narrow.png",
"sizes": "1600x2420",
"form_factor": "narrow",
"label": "Home Page"
},
{
"src": "/screenshots/recipe-narrow.png",
"sizes": "1600x2420",
"form_factor": "narrow",
"label": "Recipe Page"
},
{
"src": "/screenshots/editor-narrow.png",
"sizes": "1600x2420",
"form_factor": "narrow",
"label": "Editor Page"
},
{
"src": "/screenshots/parser-narrow.png",
"sizes": "1600x2420",
"form_factor": "narrow",
"label": "Parser Page"
},
{
"src": "/screenshots/home-wide.png",
"sizes": "2560x1460",
"form_factor": "wide",
"label": "Home Page"
},
{
"src": "/screenshots/recipe-wide.png",
"sizes": "2560x1460",
"form_factor": "wide",
"label": "Recipe Page"
},
{
"src": "/screenshots/editor-wide.png",
"sizes": "2560x1460",
"form_factor": "wide",
"label": "Editor Page"
},
{
"src": "/screenshots/parser-wide.png",
"sizes": "2560x1460",
"form_factor": "wide",
"label": "Parser Page"
}
],
"shortcuts": [
{
"name": "Shopping Lists",
Expand All @@ -403,8 +462,12 @@ export default {
"url": "/shopping-lists",
"icons": [
{
"src": "/svgs/mdiFormatListChecks.svg",
"sizes": "256x256",
"src": "/icons/mdiFormatListChecks-192x192.png",
"sizes": "192x192",
},
{
"src": "/icons/mdiFormatListChecks-96x96.png",
"sizes": "96x96",
}
]
},
Expand All @@ -415,12 +478,28 @@ export default {
"url": "/group/mealplan/planner/view",
"icons": [
{
"src": "/svgs/mdiCalendarMultiselect.svg",
"sizes": "256x256",
"src": "/icons/mdiCalendarMultiselect-192x192.png",
"sizes": "192x192",
},
{
"src": "/icons/mdiCalendarMultiselect-96x96.png",
"sizes": "96x96",
}
]
},
],
prefer_related_applications: false,
handle_links: "preferred",
orientation: "any",
categories: [
"food"
],
launch_handler: {
"client_mode": ["focus-existing", "auto"]
},
edge_side_panel: {
"preferred_width": 400
}
},
icon: false, // disables the icon module
},
Expand Down
Binary file modified frontend/static/icons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/static/icons/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/static/icons/android-chrome-maskable-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/static/icons/android-chrome-maskable-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/static/icons/mdiFormatListChecks-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/static/screenshots/editor-narrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/static/screenshots/editor-wide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/static/screenshots/home-narrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/static/screenshots/home-wide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/static/screenshots/parser-narrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/static/screenshots/parser-wide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/static/screenshots/recipe-narrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/static/screenshots/recipe-wide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion frontend/static/svgs/mdiCalendarMultiselect.svg

This file was deleted.

1 change: 0 additions & 1 deletion frontend/static/svgs/mdiFormatListChecks.svg

This file was deleted.

Loading