Skip to content

Commit

Permalink
feat icons (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingxingmofashu authored Nov 6, 2024
1 parent 0dfdd8e commit 4d59763
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 114 deletions.
Binary file removed app/assets/examples/threejs/LittlestTokyo.jpg
Binary file not shown.
9 changes: 0 additions & 9 deletions app/assets/icons/antv/g2.svg

This file was deleted.

9 changes: 0 additions & 9 deletions app/assets/icons/antv/g6.svg

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/icons/antv/index.svg

This file was deleted.

11 changes: 0 additions & 11 deletions app/assets/icons/antv/l7.svg

This file was deleted.

32 changes: 0 additions & 32 deletions app/assets/icons/antv/s2.svg

This file was deleted.

23 changes: 0 additions & 23 deletions app/assets/icons/antv/x6.svg

This file was deleted.

11 changes: 0 additions & 11 deletions app/assets/icons/threejs/index.svg

This file was deleted.

10 changes: 5 additions & 5 deletions app/composables/useRouteLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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: [
Expand Down Expand Up @@ -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: [
Expand Down
2 changes: 1 addition & 1 deletion app/pages/dashboard/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
12 changes: 0 additions & 12 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/api/users.ts
Original file line number Diff line number Diff line change
@@ -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[] = [{
Expand Down

0 comments on commit 4d59763

Please sign in to comment.