Skip to content

Commit

Permalink
Merge pull request #198 from bocabitlabs/develop
Browse files Browse the repository at this point in the history
Fix webmanifest images
  • Loading branch information
renefs committed Aug 25, 2024
2 parents 4a8ae35 + f5eedb7 commit 1824272
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 36 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,4 @@ volumes/logs
.env.prod
*yfinance.cache
dump.rdb
client/dev-dist/
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180" />
<meta name="theme-color" content="#ffffff" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Stocks and portfolio manager" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "client",
"version": "1.0.2",
"version": "1.0.3",
"homepage": "/",
"private": true,
"dependencies": {
Expand Down
Binary file removed client/public/icons/android-icon-48x48.png
Binary file not shown.
Binary file added client/public/icons/apple-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion client/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const PACKAGE_VERSION = "1.0.2";
export const PACKAGE_VERSION = "1.0.3";
export default { PACKAGE_VERSION };
70 changes: 38 additions & 32 deletions client/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,43 @@ export default ({ command, mode }) => {
viteTsconfigPaths(),
svgr(),
eslint(),
VitePWA({
includeAssets: ['favicon.ico', 'apple-touch-icon.png'],
manifest: {
name: 'Buho Stocks',
short_name: 'Buho Stocks: Stocks and dividends',
description: 'Stocks and portfolio manager',
theme_color: '#ffffff',
icons: [
{
src: '/icons/favicon-96x96.png',
sizes: '96x96',
type: 'image/png'
},
{
src: '/icons/apple-icon-192x292',
sizes: '192x192',
type: 'image/png'
},
{
src: '/icons/apple-icon-512x512',
sizes: '512x512',
type: 'image/png'
VitePWA({
includeAssets: ['favicon.ico', 'apple-touch-icon.png'],
manifest: {
name: 'Buho Stocks',
short_name: 'Buho Stocks: Stocks and dividends',
description: 'Stocks and portfolio manager',
theme_color: '#ffffff',
icons: [
{
src: '/icons/favicon-96x96.png',
sizes: '96x96',
type: 'image/png'
},
{
src: '/icons/apple-icon-144x144.png',
sizes: '144x144',
type: 'image/png'
},
{
src: '/icons/apple-icon-192x192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: '/icons/apple-icon-512x512.png',
sizes: '512x512',
type: 'image/png'
}
]
},
devOptions: {
enabled: process.env.NODE_ENV === 'development',
/* when using generateSW the PWA plugin will switch to classic */
type: 'module',
navigateFallback: 'index.html',
}
]
},
devOptions: {
enabled: process.env.SW_DEV === 'true',
/* when using generateSW the PWA plugin will switch to classic */
type: 'module',
navigateFallback: 'index.html',
}
})
})
],
test: {
globals: true,
Expand Down Expand Up @@ -78,6 +83,7 @@ export default ({ command, mode }) => {
preview: {
port: 3000,
},
define: { "process.env.NODE_ENV": `"${mode}"` },
define: { "process.env.NODE_ENV": `"${mode}"`,
},
});
};
5 changes: 5 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ server {
try_files $uri $uri/ /index.html;
}

include mime.types;
types {
application/manifest+json webmanifest;
}

location /static-files/ {
alias /app/static/;
}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "buho-stocks"
version = "1.0.2"
version = "1.0.3"
description = "Application to manage and track a stocks portfolio with dividends and return for a Buy & Hold investmentinvestment strategy."
authors = ["Rene Fernandez <[email protected]>"]
license = "GPL-3.0-or-later"
Expand Down

0 comments on commit 1824272

Please sign in to comment.