add pwa icons and basic config
1
.gitignore
vendored
@@ -10,6 +10,7 @@ lerna-debug.log*
|
|||||||
node_modules
|
node_modules
|
||||||
.DS_Store
|
.DS_Store
|
||||||
dist
|
dist
|
||||||
|
dev-dist
|
||||||
dist-ssr
|
dist-ssr
|
||||||
coverage
|
coverage
|
||||||
*.local
|
*.local
|
||||||
|
|||||||
@@ -3,8 +3,12 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link rel="icon" href="/favicon.ico">
|
<link rel="icon" href="/favicon.ico">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 32 KiB |
BIN
public/img/icons/android-chrome-192x192.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
public/img/icons/android-chrome-maskable-192x192.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
public/img/icons/android-chrome-maskable-512x512.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
public/img/icons/apple-touch-icon-120x120.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
public/img/icons/apple-touch-icon-152x152.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
public/img/icons/apple-touch-icon-180x180.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
public/img/icons/apple-touch-icon-60x60.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
public/img/icons/apple-touch-icon-76x76.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
public/img/icons/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
public/img/icons/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 408 B |
BIN
public/img/icons/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 818 B |
BIN
public/img/icons/msapplication-icon-144x144.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
public/img/icons/mstile-150x150.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
4
public/img/icons/safari-pinned-tab.svg
Normal 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
@@ -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 |
@@ -8,7 +8,94 @@ import { VitePWA } from 'vite-plugin-pwa';
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
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: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
|
|||||||