Commit Graph

28 Commits

Author SHA1 Message Date
Marvin Zhang
c06a9c6052 feat: update AutoProbe service and interfaces to support AutoProbeV2 2025-06-16 22:54:33 +08:00
Marvin Zhang
0bd2b62792 feat: add DTOs for models and update project spiders type to array 2025-06-12 19:58:21 +08:00
Marvin Zhang
79b7e074e1 refactor: update filter parameter in API requests and improve component structure 2025-06-12 00:17:40 +08:00
Marvin Zhang
ca069cb570 feat: implement navigation list management in store and detail layout 2025-06-11 18:04:51 +08:00
Marvin Zhang
de69c2b01b refactor: replace activeNodes with allList in dependency dialogs and related components 2025-06-11 13:34:08 +08:00
Marvin Zhang
1f3a9586b3 feat: enhance data model associations and remove unused components 2025-06-09 23:00:47 +08:00
Marvin Zhang
c48d74bf0e feat: add active nodes management and project retrieval functionality 2025-06-09 10:50:33 +08:00
Marvin Zhang
8a00af115c feat: refactor to remove unused 'getAllList' methods and related state properties 2025-06-09 10:20:39 +08:00
Marvin Zhang
14027f1c0c feat: enhance AutoProbe state management with page pattern and data handling 2025-05-26 11:28:56 +08:00
Marvin Zhang
0f80639a96 feat: add OpenRouter support and refactor LLM provider imports
- Introduced OpenRouter as a new LLM provider in the system.
- Updated LLM provider imports from '@/utils/ai' to '@/utils/llm' for consistency.
- Added new SVG icon for OpenRouter in the assets directory.
- Enhanced AutoProbe interfaces to accommodate new pattern structures.
2025-05-25 23:13:37 +08:00
Marvin Zhang
0022b5ae40 feat: add display configuration options and enhance element filtering in AutoProbeResultsPreview component
- Introduced showLabel and focusMode options for better control over element display.
- Updated page element filtering logic to accommodate new focus mode functionality.
- Added translations for new display configuration options in English and Chinese.
- Included csstype dependency for improved type management in styles.
2025-05-21 00:03:04 +08:00
Marvin Zhang
4857d22cd7 feat: add activeNavItem prop and enhance page element filtering in AutoProbe components 2025-05-19 18:07:01 +08:00
Marvin Zhang
50c4bc3750 feat: add viewport selection and run on create options in AutoProbeForm component 2025-05-19 17:32:40 +08:00
Marvin Zhang
f1f74d8a6a feat: update AutoProbeResultsContainer and related interfaces for improved preview functionality
- Refactored AutoProbeResultsContainer to utilize new previewResult structure and updated API calls.
- Enhanced element styling and dynamic behavior for page elements in the preview.
- Introduced getIconByPageElementType utility for better icon management based on element type.
- Updated AutoProbe interfaces to reflect changes in data structure, including renaming PagePreview to PagePreviewResult and modifying page_elements type.
- Added rowKey functionality in AutoProbeList for improved table data handling.
2025-05-18 23:03:02 +08:00
Marvin Zhang
7afc4ba4c9 feat: enhance internationalization and update AutoProbe interfaces
- Updated Chinese translation for 'AutoProbe' to include its native term.
- Modified AutoProbe interfaces to improve data structure, including changes to page_data and the addition of new properties in AutoProbeTaskResult.
- Enhanced SidebarItem component to conditionally display badge values based on item properties.
2025-05-18 18:53:43 +08:00
Marvin Zhang
07a509c198 feat: implement preview functionality in AutoProbeResultsContainer with enhanced state management and new interfaces
- Added preview feature to display page screenshots and item coordinates.
- Introduced new interfaces for viewport and element coordinates in autoprobe models.
- Improved iframe loading state management and dynamic styling for preview elements.
- Updated AutoProbeDetailTabPatterns to pass activeId prop for better data handling.
2025-05-16 23:38:13 +08:00
Marvin Zhang
9144ab5fe0 feat: enhance AutoProbeResultsContainer with dynamic cell styling and active field management 2025-05-16 13:13:13 +08:00
Marvin Zhang
f3d6a56315 refactor: update AutoProbe components and enhance structure
- Removed obsolete AutoProbeFieldDetail, AutoProbeListDetail, AutoProbePagePatternDetail, and AutoProbePaginationDetail components to streamline the codebase.
- Introduced new components: AutoProbeItemDetail and AutoProbePagePatternsSidebar for improved data management and user interaction.
- Updated index.ts to reflect new component structure and exports.
- Enhanced internationalization support with new translations for preview and extraction types.
- Refactored AutoProbeDetailTabPatterns to utilize new components and improve data handling.
2025-05-15 18:04:27 +08:00
Marvin Zhang
c654f03890 feat: update AutoProbe components and enhance functionality
- Removed AutoProbeFieldRule component and integrated AutoProbeSelector for improved selector management.
- Updated AutoProbePagePatternDetail to utilize new table structure for better data representation.
- Enhanced internationalization support with new translations for selector types and field counts.
- Refactored AutoProbeDetailTabPatterns to streamline data handling and improve user experience.
2025-05-13 23:37:15 +08:00
Marvin Zhang
54ad06aff6 feat: add AutoProbe components for enhanced data management
- Introduced new components: AutoProbeFieldDetail, AutoProbeFieldRule, AutoProbeListDetail, AutoProbePagePatternDetail, AutoProbePaginationDetail, and AutoProbePatternStats for detailed data representation.
- Updated index.ts to export new components for easier access.
- Enhanced internationalization support by adding relevant translations for new components and features.
- Added a new tab for patterns in the AutoProbe detail view to improve user navigation and data organization.
2025-05-13 17:58:57 +08:00
Marvin Zhang
512f246094 feat: implement AutoProbe components and enhance LLM provider functionality
- Introduced AutoProbeForm and AutoProbeTaskStatus components for managing AutoProbe configurations and task statuses.
- Updated LLMProvider model to include a default model field for improved provider management.
- Enhanced AutoProbeList and AutoProbeDetail components for better user interaction and data display.
- Refactored related Vue components and services to streamline AutoProbe functionality and improve state management.
- Added internationalization support for new AutoProbe features and updated existing translations.
2025-05-12 17:37:30 +08:00
Marvin Zhang
ec5bcf9287 feat: introduce AutoProbe module and related interfaces
- Added AutoProbe interfaces to define models for autoprobe functionality, including AutoProbe, AutoProbeTask, and AutoProbeFetchResult.
- Created AutoProbeStore module for managing state, getters, mutations, and actions related to autoprobe.
- Updated existing LLM interfaces to utilize LLMResponseUsage for token tracking.
- Refactored store index to include autoprobe namespace and removed obsolete AiStore module.
2025-05-12 11:25:30 +08:00
Marvin Zhang
9e25ea9b51 refactor: standardize LLM provider key naming and enhance related components
- Renamed 'Key' fields to 'Type' in various models for consistency across the codebase.
- Updated route naming in router.go for clarity in the context of settings.
- Introduced a new LlmProviderForm component for managing LLM provider configurations.
- Refactored AssistantConsole and related components to utilize providerId instead of provider for improved state management.
- Enhanced UI elements and translations to reflect the new naming conventions and improve user experience.
2025-05-09 15:35:57 +08:00
Marvin Zhang
4f57d277e7 refactor: standardize timestamp fields and improve code clarity
- Updated timestamp fields across the codebase from `*_ts` to `*_at` for consistency and clarity.
- Renamed constants for node status from "on"/"off" to "online"/"offline" to better reflect their meanings.
- Enhanced validation and error handling in various components to ensure data integrity.
- Refactored test cases to align with the new naming conventions and improve readability.
2025-04-21 18:13:22 +08:00
Marvin Zhang
32f0802f8b style: update AssistantConsole layout and extend store interface
- Added height to the AssistantConsole component for improved layout consistency.
- Extended StoreNamespace interface to include 'dataCollection' for better state management.
2025-04-18 09:40:59 +08:00
Marvin Zhang
34509b8d4c refactor: enhance parameter handling and improve code clarity
- Updated GetListParams to set a default sort option for better query handling.
- Enhanced PostSpiderRunParams to include a default mode and improved error handling for missing spider.
- Added parameters field to ChatMessageContent for more flexible message content management.
- Refactored getNodeIds method to simplify mode handling and removed unnecessary error checks.
- Improved ChatMessageAction component to display parameters and response sections more effectively, enhancing user experience.
2025-04-17 18:03:15 +08:00
Marvin Zhang
36c7d5e3a3 refactor: improve focus handling and simplify content parsing
- Refactored focus handling in useAssistantConsole to use a dedicated function for clarity and adjusted timeout duration.
- Simplified content parsing in ChatMessageAction by directly returning parsed JSON and removing unnecessary mapping logic.
- Updated ChatSidebar to allow a larger maximum width for improved layout flexibility.
- Removed unused interface definitions in llm.d.ts to clean up the codebase.
2025-04-17 16:28:56 +08:00
Marvin Zhang
fac1206a65 refactor: migrated crawlab-ui to crawlab/frontend/crawlab-ui 2025-04-16 10:33:07 +08:00