feat(workflow): 重构工作流模块并移除配置表单功能

refactor(node): 移除节点模型中的config_schema字段
refactor(workflow): 简化工作流模型和CRUD操作
feat(composables): 重构并增强任务相关组合式函数
style(settings): 优化设置抽屉样式
fix(auth): 修复配置加载逻辑
chore: 清理无用文件和代码
This commit is contained in:
zhangtao
2026-02-23 06:43:38 +08:00
parent d21242f4a7
commit 4e0eff3653
38 changed files with 2810 additions and 5107 deletions
+6
View File
@@ -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";
@@ -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 },