diff --git a/public/_headers b/public/_headers
new file mode 100644
index 0000000..201cefb
--- /dev/null
+++ b/public/_headers
@@ -0,0 +1,5 @@
+/static/*
+ Cache-Control: public, max-age=86400
+
+/service-worker.js
+ Cache-Control: public, max-age=86400
diff --git a/public/index.html b/public/index.html
index 488972b..4a9aa3c 100644
--- a/public/index.html
+++ b/public/index.html
@@ -3,12 +3,20 @@
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
P大树洞(非官方)
diff --git a/public/amr_all.min.js b/public/static/amr_all.min.js
similarity index 100%
rename from public/amr_all.min.js
rename to public/static/amr_all.min.js
diff --git a/public/eriri_bg.jpg b/public/static/eriri_bg.jpg
similarity index 100%
rename from public/eriri_bg.jpg
rename to public/static/eriri_bg.jpg
diff --git a/public/favicon-180px-precomposed.png b/public/static/favicon/180.png
similarity index 100%
rename from public/favicon-180px-precomposed.png
rename to public/static/favicon/180.png
diff --git a/public/static/favicon/192.png b/public/static/favicon/192.png
new file mode 100644
index 0000000..658e5cb
Binary files /dev/null and b/public/static/favicon/192.png differ
diff --git a/public/favicon-precomposed.png b/public/static/favicon/256.png
similarity index 100%
rename from public/favicon-precomposed.png
rename to public/static/favicon/256.png
diff --git a/public/manifest.json b/public/static/manifest.json
similarity index 58%
rename from public/manifest.json
rename to public/static/manifest.json
index 4ad4dda..53c7737 100644
--- a/public/manifest.json
+++ b/public/static/manifest.json
@@ -3,12 +3,17 @@
"name": "P大树洞(非官方)",
"icons": [
{
- "src": "favicon-precomposed.png",
+ "src": "static/favicon/256.png",
"sizes": "256x256",
"type": "image/png"
+ },
+ {
+ "src": "static/favicon/192.png",
+ "sizes": "192x192",
+ "type": "image/png"
}
],
- "start_url": "./index.html",
+ "start_url": "/?src=pwa",
"display": "standalone",
"theme_color": "#112244",
"background_color": "#112244"
diff --git a/public/static/splash/1242x2208.png b/public/static/splash/1242x2208.png
new file mode 100644
index 0000000..b335c67
Binary files /dev/null and b/public/static/splash/1242x2208.png differ
diff --git a/public/static/splash/750x1334.png b/public/static/splash/750x1334.png
new file mode 100644
index 0000000..3e0be61
Binary files /dev/null and b/public/static/splash/750x1334.png differ
diff --git a/src/App.js b/src/App.js
index 696fd2e..c95620f 100644
--- a/src/App.js
+++ b/src/App.js
@@ -32,7 +32,7 @@ class App extends Component {
return (
diff --git a/src/AudioWidget.js b/src/AudioWidget.js
index 2d0d461..96aa0dd 100644
--- a/src/AudioWidget.js
+++ b/src/AudioWidget.js
@@ -8,7 +8,7 @@ function load_amrnb() {
if(window.AMR)
resolve();
else
- load('amr_all.min.js', (err)=>{
+ load('static/amr_all.min.js', (err)=>{
if(err)
reject(err);
else