From 96d37f60ea442f5d37c14b72dfe71c6746b5c3f8 Mon Sep 17 00:00:00 2001 From: ssongliu Date: Thu, 25 Jul 2024 14:27:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=9B=86=E7=BE=A4=E5=86=85=E9=83=A8?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BC=80=E5=8F=91=E6=96=87=E6=A1=A3=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/app-layout/header-components/Help.vue | 4 ++++ web/dashboard/src/i18n/lang/en-US.js | 1 + web/dashboard/src/i18n/lang/zh-CN.js | 1 + 3 files changed, 6 insertions(+) diff --git a/web/dashboard/src/business/app-layout/header-components/Help.vue b/web/dashboard/src/business/app-layout/header-components/Help.vue index 87038b03..903cf009 100644 --- a/web/dashboard/src/business/app-layout/header-components/Help.vue +++ b/web/dashboard/src/business/app-layout/header-components/Help.vue @@ -7,6 +7,7 @@ {{ $t('commons.help.ko_docs') }} + {{ $t('commons.help.dev_doc') }} {{$t("commons.help.about")}} @@ -52,6 +53,9 @@ export default { case "docs": window.open("https://github.com/1Panel-dev/KubePi/wiki", "_blank") break + case "dev": + window.open("/kubepi/swagger/index.html", "_blank"); + break default: this.aboutDialogVisible = true break diff --git a/web/dashboard/src/i18n/lang/en-US.js b/web/dashboard/src/i18n/lang/en-US.js index 96ed2104..ec330bf7 100644 --- a/web/dashboard/src/i18n/lang/en-US.js +++ b/web/dashboard/src/i18n/lang/en-US.js @@ -24,6 +24,7 @@ const message = { help: "Help", about: "About", ko_docs: "Official Document", + dev_doc: "Development Document", }, button: { click_to_edit: "Click to edit", diff --git a/web/dashboard/src/i18n/lang/zh-CN.js b/web/dashboard/src/i18n/lang/zh-CN.js index e23f5381..fbc1aa58 100644 --- a/web/dashboard/src/i18n/lang/zh-CN.js +++ b/web/dashboard/src/i18n/lang/zh-CN.js @@ -25,6 +25,7 @@ const message = { help: "帮助", about: "关于", ko_docs: "官方文档", + dev_doc: "开发文档", }, button: { click_to_edit: "编辑信息",