mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Fix: Optimized the timeline component and parser editing features #9869 - Introduced the TimelineNodeType type, restructured the timeline node structure, and supported dynamic node generation - Enhanced the FormatPreserveEditor component to support editing and line wrapping of JSON-formatted content - Added a rerun function and loading state to the parser and splitter components - Adjusted the timeline style and interaction logic to enhance the user experience - Improved the modal component and added a destroy method to support more flexible control - Optimized the chunk result display and operation logic, supporting batch deletion and selection ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
62
web/src/pages/dataflow-result/interface.ts
Normal file
62
web/src/pages/dataflow-result/interface.ts
Normal file
@ -0,0 +1,62 @@
|
||||
interface ComponentParams {
|
||||
debug_inputs: Record<string, any>;
|
||||
delay_after_error: number;
|
||||
description: string;
|
||||
exception_default_value: any;
|
||||
exception_goto: any;
|
||||
exception_method: any;
|
||||
inputs: Record<string, any>;
|
||||
max_retries: number;
|
||||
message_history_window_size: number;
|
||||
outputs: {
|
||||
_created_time: Record<string, any>;
|
||||
_elapsed_time: Record<string, any>;
|
||||
name: Record<string, any>;
|
||||
output_format: { type: string; value: string };
|
||||
json: { type: string; value: string };
|
||||
};
|
||||
persist_logs: boolean;
|
||||
timeout: number;
|
||||
}
|
||||
|
||||
interface ComponentObject {
|
||||
component_name: string;
|
||||
params: ComponentParams;
|
||||
}
|
||||
export interface IDslComponent {
|
||||
downstream: Array<string>;
|
||||
obj: ComponentObject;
|
||||
upstream: Array<string>;
|
||||
}
|
||||
export interface IPipelineFileLogDetail {
|
||||
avatar: string;
|
||||
create_date: string;
|
||||
create_time: number;
|
||||
document_id: string;
|
||||
document_name: string;
|
||||
document_suffix: string;
|
||||
document_type: string;
|
||||
dsl: {
|
||||
components: {
|
||||
[key: string]: IDslComponent;
|
||||
};
|
||||
task_id: string;
|
||||
path: Array<string>;
|
||||
};
|
||||
id: string;
|
||||
kb_id: string;
|
||||
operation_status: string;
|
||||
parser_id: string;
|
||||
pipeline_id: string;
|
||||
pipeline_title: string;
|
||||
process_begin_at: string;
|
||||
process_duration: number;
|
||||
progress: number;
|
||||
progress_msg: string;
|
||||
source_from: string;
|
||||
status: string;
|
||||
task_type: string;
|
||||
tenant_id: string;
|
||||
update_date: string;
|
||||
update_time: number;
|
||||
}
|
||||
Reference in New Issue
Block a user