From d129c75c8cce0af2f64b0ae98a432e7595793454 Mon Sep 17 00:00:00 2001 From: innerpeacez Date: Thu, 27 Apr 2023 17:38:13 +0800 Subject: [PATCH] feat: add mq menu (#262) Signed-off-by: innerpeacez Co-authored-by: Fine --- 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/mq.ts | 47 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 71 insertions(+) create mode 100644 src/assets/icons/mq.svg create mode 100644 src/router/data/mq.ts diff --git a/src/assets/icons/mq.svg b/src/assets/icons/mq.svg new file mode 100644 index 00000000..55640d31 --- /dev/null +++ b/src/assets/icons/mq.svg @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 675da923..a39c34fb 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 6cde3210..41259234 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 6adcedb8..b592abdf 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 f9a44212..94a8de71 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/mq.ts b/src/router/data/mq.ts new file mode 100644 index 00000000..1286a4fc --- /dev/null +++ b/src/router/data/mq.ts @@ -0,0 +1,47 @@ +/** + * 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. + */ + +export default [ + { + 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", + }, + }, + ], + }, +];