From 88e412fda665d851843f52a1ffe112b74553e588 Mon Sep 17 00:00:00 2001 From: naiba Date: Fri, 6 Aug 2021 11:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B6=E4=BB=96=E6=8C=89=E9=92=AE=E3=80=81?= =?UTF-8?q?=E6=96=87=E5=AD=97=E7=AD=89=E9=85=8D=E8=89=B2=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/static/main.css | 6 +++++- resource/static/main.js | 14 +++++++------- resource/template/common/footer.html | 2 +- resource/template/common/header.html | 2 +- resource/template/common/menu.html | 2 +- resource/template/component/confirm.html | 2 +- resource/template/component/cron.html | 2 +- resource/template/component/monitor.html | 2 +- resource/template/component/notification.html | 2 +- resource/template/component/rule.html | 2 +- resource/template/component/server.html | 2 +- resource/template/dashboard/cron.html | 2 +- resource/template/dashboard/error.html | 2 +- resource/template/dashboard/login.html | 2 +- resource/template/dashboard/monitor.html | 2 +- resource/template/dashboard/notification.html | 4 ++-- resource/template/dashboard/server.html | 2 +- resource/template/theme-default/home.html | 4 ++-- resource/template/theme-default/viewpassword.html | 4 ++-- resource/template/theme-hotaru/viewpassword.html | 4 ++-- 20 files changed, 34 insertions(+), 30 deletions(-) diff --git a/resource/static/main.css b/resource/static/main.css index fe22e2b..5cc6096 100644 --- a/resource/static/main.css +++ b/resource/static/main.css @@ -112,4 +112,8 @@ .nezha-primary-font { color: #0338d6 !important; -} \ No newline at end of file +} + +.nezha-secondary-font { + color: rgb(10, 148, 242) !important; +} diff --git a/resource/static/main.js b/resource/static/main.js index 6f286b6..35a442e 100644 --- a/resource/static/main.js +++ b/resource/static/main.js @@ -7,7 +7,7 @@ function readableBytes(bytes) { return parseFloat((bytes / Math.pow(1024, i)).toFixed(2)) + sizes[i]; } -const confirmBtn = $(".mini.confirm.modal .positive.button"); +const confirmBtn = $(".mini.confirm.modal .nezha-primary-btn.button"); function showConfirm(title, content, callFn, extData) { const modal = $(".mini.confirm.modal"); @@ -34,7 +34,7 @@ function showFormModal(modelSelector, formID, URL, getData) { closable: true, onApprove: function () { let success = false; - const btn = $(modelSelector + " .positive.button"); + const btn = $(modelSelector + " .nezha-primary-btn.button"); const form = $(modelSelector + " form"); if (btn.hasClass("loading")) { return success; @@ -106,7 +106,7 @@ function addOrEditAlertRule(rule) { const modal = $(".rule.modal"); modal.children(".header").text((rule ? "修改" : "添加") + "报警规则"); modal - .find(".positive.button") + .find(".nezha-primary-btn.button") .html( rule ? '修改' : '添加' ); @@ -125,7 +125,7 @@ function addOrEditNotification(notification) { const modal = $(".notification.modal"); modal.children(".header").text((notification ? "修改" : "添加") + "通知方式"); modal - .find(".positive.button") + .find(".nezha-primary-btn.button") .html( notification ? '修改' @@ -159,7 +159,7 @@ function addOrEditServer(server) { const modal = $(".server.modal"); modal.children(".header").text((server ? "修改" : "添加") + "服务器"); modal - .find(".positive.button") + .find(".nezha-primary-btn.button") .html( server ? '修改' : '添加' ); @@ -184,7 +184,7 @@ function addOrEditMonitor(monitor) { const modal = $(".monitor.modal"); modal.children(".header").text((monitor ? "修改" : "添加") + "监控"); modal - .find(".positive.button") + .find(".nezha-primary-btn.button") .html( monitor ? '修改' : '添加' ); @@ -223,7 +223,7 @@ function addOrEditCron(cron) { const modal = $(".cron.modal"); modal.children(".header").text((cron ? "修改" : "添加") + "计划任务"); modal - .find(".positive.button") + .find(".nezha-primary-btn.button") .html( cron ? '修改' : '添加' ); diff --git a/resource/template/common/footer.html b/resource/template/common/footer.html index 4376a45..6face13 100644 --- a/resource/template/common/footer.html +++ b/resource/template/common/footer.html @@ -9,7 +9,7 @@ - + diff --git a/resource/template/common/header.html b/resource/template/common/header.html index f009dc0..c32f1ba 100644 --- a/resource/template/common/header.html +++ b/resource/template/common/header.html @@ -9,7 +9,7 @@ {{.Title}} - + diff --git a/resource/template/common/menu.html b/resource/template/common/menu.html index 35863a9..8292a4f 100644 --- a/resource/template/common/menu.html +++ b/resource/template/common/menu.html @@ -40,7 +40,7 @@ {{else}} - 登录 + 登录 {{end}} diff --git a/resource/template/component/confirm.html b/resource/template/component/confirm.html index 43ca780..3db8b45 100644 --- a/resource/template/component/confirm.html +++ b/resource/template/component/confirm.html @@ -5,7 +5,7 @@
取消
-
diff --git a/resource/template/component/cron.html b/resource/template/component/cron.html index 1b11190..9b315f9 100644 --- a/resource/template/component/cron.html +++ b/resource/template/component/cron.html @@ -52,7 +52,7 @@
取消
-
diff --git a/resource/template/component/monitor.html b/resource/template/component/monitor.html index 81334f3..3aaa3cf 100644 --- a/resource/template/component/monitor.html +++ b/resource/template/component/monitor.html @@ -58,7 +58,7 @@
取消
-
diff --git a/resource/template/component/notification.html b/resource/template/component/notification.html index db1bfbc..97403c9 100644 --- a/resource/template/component/notification.html +++ b/resource/template/component/notification.html @@ -40,7 +40,7 @@
取消
-
diff --git a/resource/template/component/rule.html b/resource/template/component/rule.html index 2990eaa..a9dd8ea 100644 --- a/resource/template/component/rule.html +++ b/resource/template/component/rule.html @@ -22,7 +22,7 @@
取消
-
diff --git a/resource/template/component/server.html b/resource/template/component/server.html index 3eadc2a..e06781e 100644 --- a/resource/template/component/server.html +++ b/resource/template/component/server.html @@ -28,7 +28,7 @@
取消
-
diff --git a/resource/template/dashboard/cron.html b/resource/template/dashboard/cron.html index 65ba55d..92b862d 100644 --- a/resource/template/dashboard/cron.html +++ b/resource/template/dashboard/cron.html @@ -5,7 +5,7 @@
-
diff --git a/resource/template/dashboard/error.html b/resource/template/dashboard/error.html index e12cff1..b23c8b7 100644 --- a/resource/template/dashboard/error.html +++ b/resource/template/dashboard/error.html @@ -3,7 +3,7 @@