diff --git a/app/assets/examples/threejs/LittlestTokyo.jpg b/app/assets/examples/threejs/LittlestTokyo.jpg deleted file mode 100644 index 5926436..0000000 Binary files a/app/assets/examples/threejs/LittlestTokyo.jpg and /dev/null differ diff --git a/app/assets/icons/antv/g2.svg b/app/assets/icons/antv/g2.svg deleted file mode 100644 index 3c2d26b..0000000 --- a/app/assets/icons/antv/g2.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/app/assets/icons/antv/g6.svg b/app/assets/icons/antv/g6.svg deleted file mode 100644 index a300b13..0000000 --- a/app/assets/icons/antv/g6.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/app/assets/icons/antv/index.svg b/app/assets/icons/antv/index.svg deleted file mode 100644 index 06990c8..0000000 --- a/app/assets/icons/antv/index.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/app/assets/icons/antv/l7.svg b/app/assets/icons/antv/l7.svg deleted file mode 100644 index ed91828..0000000 --- a/app/assets/icons/antv/l7.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - diff --git a/app/assets/icons/antv/s2.svg b/app/assets/icons/antv/s2.svg deleted file mode 100644 index 20bf9fb..0000000 --- a/app/assets/icons/antv/s2.svg +++ /dev/null @@ -1,32 +0,0 @@ - - - 编组 13备份 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/assets/icons/antv/x6.svg b/app/assets/icons/antv/x6.svg deleted file mode 100644 index 9ff4212..0000000 --- a/app/assets/icons/antv/x6.svg +++ /dev/null @@ -1,23 +0,0 @@ - - - x6 - - - - - - - - - - - - - - - - - - - diff --git a/app/assets/icons/threejs/index.svg b/app/assets/icons/threejs/index.svg deleted file mode 100644 index f5d3b7c..0000000 --- a/app/assets/icons/threejs/index.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/app/composables/useRouteLink.ts b/app/composables/useRouteLink.ts index 5f840ab..0de1cd0 100644 --- a/app/composables/useRouteLink.ts +++ b/app/composables/useRouteLink.ts @@ -34,7 +34,7 @@ export const useRouteLink = () => { { id: 'dashboard/antv', label: 'AntV', - icon: 'antv-icon:index', + icon: 'i-simple-icons:antdesign', to: '/dashboard', defaultOpen: route.path.startsWith('/dashboard/antv'), tooltip: { @@ -44,19 +44,19 @@ export const useRouteLink = () => { { id: 'antv/g2', label: 'G2', - icon: 'antv-icon:g2', + icon: 'i-material-symbols:bar-chart-rounded', to: '/dashboard/antv/g2', }, { id: 'antv/s2', label: 'S2', - icon: 'antv-icon:s2', + icon: 'i-heroicons:table-cells-20-solid', to: '/dashboard/antv/s2', }, { id: 'antv/l7', label: 'L7', - icon: 'antv-icon:l7', + icon: 'i-heroicons:map-pin', to: '/dashboard/antv/l7', defaultOpen: route.path.startsWith('/dashboard/antv/l7'), children: [ @@ -89,7 +89,7 @@ export const useRouteLink = () => { { id: 'antv/x6', label: 'X6', - icon: 'antv-icon:x6', + icon: 'i-hugeicons:workflow-circle-03', to: '/dashboard/antv/x6', defaultOpen: route.path.startsWith('/dashboard/antv/x6'), children: [ diff --git a/app/pages/dashboard/index.vue b/app/pages/dashboard/index.vue index b0ce2fc..139e1c7 100644 --- a/app/pages/dashboard/index.vue +++ b/app/pages/dashboard/index.vue @@ -35,7 +35,7 @@ const colorMode = useColorMode(); const tabs = computed(() => { return [{ label: 'AntV', - icon: 'antv-icon:index', + icon: 'i-simple-icons:antdesign', data: [ { title: 'AntV G2', diff --git a/nuxt.config.ts b/nuxt.config.ts index d6d02bc..3cb4fa1 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -94,17 +94,5 @@ export default defineNuxtConfig({ preference: 'light', fallback: 'light', }, - icon: { - customCollections: [ - { - prefix: 'antv-icon', - dir: './assets/icons/antv', - }, - { - prefix: 'threejs-icon', - dir: './assets/icons/threejs', - }, - ], - }, compatibilityDate: '2024-10-24', }); diff --git a/package.json b/package.json index e930753..b6f0795 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "@antv/x6-plugin-stencil": "^2.1.5", "@antv/x6-plugin-transform": "^2.1.8", "@ckpack/vue-color": "^1.6.0", + "@iconify-json/hugeicons": "^1.2.1", "@iconify-json/material-symbols-light": "^1.2.6", "@iconify-json/simple-icons": "^1.2.11", "@nuxt/eslint": "^0.6.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c3072e7..0a18e01 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,6 +66,9 @@ importers: '@ckpack/vue-color': specifier: ^1.6.0 version: 1.6.0(vue@3.5.12(typescript@5.6.3)) + '@iconify-json/hugeicons': + specifier: ^1.2.1 + version: 1.2.1 '@iconify-json/material-symbols-light': specifier: ^1.2.6 version: 1.2.6 @@ -1202,6 +1205,9 @@ packages: '@iconify-json/heroicons@1.2.1': resolution: {integrity: sha512-TkKfS5U27kE5MXmSGLzPoz95BP5VA9xEJXwJFwmPMVLX+xyWq0OkoiWTUXB0uAoQODpb8BaRpzSydItrq9fIRA==} + '@iconify-json/hugeicons@1.2.1': + resolution: {integrity: sha512-IedWO3xgMuRdRaolyl8kLOMA01xQ2QhldCKWrqtIxEpalndU7hoh1dUR00ackhWLFDwpKdGQGzuF5/Szaw40CQ==} + '@iconify-json/material-symbols-light@1.2.6': resolution: {integrity: sha512-TpDzfXt5Br1e7xuzKEy63bEuc56xsQBS07Am4fpXqQWvtvDxAQ4y1Ik3ca3ougmNPtW2dsR1XQmjMxNb5mGoUw==} @@ -7282,6 +7288,10 @@ snapshots: dependencies: '@iconify/types': 2.0.0 + '@iconify-json/hugeicons@1.2.1': + dependencies: + '@iconify/types': 2.0.0 + '@iconify-json/material-symbols-light@1.2.6': dependencies: '@iconify/types': 2.0.0 diff --git a/server/api/users.ts b/server/api/users.ts index e2b1965..41e8839 100644 --- a/server/api/users.ts +++ b/server/api/users.ts @@ -1,3 +1,4 @@ +// see https://github.com/nuxt-ui-pro/dashboard/blob/main/app/pages/users.vue import type { User } from '~/types' const users: User[] = [{