From 5973632f0f2e7b2320862d1149065afdf4358177 Mon Sep 17 00:00:00 2001 From: "pg.yang" Date: Sun, 26 Mar 2023 10:01:05 +0800 Subject: [PATCH] Add AWS API Gateway menu (#248) --- src/locales/lang/en.ts | 1 + src/locales/lang/es.ts | 1 + src/locales/lang/zh.ts | 1 + src/router/data/aws.ts | 16 ++++++++++++++++ src/router/data/gateway.ts | 16 ++++++++++++++++ 5 files changed, 35 insertions(+) diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 56080180..8a2c922f 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -382,5 +382,6 @@ const msg = { AWSCloudEKS: "EKS", AWSCloudS3: "S3", AWSCloudDynamoDB: "DynamoDB", + AWSGateway: "AWS Gateway", }; export default msg; diff --git a/src/locales/lang/es.ts b/src/locales/lang/es.ts index eb5492da..a0f79122 100644 --- a/src/locales/lang/es.ts +++ b/src/locales/lang/es.ts @@ -381,5 +381,6 @@ const msg = { AWSCloudEKS: "EKS", AWSCloudS3: "S3", AWSCloudDynamoDB: "DynamoDB", + AWSGateway: "AWS Gateway", }; export default msg; diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index debbd1d9..e574656c 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -379,5 +379,6 @@ const msg = { AWSCloudEKS: "EKS", AWSCloudS3: "S3", AWSCloudDynamoDB: "DynamoDB", + AWSGateway: "AWS Gateway", }; export default msg; diff --git a/src/router/data/aws.ts b/src/router/data/aws.ts index 01bb9360..eb632ae1 100644 --- a/src/router/data/aws.ts +++ b/src/router/data/aws.ts @@ -74,6 +74,22 @@ export default [ layer: "AWS_DYNAMODB", }, }, + { + path: "/aws-gateway", + name: "AWSGateway", + meta: { + title: "AWSGateway", + layer: "AWS_GATEWAY", + }, + }, + { + path: "/aws-gateway/tab/:activeTabIndex", + name: "GatewayActiveTabIndex", + meta: { + notShow: true, + layer: "AWS_GATEWAY", + }, + }, ], }, ]; diff --git a/src/router/data/gateway.ts b/src/router/data/gateway.ts index f3814381..8c1f640a 100644 --- a/src/router/data/gateway.ts +++ b/src/router/data/gateway.ts @@ -42,6 +42,22 @@ export default [ layer: "APISIX", }, }, + { + path: "/aws-gateway", + name: "AWSGateway", + meta: { + title: "AWSGateway", + layer: "AWS_GATEWAY", + }, + }, + { + path: "/aws-gateway/tab/:activeTabIndex", + name: "GatewayActiveTabIndex", + meta: { + notShow: true, + layer: "AWS_GATEWAY", + }, + }, ], }, ];