Skip to content

Commit

Permalink
update pwa and icons
Browse files Browse the repository at this point in the history
  • Loading branch information
rwv committed Nov 17, 2023
1 parent cce0ad1 commit 23a84de
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 52 deletions.
10 changes: 4 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Look Scanned</title>
<meta name="description" content="Look Scanned is a pure frontend site that makes your PDFs look scanned! No need for printers and scanners anymore - everything you need to do is just a few clicks.">
<link rel="icon" href="/icons/favicon.svg" type="image/svg+xml">
<link rel="alternate icon" href="/icons/favicon.ico" type="image/png" sizes="16x16">
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" sizes="180x180">
<link rel="mask-icon" href="/icons/safari-pinned-tab.svg" color="#7b7b7b">
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="msapplication-config" content="/icons/browserconfig.xml" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml">
<link rel="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#101014" media="(prefers-color-scheme: dark)">
<style>@media (prefers-color-scheme:dark){body{background-color:#101014}}</style>
Expand Down
Binary file added 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 modified public/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions public/favicon.svg
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 public/icons/android-chrome-192x192.png
Binary file not shown.
Binary file removed public/icons/android-chrome-512x512.png
Binary file not shown.
Binary file removed public/icons/apple-touch-icon.png
Binary file not shown.
9 changes: 0 additions & 9 deletions public/icons/browserconfig.xml

This file was deleted.

Binary file removed public/icons/favicon-16x16.png
Binary file not shown.
Binary file removed public/icons/favicon-32x32.png
Binary file not shown.
Binary file removed public/icons/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion public/icons/favicon.svg

This file was deleted.

Binary file removed public/icons/mstile-144x144.png
Binary file not shown.
Binary file removed public/icons/mstile-150x150.png
Binary file not shown.
Binary file removed public/icons/mstile-310x150.png
Binary file not shown.
Binary file removed public/icons/mstile-310x310.png
Binary file not shown.
Binary file removed public/icons/mstile-70x70.png
Binary file not shown.
29 changes: 0 additions & 29 deletions public/icons/safari-pinned-tab.svg

This file was deleted.

Binary file added public/pwa-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 added public/pwa-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 added public/pwa-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 added public/pwa-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.
28 changes: 21 additions & 7 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineConfig({
plugins: [
vue(),
VitePWA({
includeAssets: ["favicon.ico", "robots.txt", "icons/*"],
includeAssets: ["favicon.ico", "apple-touch-icon.png", "favicon.svg"],
workbox: {
globPatterns: ["assets/*", "**/*.{js,css,html}"],
maximumFileSizeToCacheInBytes: 10000000,
Expand All @@ -24,15 +24,29 @@ export default defineConfig({
theme_color: "#ffffff",
icons: [
{
src: "icons/android-chrome-192x192.png",
sizes: "192x192",
type: "image/png",
"src": "pwa-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
src: "icons/android-chrome-512x512.png",
sizes: "512x512",
type: "image/png",
"src": "pwa-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "pwa-maskable-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "pwa-maskable-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
},
}),
Expand Down

0 comments on commit 23a84de

Please sign in to comment.