Skip to content

Commit

Permalink
🎈 perf: 注释无用项目
Browse files Browse the repository at this point in the history
  • Loading branch information
kalicyh committed Aug 11, 2024
1 parent 813a296 commit aa7bdca
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 62 deletions.
6 changes: 3 additions & 3 deletions src/layouts/full/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import NavItem from './vertical-sidebar/NavItem/index.vue';
import ExtraBox from './vertical-sidebar/extrabox/ExtraBox.vue';
import Logo from './logo/Logo.vue';
// Icon Imports
import { Menu2Icon, BellRingingIcon } from 'vue-tabler-icons';
import { Menu2Icon } from 'vue-tabler-icons';
// dropdown imports
import NotificationDD from './vertical-header/NotificationDD.vue';
// import NotificationDD from './vertical-header/NotificationDD.vue';
import ProfileDD from './vertical-header/ProfileDD.vue';
const sidebarMenu = shallowRef(sidebarItems);
const sDrawer = ref(true);
Expand Down Expand Up @@ -53,7 +53,7 @@ const sDrawer = ref(true);
<Menu2Icon size="20" stroke-width="1.5" />
</v-btn>
<!-- Notification -->
<NotificationDD />
<!-- <NotificationDD /> -->
</div>
<div>
<!-- User Profile -->
Expand Down
80 changes: 43 additions & 37 deletions src/layouts/full/vertical-sidebar/sidebarItem.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
// import {
// ApertureIcon,
// CopyIcon,
// LayoutDashboardIcon, LoginIcon, MoodHappyIcon, TypographyIcon, UserPlusIcon, DatabaseIcon, UploadIcon, CloudDownloadIcon
// } from 'vue-tabler-icons';
import {
ApertureIcon,
CopyIcon,
LayoutDashboardIcon, LoginIcon, MoodHappyIcon, TypographyIcon, UserPlusIcon, DatabaseIcon, UploadIcon, CloudDownloadIcon
LayoutDashboardIcon,
DatabaseIcon,
UploadIcon,
CloudDownloadIcon
} from 'vue-tabler-icons';

export interface menu {
Expand All @@ -20,7 +26,7 @@ export interface menu {
}

const sidebarItem: menu[] = [
{ header: 'Home' },
{ header: '概览' },
{
title: '仪表盘',
icon: LayoutDashboardIcon,
Expand All @@ -43,39 +49,39 @@ const sidebarItem: menu[] = [
icon: CloudDownloadIcon,
to: '/ui/versions'
},
{ header: 'utilities' },
{
title: 'Typography',
icon: TypographyIcon,
to: '/ui/typography'
},
{
title: 'Shadow',
icon: CopyIcon,
to: '/ui/shadow'
},
{ header: 'auth' },
{
title: 'Login',
icon: LoginIcon,
to: '/auth/login'
},
{
title: 'Register',
icon: UserPlusIcon,
to: '/auth/register'
},
{ header: 'Extra' },
{
title: 'Icons',
icon: MoodHappyIcon,
to: '/icons'
},
{
title: 'Sample Page',
icon: ApertureIcon,
to: '/sample-page'
},
// { header: 'utilities' },
// {
// title: 'Typography',
// icon: TypographyIcon,
// to: '/ui/typography'
// },
// {
// title: 'Shadow',
// icon: CopyIcon,
// to: '/ui/shadow'
// },
// { header: 'auth' },
// {
// title: 'Login',
// icon: LoginIcon,
// to: '/auth/login'
// },
// {
// title: 'Register',
// icon: UserPlusIcon,
// to: '/auth/register'
// },
// { header: 'Extra' },
// {
// title: 'Icons',
// icon: MoodHappyIcon,
// to: '/icons'
// },
// {
// title: 'Sample Page',
// icon: ApertureIcon,
// to: '/sample-page'
// },
];

export default sidebarItem;
40 changes: 20 additions & 20 deletions src/router/MainRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const MainRoutes = {
path: '/',
component: () => import('@/views/dashboard/index.vue')
},
{
name: 'Typography',
path: '/ui/typography',
component: () => import('@/views/components/Typography.vue')
},
// {
// name: 'Typography',
// path: '/ui/typography',
// component: () => import('@/views/components/Typography.vue')
// },
{
name: '上传数据',
path: '/ui/upload',
Expand All @@ -31,21 +31,21 @@ const MainRoutes = {
path: '/ui/versions',
component: () => import('@/views/pages/Versions.vue')
},
{
name: 'Shadow',
path: '/ui/shadow',
component: () => import('@/views/components/Shadow.vue')
},
{
name: 'Icons',
path: '/icons',
component: () => import('@/views/pages/Icons.vue')
},
{
name: 'Starter',
path: '/sample-page',
component: () => import('@/views/pages/SamplePage.vue')
},
// {
// name: 'Shadow',
// path: '/ui/shadow',
// component: () => import('@/views/components/Shadow.vue')
// },
// {
// name: 'Icons',
// path: '/icons',
// component: () => import('@/views/pages/Icons.vue')
// },
// {
// name: 'Starter',
// path: '/sample-page',
// component: () => import('@/views/pages/SamplePage.vue')
// },
]
};

Expand Down
4 changes: 2 additions & 2 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createRouter, createWebHistory } from 'vue-router';
import MainRoutes from './MainRoutes';
import AuthRoutes from './AuthRoutes';
// import AuthRoutes from './AuthRoutes';

export const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
Expand All @@ -10,7 +10,7 @@ export const router = createRouter({
component: () => import('@/views/pages/Error404.vue')
},
MainRoutes,
AuthRoutes
// AuthRoutes
]
});

0 comments on commit aa7bdca

Please sign in to comment.