From afe91078c4383d10a240fe174d9e9b700e5fd52b Mon Sep 17 00:00:00 2001 From: LouisLam Date: Tue, 14 Sep 2021 23:27:11 +0800 Subject: [PATCH] [status page] checkpoint --- server/routers/api-router.js | 4 +++ src/assets/app.scss | 15 ++++++++++++ src/components/GroupList.vue | 5 +++- src/icon.js | 18 +++++++++----- src/main.js | 7 +++--- src/pages/StatusPage.vue | 47 +++++++++++++++++++----------------- 6 files changed, 64 insertions(+), 32 deletions(-) diff --git a/server/routers/api-router.js b/server/routers/api-router.js index 1c2ff9ea..4cb9d22c 100644 --- a/server/routers/api-router.js +++ b/server/routers/api-router.js @@ -12,6 +12,10 @@ router.get("/api/status-page/config", async (_request, response) => { config.statusPageTheme = "light"; } + if (! config.title) { + config.title = "Uptime Kuma"; + } + response.json(config); }); diff --git a/src/assets/app.scss b/src/assets/app.scss index e02dab80..3ff5b48e 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss @@ -374,3 +374,18 @@ h2 { background-color: #4caf50; border-color: #4caf50; } + +[contenteditable=true] { + &:focus { + outline: 0 solid #eee; + border: 1px solid #aaa; + border-radius: 8px; + } + + &::after { + margin-left: 5px; + content: "🖊️"; + font-size: 13px; + color: #eee; + } +} diff --git a/src/components/GroupList.vue b/src/components/GroupList.vue index 4e46096f..31436e79 100644 --- a/src/components/GroupList.vue +++ b/src/components/GroupList.vue @@ -8,7 +8,10 @@ >