From 562970a8191dedde1c49fe02a6183457d24953e3 Mon Sep 17 00:00:00 2001 From: yaojiping Date: Mon, 9 Dec 2024 14:15:30 +0800 Subject: [PATCH] feat: add `Cluster Metrics Ops` to `Quick Access` in `Overview` --- web/src/locales/en-US/overview.js | 1 + web/src/locales/zh-CN/overview.js | 1 + .../components/Quick/icons/MonitorIcon.jsx | 17 ++++++++++++++ .../pages/Overview/components/Quick/index.jsx | 22 ++++++++++++------- 4 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 web/src/pages/Overview/components/Quick/icons/MonitorIcon.jsx diff --git a/web/src/locales/en-US/overview.js b/web/src/locales/en-US/overview.js index 3a1bf5be..ba0e3786 100644 --- a/web/src/locales/en-US/overview.js +++ b/web/src/locales/en-US/overview.js @@ -22,4 +22,5 @@ export default { "overview.quick.cluster_regist": "Register A Cluster", "overview.quick.security": "Configure Security", "overview.quick.discover": "Discover Your Data", + "overview.quick.monitor": "Cluster Metrics Ops", }; diff --git a/web/src/locales/zh-CN/overview.js b/web/src/locales/zh-CN/overview.js index 19b19598..0f4419ca 100644 --- a/web/src/locales/zh-CN/overview.js +++ b/web/src/locales/zh-CN/overview.js @@ -21,5 +21,6 @@ export default { "overview.quick.cluster_regist": "集群注册", "overview.quick.security": "安全管理", "overview.quick.discover": "数据探索", + "overview.quick.monitor": "监控指标", }; diff --git a/web/src/pages/Overview/components/Quick/icons/MonitorIcon.jsx b/web/src/pages/Overview/components/Quick/icons/MonitorIcon.jsx new file mode 100644 index 00000000..fe242c00 --- /dev/null +++ b/web/src/pages/Overview/components/Quick/icons/MonitorIcon.jsx @@ -0,0 +1,17 @@ +export default () => { + return ( + + monitor + + + + + + + + + + + + ) +} \ No newline at end of file diff --git a/web/src/pages/Overview/components/Quick/index.jsx b/web/src/pages/Overview/components/Quick/index.jsx index 38af7301..8fc74595 100644 --- a/web/src/pages/Overview/components/Quick/index.jsx +++ b/web/src/pages/Overview/components/Quick/index.jsx @@ -6,6 +6,7 @@ import DevToolIcon from "./icons/DevToolIcon"; import ClusterIcon from "./icons/ClusterIcon"; import SecurityIcon from "./icons/SecurityIcon"; import DiscoverIcon from "./icons/DiscoverIcon"; +import MonitorIcon from "./icons/MonitorIcon"; import { formatMessage } from "umi/locale"; const ROUTES = [ @@ -14,26 +15,31 @@ const ROUTES = [ name: "cluster_regist", icon: ClusterIcon, }, - { - path: "/insight/discover", - name: "discover", - icon: DiscoverIcon, - }, { path: "/alerting/message", name: "alert", icon: MessageIcon, }, { - path: "/devtool/console", - name: "dev_tools", - icon: DevToolIcon, + path: "/insight/discover", + name: "discover", + icon: DiscoverIcon, + }, + { + path: "/cluster/monitor", + name: "monitor", + icon: MonitorIcon, }, { path: "/system/security", name: "security", icon: SecurityIcon, }, + { + path: "/devtool/console", + name: "dev_tools", + icon: DevToolIcon, + }, ]; export default () => {