From 9da2a01a746166c983f7b5557a8818d18f181bcf Mon Sep 17 00:00:00 2001 From: LouisLam Date: Tue, 14 Sep 2021 14:12:27 +0800 Subject: [PATCH] [status page] checkpoint --- package.json | 1 + src/assets/app.scss | 18 ++++++++++++++++++ src/components/GroupList.vue | 1 + src/icon.js | 4 ++-- src/mixins/public.js | 13 +++++++++++++ src/pages/StatusPage.vue | 34 +++++++++++++++++++++++++++++----- 6 files changed, 64 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 5d34b09c5..da223f523 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "vue": "^3.2.8", "vue-chart-3": "^0.5.7", "vue-confirm-dialog": "^1.0.2", + "vue-contenteditable": "^3.0.4", "vue-i18n": "^9.1.7", "vue-multiselect": "^3.0.0-alpha.2", "vue-qrcode": "^1.0.0", diff --git a/src/assets/app.scss b/src/assets/app.scss index 4b6b481f4..ee917e34f 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss @@ -350,3 +350,21 @@ h2 { } } } + +.alert-success { + color: #122f21; + background-color: $primary; + border-color: $primary; +} + +.alert-info { + color: #055160; + background-color: #cff4fc; + border-color: #cff4fc; +} + +.alert-danger { + color: #842029; + background-color: #f8d7da; + border-color: #f8d7da; +} diff --git a/src/components/GroupList.vue b/src/components/GroupList.vue index 4d145670f..4e46096f0 100644 --- a/src/components/GroupList.vue +++ b/src/components/GroupList.vue @@ -22,6 +22,7 @@ group="same-group" :disabled="!editMode" :animation="100" + item-key="id" >