mirror of
https://github.com/certd/certd.git
synced 2026-05-15 20:47:31 +08:00
refactor: pipeline edit view
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import { AbstractRegistrable } from "../registry";
|
||||
|
||||
export abstract class AbstractAccess extends AbstractRegistrable {}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { AbstractAccess } from "./abstract-access";
|
||||
|
||||
export interface IAccessService {
|
||||
getById(id: any): AbstractAccess;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import { Registrable } from "../registry";
|
||||
import { FormItemProps } from "@fast-crud/fast-crud";
|
||||
|
||||
export type AccessDefine = Registrable & {
|
||||
input: {
|
||||
[key: string]: FormItemProps;
|
||||
};
|
||||
};
|
||||
export function IsAccess(define: AccessDefine) {
|
||||
return function (target: any) {
|
||||
target.define = define;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { IsAccess } from "../api";
|
||||
import { AbstractAccess } from "../abstract-access";
|
||||
|
||||
@IsAccess({
|
||||
name: "aliyun",
|
||||
title: "阿里云授权",
|
||||
desc: "",
|
||||
input: {
|
||||
accessKeyId: {
|
||||
component: {
|
||||
placeholder: "accessKeyId",
|
||||
},
|
||||
//required: true,
|
||||
//rules: [{ required: true, message: "必填项" }],
|
||||
},
|
||||
},
|
||||
})
|
||||
export class AliyunAccess extends AbstractAccess {
|
||||
accessKeyId = "";
|
||||
accessKeySecret = "";
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export * from "./aliyun-access";
|
||||
@@ -0,0 +1,3 @@
|
||||
export * from "./api";
|
||||
export * from "./impl";
|
||||
export * from "./abstract-access";
|
||||
Reference in New Issue
Block a user