From 95d5827c3c586e19b52c74a94b03e3511b38ba29 Mon Sep 17 00:00:00 2001 From: "pg.yang" Date: Sat, 3 Dec 2022 14:32:49 +0800 Subject: [PATCH] Add aws menu --- src/router/data/aws.ts | 47 ++++++++++++++++++++++++++++++++++++++++ src/router/data/index.ts | 2 ++ 2 files changed, 49 insertions(+) create mode 100644 src/router/data/aws.ts diff --git a/src/router/data/aws.ts b/src/router/data/aws.ts new file mode 100644 index 00000000..e54c9c90 --- /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: "AWS", + meta: { + title: "AWS", + icon: "AWS", + hasGroup: true, + }, + redirect: "/aws-eks", + children: [ + { + path: "/aws-eks", + name: "EKS", + meta: { + title: "EKS", + 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,