Browse Source

update image

dev
xmcp 7 years ago
parent
commit
0fea646bdc
  1. 5
      public/_headers
  2. 16
      public/index.html
  3. 0
      public/static/amr_all.min.js
  4. 0
      public/static/eriri_bg.jpg
  5. 0
      public/static/favicon/180.png
  6. BIN
      public/static/favicon/192.png
  7. 0
      public/static/favicon/256.png
  8. 9
      public/static/manifest.json
  9. BIN
      public/static/splash/1242x2208.png
  10. BIN
      public/static/splash/750x1334.png
  11. 2
      src/App.js
  12. 2
      src/AudioWidget.js

5
public/_headers

@ -0,0 +1,5 @@
/static/*
Cache-Control: public, max-age=86400
/service-worker.js
Cache-Control: public, max-age=86400

16
public/index.html

@ -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>

0
public/amr_all.min.js → public/static/amr_all.min.js vendored

0
public/eriri_bg.jpg → public/static/eriri_bg.jpg

Before

Width:  |  Height:  |  Size: 324 KiB

After

Width:  |  Height:  |  Size: 324 KiB

0
public/favicon-180px-precomposed.png → public/static/favicon/180.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

BIN
public/static/favicon/192.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

0
public/favicon-precomposed.png → public/static/favicon/256.png

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

9
public/manifest.json → public/static/manifest.json

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
public/static/splash/750x1334.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

2
src/App.js

@ -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">

2
src/AudioWidget.js

@ -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

Loading…
Cancel
Save