feat: add mq menu

Signed-off-by: innerpeacez <innerpeace.zhai@gmail.com>
This commit is contained in:
innerpeacez 2023-04-27 15:54:29 +08:00
parent 7dde4820de
commit 2f648f2e7f
6 changed files with 75 additions and 0 deletions

20
src/assets/icons/mq.svg Normal file
View File

@ -0,0 +1,20 @@
<!-- 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 xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
<circle cx="16" cy="32" r="14" fill="#000"/>
<circle cx="48" cy="32" r="14" fill="#FFF"/>
<path fill="#000" d="M16 32h12m8 0h12m-16-10l6 6-6 6"/>
</svg>

After

Width:  |  Height:  |  Size: 1014 B

View File

@ -386,5 +386,7 @@ const msg = {
APIGateway: "API Gateway", APIGateway: "API Gateway",
redis: "Redis", redis: "Redis",
elasticsearch: "Elasticsearch", elasticsearch: "Elasticsearch",
mq: "MQ",
rabbitMQ: "RabbitMQ",
}; };
export default msg; export default msg;

View File

@ -385,5 +385,7 @@ const msg = {
APIGateway: "API Gateway", APIGateway: "API Gateway",
redis: "Redis", redis: "Redis",
elasticsearch: "Elasticsearch", elasticsearch: "Elasticsearch",
mq: "MQ",
rabbitMQ: "RabbitMQ",
}; };
export default msg; export default msg;

View File

@ -383,5 +383,7 @@ const msg = {
APIGateway: "API Gateway", APIGateway: "API Gateway",
redis: "Redis", redis: "Redis",
elasticsearch: "Elasticsearch", elasticsearch: "Elasticsearch",
mq: "消息队列",
rabbitMQ: "RabbitMQ",
}; };
export default msg; export default msg;

View File

@ -24,6 +24,7 @@ import browser from "./browser";
import k8s from "./k8s"; import k8s from "./k8s";
import gateway from "./gateway"; import gateway from "./gateway";
import aws from "./aws"; import aws from "./aws";
import mq from "./mq";
export default [ export default [
...general, ...general,
@ -35,5 +36,6 @@ export default [
...browser, ...browser,
...gateway, ...gateway,
...database, ...database,
...mq,
...selfObservability, ...selfObservability,
]; ];

47
src/router/data/mq.ts Normal file
View File

@ -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",
},
},
],
},
];