From 74ede41a4a2f456125d83acc88f2cb0141360c98 Mon Sep 17 00:00:00 2001 From: yb Date: Sun, 15 Mar 2020 15:28:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E5=87=BA=E6=9D=A5=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 34 ++++++++++++++++++++++++++++++++++ src/components/app.js | 2 +- src/components/header.js | 8 +++++--- src/config.js | 8 -------- 4 files changed, 40 insertions(+), 12 deletions(-) delete mode 100644 src/config.js diff --git a/public/index.html b/public/index.html index 3420f60..3f042a6 100644 --- a/public/index.html +++ b/public/index.html @@ -5,6 +5,40 @@ Uptime Status +
diff --git a/src/components/app.js b/src/components/app.js index f450619..27825e1 100644 --- a/src/components/app.js +++ b/src/components/app.js @@ -2,9 +2,9 @@ import React from 'react'; import Header from './header'; import Footer from './footer'; import Uptime from './uptime'; -import { ApiKeys } from './../config'; const App = () => { + const { ApiKeys } = window.Config; return ( <>
diff --git a/src/components/header.js b/src/components/header.js index e24ce43..c77c1a9 100644 --- a/src/components/header.js +++ b/src/components/header.js @@ -2,13 +2,15 @@ import React from 'react'; import Link from './link'; const Header = () => { + const { SiteName, SiteUrl, Navi } = window.Config; return ( diff --git a/src/config.js b/src/config.js deleted file mode 100644 index f5e5c1b..0000000 --- a/src/config.js +++ /dev/null @@ -1,8 +0,0 @@ -// UptimeRobot Api Keys -// 支持 Monitor-Specific 和 Read-Only 两只 Api Key -export const ApiKeys = [ - 'm784488775-dd1ad84b209c05f8e185c33e', - 'm784490063-7b5da437e7f1e0d67613714d', - 'm784497419-de55aa09902ccb3ab22d548a', - 'm784496436-71a4bf7b1e3bdf7756be131b', -];