refactor(ui): refactor accesses state using zustand store

This commit is contained in:
Fu Diwei
2024-12-11 19:55:50 +08:00
parent b744363736
commit bb3009a124
48 changed files with 359 additions and 404 deletions

View File

@@ -1,7 +1,8 @@
import { Workflow } from "./workflow";
import { type BaseModel } from "pocketbase";
export type Certificate = {
id: string;
import { WorkflowModel } from "./workflow";
export interface CertificateModel extends BaseModel {
san: string;
certificate: string;
privateKey: string;
@@ -12,10 +13,7 @@ export type Certificate = {
expireAt: string;
workflow: string;
nodeId: string;
created: string;
updated: string;
expand: {
workflow?: Workflow;
workflow?: WorkflowModel;
};
};
}