update image
5
public/_headers
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
/static/*
|
||||||
|
Cache-Control: public, max-age=86400
|
||||||
|
|
||||||
|
/service-worker.js
|
||||||
|
Cache-Control: public, max-age=86400
|
||||||
@@ -3,12 +3,20 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||||
|
<link rel="icon" href="%PUBLIC_URL%/static/favicon/256.png">
|
||||||
<meta name="format-detection" content="telephone=no">
|
<meta name="format-detection" content="telephone=no">
|
||||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
|
|
||||||
<link rel="icon" href="%PUBLIC_URL%/favicon-precomposed.png">
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon-precomposed.png">
|
<link rel="shortcut icon" href="%PUBLIC_URL%/static/favicon/256.png">
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="%PUBLIC_URL%/favicon-180px-precomposed.png" />
|
<link rel="manifest" href="%PUBLIC_URL%/static/manifest.json">
|
||||||
|
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="%PUBLIC_URL%/static/favicon/180.png" />
|
||||||
|
<link rel="apple-touch-icon" sizes="256x256" href="%PUBLIC_URL%/static/favicon/256.png" />
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||||
|
<meta name="apple-mobile-web-app-title" content="树洞">
|
||||||
|
<link rel="apple-touch-startup-image" href="%PUBLIC_URL%/static/splash/750x1334.png" media="(device-width: 375px) and (-webkit-device-pixel-ratio: 2)"/>
|
||||||
|
<link rel="apple-touch-startup-image" href="%PUBLIC_URL%/static/splash/1242x2208.png" media="(device-width: 414px) and (-webkit-device-pixel-ratio: 3)"/>
|
||||||
<title>P大树洞(非官方)</title>
|
<title>P大树洞(非官方)</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 324 KiB After Width: | Height: | Size: 324 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
BIN
public/static/favicon/192.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
@@ -3,12 +3,17 @@
|
|||||||
"name": "P大树洞(非官方)",
|
"name": "P大树洞(非官方)",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "favicon-precomposed.png",
|
"src": "static/favicon/256.png",
|
||||||
"sizes": "256x256",
|
"sizes": "256x256",
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "static/favicon/192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image/png"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"start_url": "./index.html",
|
"start_url": "/?src=pwa",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"theme_color": "#112244",
|
"theme_color": "#112244",
|
||||||
"background_color": "#112244"
|
"background_color": "#112244"
|
||||||
BIN
public/static/splash/1242x2208.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
public/static/splash/750x1334.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
@@ -32,7 +32,7 @@ class App extends Component {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="bg-img" style={{
|
<div className="bg-img" style={{
|
||||||
backgroundImage: 'url('+(localStorage['REPLACE_ERIRI_WITH_URL'] || '/eriri_bg.jpg')+')'
|
backgroundImage: 'url('+(localStorage['REPLACE_ERIRI_WITH_URL'] || 'static/eriri_bg.jpg')+')'
|
||||||
}} />
|
}} />
|
||||||
<Title callback={this.show_sidebar.bind(this)} set_search_text={this.set_search_text.bind(this)} />
|
<Title callback={this.show_sidebar.bind(this)} set_search_text={this.set_search_text.bind(this)} />
|
||||||
<div className="left-container">
|
<div className="left-container">
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ function load_amrnb() {
|
|||||||
if(window.AMR)
|
if(window.AMR)
|
||||||
resolve();
|
resolve();
|
||||||
else
|
else
|
||||||
load('amr_all.min.js', (err)=>{
|
load('static/amr_all.min.js', (err)=>{
|
||||||
if(err)
|
if(err)
|
||||||
reject(err);
|
reject(err);
|
||||||
else
|
else
|
||||||
|
|||||||