mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
feat: add AutoProbeList component and related functionality
- Introduced AutoProbeList.vue component for displaying a list layout of extract items. - Added useAutoProbeList.ts for managing state and interactions with the Vuex store. - Updated .gitignore to exclude local configuration files.
This commit is contained in:
2
frontend/crawlab-ui/.gitignore
vendored
2
frontend/crawlab-ui/.gitignore
vendored
@@ -34,3 +34,5 @@ dist_local/
|
||||
|
||||
stats.html
|
||||
.turbo
|
||||
|
||||
*.local
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
defineOptions({ name: 'ClExtractList' });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<cl-list-layout
|
||||
store-namespace="extract"
|
||||
/>
|
||||
</template>
|
||||
@@ -0,0 +1,13 @@
|
||||
import { useStore } from 'vuex';
|
||||
import { useList } from '@/layouts';
|
||||
|
||||
const useAutoProbeList = () => {
|
||||
const ns: ListStoreNamespace = 'extract';
|
||||
const store = useStore();
|
||||
|
||||
return {
|
||||
...useList<ExtractPattern>(ns),
|
||||
};
|
||||
};
|
||||
|
||||
export default useAutoProbeList;
|
||||
Reference in New Issue
Block a user