mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e17cd1f298 | ||
|
|
13092e9f80 | ||
|
|
8133b8b9dd | ||
|
|
e25aafac6d | ||
|
|
037c7beb1b | ||
|
|
faac4dfc30 | ||
|
|
469a088a4d | ||
|
|
9c854f727f | ||
|
|
8f6e5bd24b | ||
|
|
992f91cf4c | ||
|
|
0c61d4c978 | ||
|
|
72d32edf9a | ||
|
|
dde39def9e | ||
|
|
6b43007c44 | ||
|
|
876558cf77 | ||
|
|
b35a146edf | ||
|
|
86cf6a9908 | ||
|
|
b0f7288ac0 | ||
|
|
32fcc1a8fb | ||
|
|
eb4d125eaf | ||
|
|
87e5cced3c | ||
|
|
bcd9ee2d48 | ||
|
|
edf3d87458 |
34
.github/workflows/build-image.yml
vendored
34
.github/workflows/build-image.yml
vendored
@@ -3,7 +3,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: ['v2-dev']
|
branches: ['v2-dev']
|
||||||
paths:
|
paths:
|
||||||
- "build.trigger"
|
- "trigger/build1.trigger"
|
||||||
|
|
||||||
# schedule:
|
# schedule:
|
||||||
# - # 国际时间 19:17 执行,北京时间3:17 ↙↙↙ 改成你想要每天自动执行的时间
|
# - # 国际时间 19:17 执行,北京时间3:17 ↙↙↙ 改成你想要每天自动执行的时间
|
||||||
@@ -68,7 +68,7 @@ jobs:
|
|||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -82,34 +82,4 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
context: ./packages/ui/
|
context: ./packages/ui/
|
||||||
tags: |
|
tags: |
|
||||||
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
|
|
||||||
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.result}}
|
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.result}}
|
||||||
greper/certd:latest
|
|
||||||
greper/certd:${{steps.get_certd_version.outputs.result}}
|
|
||||||
ghcr.io/${{ github.repository }}:latest
|
|
||||||
ghcr.io/${{ github.repository }}:${{steps.get_certd_version.outputs.result}}
|
|
||||||
- name: Build armv7
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
platforms: linux/arm/v7
|
|
||||||
push: true
|
|
||||||
context: ./packages/ui/
|
|
||||||
tags: |
|
|
||||||
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:armv7
|
|
||||||
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.result}}-armv7
|
|
||||||
greper/certd:armv7
|
|
||||||
greper/certd:${{steps.get_certd_version.outputs.result}}-armv7
|
|
||||||
ghcr.io/${{ github.repository }}:armv7
|
|
||||||
ghcr.io/${{ github.repository }}:${{steps.get_certd_version.outputs.result}}-armv7
|
|
||||||
|
|
||||||
# - name: Build agent
|
|
||||||
# uses: docker/build-push-action@v6
|
|
||||||
# with:
|
|
||||||
# platforms: linux/amd64,linux/arm64
|
|
||||||
# push: true
|
|
||||||
# context: ./packages/ui/agent/
|
|
||||||
# tags: |
|
|
||||||
# registry.cn-shenzhen.aliyuncs.com/handsfree/certd-agent:latest
|
|
||||||
# registry.cn-shenzhen.aliyuncs.com/handsfree/certd-agent:${{steps.get_certd_version.outputs.result}}
|
|
||||||
# greper/certd-agent:latest
|
|
||||||
# greper/certd-agent:${{steps.get_certd_version.outputs.result}}
|
|
||||||
|
|||||||
9
.github/workflows/deploy-demo.yml
vendored
9
.github/workflows/deploy-demo.yml
vendored
@@ -1,14 +1,15 @@
|
|||||||
name: deploy-demo
|
name: deploy-demo
|
||||||
on:
|
on:
|
||||||
push:
|
# push:
|
||||||
branches: ['v2-dev']
|
# branches: ['v2-dev']
|
||||||
paths:
|
# paths:
|
||||||
- "deploy.trigger"
|
# - "trigger/deploy.trigger"
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: [ "build-image" ]
|
workflows: [ "build-image" ]
|
||||||
types:
|
types:
|
||||||
- completed
|
- completed
|
||||||
|
|
||||||
|
|
||||||
# schedule:
|
# schedule:
|
||||||
# - # 国际时间 19:17 执行,北京时间3:17 ↙↙↙ 改成你想要每天自动执行的时间
|
# - # 国际时间 19:17 执行,北京时间3:17 ↙↙↙ 改成你想要每天自动执行的时间
|
||||||
# - cron: '17 19 * * *'
|
# - cron: '17 19 * * *'
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
name: build-image-for-test
|
name: build-image-for-release
|
||||||
on:
|
on:
|
||||||
push:
|
# push:
|
||||||
branches: ['v2-dev']
|
# branches: ['v2-dev']
|
||||||
paths:
|
# paths:
|
||||||
- "build-dev.trigger"
|
# - "builder/release.trigger"
|
||||||
|
# workflow_run:
|
||||||
|
# workflows: [ "build-image" ]
|
||||||
|
# types:
|
||||||
|
# - completed
|
||||||
|
|
||||||
# schedule:
|
# schedule:
|
||||||
# - # 国际时间 19:17 执行,北京时间3:17 ↙↙↙ 改成你想要每天自动执行的时间
|
# - # 国际时间 19:17 执行,北京时间3:17 ↙↙↙ 改成你想要每天自动执行的时间
|
||||||
@@ -20,7 +24,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: v2-dev
|
lfs: true
|
||||||
|
|
||||||
- name: get_certd_version
|
- name: get_certd_version
|
||||||
id: get_certd_version
|
id: get_certd_version
|
||||||
@@ -75,17 +79,19 @@ jobs:
|
|||||||
username: ${{ secrets.dockerhub_username }}
|
username: ${{ secrets.dockerhub_username }}
|
||||||
password: ${{ secrets.dockerhub_password }}
|
password: ${{ secrets.dockerhub_password }}
|
||||||
|
|
||||||
# - name: Build default platforms
|
- name: Build default platforms
|
||||||
# uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
# with:
|
with:
|
||||||
# platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
# push: true
|
push: true
|
||||||
# context: ./packages/ui/
|
context: ./packages/ui/
|
||||||
# tags: |
|
tags: |
|
||||||
# registry.cn-shenzhen.aliyuncs.com/handsfree/certd-dev:latest
|
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
|
||||||
# greper/certd-dev:latest
|
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.result}}
|
||||||
# ghcr.io/${{ github.repository }}:dev-latest
|
greper/certd:latest
|
||||||
|
greper/certd:${{steps.get_certd_version.outputs.result}}
|
||||||
|
ghcr.io/${{ github.repository }}:latest
|
||||||
|
ghcr.io/${{ github.repository }}:${{steps.get_certd_version.outputs.result}}
|
||||||
- name: Build armv7
|
- name: Build armv7
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
@@ -96,4 +102,18 @@ jobs:
|
|||||||
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:armv7
|
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:armv7
|
||||||
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.result}}-armv7
|
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.result}}-armv7
|
||||||
greper/certd:armv7
|
greper/certd:armv7
|
||||||
greper/certd:${{steps.get_certd_version.outputs.result}}-armv7
|
greper/certd:${{steps.get_certd_version.outputs.result}}-armv7
|
||||||
|
ghcr.io/${{ github.repository }}:armv7
|
||||||
|
ghcr.io/${{ github.repository }}:${{steps.get_certd_version.outputs.result}}-armv7
|
||||||
|
|
||||||
|
# - name: Build agent
|
||||||
|
# uses: docker/build-push-action@v6
|
||||||
|
# with:
|
||||||
|
# platforms: linux/amd64,linux/arm64
|
||||||
|
# push: true
|
||||||
|
# context: ./packages/ui/agent/
|
||||||
|
# tags: |
|
||||||
|
# registry.cn-shenzhen.aliyuncs.com/handsfree/certd-agent:latest
|
||||||
|
# registry.cn-shenzhen.aliyuncs.com/handsfree/certd-agent:${{steps.get_certd_version.outputs.result}}
|
||||||
|
# greper/certd-agent:latest
|
||||||
|
# greper/certd-agent:${{steps.get_certd_version.outputs.result}}
|
||||||
13
CHANGELOG.md
13
CHANGELOG.md
@@ -3,6 +3,19 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* @certd/ui-server module import报错的问题 ([0c61d4c](https://github.com/certd/certd/commit/0c61d4c9788677c83c567db5381b9e257ec90bba))
|
||||||
|
* dist打包前检查 ([8f6e5bd](https://github.com/certd/certd/commit/8f6e5bd24b3b65fbfcba36c08f532a3abad2d606))
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 固定midwayjs版本,修复ui-server import 错误的bug ([eb4d125](https://github.com/certd/certd/commit/eb4d125eaf4a41e88c752d0c68993829589f8f27))
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
2
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
4
|
|
||||||
|
|
||||||
@@ -3,6 +3,23 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 固定midwayjs版本,修复ui-server import 错误的bug ([eb4d125](https://github.com/certd/certd/commit/eb4d125eaf4a41e88c752d0c68993829589f8f27))
|
||||||
|
|
||||||
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 修复 ui-server 加载失败问题 ([c2ccdbe](https://github.com/certd/certd/commit/c2ccdbec9dd08bca4688eeb2f34d0105eec43ba1))
|
||||||
|
* 修复 ui-server 加载失败问题 ([063f5c3](https://github.com/certd/certd/commit/063f5c3b55e47df22543a64f02e039e84f92cd14))
|
||||||
|
|
||||||
|
### Performance Improvements
|
||||||
|
|
||||||
|
* 重置管理员密码同时会关闭验证码,防止验证码失效之后无法登录 ([03899d4](https://github.com/certd/certd/commit/03899d4d9c76fc2077dacc53ab88e2c9ca41af7c))
|
||||||
|
|
||||||
## [1.36.23](https://github.com/certd/certd/compare/v1.36.22...v1.36.23) (2025-09-26)
|
## [1.36.23](https://github.com/certd/certd/compare/v1.36.22...v1.36.23) (2025-09-26)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -9,5 +9,5 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"npmClient": "pnpm",
|
"npmClient": "pnpm",
|
||||||
"version": "1.36.24"
|
"version": "1.37.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,6 @@
|
|||||||
},
|
},
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/ui-server": "link:packages/ui/certd-server",
|
|
||||||
"axios": "^1.7.7",
|
"axios": "^1.7.7",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/publishlab/node-acme-client/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/acme-client
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/publishlab/node-acme-client/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/acme-client
|
||||||
|
|
||||||
## [1.36.24](https://github.com/publishlab/node-acme-client/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/publishlab/node-acme-client/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/acme-client
|
**Note:** Version bump only for package @certd/acme-client
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"description": "Simple and unopinionated ACME client",
|
"description": "Simple and unopinionated ACME client",
|
||||||
"private": false,
|
"private": false,
|
||||||
"author": "nmorsman",
|
"author": "nmorsman",
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"module": "scr/index.js",
|
"module": "scr/index.js",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
"types"
|
"types"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/basic": "^1.36.24",
|
"@certd/basic": "^1.37.0",
|
||||||
"@peculiar/x509": "^1.11.0",
|
"@peculiar/x509": "^1.11.0",
|
||||||
"asn1js": "^3.0.5",
|
"asn1js": "^3.0.5",
|
||||||
"axios": "^1.7.2",
|
"axios": "^1.7.2",
|
||||||
@@ -69,5 +69,5 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/publishlab/node-acme-client/issues"
|
"url": "https://github.com/publishlab/node-acme-client/issues"
|
||||||
},
|
},
|
||||||
"gitHead": "f070030f6b5dd6dc1451400f55f5d723743a6aa9"
|
"gitHead": "6b43007c44e1b8ccdb87081b0cf3f99fc2c09d53"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/basic
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/basic
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/basic
|
**Note:** Version bump only for package @certd/basic
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
08:32
|
12:14
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/basic",
|
"name": "@certd/basic",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
@@ -45,5 +45,5 @@
|
|||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "f070030f6b5dd6dc1451400f55f5d723743a6aa9"
|
"gitHead": "6b43007c44e1b8ccdb87081b0cf3f99fc2c09d53"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,12 +22,14 @@ import { sp } from "./util.sp.js";
|
|||||||
import { hashUtils } from "./util.hash.js";
|
import { hashUtils } from "./util.hash.js";
|
||||||
import { promises } from "./util.promise.js";
|
import { promises } from "./util.promise.js";
|
||||||
import { fileUtils } from "./util.file.js";
|
import { fileUtils } from "./util.file.js";
|
||||||
import * as _ from "lodash-es";
|
|
||||||
import { cache } from "./util.cache.js";
|
import { cache } from "./util.cache.js";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { domainUtils } from "./util.domain.js";
|
import { domainUtils } from "./util.domain.js";
|
||||||
|
export * from "./util.domain.js";
|
||||||
import { optionsUtils } from "./util.options.js";
|
import { optionsUtils } from "./util.options.js";
|
||||||
|
export * from "./util.options.js";
|
||||||
import { amountUtils } from "./util.amount.js";
|
import { amountUtils } from "./util.amount.js";
|
||||||
|
export * from "./util.amount.js";
|
||||||
import { nanoid } from "nanoid";
|
import { nanoid } from "nanoid";
|
||||||
import * as id from "./util.id.js";
|
import * as id from "./util.id.js";
|
||||||
import { locker } from "./util.lock.js";
|
import { locker } from "./util.lock.js";
|
||||||
@@ -43,7 +45,6 @@ export const utils = {
|
|||||||
hash: hashUtils,
|
hash: hashUtils,
|
||||||
promises,
|
promises,
|
||||||
file: fileUtils,
|
file: fileUtils,
|
||||||
_,
|
|
||||||
mergeUtils,
|
mergeUtils,
|
||||||
cache,
|
cache,
|
||||||
nanoid,
|
nanoid,
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/pipeline
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/pipeline
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/pipeline
|
**Note:** Version bump only for package @certd/pipeline
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/pipeline",
|
"name": "@certd/pipeline",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
"pub": "npm publish"
|
"pub": "npm publish"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/basic": "^1.36.24",
|
"@certd/basic": "^1.37.0",
|
||||||
"@certd/plus-core": "^1.36.24",
|
"@certd/plus-core": "^1.37.0",
|
||||||
"dayjs": "^1.11.7",
|
"dayjs": "^1.11.7",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"reflect-metadata": "^0.1.13"
|
"reflect-metadata": "^0.1.13"
|
||||||
@@ -44,5 +44,5 @@
|
|||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "f070030f6b5dd6dc1451400f55f5d723743a6aa9"
|
"gitHead": "6b43007c44e1b8ccdb87081b0cf3f99fc2c09d53"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/lib-huawei
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/lib-huawei
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/lib-huawei
|
**Note:** Version bump only for package @certd/lib-huawei
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/lib-huawei",
|
"name": "@certd/lib-huawei",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"main": "./dist/bundle.js",
|
"main": "./dist/bundle.js",
|
||||||
"module": "./dist/bundle.js",
|
"module": "./dist/bundle.js",
|
||||||
"types": "./dist/d/index.d.ts",
|
"types": "./dist/d/index.d.ts",
|
||||||
@@ -24,5 +24,5 @@
|
|||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
},
|
},
|
||||||
"gitHead": "f070030f6b5dd6dc1451400f55f5d723743a6aa9"
|
"gitHead": "6b43007c44e1b8ccdb87081b0cf3f99fc2c09d53"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/lib-iframe
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/lib-iframe
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/lib-iframe
|
**Note:** Version bump only for package @certd/lib-iframe
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/lib-iframe",
|
"name": "@certd/lib-iframe",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
@@ -31,5 +31,5 @@
|
|||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "f070030f6b5dd6dc1451400f55f5d723743a6aa9"
|
"gitHead": "6b43007c44e1b8ccdb87081b0cf3f99fc2c09d53"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/jdcloud
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/jdcloud
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/jdcloud
|
**Note:** Version bump only for package @certd/jdcloud
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/jdcloud",
|
"name": "@certd/jdcloud",
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"description": "jdcloud openApi sdk",
|
"description": "jdcloud openApi sdk",
|
||||||
"main": "./dist/bundle.js",
|
"main": "./dist/bundle.js",
|
||||||
"module": "./dist/bundle.js",
|
"module": "./dist/bundle.js",
|
||||||
@@ -61,5 +61,5 @@
|
|||||||
"fetch"
|
"fetch"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"gitHead": "f070030f6b5dd6dc1451400f55f5d723743a6aa9"
|
"gitHead": "6b43007c44e1b8ccdb87081b0cf3f99fc2c09d53"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/lib-k8s
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/lib-k8s
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/lib-k8s
|
**Note:** Version bump only for package @certd/lib-k8s
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/lib-k8s",
|
"name": "@certd/lib-k8s",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
"pub": "npm publish"
|
"pub": "npm publish"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/basic": "^1.36.24",
|
"@certd/basic": "^1.37.0",
|
||||||
"@kubernetes/client-node": "0.21.0"
|
"@kubernetes/client-node": "0.21.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -32,5 +32,5 @@
|
|||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "f070030f6b5dd6dc1451400f55f5d723743a6aa9"
|
"gitHead": "6b43007c44e1b8ccdb87081b0cf3f99fc2c09d53"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,18 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* dist打包前检查 ([8f6e5bd](https://github.com/certd/certd/commit/8f6e5bd24b3b65fbfcba36c08f532a3abad2d606))
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 固定midwayjs版本,修复ui-server import 错误的bug ([eb4d125](https://github.com/certd/certd/commit/eb4d125eaf4a41e88c752d0c68993829589f8f27))
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/lib-server",
|
"name": "@certd/lib-server",
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"description": "midway with flyway, sql upgrade way ",
|
"description": "midway with flyway, sql upgrade way ",
|
||||||
"private": false,
|
"private": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -27,19 +27,20 @@
|
|||||||
],
|
],
|
||||||
"license": "AGPL",
|
"license": "AGPL",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/acme-client": "^1.36.24",
|
"@certd/acme-client": "^1.37.0",
|
||||||
"@certd/basic": "^1.36.24",
|
"@certd/basic": "^1.37.0",
|
||||||
"@certd/pipeline": "^1.36.24",
|
"@certd/pipeline": "^1.37.0",
|
||||||
"@certd/plugin-lib": "^1.36.24",
|
"@certd/plugin-lib": "^1.37.0",
|
||||||
"@certd/plus-core": "^1.36.24",
|
"@certd/plus-core": "^1.37.0",
|
||||||
"@midwayjs/cache": "~3.14.0",
|
"@midwayjs/cache": "3.14.0",
|
||||||
"@midwayjs/core": "~3.20.3",
|
"@midwayjs/core": "3.20.11",
|
||||||
"@midwayjs/i18n": "~3.20.3",
|
"@midwayjs/i18n": "3.20.13",
|
||||||
"@midwayjs/info": "~3.20.3",
|
"@midwayjs/info": "3.20.13",
|
||||||
"@midwayjs/koa": "~3.20.3",
|
"@midwayjs/koa": "3.20.13",
|
||||||
"@midwayjs/logger": "~3.4.2",
|
"@midwayjs/logger": "3.4.2",
|
||||||
"@midwayjs/typeorm": "~3.20.3",
|
"@midwayjs/typeorm": "3.20.11",
|
||||||
"@midwayjs/upload": "^3.20.3",
|
"@midwayjs/upload": "3.20.13",
|
||||||
|
"@midwayjs/validate": "3.20.13",
|
||||||
"better-sqlite3": "^11.1.2",
|
"better-sqlite3": "^11.1.2",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"dayjs": "^1.11.7",
|
"dayjs": "^1.11.7",
|
||||||
@@ -62,5 +63,5 @@
|
|||||||
"typeorm": "^0.3.11",
|
"typeorm": "^0.3.11",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "f070030f6b5dd6dc1451400f55f5d723743a6aa9"
|
"gitHead": "6b43007c44e1b8ccdb87081b0cf3f99fc2c09d53"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
export * from './api/index.js'
|
export * from './api/index.js'
|
||||||
export * from './entity/addon.js'
|
export * from './entity/addon.js'
|
||||||
export * from './service/addon-service.js'
|
export * from './service/addon-service.js'
|
||||||
export * from './service/addon-getter.js'
|
|
||||||
export * from './service/addon-sys-getter.js'
|
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
import { IAddonGetter } from "../api/index.js";
|
|
||||||
|
|
||||||
export class AddonGetter implements IAddonGetter {
|
|
||||||
userId: number;
|
|
||||||
getter: <T>(id: any, userId?: number) => Promise<T>;
|
|
||||||
constructor(userId: number, getter: (id: any, userId: number) => Promise<any>) {
|
|
||||||
this.userId = userId;
|
|
||||||
this.getter = getter;
|
|
||||||
}
|
|
||||||
|
|
||||||
async getById<T = any>(id: any) {
|
|
||||||
return await this.getter<T>(id, this.userId);
|
|
||||||
}
|
|
||||||
|
|
||||||
async getCommonById<T = any>(id: any) {
|
|
||||||
return await this.getter<T>(id, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,24 +1,19 @@
|
|||||||
import { Inject, Provide, Scope, ScopeEnum } from "@midwayjs/core";
|
import { Provide, Scope, ScopeEnum } from "@midwayjs/core";
|
||||||
import { InjectEntityModel } from "@midwayjs/typeorm";
|
import { InjectEntityModel } from "@midwayjs/typeorm";
|
||||||
import { In, Repository } from "typeorm";
|
import { In, Repository } from "typeorm";
|
||||||
import { AddonDefine, BaseService, PageReq, PermissionException, ValidateException } from "../../../index.js";
|
import { AddonDefine, BaseService, PageReq, ValidateException } from "../../../index.js";
|
||||||
import { addonRegistry, newAddon } from "../api/index.js";
|
import { addonRegistry } from "../api/index.js";
|
||||||
import { AddonEntity } from "../entity/addon.js";
|
import { AddonEntity } from "../entity/addon.js";
|
||||||
import { http, logger, utils } from "@certd/basic";
|
|
||||||
import { TaskServiceBuilder } from "@certd/ui-server/dist/modules/pipeline/service/getter/task-service-getter.js";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Addon
|
* Addon
|
||||||
*/
|
*/
|
||||||
@Provide()
|
@Provide()
|
||||||
@Scope(ScopeEnum.Request, {allowDowngrade: true})
|
@Scope(ScopeEnum.Request, { allowDowngrade: true })
|
||||||
export class AddonService extends BaseService<AddonEntity> {
|
export class AddonService extends BaseService<AddonEntity> {
|
||||||
@InjectEntityModel(AddonEntity)
|
@InjectEntityModel(AddonEntity)
|
||||||
repository: Repository<AddonEntity>;
|
repository: Repository<AddonEntity>;
|
||||||
|
|
||||||
@Inject()
|
|
||||||
private taskServiceBuilder: TaskServiceBuilder;
|
|
||||||
|
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
getRepository() {
|
getRepository() {
|
||||||
return this.repository;
|
return this.repository;
|
||||||
@@ -34,21 +29,21 @@ export class AddonService extends BaseService<AddonEntity> {
|
|||||||
|
|
||||||
async add(param) {
|
async add(param) {
|
||||||
let oldEntity = null;
|
let oldEntity = null;
|
||||||
if (param._copyFrom){
|
if (param._copyFrom) {
|
||||||
oldEntity = await this.info(param._copyFrom);
|
oldEntity = await this.info(param._copyFrom);
|
||||||
if (oldEntity == null) {
|
if (oldEntity == null) {
|
||||||
throw new ValidateException('该Addon配置不存在,请确认是否已被删除');
|
throw new ValidateException("该Addon配置不存在,请确认是否已被删除");
|
||||||
}
|
}
|
||||||
if (oldEntity.userId !== param.userId) {
|
if (oldEntity.userId !== param.userId) {
|
||||||
throw new ValidateException('您无权查看该Addon配置');
|
throw new ValidateException("您无权查看该Addon配置");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!param.userId){
|
if (!param.userId) {
|
||||||
param.isSystem = true
|
param.isSystem = true;
|
||||||
}else{
|
} else {
|
||||||
param.isSystem = false
|
param.isSystem = false;
|
||||||
}
|
}
|
||||||
delete param._copyFrom
|
delete param._copyFrom;
|
||||||
return await super.add(param);
|
return await super.add(param);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,7 +55,7 @@ export class AddonService extends BaseService<AddonEntity> {
|
|||||||
async update(param) {
|
async update(param) {
|
||||||
const oldEntity = await this.info(param.id);
|
const oldEntity = await this.info(param.id);
|
||||||
if (oldEntity == null) {
|
if (oldEntity == null) {
|
||||||
throw new ValidateException('该Addon配置不存在,请确认是否已被删除');
|
throw new ValidateException("该Addon配置不存在,请确认是否已被删除");
|
||||||
}
|
}
|
||||||
return await super.update(param);
|
return await super.update(param);
|
||||||
}
|
}
|
||||||
@@ -68,64 +63,24 @@ export class AddonService extends BaseService<AddonEntity> {
|
|||||||
async getSimpleInfo(id: number) {
|
async getSimpleInfo(id: number) {
|
||||||
const entity = await this.info(id);
|
const entity = await this.info(id);
|
||||||
if (entity == null) {
|
if (entity == null) {
|
||||||
throw new ValidateException('该Addon配置不存在,请确认是否已被删除');
|
throw new ValidateException("该Addon配置不存在,请确认是否已被删除");
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
id: entity.id,
|
id: entity.id,
|
||||||
name: entity.name,
|
name: entity.name,
|
||||||
userId: entity.userId,
|
userId: entity.userId,
|
||||||
addonType: entity.addonType,
|
addonType: entity.addonType,
|
||||||
type: entity.type,
|
type: entity.type
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
async getAddonById(id: any, checkUserId: boolean, userId?: number): Promise<any> {
|
|
||||||
const serviceGetter = this.taskServiceBuilder.create({userId:userId??0})
|
|
||||||
const ctx = {
|
|
||||||
http: http,
|
|
||||||
logger: logger,
|
|
||||||
utils: utils,
|
|
||||||
serviceGetter
|
|
||||||
};
|
|
||||||
|
|
||||||
if (!id){
|
|
||||||
//使用图片验证码
|
|
||||||
return await newAddon("captcha", "image", {},ctx);
|
|
||||||
}
|
|
||||||
const entity = await this.info(id);
|
|
||||||
if (entity == null) {
|
|
||||||
//使用图片验证码
|
|
||||||
return await newAddon("captcha", "image", {},ctx);
|
|
||||||
}
|
|
||||||
if (checkUserId) {
|
|
||||||
if (userId == null) {
|
|
||||||
throw new ValidateException('userId不能为空');
|
|
||||||
}
|
|
||||||
if (userId !== entity.userId) {
|
|
||||||
throw new PermissionException('您对该Addon无访问权限');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const setting = JSON.parse(entity.setting ??"{}")
|
|
||||||
const input = {
|
|
||||||
id: entity.id,
|
|
||||||
...setting,
|
|
||||||
};
|
|
||||||
|
|
||||||
return await newAddon(entity.addonType, entity.type, input,ctx);
|
|
||||||
}
|
|
||||||
|
|
||||||
async getById(id: any, userId: number): Promise<any> {
|
|
||||||
return await this.getAddonById(id, true, userId);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
getDefineList(addonType: string) {
|
getDefineList(addonType: string) {
|
||||||
return addonRegistry.getDefineList();
|
return addonRegistry.getDefineList();
|
||||||
}
|
}
|
||||||
|
|
||||||
getDefineByType(type: string,prefix?: string) {
|
getDefineByType(type: string, prefix?: string) {
|
||||||
return addonRegistry.getDefine(type,prefix) as AddonDefine;
|
return addonRegistry.getDefine(type, prefix) as AddonDefine;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -139,31 +94,30 @@ export class AddonService extends BaseService<AddonEntity> {
|
|||||||
return await this.repository.find({
|
return await this.repository.find({
|
||||||
where: {
|
where: {
|
||||||
id: In(ids),
|
id: In(ids),
|
||||||
userId,
|
userId
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
id: true,
|
id: true,
|
||||||
name: true,
|
name: true,
|
||||||
addonType: true,
|
addonType: true,
|
||||||
type: true,
|
type: true,
|
||||||
userId:true,
|
userId: true,
|
||||||
isSystem: true,
|
isSystem: true
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
async getDefault(userId: number, addonType: string): Promise<any> {
|
||||||
async getDefault(userId: number,addonType: string): Promise<any> {
|
|
||||||
const res = await this.repository.findOne({
|
const res = await this.repository.findOne({
|
||||||
where: {
|
where: {
|
||||||
userId,
|
userId,
|
||||||
addonType
|
addonType
|
||||||
},
|
},
|
||||||
order: {
|
order: {
|
||||||
isDefault: 'DESC',
|
isDefault: "DESC"
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
if (!res) {
|
if (!res) {
|
||||||
return null;
|
return null;
|
||||||
@@ -179,16 +133,16 @@ export class AddonService extends BaseService<AddonEntity> {
|
|||||||
type: res.type,
|
type: res.type,
|
||||||
name: res.name,
|
name: res.name,
|
||||||
userId: res.userId,
|
userId: res.userId,
|
||||||
setting,
|
setting
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
async setDefault(id: number, userId: number,addonType:string) {
|
async setDefault(id: number, userId: number, addonType: string) {
|
||||||
if (!id) {
|
if (!id) {
|
||||||
throw new ValidateException('id不能为空');
|
throw new ValidateException("id不能为空");
|
||||||
}
|
}
|
||||||
if (!userId) {
|
if (!userId) {
|
||||||
throw new ValidateException('userId不能为空');
|
throw new ValidateException("userId不能为空");
|
||||||
}
|
}
|
||||||
await this.repository.update(
|
await this.repository.update(
|
||||||
{
|
{
|
||||||
@@ -196,7 +150,7 @@ export class AddonService extends BaseService<AddonEntity> {
|
|||||||
addonType
|
addonType
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isDefault: false,
|
isDefault: false
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
await this.repository.update(
|
await this.repository.update(
|
||||||
@@ -206,22 +160,22 @@ export class AddonService extends BaseService<AddonEntity> {
|
|||||||
addonType
|
addonType
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
isDefault: true,
|
isDefault: true
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async getOrCreateDefault(opts:{addonType:string,type:string, inputs: any, userId: any}) {
|
async getOrCreateDefault(opts: { addonType: string, type: string, inputs: any, userId: any }) {
|
||||||
const {addonType,type,inputs,userId} = opts;
|
const { addonType, type, inputs, userId } = opts;
|
||||||
|
|
||||||
const addonDefine = this.getDefineByType( type,addonType)
|
const addonDefine = this.getDefineByType(type, addonType);
|
||||||
|
|
||||||
const defaultConfig = await this.getDefault(userId,addonType);
|
const defaultConfig = await this.getDefault(userId, addonType);
|
||||||
if (defaultConfig) {
|
if (defaultConfig) {
|
||||||
return defaultConfig;
|
return defaultConfig;
|
||||||
}
|
}
|
||||||
const setting = {
|
const setting = {
|
||||||
...inputs,
|
...inputs
|
||||||
};
|
};
|
||||||
const res = await this.repository.save({
|
const res = await this.repository.save({
|
||||||
userId,
|
userId,
|
||||||
@@ -229,7 +183,7 @@ export class AddonService extends BaseService<AddonEntity> {
|
|||||||
type: type,
|
type: type,
|
||||||
name: addonDefine.title,
|
name: addonDefine.title,
|
||||||
setting: JSON.stringify(setting),
|
setting: JSON.stringify(setting),
|
||||||
isDefault: true,
|
isDefault: true
|
||||||
});
|
});
|
||||||
return this.buildAddonInstanceConfig(res);
|
return this.buildAddonInstanceConfig(res);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
import { IAccessService } from '@certd/pipeline';
|
|
||||||
import { AddonService } from './addon-service.js';
|
|
||||||
|
|
||||||
export class AddonSysGetter implements IAccessService {
|
|
||||||
addonService: AddonService;
|
|
||||||
constructor(addonService: AddonService) {
|
|
||||||
this.addonService = addonService;
|
|
||||||
}
|
|
||||||
|
|
||||||
async getById<T = any>(id: any) {
|
|
||||||
return await this.addonService.getById(id, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
async getCommonById<T = any>(id: any) {
|
|
||||||
return await this.addonService.getById(id, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/midway-flyway-js
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/midway-flyway-js
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/midway-flyway-js
|
**Note:** Version bump only for package @certd/midway-flyway-js
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/midway-flyway-js",
|
"name": "@certd/midway-flyway-js",
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"description": "midway with flyway, sql upgrade way ",
|
"description": "midway with flyway, sql upgrade way ",
|
||||||
"private": false,
|
"private": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -25,9 +25,9 @@
|
|||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@midwayjs/core": "~3.20.3",
|
"@midwayjs/core": "3.20.11",
|
||||||
"@midwayjs/logger": "~3.4.2",
|
"@midwayjs/logger": "3.4.2",
|
||||||
"@midwayjs/typeorm": "~3.20.3",
|
"@midwayjs/typeorm": "3.20.11",
|
||||||
"better-sqlite3": "^11.1.2"
|
"better-sqlite3": "^11.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -46,5 +46,5 @@
|
|||||||
"typeorm": "^0.3.11",
|
"typeorm": "^0.3.11",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "f070030f6b5dd6dc1451400f55f5d723743a6aa9"
|
"gitHead": "6b43007c44e1b8ccdb87081b0cf3f99fc2c09d53"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-cert
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-cert
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/plugin-cert
|
**Note:** Version bump only for package @certd/plugin-cert
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/plugin-cert",
|
"name": "@certd/plugin-cert",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
@@ -16,10 +16,10 @@
|
|||||||
"pub": "npm publish"
|
"pub": "npm publish"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/acme-client": "^1.36.24",
|
"@certd/acme-client": "^1.37.0",
|
||||||
"@certd/basic": "^1.36.24",
|
"@certd/basic": "^1.37.0",
|
||||||
"@certd/pipeline": "^1.36.24",
|
"@certd/pipeline": "^1.37.0",
|
||||||
"@certd/plugin-lib": "^1.36.24",
|
"@certd/plugin-lib": "^1.37.0",
|
||||||
"@google-cloud/publicca": "^1.3.0",
|
"@google-cloud/publicca": "^1.3.0",
|
||||||
"dayjs": "^1.11.7",
|
"dayjs": "^1.11.7",
|
||||||
"jszip": "^3.10.1",
|
"jszip": "^3.10.1",
|
||||||
@@ -43,5 +43,5 @@
|
|||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "f070030f6b5dd6dc1451400f55f5d723743a6aa9"
|
"gitHead": "6b43007c44e1b8ccdb87081b0cf3f99fc2c09d53"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ export * from "./api.js";
|
|||||||
export * from "./registry.js";
|
export * from "./registry.js";
|
||||||
export * from "./decorator.js";
|
export * from "./decorator.js";
|
||||||
export * from "./base.js";
|
export * from "./base.js";
|
||||||
|
export * from "./domain-parser.js";
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-lib
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-lib
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/plugin-lib
|
**Note:** Version bump only for package @certd/plugin-lib
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/plugin-lib",
|
"name": "@certd/plugin-lib",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
@@ -21,8 +21,8 @@
|
|||||||
"@alicloud/pop-core": "^1.7.10",
|
"@alicloud/pop-core": "^1.7.10",
|
||||||
"@alicloud/tea-util": "^1.4.10",
|
"@alicloud/tea-util": "^1.4.10",
|
||||||
"@aws-sdk/client-s3": "^3.787.0",
|
"@aws-sdk/client-s3": "^3.787.0",
|
||||||
"@certd/basic": "^1.36.24",
|
"@certd/basic": "^1.37.0",
|
||||||
"@certd/pipeline": "^1.36.24",
|
"@certd/pipeline": "^1.37.0",
|
||||||
"@kubernetes/client-node": "0.21.0",
|
"@kubernetes/client-node": "0.21.0",
|
||||||
"ali-oss": "^6.22.0",
|
"ali-oss": "^6.22.0",
|
||||||
"basic-ftp": "^5.0.5",
|
"basic-ftp": "^5.0.5",
|
||||||
@@ -53,5 +53,5 @@
|
|||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"gitHead": "f070030f6b5dd6dc1451400f55f5d723743a6aa9"
|
"gitHead": "6b43007c44e1b8ccdb87081b0cf3f99fc2c09d53"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/ui-client
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/ui-client
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/ui-client
|
**Note:** Version bump only for package @certd/ui-client
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/ui-client",
|
"name": "@certd/ui-client",
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --open",
|
"dev": "vite --open",
|
||||||
@@ -105,8 +105,8 @@
|
|||||||
"zod-defaults": "^0.1.3"
|
"zod-defaults": "^0.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@certd/lib-iframe": "^1.36.24",
|
"@certd/lib-iframe": "^1.37.0",
|
||||||
"@certd/pipeline": "^1.36.24",
|
"@certd/pipeline": "^1.37.0",
|
||||||
"@rollup/plugin-commonjs": "^25.0.7",
|
"@rollup/plugin-commonjs": "^25.0.7",
|
||||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||||
"@types/chai": "^4.3.12",
|
"@types/chai": "^4.3.12",
|
||||||
|
|||||||
@@ -3,6 +3,18 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
# [1.37.0](https://github.com/certd/certd/compare/v1.36.25...v1.37.0) (2025-09-28)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* dist打包前检查 ([8f6e5bd](https://github.com/certd/certd/commit/8f6e5bd24b3b65fbfcba36c08f532a3abad2d606))
|
||||||
|
|
||||||
|
## [1.36.25](https://github.com/certd/certd/compare/v1.36.24...v1.36.25) (2025-09-27)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 固定midwayjs版本,修复ui-server import 错误的bug ([eb4d125](https://github.com/certd/certd/commit/eb4d125eaf4a41e88c752d0c68993829589f8f27))
|
||||||
|
|
||||||
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
## [1.36.24](https://github.com/certd/certd/compare/v1.36.23...v1.36.24) (2025-09-27)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@certd/ui-server",
|
"name": "@certd/ui-server",
|
||||||
"version": "1.36.24",
|
"version": "1.37.0",
|
||||||
"description": "fast-server base midway",
|
"description": "fast-server base midway",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -43,34 +43,34 @@
|
|||||||
"@aws-sdk/client-cloudfront": "^3.699.0",
|
"@aws-sdk/client-cloudfront": "^3.699.0",
|
||||||
"@aws-sdk/client-iam": "^3.699.0",
|
"@aws-sdk/client-iam": "^3.699.0",
|
||||||
"@aws-sdk/client-s3": "^3.705.0",
|
"@aws-sdk/client-s3": "^3.705.0",
|
||||||
"@certd/acme-client": "^1.36.24",
|
"@certd/acme-client": "^1.37.0",
|
||||||
"@certd/basic": "^1.36.24",
|
"@certd/basic": "^1.37.0",
|
||||||
"@certd/commercial-core": "^1.36.24",
|
"@certd/commercial-core": "^1.37.0",
|
||||||
"@certd/cv4pve-api-javascript": "^8.4.2",
|
"@certd/cv4pve-api-javascript": "^8.4.2",
|
||||||
"@certd/jdcloud": "^1.36.24",
|
"@certd/jdcloud": "^1.37.0",
|
||||||
"@certd/lib-huawei": "^1.36.24",
|
"@certd/lib-huawei": "^1.37.0",
|
||||||
"@certd/lib-k8s": "^1.36.24",
|
"@certd/lib-k8s": "^1.37.0",
|
||||||
"@certd/lib-server": "^1.36.24",
|
"@certd/lib-server": "^1.37.0",
|
||||||
"@certd/midway-flyway-js": "^1.36.24",
|
"@certd/midway-flyway-js": "^1.37.0",
|
||||||
"@certd/pipeline": "^1.36.24",
|
"@certd/pipeline": "^1.37.0",
|
||||||
"@certd/plugin-cert": "^1.36.24",
|
"@certd/plugin-cert": "^1.37.0",
|
||||||
"@certd/plugin-lib": "^1.36.24",
|
"@certd/plugin-lib": "^1.37.0",
|
||||||
"@certd/plugin-plus": "^1.36.24",
|
"@certd/plugin-plus": "^1.37.0",
|
||||||
"@certd/plus-core": "^1.36.24",
|
"@certd/plus-core": "^1.37.0",
|
||||||
"@huaweicloud/huaweicloud-sdk-cdn": "^3.1.120",
|
"@huaweicloud/huaweicloud-sdk-cdn": "^3.1.120",
|
||||||
"@huaweicloud/huaweicloud-sdk-core": "^3.1.120",
|
"@huaweicloud/huaweicloud-sdk-core": "^3.1.120",
|
||||||
"@koa/cors": "^5.0.0",
|
"@koa/cors": "^5.0.0",
|
||||||
"@midwayjs/bootstrap": "~3.20.3",
|
"@midwayjs/bootstrap": "3.20.11",
|
||||||
"@midwayjs/cache": "~3.14.0",
|
"@midwayjs/cache": "3.14.0",
|
||||||
"@midwayjs/core": "~3.20.3",
|
"@midwayjs/core": "3.20.11",
|
||||||
"@midwayjs/i18n": "~3.20.3",
|
"@midwayjs/i18n": "3.20.13",
|
||||||
"@midwayjs/info": "~3.20.3",
|
"@midwayjs/info": "3.20.13",
|
||||||
"@midwayjs/koa": "~3.20.3",
|
"@midwayjs/koa": "3.20.13",
|
||||||
"@midwayjs/logger": "~3.4.2",
|
"@midwayjs/logger": "3.4.2",
|
||||||
"@midwayjs/static-file": "~3.20.3",
|
"@midwayjs/static-file": "3.20.13",
|
||||||
"@midwayjs/typeorm": "~3.20.3",
|
"@midwayjs/typeorm": "3.20.11",
|
||||||
"@midwayjs/upload": "~3.20.3",
|
"@midwayjs/upload": "3.20.13",
|
||||||
"@midwayjs/validate": "~3.20.3",
|
"@midwayjs/validate": "3.20.13",
|
||||||
"@volcengine/openapi": "^1.28.1",
|
"@volcengine/openapi": "^1.28.1",
|
||||||
"ali-oss": "^6.21.0",
|
"ali-oss": "^6.21.0",
|
||||||
"axios": "^1.7.2",
|
"axios": "^1.7.2",
|
||||||
@@ -123,7 +123,7 @@
|
|||||||
"uuid": "^10.0.0"
|
"uuid": "^10.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@midwayjs/mock": "~3.20.3",
|
"@midwayjs/mock": "3.20.11",
|
||||||
"@types/ali-oss": "^6.16.11",
|
"@types/ali-oss": "^6.16.11",
|
||||||
"@types/cache-manager": "^4.0.6",
|
"@types/cache-manager": "^4.0.6",
|
||||||
"@types/jest": "^29.5.13",
|
"@types/jest": "^29.5.13",
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
"why-is-node-running": "^3.2.2"
|
"why-is-node-running": "^3.2.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0"
|
"node": ">=20.0.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {ALL, Body, Controller, Inject, Post, Provide, Query} from '@midwayjs/core';
|
import {ALL, Body, Controller, Inject, Post, Provide, Query} from '@midwayjs/core';
|
||||||
import {Constants, CrudController} from '@certd/lib-server';
|
import {Constants, CrudController} from '@certd/lib-server';
|
||||||
import {SubDomainService} from "../../../modules/pipeline/service/sub-domain-service.js";
|
import {SubDomainService} from "../../../modules/pipeline/service/sub-domain-service.js";
|
||||||
import {DomainParser} from '@certd/plugin-cert/dist/dns-provider/domain-parser.js';
|
import {DomainParser} from '@certd/plugin-cert';
|
||||||
import { SubDomainsGetter } from '../../../modules/pipeline/service/getter/sub-domain-getter.js';
|
import { SubDomainsGetter } from '../../../modules/pipeline/service/getter/sub-domain-getter.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { Autoload, Init, Inject, Scope, ScopeEnum } from "@midwayjs/core";
|
|||||||
import { CertInfoService } from "../monitor/index.js";
|
import { CertInfoService } from "../monitor/index.js";
|
||||||
import { pipelineEmitter } from "@certd/pipeline";
|
import { pipelineEmitter } from "@certd/pipeline";
|
||||||
import { CertInfo, EVENT_CERT_APPLY_SUCCESS } from "@certd/plugin-cert";
|
import { CertInfo, EVENT_CERT_APPLY_SUCCESS } from "@certd/plugin-cert";
|
||||||
import { PipelineEvent } from "@certd/pipeline/dist/service/emit.js";
|
import { PipelineEvent } from "@certd/pipeline";
|
||||||
|
|
||||||
@Autoload()
|
@Autoload()
|
||||||
@Scope(ScopeEnum.Request, { allowDowngrade: true })
|
@Scope(ScopeEnum.Request, { allowDowngrade: true })
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { Inject, Provide, Scope, ScopeEnum } from "@midwayjs/core";
|
import { Inject, Provide, Scope, ScopeEnum } from "@midwayjs/core";
|
||||||
import { AddonService, SysSettingsService } from "@certd/lib-server";
|
import { SysSettingsService } from "@certd/lib-server";
|
||||||
import { logger } from "@certd/basic";
|
import { logger } from "@certd/basic";
|
||||||
import { ICaptchaAddon } from "../../../plugins/plugin-captcha/api.js";
|
import { ICaptchaAddon } from "../../../plugins/plugin-captcha/api.js";
|
||||||
|
import { AddonGetterService } from "../../pipeline/service/addon-getter-service.js";
|
||||||
|
|
||||||
@Provide()
|
@Provide()
|
||||||
@Scope(ScopeEnum.Request, { allowDowngrade: true })
|
@Scope(ScopeEnum.Request, { allowDowngrade: true })
|
||||||
@@ -9,45 +10,48 @@ export class CaptchaService {
|
|||||||
@Inject()
|
@Inject()
|
||||||
sysSettingsService: SysSettingsService;
|
sysSettingsService: SysSettingsService;
|
||||||
@Inject()
|
@Inject()
|
||||||
addonService: AddonService;
|
addonGetterService: AddonGetterService;
|
||||||
|
|
||||||
|
|
||||||
async getCaptcha(captchaAddonId?:number){
|
async getCaptcha(captchaAddonId?: number) {
|
||||||
if (!captchaAddonId) {
|
if (!captchaAddonId) {
|
||||||
const settings = await this.sysSettingsService.getPublicSettings()
|
const settings = await this.sysSettingsService.getPublicSettings();
|
||||||
captchaAddonId = settings.captchaAddonId ?? 0
|
captchaAddonId = settings.captchaAddonId ?? 0;
|
||||||
}
|
}
|
||||||
const addon:ICaptchaAddon = await this.addonService.getAddonById(captchaAddonId,true,0)
|
const addon: ICaptchaAddon = await this.addonGetterService.getAddonById(captchaAddonId, true, 0, {
|
||||||
|
type: "captcha",
|
||||||
|
name: "image"
|
||||||
|
});
|
||||||
if (!addon) {
|
if (!addon) {
|
||||||
throw new Error('验证码插件还未配置')
|
throw new Error("验证码插件还未配置");
|
||||||
}
|
}
|
||||||
return await addon.getCaptcha()
|
return await addon.getCaptcha();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async doValidate(opts:{form:any,must?:boolean,captchaAddonId?:number}){
|
async doValidate(opts: { form: any, must?: boolean, captchaAddonId?: number }) {
|
||||||
if (!opts.captchaAddonId) {
|
if (!opts.captchaAddonId) {
|
||||||
const settings = await this.sysSettingsService.getPublicSettings()
|
const settings = await this.sysSettingsService.getPublicSettings();
|
||||||
opts.captchaAddonId = settings.captchaAddonId ?? 0
|
opts.captchaAddonId = settings.captchaAddonId ?? 0;
|
||||||
}
|
}
|
||||||
const addon = await this.addonService.getById(opts.captchaAddonId,0)
|
const addon = await this.addonGetterService.getById(opts.captchaAddonId, 0);
|
||||||
if (!addon) {
|
if (!addon) {
|
||||||
if (opts.must) {
|
if (opts.must) {
|
||||||
throw new Error('请先配置验证码插件');
|
throw new Error("请先配置验证码插件");
|
||||||
}
|
}
|
||||||
logger.warn('验证码插件还未配置,忽略验证码校验')
|
logger.warn("验证码插件还未配置,忽略验证码校验");
|
||||||
return true
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!opts.form) {
|
if (!opts.form) {
|
||||||
throw new Error('请输入验证码');
|
throw new Error("请输入验证码");
|
||||||
}
|
}
|
||||||
const res = await addon.onValidate(opts.form)
|
const res = await addon.onValidate(opts.form);
|
||||||
if (!res) {
|
if (!res) {
|
||||||
throw new Error('验证码错误');
|
throw new Error("验证码错误");
|
||||||
}
|
}
|
||||||
|
|
||||||
return true
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {In, Not, Repository} from 'typeorm';
|
|||||||
import {AccessService, BaseService} from '@certd/lib-server';
|
import {AccessService, BaseService} from '@certd/lib-server';
|
||||||
import {DomainEntity} from '../entity/domain.js';
|
import {DomainEntity} from '../entity/domain.js';
|
||||||
import {SubDomainService} from "../../pipeline/service/sub-domain-service.js";
|
import {SubDomainService} from "../../pipeline/service/sub-domain-service.js";
|
||||||
import {DomainParser} from "@certd/plugin-cert/dist/dns-provider/domain-parser.js";
|
import {DomainParser} from "@certd/plugin-cert";
|
||||||
import {DomainVerifiers} from "@certd/plugin-cert";
|
import {DomainVerifiers} from "@certd/plugin-cert";
|
||||||
import { SubDomainsGetter } from '../../pipeline/service/getter/sub-domain-getter.js';
|
import { SubDomainsGetter } from '../../pipeline/service/getter/sub-domain-getter.js';
|
||||||
import { CnameRecordService } from '../../cname/service/cname-record-service.js';
|
import { CnameRecordService } from '../../cname/service/cname-record-service.js';
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import { getAuthoritativeDnsResolver, walkTxtRecord } from "@certd/acme-client";
|
|||||||
import { CnameProviderService } from "./cname-provider-service.js";
|
import { CnameProviderService } from "./cname-provider-service.js";
|
||||||
import { CnameProviderEntity } from "../entity/cname-provider.js";
|
import { CnameProviderEntity } from "../entity/cname-provider.js";
|
||||||
import { CommonDnsProvider } from "./common-provider.js";
|
import { CommonDnsProvider } from "./common-provider.js";
|
||||||
import { DomainParser } from "@certd/plugin-cert/dist/dns-provider/domain-parser.js";
|
import { DomainParser } from "@certd/plugin-cert";
|
||||||
import punycode from "punycode.js";
|
import punycode from "punycode.js";
|
||||||
import { SubDomainService } from "../../pipeline/service/sub-domain-service.js";
|
import { SubDomainService } from "../../pipeline/service/sub-domain-service.js";
|
||||||
import { SubDomainsGetter } from "../../pipeline/service/getter/sub-domain-getter.js";
|
import { SubDomainsGetter } from "../../pipeline/service/getter/sub-domain-getter.js";
|
||||||
|
|||||||
@@ -0,0 +1,65 @@
|
|||||||
|
import { Inject, Provide, Scope, ScopeEnum } from "@midwayjs/core";
|
||||||
|
import { http, logger, utils } from "@certd/basic";
|
||||||
|
import { TaskServiceBuilder } from "./getter/task-service-getter.js";
|
||||||
|
import { AddonService, newAddon, PermissionException, ValidateException } from "@certd/lib-server";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Addon
|
||||||
|
*/
|
||||||
|
@Provide()
|
||||||
|
@Scope(ScopeEnum.Request, { allowDowngrade: true })
|
||||||
|
export class AddonGetterService {
|
||||||
|
|
||||||
|
@Inject()
|
||||||
|
taskServiceBuilder: TaskServiceBuilder;
|
||||||
|
@Inject()
|
||||||
|
addonService: AddonService;
|
||||||
|
|
||||||
|
|
||||||
|
async getAddonById(id: any, checkUserId: boolean, userId?: number, defaultAddon?:{type:string,name:string} ): Promise<any> {
|
||||||
|
const serviceGetter = this.taskServiceBuilder.create({
|
||||||
|
userId
|
||||||
|
});
|
||||||
|
const ctx = {
|
||||||
|
http,
|
||||||
|
logger,
|
||||||
|
utils,
|
||||||
|
serviceGetter
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!id) {
|
||||||
|
if (!defaultAddon) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return await newAddon(defaultAddon.type, defaultAddon.name, {}, ctx);
|
||||||
|
}
|
||||||
|
const entity = await this.addonService.info(id);
|
||||||
|
if (entity == null) {
|
||||||
|
if (!defaultAddon) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return await newAddon(defaultAddon.type, defaultAddon.name, {}, ctx);
|
||||||
|
}
|
||||||
|
if (checkUserId) {
|
||||||
|
if (userId == null) {
|
||||||
|
throw new ValidateException("userId不能为空");
|
||||||
|
}
|
||||||
|
if (userId !== entity.userId) {
|
||||||
|
throw new PermissionException("您对该Addon无访问权限");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const setting = JSON.parse(entity.setting ?? "{}");
|
||||||
|
const input = {
|
||||||
|
id: entity.id,
|
||||||
|
...setting
|
||||||
|
};
|
||||||
|
|
||||||
|
return await newAddon(entity.addonType, entity.type, input, ctx);
|
||||||
|
}
|
||||||
|
|
||||||
|
async getById(id: any, userId: number): Promise<any> {
|
||||||
|
return await this.getAddonById(id, true, userId);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -32,7 +32,7 @@ export class TaskServiceGetter implements IServiceGetter{
|
|||||||
return await this.getNotificationService() as T
|
return await this.getNotificationService() as T
|
||||||
} else if (serviceName === 'domainVerifierGetter') {
|
} else if (serviceName === 'domainVerifierGetter') {
|
||||||
return await this.getDomainVerifierGetter() as T
|
return await this.getDomainVerifierGetter() as T
|
||||||
} else{
|
}else{
|
||||||
if(!serviceNames.includes(serviceName)){
|
if(!serviceNames.includes(serviceName)){
|
||||||
throw new Error(`${serviceName} not in whitelist`)
|
throw new Error(`${serviceName} not in whitelist`)
|
||||||
}
|
}
|
||||||
@@ -53,6 +53,7 @@ export class TaskServiceGetter implements IServiceGetter{
|
|||||||
return new AccessGetter(this.userId, accessService.getById.bind(accessService));
|
return new AccessGetter(this.userId, accessService.getById.bind(accessService));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async getCnameProxyService(): Promise<CnameProxyService> {
|
async getCnameProxyService(): Promise<CnameProxyService> {
|
||||||
const cnameRecordService:CnameRecordService = await this.appCtx.getAsync("cnameRecordService")
|
const cnameRecordService:CnameRecordService = await this.appCtx.getAsync("cnameRecordService")
|
||||||
return new CnameProxyService(this.userId, cnameRecordService.getWithAccessByDomain.bind(cnameRecordService));
|
return new CnameProxyService(this.userId, cnameRecordService.getWithAccessByDomain.bind(cnameRecordService));
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
createRemoteSelectInputDefine
|
createRemoteSelectInputDefine
|
||||||
} from "@certd/plugin-lib";
|
} from "@certd/plugin-lib";
|
||||||
import { CertApplyPluginNames, CertInfo, CertReader } from "@certd/plugin-cert";
|
import { CertApplyPluginNames, CertInfo, CertReader } from "@certd/plugin-cert";
|
||||||
import {optionsUtils} from "@certd/basic/dist/utils/util.options.js";
|
import {optionsUtils} from "@certd/basic";
|
||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
name: 'DeployCertToAliyunApig',
|
name: 'DeployCertToAliyunApig',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput} from '@certd/pipeline';
|
import {AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput} from '@certd/pipeline';
|
||||||
import {AliyunAccess, createCertDomainGetterInputDefine, createRemoteSelectInputDefine} from "@certd/plugin-lib";
|
import {AliyunAccess, createCertDomainGetterInputDefine, createRemoteSelectInputDefine} from "@certd/plugin-lib";
|
||||||
import {CertApplyPluginNames, CertInfo} from '@certd/plugin-cert';
|
import {CertApplyPluginNames, CertInfo} from '@certd/plugin-cert';
|
||||||
import {optionsUtils} from "@certd/basic/dist/utils/util.options.js";
|
import {optionsUtils} from "@certd/basic";
|
||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
name: 'DeployCertToAliyunApiGateway',
|
name: 'DeployCertToAliyunApiGateway',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from '@certd/pipeline';
|
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from '@certd/pipeline';
|
||||||
import { AliyunAccess, AliyunClient, AliyunSslClient, createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from '@certd/plugin-lib';
|
import { AliyunAccess, AliyunClient, AliyunSslClient, createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from '@certd/plugin-lib';
|
||||||
import { optionsUtils } from '@certd/basic/dist/utils/util.options.js';
|
import { optionsUtils } from '@certd/basic';
|
||||||
import { CertApplyPluginNames, CertReader } from "@certd/plugin-cert";
|
import { CertApplyPluginNames, CertReader } from "@certd/plugin-cert";
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
name: 'DeployCertToAliyunCDN',
|
name: 'DeployCertToAliyunCDN',
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
} from "@certd/plugin-lib";
|
} from "@certd/plugin-lib";
|
||||||
import { CertInfo } from '@certd/plugin-cert';
|
import { CertInfo } from '@certd/plugin-cert';
|
||||||
import { CertApplyPluginNames} from '@certd/plugin-cert';
|
import { CertApplyPluginNames} from '@certd/plugin-cert';
|
||||||
import { optionsUtils } from "@certd/basic/dist/utils/util.options.js";
|
import { optionsUtils } from "@certd/basic";
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
name: 'DeployCertToAliyunDCDN',
|
name: 'DeployCertToAliyunDCDN',
|
||||||
title: '阿里云-部署证书至DCDN',
|
title: '阿里云-部署证书至DCDN',
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
} from '@certd/plugin-lib';
|
} from '@certd/plugin-lib';
|
||||||
import {CertInfo, CertReader} from '@certd/plugin-cert';
|
import {CertInfo, CertReader} from '@certd/plugin-cert';
|
||||||
import { CertApplyPluginNames} from '@certd/plugin-cert';
|
import { CertApplyPluginNames} from '@certd/plugin-cert';
|
||||||
import {optionsUtils} from "@certd/basic/dist/utils/util.options.js";
|
import {optionsUtils} from "@certd/basic";
|
||||||
import {isArray} from "lodash-es";
|
import {isArray} from "lodash-es";
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
name: 'DeployCertToAliyunOSS',
|
name: 'DeployCertToAliyunOSS',
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { CertApplyPluginNames, CertInfo } from "@certd/plugin-cert";
|
|||||||
import { AwsAccess, AwsRegions } from "../access.js";
|
import { AwsAccess, AwsRegions } from "../access.js";
|
||||||
import { AwsAcmClient } from "../libs/aws-acm-client.js";
|
import { AwsAcmClient } from "../libs/aws-acm-client.js";
|
||||||
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from "@certd/plugin-lib";
|
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from "@certd/plugin-lib";
|
||||||
import { optionsUtils } from "@certd/basic/dist/utils/util.options.js";
|
import { optionsUtils } from "@certd/basic";
|
||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
name: 'AwsDeployToCloudFront',
|
name: 'AwsDeployToCloudFront',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from '@certd/pipeline';
|
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from '@certd/pipeline';
|
||||||
import { CertInfo, CertReader } from '@certd/plugin-cert';
|
import { CertInfo, CertReader } from '@certd/plugin-cert';
|
||||||
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from '@certd/plugin-lib';
|
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from '@certd/plugin-lib';
|
||||||
import { optionsUtils } from '@certd/basic/dist/utils/util.options.js';
|
import { optionsUtils } from '@certd/basic';
|
||||||
import { CertApplyPluginNames} from '@certd/plugin-cert';
|
import { CertApplyPluginNames} from '@certd/plugin-cert';
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
//命名规范,插件类型+功能(就是目录plugin-demo中的demo),大写字母开头,驼峰命名
|
//命名规范,插件类型+功能(就是目录plugin-demo中的demo),大写字母开头,驼峰命名
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from "@certd/pipeline";
|
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from "@certd/pipeline";
|
||||||
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from "@certd/plugin-lib";
|
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from "@certd/plugin-lib";
|
||||||
import { CertApplyPluginNames, CertInfo } from "@certd/plugin-cert";
|
import { CertApplyPluginNames, CertInfo } from "@certd/plugin-cert";
|
||||||
import { optionsUtils } from "@certd/basic/dist/utils/util.options.js";
|
import { optionsUtils } from "@certd/basic";
|
||||||
import { JDCloudAccess } from "../access.js";
|
import { JDCloudAccess } from "../access.js";
|
||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from "@certd/pipeline";
|
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from "@certd/pipeline";
|
||||||
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from "@certd/plugin-lib";
|
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from "@certd/plugin-lib";
|
||||||
import { CertApplyPluginNames, CertInfo } from "@certd/plugin-cert";
|
import { CertApplyPluginNames, CertInfo } from "@certd/plugin-cert";
|
||||||
import { optionsUtils } from "@certd/basic/dist/utils/util.options.js";
|
import { optionsUtils } from "@certd/basic";
|
||||||
import { JDCloudAccess } from "../access.js";
|
import { JDCloudAccess } from "../access.js";
|
||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from '@certd/pipeline';
|
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from '@certd/pipeline';
|
||||||
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine, QiniuAccess, QiniuClient } from '@certd/plugin-lib';
|
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine, QiniuAccess, QiniuClient } from '@certd/plugin-lib';
|
||||||
import { CertInfo } from '@certd/plugin-cert';
|
import { CertInfo } from '@certd/plugin-cert';
|
||||||
import { optionsUtils } from '@certd/basic/dist/utils/util.options.js';
|
import { optionsUtils } from '@certd/basic';
|
||||||
import { CertApplyPluginNames} from '@certd/plugin-cert';
|
import { CertApplyPluginNames} from '@certd/plugin-cert';
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
name: 'QiniuDeployCertToCDN',
|
name: 'QiniuDeployCertToCDN',
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput
|
|||||||
import { CertApplyPluginNames, CertInfo } from "@certd/plugin-cert";
|
import { CertApplyPluginNames, CertInfo } from "@certd/plugin-cert";
|
||||||
import { UpyunAccess } from "../access.js";
|
import { UpyunAccess } from "../access.js";
|
||||||
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from "@certd/plugin-lib";
|
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from "@certd/plugin-lib";
|
||||||
import { optionsUtils } from "@certd/basic/dist/utils/util.options.js";
|
import { optionsUtils } from "@certd/basic";
|
||||||
import { UpyunClient } from "../client.js";
|
import { UpyunClient } from "../client.js";
|
||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from "@certd/pipeline";
|
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from "@certd/pipeline";
|
||||||
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from "@certd/plugin-lib";
|
import { createCertDomainGetterInputDefine, createRemoteSelectInputDefine } from "@certd/plugin-lib";
|
||||||
import { CertApplyPluginNames, CertInfo } from "@certd/plugin-cert";
|
import { CertApplyPluginNames, CertInfo } from "@certd/plugin-cert";
|
||||||
import { optionsUtils } from "@certd/basic/dist/utils/util.options.js";
|
import { optionsUtils } from "@certd/basic";
|
||||||
import { VolcengineAccess } from "../access.js";
|
import { VolcengineAccess } from "../access.js";
|
||||||
import { VolcengineCdnClient } from "../cdn-client.js";
|
import { VolcengineCdnClient } from "../cdn-client.js";
|
||||||
|
|
||||||
|
|||||||
273
pnpm-lock.yaml
generated
273
pnpm-lock.yaml
generated
@@ -49,7 +49,7 @@ importers:
|
|||||||
packages/core/acme-client:
|
packages/core/acme-client:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../basic
|
version: link:../basic
|
||||||
'@peculiar/x509':
|
'@peculiar/x509':
|
||||||
specifier: ^1.11.0
|
specifier: ^1.11.0
|
||||||
@@ -210,10 +210,10 @@ importers:
|
|||||||
packages/core/pipeline:
|
packages/core/pipeline:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../basic
|
version: link:../basic
|
||||||
'@certd/plus-core':
|
'@certd/plus-core':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../pro/plus-core
|
version: link:../../pro/plus-core
|
||||||
dayjs:
|
dayjs:
|
||||||
specifier: ^1.11.7
|
specifier: ^1.11.7
|
||||||
@@ -418,7 +418,7 @@ importers:
|
|||||||
packages/libs/lib-k8s:
|
packages/libs/lib-k8s:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/basic
|
version: link:../../core/basic
|
||||||
'@kubernetes/client-node':
|
'@kubernetes/client-node':
|
||||||
specifier: 0.21.0
|
specifier: 0.21.0
|
||||||
@@ -458,44 +458,47 @@ importers:
|
|||||||
packages/libs/lib-server:
|
packages/libs/lib-server:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@certd/acme-client':
|
'@certd/acme-client':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/acme-client
|
version: link:../../core/acme-client
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/basic
|
version: link:../../core/basic
|
||||||
'@certd/pipeline':
|
'@certd/pipeline':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/pipeline
|
version: link:../../core/pipeline
|
||||||
'@certd/plugin-lib':
|
'@certd/plugin-lib':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../plugins/plugin-lib
|
version: link:../../plugins/plugin-lib
|
||||||
'@certd/plus-core':
|
'@certd/plus-core':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../pro/plus-core
|
version: link:../../pro/plus-core
|
||||||
'@midwayjs/cache':
|
'@midwayjs/cache':
|
||||||
specifier: ~3.14.0
|
specifier: 3.14.0
|
||||||
version: 3.14.0
|
version: 3.14.0
|
||||||
'@midwayjs/core':
|
'@midwayjs/core':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.11
|
||||||
version: 3.20.4
|
version: 3.20.11
|
||||||
'@midwayjs/i18n':
|
'@midwayjs/i18n':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.13
|
||||||
version: 3.20.5
|
version: 3.20.13
|
||||||
'@midwayjs/info':
|
'@midwayjs/info':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.13
|
||||||
version: 3.20.5
|
version: 3.20.13
|
||||||
'@midwayjs/koa':
|
'@midwayjs/koa':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.13
|
||||||
version: 3.20.5
|
version: 3.20.13
|
||||||
'@midwayjs/logger':
|
'@midwayjs/logger':
|
||||||
specifier: ~3.4.2
|
specifier: 3.4.2
|
||||||
version: 3.4.2
|
version: 3.4.2
|
||||||
'@midwayjs/typeorm':
|
'@midwayjs/typeorm':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.11
|
||||||
version: 3.20.4
|
version: 3.20.11
|
||||||
'@midwayjs/upload':
|
'@midwayjs/upload':
|
||||||
specifier: ^3.20.3
|
specifier: 3.20.13
|
||||||
version: 3.20.5
|
version: 3.20.13
|
||||||
|
'@midwayjs/validate':
|
||||||
|
specifier: 3.20.13
|
||||||
|
version: 3.20.13
|
||||||
better-sqlite3:
|
better-sqlite3:
|
||||||
specifier: ^11.1.2
|
specifier: ^11.1.2
|
||||||
version: 11.10.0
|
version: 11.10.0
|
||||||
@@ -555,14 +558,14 @@ importers:
|
|||||||
packages/libs/midway-flyway-js:
|
packages/libs/midway-flyway-js:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@midwayjs/core':
|
'@midwayjs/core':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.11
|
||||||
version: 3.20.4
|
version: 3.20.11
|
||||||
'@midwayjs/logger':
|
'@midwayjs/logger':
|
||||||
specifier: ~3.4.2
|
specifier: 3.4.2
|
||||||
version: 3.4.2
|
version: 3.4.2
|
||||||
'@midwayjs/typeorm':
|
'@midwayjs/typeorm':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.11
|
||||||
version: 3.20.4
|
version: 3.20.11
|
||||||
better-sqlite3:
|
better-sqlite3:
|
||||||
specifier: ^11.1.2
|
specifier: ^11.1.2
|
||||||
version: 11.10.0
|
version: 11.10.0
|
||||||
@@ -613,16 +616,16 @@ importers:
|
|||||||
packages/plugins/plugin-cert:
|
packages/plugins/plugin-cert:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@certd/acme-client':
|
'@certd/acme-client':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/acme-client
|
version: link:../../core/acme-client
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/basic
|
version: link:../../core/basic
|
||||||
'@certd/pipeline':
|
'@certd/pipeline':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/pipeline
|
version: link:../../core/pipeline
|
||||||
'@certd/plugin-lib':
|
'@certd/plugin-lib':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../plugin-lib
|
version: link:../plugin-lib
|
||||||
'@google-cloud/publicca':
|
'@google-cloud/publicca':
|
||||||
specifier: ^1.3.0
|
specifier: ^1.3.0
|
||||||
@@ -704,10 +707,10 @@ importers:
|
|||||||
specifier: ^3.787.0
|
specifier: ^3.787.0
|
||||||
version: 3.810.0(aws-crt@1.26.2)
|
version: 3.810.0(aws-crt@1.26.2)
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/basic
|
version: link:../../core/basic
|
||||||
'@certd/pipeline':
|
'@certd/pipeline':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/pipeline
|
version: link:../../core/pipeline
|
||||||
'@kubernetes/client-node':
|
'@kubernetes/client-node':
|
||||||
specifier: 0.21.0
|
specifier: 0.21.0
|
||||||
@@ -795,32 +798,32 @@ importers:
|
|||||||
packages/pro/commercial-core:
|
packages/pro/commercial-core:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/basic
|
version: link:../../core/basic
|
||||||
'@certd/lib-server':
|
'@certd/lib-server':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../libs/lib-server
|
version: link:../../libs/lib-server
|
||||||
'@certd/pipeline':
|
'@certd/pipeline':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/pipeline
|
version: link:../../core/pipeline
|
||||||
'@certd/plugin-plus':
|
'@certd/plugin-plus':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../plugin-plus
|
version: link:../plugin-plus
|
||||||
'@certd/plus-core':
|
'@certd/plus-core':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../plus-core
|
version: link:../plus-core
|
||||||
'@midwayjs/core':
|
'@midwayjs/core':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.11
|
||||||
version: 3.20.4
|
version: 3.20.11
|
||||||
'@midwayjs/koa':
|
'@midwayjs/koa':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.13
|
||||||
version: 3.20.5
|
version: 3.20.13
|
||||||
'@midwayjs/logger':
|
'@midwayjs/logger':
|
||||||
specifier: ~3.4.2
|
specifier: 3.4.2
|
||||||
version: 3.4.2
|
version: 3.4.2
|
||||||
'@midwayjs/typeorm':
|
'@midwayjs/typeorm':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.11
|
||||||
version: 3.20.4
|
version: 3.20.11
|
||||||
alipay-sdk:
|
alipay-sdk:
|
||||||
specifier: ^4.13.0
|
specifier: ^4.13.0
|
||||||
version: 4.14.0
|
version: 4.14.0
|
||||||
@@ -892,19 +895,19 @@ importers:
|
|||||||
specifier: ^1.0.2
|
specifier: ^1.0.2
|
||||||
version: 1.0.3
|
version: 1.0.3
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/basic
|
version: link:../../core/basic
|
||||||
'@certd/lib-k8s':
|
'@certd/lib-k8s':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../libs/lib-k8s
|
version: link:../../libs/lib-k8s
|
||||||
'@certd/pipeline':
|
'@certd/pipeline':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/pipeline
|
version: link:../../core/pipeline
|
||||||
'@certd/plugin-cert':
|
'@certd/plugin-cert':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../plugins/plugin-cert
|
version: link:../../plugins/plugin-cert
|
||||||
'@certd/plus-core':
|
'@certd/plus-core':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../plus-core
|
version: link:../plus-core
|
||||||
ali-oss:
|
ali-oss:
|
||||||
specifier: ^6.21.0
|
specifier: ^6.21.0
|
||||||
@@ -1007,7 +1010,7 @@ importers:
|
|||||||
packages/pro/plus-core:
|
packages/pro/plus-core:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/basic
|
version: link:../../core/basic
|
||||||
dayjs:
|
dayjs:
|
||||||
specifier: ^1.11.7
|
specifier: ^1.11.7
|
||||||
@@ -1303,10 +1306,10 @@ importers:
|
|||||||
version: 0.1.3(zod@3.24.4)
|
version: 0.1.3(zod@3.24.4)
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@certd/lib-iframe':
|
'@certd/lib-iframe':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../libs/lib-iframe
|
version: link:../../libs/lib-iframe
|
||||||
'@certd/pipeline':
|
'@certd/pipeline':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/pipeline
|
version: link:../../core/pipeline
|
||||||
'@rollup/plugin-commonjs':
|
'@rollup/plugin-commonjs':
|
||||||
specifier: ^25.0.7
|
specifier: ^25.0.7
|
||||||
@@ -1489,46 +1492,46 @@ importers:
|
|||||||
specifier: ^3.705.0
|
specifier: ^3.705.0
|
||||||
version: 3.810.0(aws-crt@1.26.2)
|
version: 3.810.0(aws-crt@1.26.2)
|
||||||
'@certd/acme-client':
|
'@certd/acme-client':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/acme-client
|
version: link:../../core/acme-client
|
||||||
'@certd/basic':
|
'@certd/basic':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/basic
|
version: link:../../core/basic
|
||||||
'@certd/commercial-core':
|
'@certd/commercial-core':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../pro/commercial-core
|
version: link:../../pro/commercial-core
|
||||||
'@certd/cv4pve-api-javascript':
|
'@certd/cv4pve-api-javascript':
|
||||||
specifier: ^8.4.2
|
specifier: ^8.4.2
|
||||||
version: 8.4.2
|
version: 8.4.2
|
||||||
'@certd/jdcloud':
|
'@certd/jdcloud':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../libs/lib-jdcloud
|
version: link:../../libs/lib-jdcloud
|
||||||
'@certd/lib-huawei':
|
'@certd/lib-huawei':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../libs/lib-huawei
|
version: link:../../libs/lib-huawei
|
||||||
'@certd/lib-k8s':
|
'@certd/lib-k8s':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../libs/lib-k8s
|
version: link:../../libs/lib-k8s
|
||||||
'@certd/lib-server':
|
'@certd/lib-server':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../libs/lib-server
|
version: link:../../libs/lib-server
|
||||||
'@certd/midway-flyway-js':
|
'@certd/midway-flyway-js':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../libs/midway-flyway-js
|
version: link:../../libs/midway-flyway-js
|
||||||
'@certd/pipeline':
|
'@certd/pipeline':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../core/pipeline
|
version: link:../../core/pipeline
|
||||||
'@certd/plugin-cert':
|
'@certd/plugin-cert':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../plugins/plugin-cert
|
version: link:../../plugins/plugin-cert
|
||||||
'@certd/plugin-lib':
|
'@certd/plugin-lib':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../plugins/plugin-lib
|
version: link:../../plugins/plugin-lib
|
||||||
'@certd/plugin-plus':
|
'@certd/plugin-plus':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../pro/plugin-plus
|
version: link:../../pro/plugin-plus
|
||||||
'@certd/plus-core':
|
'@certd/plus-core':
|
||||||
specifier: ^1.36.22
|
specifier: ^1.36.24
|
||||||
version: link:../../pro/plus-core
|
version: link:../../pro/plus-core
|
||||||
'@huaweicloud/huaweicloud-sdk-cdn':
|
'@huaweicloud/huaweicloud-sdk-cdn':
|
||||||
specifier: ^3.1.120
|
specifier: ^3.1.120
|
||||||
@@ -1540,38 +1543,38 @@ importers:
|
|||||||
specifier: ^5.0.0
|
specifier: ^5.0.0
|
||||||
version: 5.0.0
|
version: 5.0.0
|
||||||
'@midwayjs/bootstrap':
|
'@midwayjs/bootstrap':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.11
|
||||||
version: 3.20.4
|
version: 3.20.11
|
||||||
'@midwayjs/cache':
|
'@midwayjs/cache':
|
||||||
specifier: ~3.14.0
|
specifier: 3.14.0
|
||||||
version: 3.14.0
|
version: 3.14.0
|
||||||
'@midwayjs/core':
|
'@midwayjs/core':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.11
|
||||||
version: 3.20.4
|
version: 3.20.11
|
||||||
'@midwayjs/i18n':
|
'@midwayjs/i18n':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.13
|
||||||
version: 3.20.5
|
version: 3.20.13
|
||||||
'@midwayjs/info':
|
'@midwayjs/info':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.13
|
||||||
version: 3.20.5
|
version: 3.20.13
|
||||||
'@midwayjs/koa':
|
'@midwayjs/koa':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.13
|
||||||
version: 3.20.5
|
version: 3.20.13
|
||||||
'@midwayjs/logger':
|
'@midwayjs/logger':
|
||||||
specifier: ~3.4.2
|
specifier: 3.4.2
|
||||||
version: 3.4.2
|
version: 3.4.2
|
||||||
'@midwayjs/static-file':
|
'@midwayjs/static-file':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.13
|
||||||
version: 3.20.5
|
version: 3.20.13
|
||||||
'@midwayjs/typeorm':
|
'@midwayjs/typeorm':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.11
|
||||||
version: 3.20.4
|
version: 3.20.11
|
||||||
'@midwayjs/upload':
|
'@midwayjs/upload':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.13
|
||||||
version: 3.20.5
|
version: 3.20.13
|
||||||
'@midwayjs/validate':
|
'@midwayjs/validate':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.13
|
||||||
version: 3.20.5
|
version: 3.20.13
|
||||||
'@volcengine/openapi':
|
'@volcengine/openapi':
|
||||||
specifier: ^1.28.1
|
specifier: ^1.28.1
|
||||||
version: 1.30.1(buffer@6.0.3)
|
version: 1.30.1(buffer@6.0.3)
|
||||||
@@ -1724,8 +1727,8 @@ importers:
|
|||||||
version: 10.0.0
|
version: 10.0.0
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@midwayjs/mock':
|
'@midwayjs/mock':
|
||||||
specifier: ~3.20.3
|
specifier: 3.20.11
|
||||||
version: 3.20.4
|
version: 3.20.11
|
||||||
'@types/ali-oss':
|
'@types/ali-oss':
|
||||||
specifier: ^6.16.11
|
specifier: ^6.16.11
|
||||||
version: 6.16.11
|
version: 6.16.11
|
||||||
@@ -3727,12 +3730,12 @@ packages:
|
|||||||
resolution: {integrity: sha512-3lBouSuF7CqlseLB+FKES0K4FQ02JrbEoRtJhxnsyB1s5v4AP03gsoohN8jp7DcOImhaR9scYdztq3/sLfk/qQ==}
|
resolution: {integrity: sha512-3lBouSuF7CqlseLB+FKES0K4FQ02JrbEoRtJhxnsyB1s5v4AP03gsoohN8jp7DcOImhaR9scYdztq3/sLfk/qQ==}
|
||||||
engines: {node: '>=14.18.0'}
|
engines: {node: '>=14.18.0'}
|
||||||
|
|
||||||
'@midwayjs/async-hooks-context-manager@3.20.4':
|
'@midwayjs/async-hooks-context-manager@3.20.11':
|
||||||
resolution: {integrity: sha512-t1Jq+Ykjgk6kDHckMAS5XhQ0wp70hN9tkeXLMqIDQxu1cuNTZnZ8j16cFTXuQRcIB0cprCf3fHrsVlHEAYJVEg==}
|
resolution: {integrity: sha512-pRsHit3tzhl1jSLuvTmjRteqt+bJ6Vj7QQaGrF4mi1hrO7FrNJ/lAIZ8DHa7ndpXEwOt9BQR1xtLYdWGSpbQYw==}
|
||||||
engines: {node: '>=12.17.0'}
|
engines: {node: '>=12.17.0'}
|
||||||
|
|
||||||
'@midwayjs/bootstrap@3.20.4':
|
'@midwayjs/bootstrap@3.20.11':
|
||||||
resolution: {integrity: sha512-3puwSUrIhzBB0Lig5oNcc8rZVSLY+JpoikBHgyv3jpergdLKD1BCU1IREOT6f53mgMQk6Uo9rem9KSNZeb8vVg==}
|
resolution: {integrity: sha512-XU4ltfo6b59lowkuO45j/IQ/ySze9Wvf4DIhd85yjZ02TMsHKkYYO7wEWERpXYvUPcTkfchQ23T7V1IIBWlpRA==}
|
||||||
engines: {node: '>=12.11.0'}
|
engines: {node: '>=12.11.0'}
|
||||||
|
|
||||||
'@midwayjs/cache@3.14.0':
|
'@midwayjs/cache@3.14.0':
|
||||||
@@ -3743,8 +3746,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-jcgGZq2+Ty6qkZ5rQF+ViIn6ntV6n/JuvZ/OmgDsAkS+/SyNc3UuNPlUHzzGrrVWgtJq2w8MzjXbl7a3paIVdw==}
|
resolution: {integrity: sha512-jcgGZq2+Ty6qkZ5rQF+ViIn6ntV6n/JuvZ/OmgDsAkS+/SyNc3UuNPlUHzzGrrVWgtJq2w8MzjXbl7a3paIVdw==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
|
|
||||||
'@midwayjs/core@3.20.4':
|
'@midwayjs/core@3.20.11':
|
||||||
resolution: {integrity: sha512-ePwj5XFAzhJXErKh2TnkGi1B+QsIJdoQpef3i/c4NEeW5bjXfDTaQO02lxq/Ln6h6hVHi9lPN3Qh4sS1ufqJPA==}
|
resolution: {integrity: sha512-BF0g2FWDG9ENzWvsWldUq6ABBAupQdpEAkgCRlwceCMUMlyKVCGA+vl9zRYUGcxb0v0fWhyfiACernx7ozeL4Q==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
'@midwayjs/event-bus@1.11.1':
|
'@midwayjs/event-bus@1.11.1':
|
||||||
@@ -3754,45 +3757,45 @@ packages:
|
|||||||
'@midwayjs/glob@1.1.1':
|
'@midwayjs/glob@1.1.1':
|
||||||
resolution: {integrity: sha512-xoNU+JdCxE214KQrB0qgs88+Da7KYVICeuTL9VeKwaxZXj6a/PbpmEaH4+5BHLvZRRe78tHGR19+nKZrmMHBJg==}
|
resolution: {integrity: sha512-xoNU+JdCxE214KQrB0qgs88+Da7KYVICeuTL9VeKwaxZXj6a/PbpmEaH4+5BHLvZRRe78tHGR19+nKZrmMHBJg==}
|
||||||
|
|
||||||
'@midwayjs/i18n@3.20.5':
|
'@midwayjs/i18n@3.20.13':
|
||||||
resolution: {integrity: sha512-b1AdEedNvWLJ4Y6SCDMuyidzkPTpEBZelHvZDWWn3nTEyNeQ/E2mDiSGmP8lWibJmy+ByIxmqU+PGIbZQ6DXLA==}
|
resolution: {integrity: sha512-zyQTmoMNL56wMfe7nbgnoAsojkDxXn5EXCEnYZ6ePOzOI0h2qinkLMsjCokjju6X9v6udnFOOX17TM/vtQPynw==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
'@midwayjs/info@3.20.5':
|
'@midwayjs/info@3.20.13':
|
||||||
resolution: {integrity: sha512-ioXVmnD+7wx8qOSarWQFy4xacKAgWrUbikq89GUUNbTqfhkWch62gXAmSfcP4XsQQKJoqsuwUsKEciWEul5buQ==}
|
resolution: {integrity: sha512-d9QFtx1u3He9cjLSYygR2DhP035mzqoFvJDwmLspB5lKlNhtAKG5M+c7wlsKFPnRBXpvrbPhsxMS5roz53HJKA==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
'@midwayjs/koa@3.20.5':
|
'@midwayjs/koa@3.20.13':
|
||||||
resolution: {integrity: sha512-E5QboNjRuaGtIxPiDbxjE7o5bSVfBgNnCSRCV94qMw3a8y9FACYi/RI58J3WY0qxvnO8sLEZx9ukvV1gY0PfKQ==}
|
resolution: {integrity: sha512-Y5T6M+XhBm5k9ZeZ8b93TgqWnRuaxHRgHQhDWEgXBdKbr7SFoGWaOIAzZ328/yIXBYQjLIxZ0zOSGoXVGCUDNA==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
'@midwayjs/logger@3.4.2':
|
'@midwayjs/logger@3.4.2':
|
||||||
resolution: {integrity: sha512-BxSdSMog4jxeqpHwgauuKZT6iAiu/Vr1HDjO9l81iqU+l8c9veAJVeLT08nTqKdjUiQXnxTaW6nYlvnzF2HdMA==}
|
resolution: {integrity: sha512-BxSdSMog4jxeqpHwgauuKZT6iAiu/Vr1HDjO9l81iqU+l8c9veAJVeLT08nTqKdjUiQXnxTaW6nYlvnzF2HdMA==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
|
|
||||||
'@midwayjs/mock@3.20.4':
|
'@midwayjs/mock@3.20.11':
|
||||||
resolution: {integrity: sha512-rjPROfRvbsw+fTOmmKzmkMU6uLSZyFXM5Za2uZ9ud4AS81z+cvf5Q5RmF4ANdu60xkxZ22qUv1LUW2ELhoVKZA==}
|
resolution: {integrity: sha512-n/yhIjsWMYoThBiQjRJ8uzLh94FfUXy+8Otjy3ZAXl4yoEECKQ22PeThBXJkiITkleIHMU8bOFLjR2bom1oGmA==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
'@midwayjs/session@3.20.5':
|
'@midwayjs/session@3.20.11':
|
||||||
resolution: {integrity: sha512-Eu3VaerT009wAmNCQTMaR3cdDC4PgHLOxKl5+V3Sml0U6P4X7BKOnwJaEPMoWs1PLbKx0MIhrL33LQX2fVInUQ==}
|
resolution: {integrity: sha512-zGuzyGgWVtNEn7TMMUzevQJynFy0WXiZBjLJirbJ6gJcD2c7kog38Ud0FzZUWGckVdT6mpJgg20+SaK+ciVmbQ==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
'@midwayjs/static-file@3.20.5':
|
'@midwayjs/static-file@3.20.13':
|
||||||
resolution: {integrity: sha512-EjEmqi1Qw3ob0J+UkMdd8T2zrnHTI3bgGTr+ZmXpRcRSGbJMgYU2T50PSCMFS6C8W07iz6cHO2jt4/Hiq9p2OQ==}
|
resolution: {integrity: sha512-aX67LvpIPYVWpuhuWSATgTBNvaNbvOFk7wbh0BTS0XRaO6vVieNe0mJoBXFkf89w1qExAHgIPHZDPIoEOHEBiQ==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
'@midwayjs/typeorm@3.20.4':
|
'@midwayjs/typeorm@3.20.11':
|
||||||
resolution: {integrity: sha512-sf+inpoHGZIWbhUYR7O0ItqUyW4e2eKyxdpxnA86U0jtaHP7JszAg71rVQ8u/BthEzgI4FtQEUShRUOR7DB4FQ==}
|
resolution: {integrity: sha512-QMCUwLhQStK1RuF+7hbpHoPOGT5DxIt4YalJNC8KtnaBMsIBVf4W+7dHbk9WpsBBx/GCraKfTYIoPA2wJWVj5g==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
'@midwayjs/upload@3.20.5':
|
'@midwayjs/upload@3.20.13':
|
||||||
resolution: {integrity: sha512-FZIzZcz9MDpDCWLV2A786YUn3MwOr7vs84KOFX8lyPR6wd9ObrBZNAjGNueJZVcNZTLig4akXAdliwfDhSIGPA==}
|
resolution: {integrity: sha512-oq2GoKnTAnGM+6GyYWFG4N+CR1bSikU98125tFh2LCYlh3Nl6DymDWefOcz9S4zFaray8rmU3WK9Hum4Ub2vLw==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
'@midwayjs/validate@3.20.5':
|
'@midwayjs/validate@3.20.13':
|
||||||
resolution: {integrity: sha512-x43MIlZyV5cj15/xdK4EjnvYb2k3DipB1E5Ks9G3f/GmmrNZLomjzaEl1rFOyzCn5S+r7MMu/9oxWz7FfBVNLA==}
|
resolution: {integrity: sha512-iaumyVf1vdrxhPU1hqVX0Cx4sXYJWP61TzK/DHSAdq5yej9jRGStVyPjXodD3g2iOhY3EW3TInOT2s5RMKxWYw==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
'@noble/hashes@1.8.0':
|
'@noble/hashes@1.8.0':
|
||||||
@@ -9203,8 +9206,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-abVWOHY6z6qSTvNtapWMAnvHS9SUiUCaQQQubClSAT9ybQPsZ6ioKcRarnownS4fMD0sXQgQ5ey8CYEuwoa1Yg==}
|
resolution: {integrity: sha512-abVWOHY6z6qSTvNtapWMAnvHS9SUiUCaQQQubClSAT9ybQPsZ6ioKcRarnownS4fMD0sXQgQ5ey8CYEuwoa1Yg==}
|
||||||
engines: {node: '>= 7.6.0'}
|
engines: {node: '>= 7.6.0'}
|
||||||
|
|
||||||
koa@2.16.1:
|
koa@2.16.2:
|
||||||
resolution: {integrity: sha512-umfX9d3iuSxTQP4pnzLOz0HKnPg0FaUUIKcye2lOiz3KPu1Y3M3xlz76dISdFPQs37P9eJz1wUpcTS6KDPn9fA==}
|
resolution: {integrity: sha512-+CCssgnrWKx9aI3OeZwroa/ckG4JICxvIFnSiOUyl2Uv+UTI+xIw0FfFrWS7cQFpoePpr9o8csss7KzsTzNL8Q==}
|
||||||
engines: {node: ^4.8.4 || ^6.10.1 || ^7.10.1 || >= 8.1.4}
|
engines: {node: ^4.8.4 || ^6.10.1 || ^7.10.1 || >= 8.1.4}
|
||||||
|
|
||||||
kolorist@1.8.0:
|
kolorist@1.8.0:
|
||||||
@@ -16582,11 +16585,11 @@ snapshots:
|
|||||||
jju: 1.4.0
|
jju: 1.4.0
|
||||||
js-yaml: 4.1.0
|
js-yaml: 4.1.0
|
||||||
|
|
||||||
'@midwayjs/async-hooks-context-manager@3.20.4': {}
|
'@midwayjs/async-hooks-context-manager@3.20.11': {}
|
||||||
|
|
||||||
'@midwayjs/bootstrap@3.20.4':
|
'@midwayjs/bootstrap@3.20.11':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@midwayjs/async-hooks-context-manager': 3.20.4
|
'@midwayjs/async-hooks-context-manager': 3.20.11
|
||||||
'@midwayjs/event-bus': 1.11.1
|
'@midwayjs/event-bus': 1.11.1
|
||||||
|
|
||||||
'@midwayjs/cache@3.14.0':
|
'@midwayjs/cache@3.14.0':
|
||||||
@@ -16598,7 +16601,7 @@ snapshots:
|
|||||||
scmp: 2.1.0
|
scmp: 2.1.0
|
||||||
should-send-same-site-none: 2.0.5
|
should-send-same-site-none: 2.0.5
|
||||||
|
|
||||||
'@midwayjs/core@3.20.4':
|
'@midwayjs/core@3.20.11':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@midwayjs/glob': 1.1.1
|
'@midwayjs/glob': 1.1.1
|
||||||
class-transformer: 0.5.1
|
class-transformer: 0.5.1
|
||||||
@@ -16611,23 +16614,23 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
picomatch: 2.3.1
|
picomatch: 2.3.1
|
||||||
|
|
||||||
'@midwayjs/i18n@3.20.5':
|
'@midwayjs/i18n@3.20.13':
|
||||||
dependencies:
|
dependencies:
|
||||||
picomatch: 2.3.1
|
picomatch: 2.3.1
|
||||||
|
|
||||||
'@midwayjs/info@3.20.5':
|
'@midwayjs/info@3.20.13':
|
||||||
dependencies:
|
dependencies:
|
||||||
picomatch: 2.3.1
|
picomatch: 2.3.1
|
||||||
|
|
||||||
'@midwayjs/koa@3.20.5':
|
'@midwayjs/koa@3.20.13':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@koa/router': 12.0.2
|
'@koa/router': 12.0.2
|
||||||
'@midwayjs/cookies': 1.3.0
|
'@midwayjs/cookies': 1.3.0
|
||||||
'@midwayjs/core': 3.20.4
|
'@midwayjs/core': 3.20.11
|
||||||
'@midwayjs/session': 3.20.5
|
'@midwayjs/session': 3.20.11
|
||||||
'@types/koa': 2.15.0
|
'@types/koa': 2.15.0
|
||||||
'@types/qs': 6.9.18
|
'@types/qs': 6.9.18
|
||||||
koa: 2.16.1
|
koa: 2.16.2
|
||||||
koa-bodyparser: 4.4.1
|
koa-bodyparser: 4.4.1
|
||||||
qs: 6.14.0
|
qs: 6.14.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
@@ -16638,9 +16641,9 @@ snapshots:
|
|||||||
dayjs: 1.11.13
|
dayjs: 1.11.13
|
||||||
safe-stable-stringify: 2.5.0
|
safe-stable-stringify: 2.5.0
|
||||||
|
|
||||||
'@midwayjs/mock@3.20.4':
|
'@midwayjs/mock@3.20.11':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@midwayjs/async-hooks-context-manager': 3.20.4
|
'@midwayjs/async-hooks-context-manager': 3.20.11
|
||||||
'@types/superagent': 4.1.14
|
'@types/superagent': 4.1.14
|
||||||
'@types/supertest': 2.0.16
|
'@types/supertest': 2.0.16
|
||||||
js-yaml: 4.1.0
|
js-yaml: 4.1.0
|
||||||
@@ -16649,11 +16652,11 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@midwayjs/session@3.20.5':
|
'@midwayjs/session@3.20.11':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@midwayjs/cookies': 1.3.0
|
'@midwayjs/cookies': 1.3.0
|
||||||
|
|
||||||
'@midwayjs/static-file@3.20.5':
|
'@midwayjs/static-file@3.20.13':
|
||||||
dependencies:
|
dependencies:
|
||||||
koa-range: 0.3.0
|
koa-range: 0.3.0
|
||||||
koa-static-cache: 5.1.4
|
koa-static-cache: 5.1.4
|
||||||
@@ -16661,16 +16664,16 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@midwayjs/typeorm@3.20.4': {}
|
'@midwayjs/typeorm@3.20.11': {}
|
||||||
|
|
||||||
'@midwayjs/upload@3.20.5':
|
'@midwayjs/upload@3.20.13':
|
||||||
dependencies:
|
dependencies:
|
||||||
file-type: 16.5.4
|
file-type: 16.5.4
|
||||||
raw-body: 2.5.2
|
raw-body: 2.5.2
|
||||||
|
|
||||||
'@midwayjs/validate@3.20.5':
|
'@midwayjs/validate@3.20.13':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@midwayjs/i18n': 3.20.5
|
'@midwayjs/i18n': 3.20.13
|
||||||
joi: 17.13.3
|
joi: 17.13.3
|
||||||
|
|
||||||
'@noble/hashes@1.8.0': {}
|
'@noble/hashes@1.8.0': {}
|
||||||
@@ -18157,7 +18160,7 @@ snapshots:
|
|||||||
'@types/superagent@4.1.14':
|
'@types/superagent@4.1.14':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/cookiejar': 2.1.5
|
'@types/cookiejar': 2.1.5
|
||||||
'@types/node': 18.19.100
|
'@types/node': 20.17.47
|
||||||
|
|
||||||
'@types/supertest@2.0.16':
|
'@types/supertest@2.0.16':
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -23531,7 +23534,7 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
koa@2.16.1:
|
koa@2.16.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
accepts: 1.3.8
|
accepts: 1.3.8
|
||||||
cache-content-type: 1.0.1
|
cache-content-type: 1.0.1
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import childProcess from 'child_process';
|
import childProcess from 'child_process';
|
||||||
|
import { join } from "path";
|
||||||
function check(){
|
function check(){
|
||||||
const gitAdd = fs.readFileSync("./node_modules/@lerna-lite/version/dist/lib/git-add.js","utf-8")
|
const gitAdd = fs.readFileSync("./node_modules/@lerna-lite/version/dist/lib/git-add.js","utf-8")
|
||||||
if(gitAdd.indexOf("('git', ['add', '.']") > -1){
|
if(gitAdd.indexOf("('git', ['add', '.']") > -1){
|
||||||
@@ -19,4 +20,73 @@ function check(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checkDist(){
|
||||||
|
|
||||||
|
function scanDir(root,excludes,stopDirName = "src"){
|
||||||
|
//扫描文件,忽略node_modules
|
||||||
|
const files = fs.readdirSync(root)
|
||||||
|
const dirs = []
|
||||||
|
for (const file of files) {
|
||||||
|
if (excludes.includes(file)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
const filePath = join(root, file);
|
||||||
|
|
||||||
|
if (!fs.statSync(filePath).isDirectory()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(file === stopDirName){
|
||||||
|
dirs.push(filePath)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
const res = scanDir(filePath,excludes,stopDirName)
|
||||||
|
for (const item of res){
|
||||||
|
dirs.push(item)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return dirs
|
||||||
|
}
|
||||||
|
|
||||||
|
const srcDirs = scanDir("./packages",["node_modules",".git","dist","certd-client"],"src")
|
||||||
|
|
||||||
|
console.log("检查dist",srcDirs)
|
||||||
|
|
||||||
|
//检查包含 import xxx from "*/dist/*"
|
||||||
|
const hasDistFiles = []
|
||||||
|
for (const srcDir of srcDirs) {
|
||||||
|
const files = fs.readdirSync(srcDir,{recursive:true})
|
||||||
|
for (const file of files) {
|
||||||
|
|
||||||
|
const filePath = join(srcDir, file);
|
||||||
|
if(!file.endsWith(".ts")){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
const content = fs.readFileSync(filePath,"utf-8")
|
||||||
|
const lines = content.split("\n")
|
||||||
|
for (const line of lines) {
|
||||||
|
if( line.indexOf("@certd")>-1 && line.indexOf("dist") > -1){
|
||||||
|
hasDistFiles.push({
|
||||||
|
filepath:filePath,
|
||||||
|
line: line
|
||||||
|
})
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(hasDistFiles.length > 0){
|
||||||
|
console.error("dist文件被引用")
|
||||||
|
console.error(hasDistFiles)
|
||||||
|
throw new Error("dist文件被引用")
|
||||||
|
} else {
|
||||||
|
console.log("dist检查通过 √")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
checkDist()
|
||||||
check()
|
check()
|
||||||
|
|||||||
1
trigger/build.trigger
Normal file
1
trigger/build.trigger
Normal file
@@ -0,0 +1 @@
|
|||||||
|
09:41
|
||||||
1
trigger/release.trigger
Normal file
1
trigger/release.trigger
Normal file
@@ -0,0 +1 @@
|
|||||||
|
01:50
|
||||||
Reference in New Issue
Block a user