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

Make the web app “installable” #148

Merged
merged 2 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<title>SoaringMeteo</title>
<meta name="description" content="Free weather information and forecast (WRF and GFS) for soaring (paragliding, hang-gliding, sailplane) pilots.">
<link rel="icon" href="/src/favicoSoaringMeteo.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180">
<meta name="theme-color" content="#ffffff">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"serve-static": "1.15.0",
"typescript": "5.3.3",
"vite": "4.5.3",
"vite-plugin-pwa": "0.14.1",
"vite-plugin-pwa": "0.20.0",
"vite-plugin-solid": "2.5.0"
},
"scripts": {
Expand Down
Binary file added frontend/public/apple-touch-icon.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 removed frontend/public/favicoSoaringMeteo.scaled.png
Binary file not shown.
Binary file added frontend/public/favicon.192.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/public/favicon.512.png
Copy link
Member Author

Choose a reason for hiding this comment

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

Happy to use something else if anyone comes up with a better image!

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions frontend/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Allow: /
20 changes: 13 additions & 7 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,28 @@ export default defineConfig(() => ({
outdir: "./src/generated-i18n", //Where you want the generated files to be placed
}),
VitePWA({
// registerType: 'autoUpdate',
injectRegister: null,
registerType: 'autoUpdate',
injectRegister: 'script-defer',
// devOptions: { enabled: true },
manifest: {
name: 'Soaring Meteo',
name: 'Soaringmeteo',
description: 'Meteorology for soaring pilots',
short_name: 'SoaringMeteoV2',
short_name: 'Soaringmeteo',
start_url: '/v2/',
theme_color: '#ffffff',
icons: [
{
src: './favicoSoaringMeteo.scaled.png',
size: '192x192',
src: './favicon.192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: './favicon.512.png',
sizes: '512x512',
type: 'image/png'
}
],
display: 'fullscreen'
display: 'standalone'
}
}),
{
Expand Down
Loading
Loading