From 253f5c9261957676ad8a927d2613c89deabdad39 Mon Sep 17 00:00:00 2001 From: "pg.yang" Date: Tue, 6 Dec 2022 21:41:15 +0800 Subject: [PATCH] Add AWS menu for supporting AWS monitoring (#202) --- src/locales/lang/en.ts | 2 ++ src/locales/lang/es.ts | 2 ++ src/locales/lang/zh.ts | 2 ++ src/router/data/aws.ts | 47 ++++++++++++++++++++++++++++++++++++++++ src/router/data/index.ts | 2 ++ 5 files changed, 55 insertions(+) create mode 100644 src/router/data/aws.ts diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 0510d819..b4d22f1b 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -375,5 +375,7 @@ const msg = { language: "Language", gateway: "Gateway", virtualMQ: "Virtual MQ", + AWSCloud: "AWS Cloud", + AWSCloudEKS: "EKS" }; export default msg; diff --git a/src/locales/lang/es.ts b/src/locales/lang/es.ts index d8bc29c6..675bd1bb 100644 --- a/src/locales/lang/es.ts +++ b/src/locales/lang/es.ts @@ -378,5 +378,7 @@ const msg = { language: "Lenguaje", gateway: "Puerta", virtualMQ: "MQ virtual", + AWSCloud: "AWS Cloud", + AWSCloudEKS: "EKS" }; export default msg; diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index 1d1c0301..b89451cd 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -373,5 +373,7 @@ const msg = { language: "语言", gateway: "网关", virtualMQ: "虚拟消息队列", + AWSCloud: "AWS云服务", + AWSCloudEKS: "EKS" }; export default msg; diff --git a/src/router/data/aws.ts b/src/router/data/aws.ts new file mode 100644 index 00000000..2fb16e89 --- /dev/null +++ b/src/router/data/aws.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: "AWSCloud", + meta: { + title: "AWSCloud", + icon: "aws", + hasGroup: true, + }, + redirect: "/aws-eks", + children: [ + { + path: "/aws-eks", + name: "AWSCloudEKS", + meta: { + title: "AWSCloudEKS", + layer: "AWS_EKS", + }, + }, + { + path: "/aws-eks/tab/:activeTabIndex", + name: "EKSActiveTabIndex", + meta: { + notShow: true, + layer: "AWS_EKS", + }, + }, + ], + }, +]; diff --git a/src/router/data/index.ts b/src/router/data/index.ts index d6965b20..f9a44212 100644 --- a/src/router/data/index.ts +++ b/src/router/data/index.ts @@ -23,6 +23,7 @@ import functions from "./functions"; import browser from "./browser"; import k8s from "./k8s"; import gateway from "./gateway"; +import aws from "./aws"; export default [ ...general, @@ -30,6 +31,7 @@ export default [ ...functions, ...k8s, ...infrastructure, + ...aws, ...browser, ...gateway, ...database,