mirror of https://github.com/certd/certd
perf: 优化一些小细节
parent
2fd14430a2
commit
b1688525db
|
@ -17,7 +17,7 @@
|
||||||
"prepublishOnly1": "npm run check && npm run before-build && lerna run build ",
|
"prepublishOnly1": "npm run check && npm run before-build && lerna run build ",
|
||||||
"before-build": "cd ./packages/core/acme-client && time /t >build.md && git add ./build.md && git commit -m \"build: prepare to build\"",
|
"before-build": "cd ./packages/core/acme-client && time /t >build.md && git add ./build.md && git commit -m \"build: prepare to build\"",
|
||||||
"deploy1": "node --experimental-json-modules deploy.js ",
|
"deploy1": "node --experimental-json-modules deploy.js ",
|
||||||
"check": "node --experimental-json-modules publish-check.js"
|
"check": "node --experimental-json-modules publish-check.js",
|
||||||
"init": "lerna run build"
|
"init": "lerna run build"
|
||||||
},
|
},
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
|
|
|
@ -48,20 +48,40 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
vertical-align: 0 !important;
|
vertical-align: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flex-o{
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
.flex{
|
.flex{
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flex-1{
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.ml-5{
|
.ml-5{
|
||||||
margin-left:5px;
|
margin-left:5px;
|
||||||
}
|
}
|
||||||
|
.ml-20{
|
||||||
|
margin-left:20px;
|
||||||
|
}
|
||||||
|
.ml-15{
|
||||||
|
margin-left:15px;
|
||||||
|
}
|
||||||
|
|
||||||
.mr-5{
|
.mr-5{
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
.mr-20{
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
.mr-15{
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
.mt-10{
|
.mt-10{
|
||||||
margin-top:10px;
|
margin-top:10px;
|
||||||
}
|
}
|
||||||
|
@ -77,4 +97,14 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
}
|
}
|
||||||
.p-10{
|
.p-10{
|
||||||
padding:10px;
|
padding:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ellipsis {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.w-100{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
|
@ -64,9 +64,12 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
rowHandle: {
|
rowHandle: {
|
||||||
width: "180px"
|
width: "130px"
|
||||||
},
|
},
|
||||||
table: {
|
table: {
|
||||||
|
scroll: {
|
||||||
|
x: 800
|
||||||
|
},
|
||||||
rowSelection: {
|
rowSelection: {
|
||||||
type: "radio",
|
type: "radio",
|
||||||
selectedRowKeys: selectedRowKey,
|
selectedRowKeys: selectedRowKey,
|
||||||
|
@ -100,6 +103,9 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||||
type: ["text"],
|
type: ["text"],
|
||||||
form: {
|
form: {
|
||||||
rules: [{ required: true, message: "请填写名称" }]
|
rules: [{ required: true, message: "请填写名称" }]
|
||||||
|
},
|
||||||
|
column: {
|
||||||
|
width: 200
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
...commonColumnsDefine
|
...commonColumnsDefine
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<span v-else class="mlr-5 gray">请选择</span>
|
<span v-else class="mlr-5 gray">请选择</span>
|
||||||
<a-button class="ml-5" @click="chooseForm.open">选择</a-button>
|
<a-button class="ml-5" @click="chooseForm.open">选择</a-button>
|
||||||
<a-form-item-rest v-if="chooseForm.show">
|
<a-form-item-rest v-if="chooseForm.show">
|
||||||
<a-modal v-model:open="chooseForm.show" title="选择授权提供者" width="700px" @ok="chooseForm.ok">
|
<a-modal v-model:open="chooseForm.show" title="选择授权提供者" width="900px" @ok="chooseForm.ok">
|
||||||
<div style="height: 400px; position: relative">
|
<div style="height: 400px; position: relative">
|
||||||
<cert-access-modal v-model="selectedId" :type="type"></cert-access-modal>
|
<cert-access-modal v-model="selectedId" :type="type"></cert-access-modal>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -45,6 +45,9 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any) {
|
||||||
search: {
|
search: {
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
|
column: {
|
||||||
|
width: 120
|
||||||
|
},
|
||||||
form: {
|
form: {
|
||||||
component: {
|
component: {
|
||||||
disabled: false
|
disabled: false
|
||||||
|
|
|
@ -136,6 +136,7 @@ export default function ({ crudExpose, context: { certdFormRef } }: CreateCrudOp
|
||||||
const files = await api.GetFiles(row.id);
|
const files = await api.GetFiles(row.id);
|
||||||
Modal.success({
|
Modal.success({
|
||||||
title: "文件下载",
|
title: "文件下载",
|
||||||
|
okText: "↑↑↑ 点击链接下载",
|
||||||
content: () => {
|
content: () => {
|
||||||
const children = [];
|
const children = [];
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
vModel: 'value',
|
vModel: 'value',
|
||||||
options: [
|
options: [
|
||||||
{ value: 0, label: '正常运行(证书申请任务请选择它)' },
|
{ value: 0, label: '正常运行(证书申请任务请选择它)' },
|
||||||
{ value: 1, label: '成功后跳过(其他任务请选择它)' }
|
{ value: 1, label: '成功后跳过(非证书任务请选择它)' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
helper: '该任务运行成功一次之后下次运行是否跳过,保持默认即可',
|
helper: '该任务运行成功一次之后下次运行是否跳过,保持默认即可',
|
||||||
|
|
|
@ -82,8 +82,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="task">
|
<div class="task">
|
||||||
<a-button shape="round" @click="taskEdit(stage, index, task, taskIndex)">
|
<a-button shape="round" @click="taskEdit(stage, index, task, taskIndex)">
|
||||||
{{ task.title }}
|
<span class="flex-o w-100">
|
||||||
<pi-status-show :status="task.status?.result"></pi-status-show>
|
<span class="ellipsis flex-1" :class="{ 'mr-15': editMode }">{{ task.title }}</span>
|
||||||
|
<pi-status-show :status="task.status?.result"></pi-status-show>
|
||||||
|
</span>
|
||||||
</a-button>
|
</a-button>
|
||||||
<fs-icon v-if="editMode" class="copy" title="复制" icon="ion:copy-outline" @click="taskCopy(stage, index, task)"></fs-icon>
|
<fs-icon v-if="editMode" class="copy" title="复制" icon="ion:copy-outline" @click="taskCopy(stage, index, task)"></fs-icon>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"compileOnSave": false,
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
// 这样就可以对 `this` 上的数据属性进行更严格的推断`
|
// 这样就可以对 `this` 上的数据属性进行更严格的推断`
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
|
@ -44,6 +45,7 @@
|
||||||
"tests/**/*.tsx"
|
"tests/**/*.tsx"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules"
|
"node_modules",
|
||||||
|
"vite.config.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
import {
|
import { AbstractTaskPlugin, IAccessService, ILogger, IsTaskPlugin, RunStrategy, TaskInput } from '@certd/pipeline';
|
||||||
AbstractTaskPlugin,
|
|
||||||
IAccessService,
|
|
||||||
ILogger,
|
|
||||||
IsTaskPlugin,
|
|
||||||
RunStrategy,
|
|
||||||
TaskInput,
|
|
||||||
} from '@certd/pipeline';
|
|
||||||
import { CertInfo, CertReader } from '@certd/plugin-cert';
|
import { CertInfo, CertReader } from '@certd/plugin-cert';
|
||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
|
@ -69,7 +62,7 @@ export class DemoTestPlugin extends AbstractTaskPlugin {
|
||||||
helper: 'demoAccess授权',
|
helper: 'demoAccess授权',
|
||||||
component: {
|
component: {
|
||||||
name: 'pi-access-selector',
|
name: 'pi-access-selector',
|
||||||
type: 'plugins',
|
type: 'demo', //固定授权类型
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '此项必填' }],
|
rules: [{ required: true, message: '此项必填' }],
|
||||||
})
|
})
|
||||||
|
|
|
@ -7,9 +7,17 @@
|
||||||
# 设置环境变量
|
# 设置环境变量
|
||||||
npm config set node_sqlite3_binary_host_mirror "https://registry.npmmirror.com/-/binary/sqlite3"
|
npm config set node_sqlite3_binary_host_mirror "https://registry.npmmirror.com/-/binary/sqlite3"
|
||||||
|
|
||||||
|
# 克隆代码
|
||||||
|
git clone https://github.com/certd/certd
|
||||||
|
|
||||||
|
#进入项目目录
|
||||||
cd certd
|
cd certd
|
||||||
|
|
||||||
# 安装依赖
|
# 安装依赖
|
||||||
pnpm install
|
pnpm install
|
||||||
|
|
||||||
|
# 初始化构建
|
||||||
|
lerna run build
|
||||||
```
|
```
|
||||||
|
|
||||||
启动 server:
|
启动 server:
|
||||||
|
|
Loading…
Reference in New Issue