Cleaned up favicons, PWA icon fixes
1
client/.gitignore
vendored
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
# testing
|
# testing
|
||||||
/coverage
|
/coverage
|
||||||
|
/dev-dist
|
||||||
|
|
||||||
# production
|
# production
|
||||||
/build
|
/build
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
<meta name="description" content="Spoolman - Keep track of your inventory of 3D-printer filament spools." />
|
<meta name="description" content="Spoolman - Keep track of your inventory of 3D-printer filament spools." />
|
||||||
<meta name="robots" content="noindex,nofollow" />
|
<meta name="robots" content="noindex,nofollow" />
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
|
<link rel="icon" href="/favicon.ico" sizes="48x48" />
|
||||||
|
<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml" />
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png" />
|
||||||
<script type="text/javascript" src="./config.js"></script>
|
<script type="text/javascript" src="./config.js"></script>
|
||||||
<title>Spoolman</title>
|
<title>Spoolman</title>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
BIN
client/public/apple-touch-icon-180x180.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 768 B |
|
Before Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
BIN
client/public/pwa-192x192.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
client/public/pwa-512x512.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
client/public/pwa-64x64.png
Normal file
|
After Width: | Height: | Size: 710 B |
@@ -1,49 +1,55 @@
|
|||||||
import react from "@vitejs/plugin-react";
|
import react from "@vitejs/plugin-react";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import { VitePWA } from 'vite-plugin-pwa';
|
import { VitePWA } from "vite-plugin-pwa";
|
||||||
import svgr from "vite-plugin-svgr";
|
import svgr from "vite-plugin-svgr";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: "",
|
base: "",
|
||||||
plugins: [react(), svgr(),
|
plugins: [
|
||||||
|
react(),
|
||||||
|
svgr(),
|
||||||
VitePWA({
|
VitePWA({
|
||||||
registerType: 'autoUpdate',
|
registerType: "autoUpdate",
|
||||||
devOptions: {
|
devOptions: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
includeAssets: ['favicon.ico', 'favicon.svg', 'apple-touch-icon.png'],
|
includeAssets: ["favicon.ico", "favicon.svg", "apple-touch-icon-180x180.png"],
|
||||||
manifest: {
|
manifest: {
|
||||||
name: "Spoolman",
|
name: "Spoolman",
|
||||||
short_name: "Spoolman",
|
short_name: "Spoolman",
|
||||||
description: "Keep track of your inventory of 3D-printer filament spools.",
|
description: "Keep track of your inventory of 3D-printer filament spools.",
|
||||||
"icons": [
|
icons: [
|
||||||
{
|
{
|
||||||
"purpose": "maskable",
|
src: "pwa-64x64.png",
|
||||||
"sizes": "512x512",
|
sizes: "64x64",
|
||||||
"src": "icon512_maskable.png",
|
type: "image/png",
|
||||||
"type": "image/png"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"purpose": "any",
|
src: "pwa-192x192.png",
|
||||||
"sizes": "512x512",
|
sizes: "192x192",
|
||||||
"src": "icon512_rounded.png",
|
type: "image/png",
|
||||||
"type": "image/png"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"purpose": "any",
|
src: "pwa-512x512.png",
|
||||||
"sizes": "192x192",
|
sizes: "512x512",
|
||||||
"src": "icon192_rounded.png",
|
type: "image/png",
|
||||||
"type": "image/png"
|
},
|
||||||
}
|
{
|
||||||
|
src: "maskable-icon-512x512.png",
|
||||||
|
sizes: "512x512",
|
||||||
|
type: "image/png",
|
||||||
|
purpose: "maskable",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
background_color: "#1F1F1F",
|
background_color: "#1F1F1F",
|
||||||
theme_color: "#DC7734",
|
theme_color: "#DC7734",
|
||||||
display: "standalone",
|
display: "standalone",
|
||||||
start_url: "/",
|
start_url: "/",
|
||||||
scope: "/"
|
scope: "/",
|
||||||
},
|
},
|
||||||
workbox: {
|
workbox: {
|
||||||
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024,
|
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024,
|
||||||
}
|
},
|
||||||
})],
|
}),
|
||||||
|
],
|
||||||
});
|
});
|
||||||