mirror of
https://github.com/certd/certd.git
synced 2026-05-15 04:27:31 +08:00
refactor: pipeline edit view
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { AbstractAccess } from "./abstract-access";
|
||||
|
||||
export interface IAccessService {
|
||||
getById(id: any): AbstractAccess;
|
||||
getById(id: any): Promise<AbstractAccess>;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Registrable } from "../registry";
|
||||
import { FormItemProps } from "@fast-crud/fast-crud";
|
||||
import { accessRegistry } from "./registry";
|
||||
|
||||
export type AccessDefine = Registrable & {
|
||||
input: {
|
||||
@@ -9,5 +10,6 @@ export type AccessDefine = Registrable & {
|
||||
export function IsAccess(define: AccessDefine) {
|
||||
return function (target: any) {
|
||||
target.prototype.define = define;
|
||||
accessRegistry.install(target);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import { Registry } from "../registry";
|
||||
import { AbstractAccess } from "./abstract-access";
|
||||
|
||||
// @ts-ignore
|
||||
export const accessRegistry = new Registry<typeof AbstractAccess>();
|
||||
Reference in New Issue
Block a user