From 77f163144f7dcfb0431475c55508fecfd6d969f8 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 15 Oct 2024 19:27:55 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20sqlite=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=A4=87=E4=BB=BD=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + doc/dev/development.md | 4 + .../plugin-cert/src/access/eab-access.ts | 11 +- .../pipeline/component/task-view/index.vue | 11 +- .../src/plugins/plugin-host/lib/ssh.ts | 5 +- .../src/plugins/plugin-other/plugins/index.ts | 1 + .../plugin-other/plugins/plugin-db-backup.ts | 185 ++++++++++++++++++ 7 files changed, 206 insertions(+), 12 deletions(-) create mode 100644 packages/ui/certd-server/src/plugins/plugin-other/plugins/plugin-db-backup.ts diff --git a/README.md b/README.md index 0cbf9879..1a8d3801 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ http://your_server_ip:7001 ```shell # 克隆代码 git clone https://github.com/certd/certd +git checkout v1.26.7 # 这里换成最新版本号 cd certd # 启动服务 ./start.sh diff --git a/doc/dev/development.md b/doc/dev/development.md index ba918ac0..3d1fadcb 100644 --- a/doc/dev/development.md +++ b/doc/dev/development.md @@ -11,6 +11,10 @@ git clone https://github.com/certd/certd #进入项目目录 cd certd + +# 切换到最新版本代码 +git checkout v1.26.7 # 这里换成最新版本号 + ``` ### 修改pnpm-workspace.yaml文件 diff --git a/packages/plugins/plugin-cert/src/access/eab-access.ts b/packages/plugins/plugin-cert/src/access/eab-access.ts index d4eb4079..ec4fadfe 100644 --- a/packages/plugins/plugin-cert/src/access/eab-access.ts +++ b/packages/plugins/plugin-cert/src/access/eab-access.ts @@ -9,9 +9,9 @@ export class EabAccess extends BaseAccess { @AccessInput({ title: "KID", component: { - placeholder: "kid", + placeholder: "kid / keyId", }, - helper: "EAB KID", + helper: "EAB KID, google的叫 keyId", required: true, encrypt: true, }) @@ -19,9 +19,9 @@ export class EabAccess extends BaseAccess { @AccessInput({ title: "HMACKey", component: { - placeholder: "HMAC Key", + placeholder: "HMAC Key / b64MacKey", }, - helper: "EAB HMAC Key", + helper: "EAB HMAC Key ,google的叫b64MacKey", required: true, encrypt: true, }) @@ -32,7 +32,8 @@ export class EabAccess extends BaseAccess { component: { placeholder: "绑定一个邮箱", }, - helper: "Google EAB 申请证书绑定邮箱后,不能更换,否则会导致EAB失效", + rules: { type: "email", message: "请输入正确的邮箱" }, + helper: "Google的EAB申请证书,更换邮箱会导致EAB失效,可以在此处绑定一个邮箱避免此问题", required: false, }) email = ""; diff --git a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue index 47873d74..d4900313 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue @@ -1,6 +1,6 @@