feat(ui): new WorkflowList UI using antd

This commit is contained in:
Fu Diwei
2024-12-04 21:55:52 +08:00
parent 668f6ee36f
commit c522196029
28 changed files with 838 additions and 342 deletions

View File

@@ -1,7 +1,7 @@
import { getPb } from "@/repository/api";
import { getPocketBase } from "@/repository/pocketbase";
export const notifyTest = async (channel: string) => {
const pb = getPb();
const pb = getPocketBase();
const resp = await pb.send("/api/notify/test", {
method: "POST",

View File

@@ -1,7 +1,7 @@
import { getPb } from "@/repository/api";
import { getPocketBase } from "@/repository/pocketbase";
export const get = async () => {
const pb = getPb();
const pb = getPocketBase();
const resp = await pb.send("/api/statistics/get", {
method: "GET",

View File

@@ -1,7 +1,7 @@
import { getPb } from "@/repository/api";
import { getPocketBase } from "@/repository/pocketbase";
export const run = async (id: string) => {
const pb = getPb();
const pb = getPocketBase();
const resp = await pb.send("/api/workflow/run", {
method: "POST",