diff --git a/src/assets/icons/gateway.svg b/src/assets/icons/gateway.svg new file mode 100644 index 00000000..4df4b905 --- /dev/null +++ b/src/assets/icons/gateway.svg @@ -0,0 +1,15 @@ + + diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 431bef4b..52cae280 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -345,5 +345,6 @@ const msg = { conditionNotice: "Notice: Please press Enter after inputting a key of content, exclude key of content(key=value).", language: "Language", + gateway: "Gateway", }; export default msg; diff --git a/src/locales/lang/es.ts b/src/locales/lang/es.ts index 4420ad58..3d8e7739 100644 --- a/src/locales/lang/es.ts +++ b/src/locales/lang/es.ts @@ -348,5 +348,6 @@ const msg = { conditionNotice: "Aviso: Por favor presione Intro después de introducir una clave de contenido, excluir clave de contenido(clave=valor).", language: "Lenguaje", + gateway: "Puerta", }; export default msg; diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index 53063c38..e72dfb77 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -345,5 +345,6 @@ const msg = { conditionNotice: "请输入一个内容关键词或者内容不包含的关键词(key=value)之后回车", language: "语言", + gateway: "网关", }; export default msg; diff --git a/src/router/data/gateway.ts b/src/router/data/gateway.ts new file mode 100644 index 00000000..c5e0b395 --- /dev/null +++ b/src/router/data/gateway.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: "Gateway", + meta: { + title: "gateway", + icon: "gateway", + hasGroup: true, + }, + redirect: "/apisix", + children: [ + { + path: "/apisix", + name: "APISIX", + meta: { + title: "APISIX", + layer: "APISIX", + }, + }, + { + path: "/apisix/tab/:activeTabIndex", + name: "APISIXActiveTabIndex", + meta: { + notShow: true, + layer: "APISIX", + }, + }, + ], + }, +]; diff --git a/src/router/data/index.ts b/src/router/data/index.ts index 54a55b52..d6965b20 100644 --- a/src/router/data/index.ts +++ b/src/router/data/index.ts @@ -22,6 +22,7 @@ import selfObservability from "./selfObservability"; import functions from "./functions"; import browser from "./browser"; import k8s from "./k8s"; +import gateway from "./gateway"; export default [ ...general, @@ -30,6 +31,7 @@ export default [ ...k8s, ...infrastructure, ...browser, + ...gateway, ...database, ...selfObservability, ];