feat(ui): new AccessList UI using antd

This commit is contained in:
Fu Diwei
2024-12-06 09:54:44 +08:00
parent 65d9c6fe2f
commit b44b8d09b2
54 changed files with 429 additions and 528 deletions

View File

@@ -1,6 +1,6 @@
import moment from "moment";
import { Access } from "@/domain/access";
import { type Access } from "@/domain/access";
import { getPocketBase } from "./pocketbase";
export const list = async () => {

View File

@@ -1,6 +1,6 @@
import { type RecordListOptions } from "pocketbase";
import { Certificate } from "@/domain/certificate";
import { type Certificate } from "@/domain/certificate";
import { getTimeAfter } from "@/lib/time";
import { getPocketBase } from "./pocketbase";

View File

@@ -37,8 +37,8 @@ export const save = async (data: Record<string, string | boolean | WorkflowNode>
return await getPocketBase().collection("workflow").create<Workflow>(data);
};
export const remove = async (id: string) => {
return await getPocketBase().collection("workflow").delete(id);
export const remove = async (workflow: Workflow) => {
return await getPocketBase().collection("workflow").delete(workflow.id);
};
type WorkflowLogsReq = {