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 1 commit
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
Next Next commit
Make the page “installable” on Chrome-based browsers
Add a 512×512 icon to make the app installable on Chrome-based browsers

Also tweak the app manifest
  • Loading branch information
julienrf committed May 17, 2024
commit 33fa607b2f81565454c23b478825317098489a49
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.
13 changes: 9 additions & 4 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,24 @@ export default defineConfig(() => ({
// registerType: 'autoUpdate',
injectRegister: null,
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',
src: './favicon.192.png',
size: '192x192',
type: 'image/png'
},
{
src: './favicon.512.png',
size: '512x512',
type: 'image/png'
}
],
display: 'fullscreen'
display: 'standalone'
}
}),
{
Expand Down