From 1421f95ad3cec360bc9baad32d7bb54c1136d150 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Thu, 17 Jul 2025 10:41:15 +0800 Subject: [PATCH] fix: restrict and validate url for widgets (#480) --- src/styles/theme.scss | 5 +- .../dashboard/configuration/ThirdPartyApp.vue | 84 ++++++++++++++++++- .../dashboard/controls/ThirdPartyApp.vue | 2 + 3 files changed, 86 insertions(+), 5 deletions(-) diff --git a/src/styles/theme.scss b/src/styles/theme.scss index 1f90f734..72c04efc 100644 --- a/src/styles/theme.scss +++ b/src/styles/theme.scss @@ -150,6 +150,7 @@ $theme-background: var(--theme-background); $active-background: var(--el-color-primary); $font-size-smaller: 12px; $font-size-normal: 14px; +$error-color: #e66; .opt:hover { background-color: var(--sw-list-hover) !important; @@ -208,9 +209,9 @@ div.vis-tooltip { } .vis-item.Error { - background-color: #e66; + background-color: $error-color; opacity: 0.8; - border-color: #e66; + border-color: $error-color; color: var(--sw-event-vis-selected) !important; } diff --git a/src/views/dashboard/configuration/ThirdPartyApp.vue b/src/views/dashboard/configuration/ThirdPartyApp.vue index 6e1c7a36..59f2721f 100644 --- a/src/views/dashboard/configuration/ThirdPartyApp.vue +++ b/src/views/dashboard/configuration/ThirdPartyApp.vue @@ -13,13 +13,14 @@ limitations under the License. -->