mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 00:46:52 +08:00
### What problem does this PR solve? Fix: Optimized knowledge base file parsing and display #9869 - Optimized the ChunkMethodDialog component logic and adjusted FormSchema validation rules - Updated the document information interface definition, adding pipeline_id, pipeline_name, and suffix fields - Refactored the ChunkResultBar component, removing filter-related logic and simplifying the input box and chunk creation functionality - Improved FormatPreserveEditor to support text mode switching (full/omitted) display control - Updated timeline node titles to more accurate semantic descriptions (e.g., character splitters) - Optimized the data flow result page structure and style, dynamically adjusting height and content display - Fixed the table sorting function on the dataset overview page and enhanced the display of task type icons and status mapping. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -50,6 +50,10 @@ export default {
|
||||
fetchDataPipelineLog: `${api_host}/kb/list_pipeline_logs`,
|
||||
get_pipeline_detail: `${api_host}/kb/pipeline_log_detail`,
|
||||
fetchPipelineDatasetLogs: `${api_host}/kb/list_pipeline_dataset_logs`,
|
||||
runGraphRag: `${api_host}/kb/run_graphrag`,
|
||||
traceGraphRag: `${api_host}/kb/trace_graphrag`,
|
||||
runRaptor: `${api_host}/kb/run_raptor`,
|
||||
traceRaptor: `${api_host}/kb/trace_raptor`,
|
||||
|
||||
// tags
|
||||
listTag: (knowledgeId: string) => `${api_host}/kb/${knowledgeId}/tags`,
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import dayjs from 'dayjs';
|
||||
import { toFixed } from './common-util';
|
||||
|
||||
export function formatDate(date: any) {
|
||||
if (!date) {
|
||||
@ -52,12 +51,13 @@ export function formatSecondsToHumanReadable(seconds: number): string {
|
||||
|
||||
const h = Math.floor(seconds / 3600);
|
||||
const m = Math.floor((seconds % 3600) / 60);
|
||||
const s = toFixed(seconds % 60, 3);
|
||||
|
||||
// const s = toFixed(seconds % 60, 3);
|
||||
const s = seconds % 60;
|
||||
const formattedSeconds = s === 0 ? '0' : s.toFixed(3).replace(/\.?0+$/, '');
|
||||
const parts = [];
|
||||
if (h > 0) parts.push(`${h}h`);
|
||||
if (m > 0) parts.push(`${m}m`);
|
||||
if (s || parts.length === 0) parts.push(`${s}s`);
|
||||
if (h > 0) parts.push(`${h}h `);
|
||||
if (m > 0) parts.push(`${m}m `);
|
||||
if (s || parts.length === 0) parts.push(`${formattedSeconds}s`);
|
||||
|
||||
return parts.join('');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user