added PWA
This commit is contained in:
3
package-lock.json
generated
3
package-lock.json
generated
@@ -19,7 +19,8 @@
|
|||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-scripts": "5.0.1",
|
"react-scripts": "5.0.1",
|
||||||
"react-slider": "^2.0.4",
|
"react-slider": "^2.0.4",
|
||||||
"web-vitals": "^2.1.4"
|
"web-vitals": "^2.1.4",
|
||||||
|
"workbox-precaching": "^6.5.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@adobe/css-tools": {
|
"node_modules/@adobe/css-tools": {
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-scripts": "5.0.1",
|
"react-scripts": "5.0.1",
|
||||||
"react-slider": "^2.0.4",
|
"react-slider": "^2.0.4",
|
||||||
"web-vitals": "^2.1.4"
|
"web-vitals": "^2.1.4",
|
||||||
|
"workbox-precaching": "^6.5.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
|
|||||||
BIN
public/512.png
Normal file
BIN
public/512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 105 KiB |
@@ -21,6 +21,9 @@
|
|||||||
<meta property="og:image" content="/og-image.png" />
|
<meta property="og:image" content="/og-image.png" />
|
||||||
<meta property="og:url" content="https://st.ayaka.one" />
|
<meta property="og:url" content="https://st.ayaka.one" />
|
||||||
<meta property="og:site_name" content="Project Sekai Stickers" />
|
<meta property="og:site_name" content="Project Sekai Stickers" />
|
||||||
|
<script>
|
||||||
|
navigator.serviceWorker.register("sw.js");
|
||||||
|
</script>
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
BIN
public/screenshot.jpg
Normal file
BIN
public/screenshot.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 99 KiB |
@@ -1,19 +1,35 @@
|
|||||||
{
|
{
|
||||||
"name": "",
|
"name": "Project Sekai Stickers",
|
||||||
"short_name": "",
|
"short_name": "Pjsk Stickers",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/android-chrome-192x192.png",
|
"src": "/android-chrome-192x192.png",
|
||||||
"sizes": "192x192",
|
"sizes": "192x192",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "/android-chrome-256x256.png",
|
"src": "/android-chrome-256x256.png",
|
||||||
"sizes": "256x256",
|
"sizes": "256x256",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"src": "/512.png",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"type": "image/png"
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"theme_color": "#ffffff",
|
"theme_color": "#cf93d9",
|
||||||
"background_color": "#ffffff",
|
"background_color": "#121212",
|
||||||
"display": "standalone"
|
"display": "standalone",
|
||||||
}
|
"description": "Make your own Project sekai stickers!",
|
||||||
|
"start_url": "https://st.ayaka.one/",
|
||||||
|
"dir": "ltr",
|
||||||
|
"lang": "en",
|
||||||
|
"orientation": "portrait",
|
||||||
|
"categories": [
|
||||||
|
"entertainment",
|
||||||
|
"photo",
|
||||||
|
"productivity",
|
||||||
|
"social"
|
||||||
|
]
|
||||||
|
}
|
||||||
2
public/sw.js
Normal file
2
public/sw.js
Normal file
File diff suppressed because one or more lines are too long
1
public/sw.js.map
Normal file
1
public/sw.js.map
Normal file
File diff suppressed because one or more lines are too long
2
public/workbox-8a9ef17b.js
Normal file
2
public/workbox-8a9ef17b.js
Normal file
File diff suppressed because one or more lines are too long
1
public/workbox-8a9ef17b.js.map
Normal file
1
public/workbox-8a9ef17b.js.map
Normal file
File diff suppressed because one or more lines are too long
4
pwabuilder-adv-sw.js
Normal file
4
pwabuilder-adv-sw.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
import { precacheAndRoute } from 'workbox-precaching/precacheAndRoute';
|
||||||
|
|
||||||
|
precacheAndRoute([{"revision":"5013924527096909c88d2bba3a04cb03","url":"App.css"},{"revision":"363cf5ef8045b76ae3fa53f6f630980f","url":"index.css"}]);
|
||||||
11
workbox-config.js
Normal file
11
workbox-config.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
module.exports = {
|
||||||
|
globDirectory: 'public/',
|
||||||
|
globPatterns: [
|
||||||
|
'**/*.{png,xml,ico,html,svg,jpg,webmanifest}'
|
||||||
|
],
|
||||||
|
swDest: 'public/sw.js',
|
||||||
|
ignoreURLParametersMatching: [
|
||||||
|
/^utm_/,
|
||||||
|
/^fbclid$/
|
||||||
|
]
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user