From c6dd63accf8c0b47f6ab9e424aca96004316437d Mon Sep 17 00:00:00 2001 From: Cuvii Date: Sun, 27 Mar 2022 17:12:05 +0800 Subject: [PATCH] feat(ui): allow case insensitive search & optmize search (#1035) --- package.json | 18 +++++++++++++ packages/ui/client/auto-imports.d.ts | 1 - packages/ui/client/components/TaskTree.vue | 5 +++- packages/ui/client/components/TasksList.vue | 26 ++++++++++++++++++- .../ui/client/components/views/ViewReport.vue | 2 +- packages/ui/client/utils/task.ts | 11 ++++++++ 6 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 packages/ui/client/utils/task.ts diff --git a/package.json b/package.json index 9162062416db..0ec36e9c46a2 100644 --- a/package.json +++ b/package.json @@ -66,5 +66,23 @@ "overrides": { "vite": "^2.8.6" } + }, + "vite": { + "optimizeDeps": { + "include": [ + "@vueuse/core", + "birpc", + "codemirror", + "codemirror/addon/display/placeholder", + "codemirror/mode/javascript/javascript", + "codemirror/mode/jsx/jsx", + "codemirror/mode/xml/xml", + "d3-graph-controller", + "flatted", + "floating-vue", + "splitpanes", + "vue-router" + ] + } } } diff --git a/packages/ui/client/auto-imports.d.ts b/packages/ui/client/auto-imports.d.ts index 674b46219e36..981df43bc9af 100644 --- a/packages/ui/client/auto-imports.d.ts +++ b/packages/ui/client/auto-imports.d.ts @@ -39,7 +39,6 @@ declare global { const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable'] const markRaw: typeof import('vue')['markRaw'] const nextTick: typeof import('vue')['nextTick'] - const note: typeof import('@vueuse/core')['note'] const onActivated: typeof import('vue')['onActivated'] const onBeforeMount: typeof import('vue')['onBeforeMount'] const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] diff --git a/packages/ui/client/components/TaskTree.vue b/packages/ui/client/components/TaskTree.vue index f3600db14f80..f2af0de80965 100644 --- a/packages/ui/client/components/TaskTree.vue +++ b/packages/ui/client/components/TaskTree.vue @@ -1,5 +1,6 @@