Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed:Fixed missing icons #1427

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"serve": "vite",
"build": "vue-tsc -b && vite build",
"preview": "vite preview",
Expand Down
1 change: 0 additions & 1 deletion ui/public/icons/help.svg

This file was deleted.

1 change: 0 additions & 1 deletion ui/public/icons/k8s.svg

This file was deleted.

1 change: 0 additions & 1 deletion ui/public/icons/organize.svg

This file was deleted.

1 change: 0 additions & 1 deletion ui/public/icons/setting.svg

This file was deleted.

1 change: 0 additions & 1 deletion ui/public/icons/split.svg

This file was deleted.

1 change: 0 additions & 1 deletion ui/public/icons/tree.svg

This file was deleted.

1 change: 0 additions & 1 deletion ui/public/icons/user.svg

This file was deleted.

10 changes: 5 additions & 5 deletions ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import vue from '@vitejs/plugin-vue';
import tailwindcss from 'tailwindcss';
import autoprefixer from 'autoprefixer';
import Components from 'unplugin-vue-components/vite';
import viteCompression from 'vite-plugin-compression';

const pathResolve = (dir: string): string => {
return resolve(__dirname, '.', dir);
Expand All @@ -20,12 +19,13 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {

return {
plugins: [
vue(),
manualChunksPlugin(),
createSvgIconsPlugin({
iconDirs: [resolve(process.cwd(), 'src/public/icons')],
symbolId: 'icon-[dir]-[name]'
iconDirs: [resolve(process.cwd(), 'src/assets/icons')],
symbolId: 'icon-[dir]-[name]',
inject: 'body-first'
}),
vue(),
manualChunksPlugin(),
Components({ dts: true, resolvers: [NaiveUiResolver()] })
],
resolve: {
Expand Down
Loading