diff --git a/.travis.yml b/.travis.yml index aa89264..b786ad0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,8 @@ after_success: - git remote rm origin - git remote add origin https://thuhole:${GH_TOKEN}@github.com/thuhole/webhole.git - CI=false REACT_APP_BUILD_INFO=$(printf "Travis%s" "$(TZ=Asia/Shanghai date +"%y%m%d%H%M%S")") npm run build - - sed -i 's/\/\/cdn.jsdelivr.net\/gh\/thuhole\/webhole@gh-pages\/index.html/.\/index.html/g' build/*-* #额,这里用了个骚操作来修复Service Worker在Precache CDN内容的时候index.html返回content-type text/plain的问题 + #额,这里用了个骚操作来修复Service Worker在Precache CDN内容的时候index.html返回content-type text/plain的问题 + - sed -i 's/\/\/cdn.jsdelivr.net\/gh\/thuhole\/webhole@gh-pages\/index.html/.\/index.html/g' build/*-* - sed -i 's/\/\/cdn.jsdelivr.net\/gh\/thuhole\/webhole@gh-pages\/service-worker.js/.\/service-worker.js/g' build/*-* - sed -i 's/"\/\/cdn.jsdelivr.net\/gh\/thuhole\/webhole@gh-pages","\/service-worker.js"/".","\/service-worker.js"/' build/static/js/*.js - npm run deploy diff --git a/public/static/bg/cyberpunk.jpg b/public/static/bg/cyberpunk.jpg index d93a1fb..d7dbef9 100644 Binary files a/public/static/bg/cyberpunk.jpg and b/public/static/bg/cyberpunk.jpg differ diff --git a/src/Config.js b/src/Config.js index 233e5f6..f53024f 100644 --- a/src/Config.js +++ b/src/Config.js @@ -8,6 +8,7 @@ const BUILTIN_IMGS={ 'https://cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages/static/bg/yurucamp.jpg': '露营天下第一', 'https://cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages/static/bg/minecraft.jpg': '麦恩·库拉夫特', 'https://cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages/static/bg/cyberpunk.jpg': '赛博城市', + 'https://cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages/static/bg/bj.jpg': '城市的星光', 'https://cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages/static/bg/sif.jpg': '梦开始的地方', };