From 9b6856c5cb8142302bc4c9772666f88853b03db9 Mon Sep 17 00:00:00 2001
From: feng <1304903146@qq.com>
Date: Thu, 22 Aug 2024 12:48:18 +0800
Subject: [PATCH] perf: Update vite config
---
ui/src/asset/icons/help.svg | 1 +
ui/src/asset/icons/k8s.svg | 1 +
ui/src/asset/icons/organize.svg | 1 +
ui/src/asset/icons/setting.svg | 1 +
ui/src/asset/icons/split.svg | 1 +
ui/src/asset/icons/tree.svg | 1 +
ui/src/asset/icons/user.svg | 1 +
ui/vite.config.ts | 2 +-
8 files changed, 8 insertions(+), 1 deletion(-)
create mode 100644 ui/src/asset/icons/help.svg
create mode 100644 ui/src/asset/icons/k8s.svg
create mode 100644 ui/src/asset/icons/organize.svg
create mode 100644 ui/src/asset/icons/setting.svg
create mode 100644 ui/src/asset/icons/split.svg
create mode 100644 ui/src/asset/icons/tree.svg
create mode 100644 ui/src/asset/icons/user.svg
diff --git a/ui/src/asset/icons/help.svg b/ui/src/asset/icons/help.svg
new file mode 100644
index 00000000..e5bdc1fb
--- /dev/null
+++ b/ui/src/asset/icons/help.svg
@@ -0,0 +1 @@
+
diff --git a/ui/src/asset/icons/k8s.svg b/ui/src/asset/icons/k8s.svg
new file mode 100644
index 00000000..4a4b34d9
--- /dev/null
+++ b/ui/src/asset/icons/k8s.svg
@@ -0,0 +1 @@
+
diff --git a/ui/src/asset/icons/organize.svg b/ui/src/asset/icons/organize.svg
new file mode 100644
index 00000000..0d78983d
--- /dev/null
+++ b/ui/src/asset/icons/organize.svg
@@ -0,0 +1 @@
+
diff --git a/ui/src/asset/icons/setting.svg b/ui/src/asset/icons/setting.svg
new file mode 100644
index 00000000..a8d64227
--- /dev/null
+++ b/ui/src/asset/icons/setting.svg
@@ -0,0 +1 @@
+
diff --git a/ui/src/asset/icons/split.svg b/ui/src/asset/icons/split.svg
new file mode 100644
index 00000000..2fdae88c
--- /dev/null
+++ b/ui/src/asset/icons/split.svg
@@ -0,0 +1 @@
+
diff --git a/ui/src/asset/icons/tree.svg b/ui/src/asset/icons/tree.svg
new file mode 100644
index 00000000..19b13eb6
--- /dev/null
+++ b/ui/src/asset/icons/tree.svg
@@ -0,0 +1 @@
+
diff --git a/ui/src/asset/icons/user.svg b/ui/src/asset/icons/user.svg
new file mode 100644
index 00000000..58a1fb7a
--- /dev/null
+++ b/ui/src/asset/icons/user.svg
@@ -0,0 +1 @@
+
diff --git a/ui/vite.config.ts b/ui/vite.config.ts
index d4e04965..3bb37b06 100644
--- a/ui/vite.config.ts
+++ b/ui/vite.config.ts
@@ -23,7 +23,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
vue(),
manualChunksPlugin(),
createSvgIconsPlugin({
- iconDirs: [resolve(process.cwd(), 'src/public/icons')],
+ iconDirs: [resolve(process.cwd(), 'src/asset/icons')],
symbolId: 'icon-[dir]-[name]'
}),
Components({ dts: true, resolvers: [NaiveUiResolver()] })