refactor: optimize ExtractorPage layout and UX

- Use OrderNumberInput component with format statistics
- Add collapsible sidebar with smooth animation
- Improve log system with level-based coloring and auto-scroll
- Remove result display cards for cleaner interface
- Add file:openPath IPC handler for opening files in explorer
This commit is contained in:
Misaka_Company
2026-03-04 15:52:41 +08:00
parent 50041d2a7b
commit dc3d577f6f
5 changed files with 184 additions and 348 deletions

View File

@@ -59,30 +59,11 @@ export interface SqlServerQueryResult {
* File operation APIs
*/
export interface FileAPI {
/**
* Read file content as text
* @param filePath - Path to the file
*/
readFile: (filePath: string) => Promise<string>
/**
* Write content to file
* @param filePath - Path to the file
* @param content - Content to write
*/
writeFile: (filePath: string, content: string) => Promise<void>
/**
* Check if file exists
* @param filePath - Path to the file
*/
fileExists: (filePath: string) => Promise<boolean>
/**
* Get list of files in directory
* @param dirPath - Directory path
*/
listFiles: (dirPath: string) => Promise<string[]>
openPath: (filePath: string) => Promise<void>
}
/**