This is an automated email from the ASF dual-hosted git repository.
qiuxiafan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-booster-ui.git
The following commit(s) were added to refs/heads/main by this push:
new 5bb58a0 feat: add gateway,apisix menu (#163)
5bb58a0 is described below
commit 5bb58a00cd7571c015a2e5c9ee48a7b6a39eb711
Author: pg.yang <[email protected]>
AuthorDate: Tue Sep 27 10:36:15 2022 +0800
feat: add gateway,apisix menu (#163)
---
src/assets/icons/gateway.svg | 15 +++++++++++
src/locales/lang/en.ts | 1 +
src/locales/lang/es.ts | 1 +
src/locales/lang/zh.ts | 1 +
src/router/data/{index.ts => gateway.ts} | 44 ++++++++++++++++++++------------
src/router/data/index.ts | 2 ++
6 files changed, 48 insertions(+), 16 deletions(-)
diff --git a/src/assets/icons/gateway.svg b/src/assets/icons/gateway.svg
new file mode 100644
index 0000000..4df4b90
--- /dev/null
+++ b/src/assets/icons/gateway.svg
@@ -0,0 +1,15 @@
+<!-- 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 t="1664244255409" class="icon" viewBox="0 0 1024 1024" version="1.1"
xmlns="http://www.w3.org/2000/svg" p-id="2266" width="48" height="48"><path
d="M523.776 430.592l-153.088 88.576 153.088 88.576
152.576-88.576-152.576-88.576z m-165.888 108.544l0.512 177.152 153.6
87.552-1.024-176.64-153.088-88.064z m330.24 0l-153.6 87.552-1.024 176.64
153.6-87.552 1.024-176.64z m131.072 205.824l-68.096-40.96
39.936-8.704-5.632-26.112-67.072 14.848-13.824 23.04 101.376 60.928
13.312-23.04z m-142.848 [...]
diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts
index 431bef4..52cae28 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 4420ad5..3d8e773 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 53063c3..e72dfb7 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/index.ts b/src/router/data/gateway.ts
similarity index 61%
copy from src/router/data/index.ts
copy to src/router/data/gateway.ts
index 54a55b5..c5e0b39 100644
--- a/src/router/data/index.ts
+++ b/src/router/data/gateway.ts
@@ -14,22 +14,34 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import general from "./general";
-import serviceMesh from "./serviceMesh";
-import database from "./database";
-import infrastructure from "./infrastructure";
-import selfObservability from "./selfObservability";
-import functions from "./functions";
-import browser from "./browser";
-import k8s from "./k8s";
export default [
- ...general,
- ...serviceMesh,
- ...functions,
- ...k8s,
- ...infrastructure,
- ...browser,
- ...database,
- ...selfObservability,
+ {
+ 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 54a55b5..d6965b2 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,
];