perf: reorganize the icons and reduce the volume

This commit is contained in:
vince
2024-07-17 22:25:27 +08:00
parent cb161eab89
commit 910a3553ac
54 changed files with 341 additions and 404 deletions

View File

@@ -4,7 +4,7 @@ import { useRouter } from 'vue-router';
import { AuthenticationLoginExpiredModal } from '@vben/common-ui';
import { LOGIN_PATH } from '@vben/constants';
import { IcRoundCreditScore, MdiDriveDocument, MdiGithub } from '@vben/icons';
import { BookOpenText, CircleHelp, MdiGithub } from '@vben/icons';
import {
BasicLayout,
LockScreen,
@@ -61,7 +61,7 @@ const menus = computed(() => [
target: '_blank',
});
},
icon: MdiDriveDocument,
icon: BookOpenText,
text: $t('widgets.document'),
},
{
@@ -79,7 +79,7 @@ const menus = computed(() => [
target: '_blank',
});
},
icon: IcRoundCreditScore,
icon: CircleHelp,
text: $t('widgets.qa'),
},
]);

View File

@@ -7,6 +7,7 @@ const routes: RouteRecordRaw[] = [
{
component: BasicLayout,
meta: {
icon: 'lucide:layout-dashboard',
order: -1,
title: $t('page.dashboard.title'),
},
@@ -20,6 +21,7 @@ const routes: RouteRecordRaw[] = [
component: () => import('#/views/dashboard/analytics/index.vue'),
meta: {
affixTab: true,
icon: 'lucide:area-chart',
title: $t('page.dashboard.analytics'),
},
},

View File

@@ -24,7 +24,7 @@ const routes: RouteRecordRaw[] = [
component: () => import('#/views/_core/vben/about/index.vue'),
meta: {
badgeType: 'dot',
icon: 'mdi:creative-commons',
icon: 'lucide:copyright',
title: $t('page.vben.about'),
},
},
@@ -33,7 +33,7 @@ const routes: RouteRecordRaw[] = [
path: 'document',
component: IFrameView,
meta: {
icon: 'mdi:flame-circle',
icon: 'lucide:book-open-text',
iframeSrc: 'https://doc.vvbin.cn/',
keepAlive: true,
title: $t('page.vben.document'),