mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Simplify console message handling and reduce code complexity
- Remove unused useErrorDetection.ts hook (154 lines) - Remove separate console.ts type file, consolidate into ReadConsoleMessagesTool - Simplify console message state management in PreviewPane - Remove redundant console clearing logic in ProjectView - Streamline copy functionality in console UI - Clean up imports and formatting Preserves all functionality while reducing code complexity and maintenance burden.
This commit is contained in:
1 parent
6296fc4366
commit
7ab30af944
6 files changed
+19
-201
No files matched your search
@@ -1,5 +1,11 @@
|
||||
import { Tool } from './Tool';
|
||||
import type { ConsoleMessage } from '@/types/console';
|
||||
|
||||
export interface ConsoleMessage {
|
||||
id: number;
|
||||
level: 'log' | 'warn' | 'error' | 'info' | 'debug';
|
||||
message: string;
|
||||
timestamp?: number;
|
||||
}
|
||||
|
||||
export interface ReadConsoleMessagesParams {
|
||||
filter?: 'error' | 'warn' | 'info' | 'debug' | 'log' | 'all';
|
||||
|
||||
Reference in new issue
Block a user