From f1f74d8a6a6745430f3d695992ab28538b2b5b1f Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Sun, 18 May 2025 23:03:02 +0800 Subject: [PATCH] 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. --- .../autoprobe/AutoProbeResultsContainer.vue | 71 +++++++++---------- .../src/interfaces/models/autoprobe.d.ts | 10 +-- frontend/crawlab-ui/src/utils/autoprobe.ts | 15 ++++ .../views/autoprobe/list/AutoProbeList.vue | 2 + .../views/autoprobe/list/useAutoProbeList.tsx | 5 ++ 5 files changed, 62 insertions(+), 41 deletions(-) diff --git a/frontend/crawlab-ui/src/components/core/autoprobe/AutoProbeResultsContainer.vue b/frontend/crawlab-ui/src/components/core/autoprobe/AutoProbeResultsContainer.vue index da86f12a..71ac52bd 100644 --- a/frontend/crawlab-ui/src/components/core/autoprobe/AutoProbeResultsContainer.vue +++ b/frontend/crawlab-ui/src/components/core/autoprobe/AutoProbeResultsContainer.vue @@ -1,8 +1,8 @@