You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2023/04/27 09:38:18 UTC

[skywalking-booster-ui] branch main updated: feat: add mq menu (#262)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-booster-ui.git


The following commit(s) were added to refs/heads/main by this push:
     new d129c75  feat: add mq menu (#262)
d129c75 is described below

commit d129c75c8cce0af2f64b0ae98a432e7595793454
Author: innerpeacez <in...@gmail.com>
AuthorDate: Thu Apr 27 17:38:13 2023 +0800

    feat: add mq menu (#262)
    
    Signed-off-by: innerpeacez <in...@gmail.com>
    Co-authored-by: Fine <fa...@gmail.com>
---
 src/assets/icons/mq.svg             | 16 +++++++++++++
 src/locales/lang/en.ts              |  2 ++
 src/locales/lang/es.ts              |  2 ++
 src/locales/lang/zh.ts              |  2 ++
 src/router/data/index.ts            |  2 ++
 src/router/data/{index.ts => mq.ts} | 48 +++++++++++++++++++++----------------
 6 files changed, 52 insertions(+), 20 deletions(-)

diff --git a/src/assets/icons/mq.svg b/src/assets/icons/mq.svg
new file mode 100644
index 0000000..55640d3
--- /dev/null
+++ b/src/assets/icons/mq.svg
@@ -0,0 +1,16 @@
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License. -->
+
+<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M750.08 657.92c-16.384 0-30.208 2.56-44.032 8.192l-44.032-52.224c33.28-38.4 55.296-90.624 55.296-145.92s-19.456-101.888-52.224-140.288l27.648-24.576c16.384 8.192 33.28 13.824 52.224 13.824 63.488 0 115.712-52.224 115.712-115.712s-52.224-115.712-115.712-115.712c-63.488 0-115.712 52.224-115.712 115.712 0 13.824 2.56 30.208 8.192 41.472l-35.84 30.208c-34.304-19.968-73.216-30.208-112.64-30.208 [...]
\ No newline at end of file
diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts
index 675da92..a39c34f 100644
--- a/src/locales/lang/en.ts
+++ b/src/locales/lang/en.ts
@@ -386,5 +386,7 @@ const msg = {
   APIGateway: "API Gateway",
   redis: "Redis",
   elasticsearch: "Elasticsearch",
+  mq: "MQ",
+  rabbitMQ: "RabbitMQ",
 };
 export default msg;
diff --git a/src/locales/lang/es.ts b/src/locales/lang/es.ts
index 6cde321..4125923 100644
--- a/src/locales/lang/es.ts
+++ b/src/locales/lang/es.ts
@@ -385,5 +385,7 @@ const msg = {
   APIGateway: "API Gateway",
   redis: "Redis",
   elasticsearch: "Elasticsearch",
+  mq: "MQ",
+  rabbitMQ: "RabbitMQ",
 };
 export default msg;
diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts
index 6adcedb..b592abd 100644
--- a/src/locales/lang/zh.ts
+++ b/src/locales/lang/zh.ts
@@ -383,5 +383,7 @@ const msg = {
   APIGateway: "API Gateway",
   redis: "Redis",
   elasticsearch: "Elasticsearch",
+  mq: "消息队列",
+  rabbitMQ: "RabbitMQ",
 };
 export default msg;
diff --git a/src/router/data/index.ts b/src/router/data/index.ts
index f9a4421..94a8de7 100644
--- a/src/router/data/index.ts
+++ b/src/router/data/index.ts
@@ -24,6 +24,7 @@ import browser from "./browser";
 import k8s from "./k8s";
 import gateway from "./gateway";
 import aws from "./aws";
+import mq from "./mq";
 
 export default [
   ...general,
@@ -35,5 +36,6 @@ export default [
   ...browser,
   ...gateway,
   ...database,
+  ...mq,
   ...selfObservability,
 ];
diff --git a/src/router/data/index.ts b/src/router/data/mq.ts
similarity index 61%
copy from src/router/data/index.ts
copy to src/router/data/mq.ts
index f9a4421..1286a4f 100644
--- a/src/router/data/index.ts
+++ b/src/router/data/mq.ts
@@ -14,26 +14,34 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-import general from "./general";
-import serviceMesh from "./serviceMesh";
-import database from "./database";
-import infrastructure from "./infrastructure";
-import selfObservability from "./selfObservability";
-import functions from "./functions";
-import browser from "./browser";
-import k8s from "./k8s";
-import gateway from "./gateway";
-import aws from "./aws";
 
 export default [
-  ...general,
-  ...serviceMesh,
-  ...functions,
-  ...k8s,
-  ...infrastructure,
-  ...aws,
-  ...browser,
-  ...gateway,
-  ...database,
-  ...selfObservability,
+  {
+    path: "",
+    name: "MQ",
+    meta: {
+      title: "mq",
+      icon: "mq",
+      hasGroup: true,
+    },
+    redirect: "/rabbitMQ",
+    children: [
+      {
+        path: "/rabbitMQ",
+        name: "RabbitMQ",
+        meta: {
+          title: "rabbitMQ",
+          layer: "RABBITMQ",
+        },
+      },
+      {
+        path: "/rabbitMQ/tab/:activeTabIndex",
+        name: "RabbitMQActiveTabIndex",
+        meta: {
+          notShow: true,
+          layer: "RABBITMQ",
+        },
+      },
+    ],
+  },
 ];