mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-27 06:41:12 +00:00
feat(workflow): 重构工作流模块并移除配置表单功能
refactor(node): 移除节点模型中的config_schema字段 refactor(workflow): 简化工作流模型和CRUD操作 feat(composables): 重构并增强任务相关组合式函数 style(settings): 优化设置抽屉样式 fix(auth): 修复配置加载逻辑 chore: 清理无用文件和代码
This commit is contained in:
@@ -2,3 +2,9 @@
|
||||
// AI 相关
|
||||
export { useAiAction } from "./ai/useAiAction";
|
||||
export type { UseAiActionOptions, AiActionHandler } from "./ai/useAiAction";
|
||||
|
||||
// 任务相关
|
||||
export { useDebounce, useThrottle } from "./task/usePerformance";
|
||||
export { useNodeDrag } from "./task/useNodeDrag";
|
||||
export { useNodeOperations } from "./task/useNodeOperations";
|
||||
export { useWorkflowHistory } from "./task/useWorkflowHistory";
|
||||
|
||||
+8
-2
@@ -5,8 +5,10 @@ interface DragItem {
|
||||
data: {
|
||||
label: string;
|
||||
type: string;
|
||||
config: any;
|
||||
args?: string;
|
||||
kwargs?: string;
|
||||
nodeId?: number;
|
||||
category?: string;
|
||||
};
|
||||
type: string;
|
||||
position: { x: number; y: number };
|
||||
@@ -20,6 +22,8 @@ interface NodeItem {
|
||||
icon?: string;
|
||||
color?: string;
|
||||
class?: string;
|
||||
args?: string;
|
||||
kwargs?: string;
|
||||
}
|
||||
|
||||
interface Coordinate {
|
||||
@@ -52,8 +56,10 @@ export function useNodeDrag() {
|
||||
data: {
|
||||
label: item.name,
|
||||
type: item.type,
|
||||
config: {},
|
||||
args: item.args || "",
|
||||
kwargs: item.kwargs || "{}",
|
||||
nodeId: item.id,
|
||||
category: (item as any).category,
|
||||
},
|
||||
type: item.type,
|
||||
position: { x: 0, y: 0 },
|
||||
Reference in New Issue
Block a user