add pwa icons and basic config

This commit is contained in:
2022-11-15 03:54:57 +01:00
parent 17af7fa80b
commit 20b29131d9
19 changed files with 103 additions and 3 deletions

1
.gitignore vendored
View File

@@ -10,6 +10,7 @@ lerna-debug.log*
node_modules
.DS_Store
dist
dev-dist
dist-ssr
coverage
*.local

View File

@@ -4,7 +4,11 @@
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Vite App</title>
<title>Instacode</title>
<meta name="description" content="Scratchpad for instant JavaScript code running">
<link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-180x180.png" sizes="180x180">
<link rel="mask-icon" href="/img/icons/android-chrome-maskable-192x192.png" color="#282C34">
<meta name="theme-color" content="#282C34">
</head>
<body>
<div id="app"></div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 818 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" ?><svg id="Layer_1" style="enable-background:new 0 0 128 128;" version="1.1" viewBox="0 0 128 128" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><style type="text/css">
.st0{fill-rule:evenodd;clip-rule:evenodd;}
.st1{fill-rule:evenodd;clip-rule:evenodd;fill:#7ACED7;}
</style><path class="st0" d="M54.3,72.2h-16c-1.7,0-3.1-1-3.7-2.6c-0.6-1.6-0.2-3.3,1-4.4l70.3-64.2c1.5-1.3,3.7-1.4,5.2-0.1 c1.5,1.3,1.9,3.4,0.9,5.1l-27,45.2H101c1.7,0,3.1,1,3.7,2.5c0.6,1.5,0.3,3.2-0.9,4.4l-71.8,68.8c-1.4,1.4-3.7,1.5-5.2,0.3 c-1.6-1.2-2-3.4-1-5.1L54.3,72.2L54.3,72.2z M57.8,74.2L29.1,124L101,55.2H85.1c-1.5,0-2.7-0.7-3.5-2c-0.7-1.3-0.7-2.8,0-4l27-45.2 L38.3,68.2h16c1.5,0,2.7,0.7,3.5,2C58.5,71.5,58.5,72.9,57.8,74.2z" id="XMLID_6_"/><path class="st1" d="M57.8,74.2L29.1,124L101,55.2H85.1c-1.5,0-2.7-0.7-3.5-2c-0.7-1.3-0.7-2.8,0-4l27-45.2L38.3,68.2 h16c1.5,0,2.7,0.7,3.5,2C58.5,71.5,58.5,72.9,57.8,74.2z" id="XMLID_1_"/></svg>

After

Width:  |  Height:  |  Size: 987 B

4
public/instacode.svg Normal file
View File

@@ -0,0 +1,4 @@
<?xml version="1.0" ?><svg id="Layer_1" style="enable-background:new 0 0 128 128;" version="1.1" viewBox="0 0 128 128" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><style type="text/css">
.st0{fill-rule:evenodd;clip-rule:evenodd;}
.st1{fill-rule:evenodd;clip-rule:evenodd;fill:#7ACED7;}
</style><path class="st0" d="M54.3,72.2h-16c-1.7,0-3.1-1-3.7-2.6c-0.6-1.6-0.2-3.3,1-4.4l70.3-64.2c1.5-1.3,3.7-1.4,5.2-0.1 c1.5,1.3,1.9,3.4,0.9,5.1l-27,45.2H101c1.7,0,3.1,1,3.7,2.5c0.6,1.5,0.3,3.2-0.9,4.4l-71.8,68.8c-1.4,1.4-3.7,1.5-5.2,0.3 c-1.6-1.2-2-3.4-1-5.1L54.3,72.2L54.3,72.2z M57.8,74.2L29.1,124L101,55.2H85.1c-1.5,0-2.7-0.7-3.5-2c-0.7-1.3-0.7-2.8,0-4l27-45.2 L38.3,68.2h16c1.5,0,2.7,0.7,3.5,2C58.5,71.5,58.5,72.9,57.8,74.2z" id="XMLID_6_"/><path class="st1" d="M57.8,74.2L29.1,124L101,55.2H85.1c-1.5,0-2.7-0.7-3.5-2c-0.7-1.3-0.7-2.8,0-4l27-45.2L38.3,68.2 h16c1.5,0,2.7,0.7,3.5,2C58.5,71.5,58.5,72.9,57.8,74.2z" id="XMLID_1_"/></svg>

After

Width:  |  Height:  |  Size: 987 B

View File

@@ -8,7 +8,94 @@ import { VitePWA } from 'vite-plugin-pwa';
export default defineConfig({
plugins: [
vue(),
VitePWA(),
VitePWA({
registerType: 'autoUpdate',
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg}']
},
manifest: {
name: 'Instacode',
short_name: 'Instacode',
description: 'Scratchpad for instant JavaScript code running',
theme_color: '#282C34',
id: '/',
icons: [
{
'src': './img/icons/android-chrome-192x192.png',
'sizes': '192x192',
'type': 'image/png'
},
{
'src': './img/icons/android-chrome-maskable-512x512.png',
'sizes': '512x512',
'type': 'image/png'
},
{
'src': './img/icons/android-chrome-maskable-192x192.png',
'sizes': '192x192',
'type': 'image/png',
'purpose': 'maskable'
},
{
'src': './img/icons/android-chrome-maskable-512x512.png',
'sizes': '512x512',
'type': 'image/png',
'purpose': 'maskable'
},
{
'src': './img/icons/apple-touch-icon-60x60.png',
'sizes': '60x60',
'type': 'image/png'
},
{
'src': './img/icons/apple-touch-icon-76x76.png',
'sizes': '76x76',
'type': 'image/png'
},
{
'src': './img/icons/apple-touch-icon-120x120.png',
'sizes': '120x120',
'type': 'image/png'
},
{
'src': './img/icons/apple-touch-icon-152x152.png',
'sizes': '152x152',
'type': 'image/png'
},
{
'src': './img/icons/apple-touch-icon-180x180.png',
'sizes': '180x180',
'type': 'image/png'
},
{
'src': './img/icons/apple-touch-icon.png',
'sizes': '180x180',
'type': 'image/png'
},
{
'src': './img/icons/favicon-16x16.png',
'sizes': '16x16',
'type': 'image/png'
},
{
'src': './img/icons/favicon-32x32.png',
'sizes': '32x32',
'type': 'image/png'
},
{
'src': './img/icons/msapplication-icon-144x144.png',
'sizes': '144x144',
'type': 'image/png'
},
{
'src': './img/icons/mstile-150x150.png',
'sizes': '150x150',
'type': 'image/png'
}
],
}
}),
],
resolve: {
alias: {