Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(frontend): drop iconify, migrate residual icons to lucide-vue-next (#20149)

boojack06c98c9f4fb5
diff --git a/frontend/package.json b/frontend/package.json
index 24504b4eaa..854727f897 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -63,9 +63,9 @@
"jszip": "^3.10.1",
"lodash-es": "4.18.1",
"lossless-json": "^4.3.0",
- "lucide-react": "^1.7.0",
- "lucide-static": "^0.577.0",
- "lucide-vue-next": "^0.577.0",
+ "lucide-react": "^1.11.0",
+ "lucide-static": "^1.11.0",
+ "lucide-vue-next": "^1.0.0",
"markdown-it": "^14.1.0",
"monaco-editor": "npm:@codingame/[email protected]",
"monaco-languageclient": "10.7.0",
@@ -104,7 +104,6 @@
"devDependencies": {
"@biomejs/biome": "2.4.6",
"@codingame/esbuild-import-meta-url-plugin": "^1.0.3",
- "@iconify/json": "2.2.446",
"@intlify/eslint-plugin-vue-i18n": "^4.0.0",
"@intlify/unplugin-vue-i18n": "11.0.7",
"@playwright/test": "^1.59.1",
@@ -156,7 +155,6 @@
"typescript": "6.0.2",
"typescript-eslint": "8.57.2",
"unified": "^11.0.5",
- "unplugin-icons": "23.0.1",
"unplugin-vue-components": "31.0.0",
"vite": "7.3.2",
"vite-bundle-visualizer": "^1.2.1",
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index b83b07a6fc..cc0a91b3ee 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -133,14 +133,14 @@ importers:
specifier: ^4.3.0
version: 4.3.0
lucide-react:
- specifier: ^1.7.0
- version: 1.7.0([email protected])
+ specifier: ^1.11.0
+ version: 1.11.0([email protected])
lucide-static:
- specifier: ^0.577.0
- version: 0.577.0
+ specifier: ^1.11.0
+ version: 1.11.0
lucide-vue-next:
- specifier: ^0.577.0
+ specifier: ^1.0.0
markdown-it:
specifier: ^14.1.0
version: 14.1.1
@@ -250,9 +250,6 @@ importers:
'@codingame/esbuild-import-meta-url-plugin':
specifier: ^1.0.3
version: 1.0.3
- '@iconify/json':
- specifier: 2.2.446
- version: 2.2.446
'@intlify/eslint-plugin-vue-i18n':
specifier: ^4.0.0
@@ -406,9 +403,6 @@ importers:
unified:
specifier: ^11.0.5
version: 11.0.5
- unplugin-icons:
- specifier: 23.0.1
- version: 23.0.1(@vue/[email protected])
unplugin-vue-components:
specifier: 31.0.0
@@ -448,9 +442,6 @@ packages:
'@acemir/[email protected]':
resolution: {integrity: sha512-ZnR3GSaH+/vJ0YlHau21FjfLYjMpYVIzTD8M8vIEQvIGxeOXyXdzCI140rrCY862p/C/BbzWsjc1dgnM9mkoTA==}
- '@antfu/[email protected]':
- resolution: {integrity: sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==}
-
'@asamuzakjp/[email protected]':
resolution: {integrity: sha512-B0Hv6G3gWGMn0xKJ0txEi/jM5iFpT3MfDxmhZFb4W047GvytCf1DHQ1D69W3zHI4yWe2aTZAA0JnbMZ7Xc8DuQ==}
@@ -1744,15 +1735,6 @@ packages:
resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
engines: {node: '>=18.18'}
- '@iconify/[email protected]':
- resolution: {integrity: sha512-FrZToC6ONvIVmOkFhcNMGJYvIKJ4UPzdKE5hgAUkQijYz+ZWx74OZBHExp8osCLMEmyxrUPTFg2oynlpGWLsTw==}
-
- '@iconify/[email protected]':
- resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==}
-
- '@iconify/[email protected]':
- resolution: {integrity: sha512-Zlzem1ZXhI1iHeeERabLNzBHdOa4VhQbqAcOQaMKuTuyZCpwKbC2R4Dd0Zo3g9EAc+Y4fiarO8HIHRAth7+skw==}
-
'@intlify/[email protected]':
resolution: {integrity: sha512-fEO3CJGPymxieGh8BHox7d6stgajDQae7wgpH6YYw7WX+cdW6jTTXyljZqz7OV3JcwlS9M9UHSoO+YwiO56IhA==}
engines: {node: '>= 20'}
@@ -3887,16 +3869,16 @@ packages:
resolution: {integrity: sha512-AI2r85+4MquTw9ZYqabu4nMwy9Oftlfa/e/52t9IjtfG+mGBbTNdAoZ3RQKLHR6r0wQnwZnPIEh/Ya6XTWAKNA==}
- resolution: {integrity: sha512-yI7BeItCLZJTXikmK4KNUGCKoGzSvbKlfCvw44bU4fXAL6v3gYS4uHD1jzsLkfwODYwI6Drw5Tu9Z5ulDe0TSg==}
+ resolution: {integrity: sha512-UOhjdztXCgdBReRcIhsvz2siIBogfv/lhJEIViCpLt924dO+GDms9T7DNoucI23s6kEPpe988m5N0D2ajnzb2g==}
peerDependencies:
react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
- resolution: {integrity: sha512-hx39J5Tq4JWF2ALY+5YRg+SxQLpeAmLJDXNcqiBJH/UuVwp43it9fyki/onZO7AVFgG5ZbB+fWwZR9mwGHE2XQ==}
+ resolution: {integrity: sha512-+1S3QkfaDJnjTG7Gif6562COLU36bRgJkkb3r0goDfEprRwaRh/ivbIll37DUppmN1TDeGUgPib/BxaRXn3S6A==}
- resolution: {integrity: sha512-py05bAfv9SHVJqscbiOnjcnLlEmOffA58a+7XhZuFxrs6txe1E8VoR1ngWGTYO+9aVKABAz8l3ee3PqiQN9QPA==}
+ resolution: {integrity: sha512-V6SPvx1IHTj/UY+FrIYWV5faISsPSb8BnWSFDxAtezWKvWc9ZZ40PDrdu1/Qb5vg4lHWr1hs1BAMGVGm6V1Xdg==}
peerDependencies:
vue: '>=3.0.1'
@@ -4216,9 +4198,6 @@ packages:
resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==}
- resolution: {integrity: sha512-ZsEbbZORsyHuO00lY1kV3/t72yp6Ysay6Pd17ZAlNGuGwmWDLCJxFpRs0IzfXfj1o4icJOkUEioexFHzyPurSQ==}
-
resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==}
@@ -4945,23 +4924,6 @@ packages:
resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==}
engines: {node: '>= 4.0.0'}
- resolution: {integrity: sha512-rv0XEJepajKzDLvRUWASM8K+8+/CCfZn2jtogXqg6RIp7kpatRc/aFrVJn8ANQA09e++lPEEv9yX8cC9enc+QQ==}
- peerDependencies:
- '@svgr/core': '>=7.0.0'
- '@svgx/core': ^1.0.1
- '@vue/compiler-sfc': ^3.0.2
- svelte: ^3.0.0 || ^4.0.0 || ^5.0.0
- peerDependenciesMeta:
- '@svgr/core':
- optional: true
- '@svgx/core':
- optional: true
- '@vue/compiler-sfc':
- optional: true
- svelte:
- optional: true
-
resolution: {integrity: sha512-5lWVjgi6vuHhJ526bI4nlCOmkCIF3nnfXkCMDeMJrtdvxTs6ZFCM8oNufGTsDbKv/tJ/xj8RpvXjRuPBZJuJog==}
engines: {node: '>=20.19.0'}
@@ -5337,11 +5299,6 @@ snapshots:
'@acemir/[email protected]': {}
- '@antfu/[email protected]':
- dependencies:
- package-manager-detector: 1.3.0
- tinyexec: 1.0.2
-
'@asamuzakjp/[email protected]':
dependencies:
'@csstools/css-calc': 2.1.4(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])
@@ -6740,19 +6697,6 @@ snapshots:
'@humanwhocodes/[email protected]': {}
- '@iconify/[email protected]':
- dependencies:
- '@iconify/types': 2.0.0
- pathe: 2.0.3
-
- '@iconify/[email protected]': {}
-
- '@iconify/[email protected]':
- dependencies:
- '@antfu/install-pkg': 1.1.0
- '@iconify/types': 2.0.0
- mlly: 1.8.0
-
dependencies:
'@intlify/message-compiler': 11.2.8
@@ -8975,13 +8919,13 @@ snapshots:
dependencies:
react: 19.2.4
dependencies:
vue: 3.5.29([email protected])
@@ -9539,8 +9483,6 @@ snapshots:
-
@@ -10355,16 +10297,6 @@ snapshots:
- dependencies:
- '@antfu/install-pkg': 1.1.0
- '@iconify/utils': 3.1.0
- local-pkg: 1.1.2
- obug: 2.1.1
- unplugin: 2.3.11
- optionalDependencies:
- '@vue/compiler-sfc': 3.5.29
-
dependencies:
pathe: 2.0.3
diff --git a/frontend/src/components/DatabaseInfo.vue b/frontend/src/components/DatabaseInfo.vue
index 5075c0a0db..788a5c78ec 100644
--- a/frontend/src/components/DatabaseInfo.vue
+++ b/frontend/src/components/DatabaseInfo.vue
@@ -23,10 +23,10 @@
</template>
</InstanceV1Name>
- <heroicons-outline:chevron-right class="text-control-light" />
+ <ChevronRight class="text-control-light" />
<div class="flex items-center gap-x-1">
- <heroicons-outline:database />
+ <Database />
<template v-if="database">
<EnvironmentV1Name
@@ -49,6 +49,7 @@
</template>
<script lang="ts" setup>
+import { ChevronRight, Database } from "lucide-vue-next";
import { computed } from "vue";
import {
DatabaseV1Name,
@@ -56,12 +57,12 @@ import {
InstanceV1Name,
} from "@/components/v2";
import { useEnvironmentV1Store } from "@/store";
-import type { Database } from "@/types/proto-es/v1/database_service_pb";
+import type { Database as DatabaseProto } from "@/types/proto-es/v1/database_service_pb";
import { getDatabaseEnvironment, getInstanceResource } from "@/utils";
const props = withDefaults(
defineProps<{
- database: Database;
+ database: DatabaseProto;
link?: boolean;
}>(),
{
diff --git a/frontend/src/components/FeatureGuard/FeatureBadge.vue b/frontend/src/components/FeatureGuard/FeatureBadge.vue
index 3a4a22ebcf..897fffa731 100644
--- a/frontend/src/components/FeatureGuard/FeatureBadge.vue
+++ b/frontend/src/components/FeatureGuard/FeatureBadge.vue
@@ -15,7 +15,7 @@
>
<NTooltip :show-arrow="true">
<template #trigger>
- <heroicons-solid:lock-closed class="w-5 h-5" />
+ <Lock class="w-5 h-5" />
</template>
<span class="w-56 text-sm">
{{ $t("subscription.instance-assignment.missing-license-attention") }}
@@ -52,7 +52,7 @@
</template>
<script lang="ts" setup>
-import { SparklesIcon } from "lucide-vue-next";
+import { Lock, SparklesIcon } from "lucide-vue-next";
import { NTooltip } from "naive-ui";
import { computed } from "vue";
import { useRouter } from "vue-router";
diff --git a/frontend/src/components/FeatureGuard/FeatureModal.vue b/frontend/src/components/FeatureGuard/FeatureModal.vue
index cae79995e1..9dedb7617f 100644
--- a/frontend/src/components/FeatureGuard/FeatureModal.vue
+++ b/frontend/src/components/FeatureGuard/FeatureModal.vue
@@ -3,7 +3,7 @@
<div class="min-w-0 md:min-w-100 max-w-4xl mb-2">
<div class="flex items-start gap-x-2 mt-3">
<div class="flex items-center">
- <heroicons-solid:lock-closed
+ <Lock
v-if="instanceMissingLicense"
class="text-accent w-6 h-6"
/>
@@ -88,7 +88,7 @@
</template>
<script lang="ts" setup>
-import { SparklesIcon } from "lucide-vue-next";
+import { Lock, SparklesIcon } from "lucide-vue-next";
import { NButton } from "naive-ui";
import { computed } from "vue";
import { useI18n } from "vue-i18n";
diff --git a/frontend/src/components/Icon/CheckIcon.vue b/frontend/src/components/Icon/CheckIcon.vue
index 06e310ccb4..04bd58fb43 100644
--- a/frontend/src/components/Icon/CheckIcon.vue
+++ b/frontend/src/components/Icon/CheckIcon.vue
@@ -3,5 +3,5 @@
</template>
<script setup lang="ts">
-import CheckIcon from "~icons/tabler/check";
+import { Check as CheckIcon } from "lucide-vue-next";
</script>
diff --git a/frontend/src/components/Icon/DatabaseIcon.vue b/frontend/src/components/Icon/DatabaseIcon.vue
index a120c91cd1..97663ac01a 100644
--- a/frontend/src/components/Icon/DatabaseIcon.vue
+++ b/frontend/src/components/Icon/DatabaseIcon.vue
@@ -4,5 +4,5 @@
</div>
</template>
<script setup lang="ts">
-import DatabaseIcon from "~icons/heroicons-outline/circle-stack";
+import { Database as DatabaseIcon } from "lucide-vue-next";
</script>
diff --git a/frontend/src/components/Icon/IndexIcon.vue b/frontend/src/components/Icon/IndexIcon.vue
index 0c1f11b246..8069a3e25c 100644
--- a/frontend/src/components/Icon/IndexIcon.vue
+++ b/frontend/src/components/Icon/IndexIcon.vue
@@ -3,5 +3,5 @@
</template>
<script setup lang="ts">
-import DiamondIcon from "~icons/tabler/diamonds";
+import { Diamond as DiamondIcon } from "lucide-vue-next";
</script>
diff --git a/frontend/src/components/Icon/PrimaryKeyIcon.vue b/frontend/src/components/Icon/PrimaryKeyIcon.vue
index ed10dd8dea..1651ad42fe 100644
--- a/frontend/src/components/Icon/PrimaryKeyIcon.vue
+++ b/frontend/src/components/Icon/PrimaryKeyIcon.vue
@@ -5,5 +5,5 @@
</template>
<script setup lang="ts">
-import KeyIcon from "~icons/heroicons-outline/key";
+import { Key as KeyIcon } from "lucide-vue-next";
</script>
diff --git a/frontend/src/components/SchemaDiagram/Canvas/Canvas.vue b/frontend/src/components/SchemaDiagram/Canvas/Canvas.vue
index c1f0b381e3..5ffe570b49 100644
--- a/frontend/src/components/SchemaDiagram/Canvas/Canvas.vue
+++ b/frontend/src/components/SchemaDiagram/Canvas/Canvas.vue
@@ -18,7 +18,7 @@
<NTooltip>
<template #trigger>
<NButton tooltip>
- <heroicons-outline:photo @click="handleScreenshot" />
+ <Image @click="handleScreenshot" />
</NButton>
</template>
<div class="whitespace-nowrap">Screenshot</div>
@@ -29,7 +29,7 @@
<NTooltip>
<template #trigger>
<NButton tooltip>
- <Square2x2 @click="handleFitView" />
+ <LayoutGrid @click="handleFitView" />
</NButton>
</template>
<div class="whitespace-nowrap">
@@ -53,10 +53,10 @@
</template>
<script lang="ts" setup>
+import { Image, LayoutGrid } from "lucide-vue-next";
import { NButton, NButtonGroup, NTooltip } from "naive-ui";
import { ref, useSlots } from "vue";
import { extractDatabaseResourceName } from "@/utils";
-import Square2x2 from "~icons/heroicons-outline/squares-2x2";
import { useSchemaDiagramContext } from "../common";
import { ZOOM_RANGE } from "../common/const";
import { useDragCanvas, useFitView, useSetCenter } from "./composables";
diff --git a/frontend/src/components/SchemaDiagram/Canvas/ZoomButton.vue b/frontend/src/components/SchemaDiagram/Canvas/ZoomButton.vue
index 4808fcabcf..1e876f237e 100644
--- a/frontend/src/components/SchemaDiagram/Canvas/ZoomButton.vue
+++ b/frontend/src/components/SchemaDiagram/Canvas/ZoomButton.vue
@@ -2,7 +2,7 @@
<NButtonGroup size="tiny" class="bg-white rounded-sm">
<NButton :disabled="zoom <= min" @click="$emit('zoom-out')">
<template #icon>
- <heroicons-outline:minus />
+ <Minus />
</template>
</NButton>
<NButton ghost class="pointer-events-none">
@@ -10,13 +10,14 @@
</NButton>
<NButton :disabled="zoom >= max" @click="$emit('zoom-in')">
<template #icon>
- <heroicons-outline:plus />
+ <Plus />
</template>
</NButton>
</NButtonGroup>
</template>
<script lang="ts" setup>
+import { Minus, Plus } from "lucide-vue-next";
import { NButton, NButtonGroup } from "naive-ui";
import { computed } from "vue";
import { useSchemaDiagramContext } from "../common";
diff --git a/frontend/src/components/SchemaDiagram/ER/TableNode.vue b/frontend/src/components/SchemaDiagram/ER/TableNode.vue
index 217a80fd7c..5bf9d01ec8 100644
--- a/frontend/src/components/SchemaDiagram/ER/TableNode.vue
+++ b/frontend/src/components/SchemaDiagram/ER/TableNode.vue
@@ -39,7 +39,7 @@
class="invisible group-hover:visible absolute top-[50%] -mt-[9px] right-1 text-main bg-white/70 hover:bg-gray-200 p-0.5 rounded-sm"
@click="events.emit('edit-table', { schema, table })"
>
- <heroicons-outline:pencil class="w-4 h-4" />
+ <Pencil class="w-4 h-4" />
</button>
</h3>
@@ -52,11 +52,11 @@
:class="columnClasses(column)"
>
<td class="w-5 py-1.5 relative">
- <heroicons-outline:key
+ <Key
v-if="isPrimaryKey(table, column)"
class="w-3 h-3 mx-auto text-amber-500"
/>
- <tabler:diamonds
+ <Diamond
v-else-if="isIndex(table, column)"
class="w-3 h-3 mx-auto text-gray-500"
/>
@@ -89,6 +89,7 @@
</template>
<script lang="ts" setup>
+import { Diamond, Key, Pencil } from "lucide-vue-next";
import { computed } from "vue";
import { hashCode } from "@/bbkit/BBUtil";
import type {
diff --git a/frontend/src/components/SchemaDiagram/Navigator/Navigator.vue b/frontend/src/components/SchemaDiagram/Navigator/Navigator.vue
index 5749e17a43..20df95f8db 100644
--- a/frontend/src/components/SchemaDiagram/Navigator/Navigator.vue
+++ b/frontend/src/components/SchemaDiagram/Navigator/Navigator.vue
@@ -16,7 +16,7 @@
:placeholder="$t('common.search')"
>
<template #prefix>
- <heroicons-outline:search class="h-5 w-5 text-gray-300" />
+ <Search class="h-5 w-5 text-gray-300" />
</template>
</NInput>
</div>
@@ -30,7 +30,7 @@
:class="[state.expand ? 'left-full -translate-x-3' : '-left-3']"
@click="state.expand = !state.expand"
>
- <heroicons-outline:chevron-left
+ <ChevronLeft
class="w-4 h-4 transition-transform"
:class="[state.expand ? '' : '-scale-100 translate-x-[3px]']"
/>
@@ -39,6 +39,7 @@
</template>
<script lang="ts" setup>
+import { ChevronLeft, Search } from "lucide-vue-next";
import { NInput } from "naive-ui";
import { computed, reactive } from "vue";
import { getInstanceResource, hasSchemaProperty } from "@/utils";
diff --git a/frontend/src/components/SchemaDiagram/Navigator/TreeNode/Prefix.vue b/frontend/src/components/SchemaDiagram/Navigator/TreeNode/Prefix.vue
index c7901b1d98..4d88ba9330 100644
--- a/frontend/src/components/SchemaDiagram/Navigator/TreeNode/Prefix.vue
+++ b/frontend/src/components/SchemaDiagram/Navigator/TreeNode/Prefix.vue
@@ -1,13 +1,14 @@
<template>
<template v-if="node.type === 'schema'">
- <heroicons-outline:rectangle-stack class="w-4 h-4" />
+ <Layers class="w-4 h-4" />
</template>
<template v-if="node.type === 'table'">
- <heroicons-outline:table-cells class="w-4 h-4" />
+ <Table2 class="w-4 h-4" />
</template>
</template>
<script lang="ts" setup>
+import { Layers, Table2 } from "lucide-vue-next";
import type { TreeNode } from "../types";
defineProps<{
diff --git a/frontend/src/components/SchemaEditorLite/EmptyTips.vue b/frontend/src/components/SchemaEditorLite/EmptyTips.vue
index f4b03d6613..afb65dbbfd 100644
--- a/frontend/src/components/SchemaEditorLite/EmptyTips.vue
+++ b/frontend/src/components/SchemaEditorLite/EmptyTips.vue
@@ -2,7 +2,11 @@
<div
class="w-full h-full flex flex-row justify-center items-center text-gray-600 font-medium"
>
- <heroicons-solid:pencil-square class="w-4 h-auto mr-2" />
+ <SquarePen class="w-4 h-auto mr-2" />
{{ $t("schema-designer.use-tips") }}
</div>
</template>
+
+<script lang="ts" setup>
+import { SquarePen } from "lucide-vue-next";
+</script>
diff --git a/frontend/src/components/SchemaEditorLite/Panels/DatabaseEditor.vue b/frontend/src/components/SchemaEditorLite/Panels/DatabaseEditor.vue
index 8be61bebdc..1f45ffb06f 100644
--- a/frontend/src/components/SchemaEditorLite/Panels/DatabaseEditor.vue
+++ b/frontend/src/components/SchemaEditorLite/Panels/DatabaseEditor.vue
@@ -58,7 +58,7 @@
:quaternary="state.selectedSubTab !== 'table-list'"
@click="handleChangeTab('table-list')"
>
- <heroicons-outline:queue-list class="inline w-4 h-auto mr-1" />
+ <List class="inline w-4 h-auto mr-1" />
{{ $t("schema-editor.tables") }}
</NButton>
<NTooltip :disabled="!schemaDiagramDisabled">
@@ -118,7 +118,7 @@
<script lang="ts" setup>
import { head, sumBy } from "lodash-es";
-import { PlusIcon } from "lucide-vue-next";
+import { List, PlusIcon } from "lucide-vue-next";
import { NButton, NSelect, NTooltip } from "naive-ui";
import { computed, nextTick, reactive, watch } from "vue";
import SchemaDiagram, { SchemaDiagramIcon } from "@/components/SchemaDiagram";
diff --git a/frontend/src/components/v2/Button/ContextMenuButton.vue b/frontend/src/components/v2/Button/ContextMenuButton.vue
index 6708573b27..dac395ca44 100644
--- a/frontend/src/components/v2/Button/ContextMenuButton.vue
+++ b/frontend/src/components/v2/Button/ContextMenuButton.vue
@@ -24,7 +24,7 @@
:style="dropdownButtonStyle(currentAction)"
v-bind="currentAction.props"
>
- <heroicons-outline:chevron-down />
+ <ChevronDown />
</NButton>
</NPopselect>
</NButtonGroup>
@@ -33,6 +33,7 @@
<script setup lang="ts">
import { useLocalStorage } from "@vueuse/core";
import { head } from "lodash-es";
+import { ChevronDown } from "lucide-vue-next";
import type { ButtonGroupProps, SelectOption } from "naive-ui";
import { NButton, NButtonGroup, NPopselect } from "naive-ui";
import type { CSSProperties } from "vue";
diff --git a/frontend/src/components/v2/Button/DeleteConfirmButton.vue b/frontend/src/components/v2/Button/DeleteConfirmButton.vue
index aa3197bfe3..e0e8bec806 100644
--- a/frontend/src/components/v2/Button/DeleteConfirmButton.vue
+++ b/frontend/src/components/v2/Button/DeleteConfirmButton.vue
@@ -9,7 +9,7 @@
@click.stop
>
<template #icon>
- <heroicons:trash />
+ <Trash2 />
</template>
<template #default>
{{ $t("common.delete") }}
@@ -24,6 +24,7 @@
</template>
<script setup lang="ts">
+import { Trash2 } from "lucide-vue-next";
import { NButton, NPopconfirm } from "naive-ui";
const emit = defineEmits<{
diff --git a/frontend/src/components/v2/Form/StepTab.vue b/frontend/src/components/v2/Form/StepTab.vue
index d647004e43..dc3da50b5b 100644
--- a/frontend/src/components/v2/Form/StepTab.vue
+++ b/frontend/src/components/v2/Form/StepTab.vue
@@ -48,7 +48,7 @@
v-bind="backButtonProps"
@click.prevent="$emit('update:currentIndex', currentIndex - 1)"
>
- <heroicons-outline:chevron-left
+ <ChevronLeft
class="-ml-1 mr-1 h-5 w-5 text-control-light"
/>
<span> {{ $t("common.back") }}</span>
@@ -77,6 +77,7 @@
</template>
<script lang="ts" setup>
+import { ChevronLeft } from "lucide-vue-next";
import type { ButtonProps } from "naive-ui";
import { NButton, NStep, NSteps } from "naive-ui";
import { t } from "@/plugins/i18n";
diff --git a/frontend/src/components/v2/Model/ProductionEnvironmentV1Icon.vue b/frontend/src/components/v2/Model/ProductionEnvironmentV1Icon.vue
index a21b4695b2..0305f0e768 100644
--- a/frontend/src/components/v2/Model/ProductionEnvironmentV1Icon.vue
+++ b/frontend/src/components/v2/Model/ProductionEnvironmentV1Icon.vue
@@ -1,7 +1,7 @@
<template>
<NTooltip v-if="enabled" :disabled="!tooltip" placement="top">
<template #trigger>
- <heroicons-solid:shield-exclamation
+ <ShieldAlert
class="text-control inline-block shrink-0"
:class="tooltip ? 'pointer-events-auto' : 'pointer-events-none'"
v-bind="$attrs"
@@ -13,6 +13,7 @@
</template>
<script lang="ts" setup>
+import { ShieldAlert } from "lucide-vue-next";
import { NTooltip } from "naive-ui";
import { computed } from "vue";
import { useI18n } from "vue-i18n";
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue
index 1d62658c8d..7dfa949ceb 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/SingleResultViewV1.vue
@@ -54,7 +54,7 @@
@click="DISMISS_PLACEHOLDER = false"
>
<template #icon>
- <heroicons:academic-cap class="w-4 h-4" />
+ <GraduationCap class="w-4 h-4" />
</template>
</NButton>
</template>
@@ -267,6 +267,7 @@ import {
ArrowDownIcon,
ArrowUpIcon,
CopyIcon,
+ GraduationCap,
InfoIcon,
XIcon,
} from "lucide-vue-next";
diff --git a/frontend/src/views/sql-editor/SQLEditorHomePage.vue b/frontend/src/views/sql-editor/SQLEditorHomePage.vue
index 712620bc98..7c7b74c9c2 100644
--- a/frontend/src/views/sql-editor/SQLEditorHomePage.vue
+++ b/frontend/src/views/sql-editor/SQLEditorHomePage.vue
@@ -13,7 +13,7 @@
"
@click="state.sidebarExpanded = !state.sidebarExpanded"
>
- <heroicons-outline:chevron-left
+ <ChevronLeft
class="w-6 h-6 transition-transform"
:class="[state.sidebarExpanded ? '' : '-scale-100']"
/>
@@ -65,6 +65,7 @@
<script lang="ts" setup>
import { useWindowSize } from "@vueuse/core";
+import { ChevronLeft } from "lucide-vue-next";
import { NSplit } from "naive-ui";
import { storeToRefs } from "pinia";
import { computed, reactive } from "vue";
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index 2f92a08dce..a015572290 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -10,8 +10,6 @@ import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
import { CodeInspectorPlugin } from "code-inspector-plugin";
import { resolve } from "path";
-import IconsResolver from "unplugin-icons/resolver";
-import Icons from "unplugin-icons/vite";
import Components from "unplugin-vue-components/vite";
import { defineConfig } from "vite";
import { exportCspHashes } from "./vite-plugin-export-csp-hashes";
@@ -59,15 +57,6 @@ export default defineConfig({
tailwindcss(),
Components({
allowOverrides: true,
- // auto import icons
- resolvers: [
- IconsResolver({
- prefix: "",
- }),
- ],
- }),
- Icons({
- compiler: "vue3",
}),
yaml(),
...(process.env.VITEST