Skip to content

Commit

Permalink
Cleanup unused views (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
jupe authored Mar 24, 2022
1 parent 89bf82d commit 297ff86
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 800 deletions.
128 changes: 2 additions & 126 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Vue.use(Router)
import Layout from '@/layout'

/* Router Modules
import componentsRouter from './modules/components'
import chartsRouter from './modules/charts'
import tableRouter from './modules/table'
import nestedRouter from './modules/nested'
Expand Down Expand Up @@ -82,32 +81,7 @@ export const constantRoutes = [
meta: { title: 'Dashboard', icon: 'dashboard', affix: true }
}
]
}, /*
{
path: '/documentation',
component: Layout,
children: [
{
path: 'index',
component: () => import('@/views/documentation/index'),
name: 'Documentation',
meta: { title: 'Documentation', icon: 'documentation', affix: true }
}
]
},
{
path: '/guide',
component: Layout,
redirect: '/guide/index',
children: [
{
path: 'index',
component: () => import('@/views/guide/index'),
name: 'Guide',
meta: { title: 'Guide', icon: 'guide', noCache: true }
}
]
},*/
{
path: '/profile',
component: Layout,
Expand Down Expand Up @@ -293,95 +267,11 @@ export const asyncRoutes = [
]
},
/*
{
path: '/icon',
component: Layout,
children: [
{
path: 'index',
component: () => import('@/views/icons/index'),
name: 'Icons',
meta: { title: 'Icons', icon: 'icon', noCache: true }
}
]
},
// when your routing map is too long, you can split it into small modules
componentsRouter,
chartsRouter,
nestedRouter,
tableRouter,
{
path: '/example',
component: Layout,
redirect: '/example/list',
name: 'Example',
meta: {
title: 'Example',
icon: 'example'
},
children: [
{
path: 'create',
component: () => import('@/views/example/create'),
name: 'CreateArticle',
meta: { title: 'Create Article', icon: 'edit' }
},
{
path: 'edit/:id(\\d+)',
component: () => import('@/views/example/edit'),
name: 'EditArticle',
meta: { title: 'Edit Article', noCache: true, activeMenu: '/example/list' },
hidden: true
},
{
path: 'list',
component: () => import('@/views/example/list'),
name: 'ArticleList',
meta: { title: 'Article List', icon: 'list' }
}
]
},
{
path: '/tab',
component: Layout,
children: [
{
path: 'index',
component: () => import('@/views/tab/index'),
name: 'Tab',
meta: { title: 'Tab', icon: 'tab' }
}
]
},
{
path: '/error',
component: Layout,
redirect: 'noRedirect',
name: 'ErrorPages',
meta: {
title: 'Error Pages',
icon: '404'
},
children: [
{
path: '401',
component: () => import('@/views/error-page/401'),
name: 'Page401',
meta: { title: '401', noCache: true }
},
{
path: '404',
component: () => import('@/views/error-page/404'),
name: 'Page404',
meta: { title: '404', noCache: true }
}
]
},*/

*/
{
path: '/log',
component: Layout,
Expand All @@ -396,7 +286,6 @@ export const asyncRoutes = [
]
},
/*
{
path: '/excel',
component: Layout,
Expand Down Expand Up @@ -432,20 +321,7 @@ export const asyncRoutes = [
meta: { title: 'Upload Excel' }
}
]
},
{
path: '/theme',
component: Layout,
children: [
{
path: 'index',
component: () => import('@/views/theme/index'),
name: 'Theme',
meta: { title: 'Theme', icon: 'theme' }
}
]
},
*/
},*/
{
path: 'external-link',
component: Layout,
Expand Down
102 changes: 0 additions & 102 deletions src/router/modules/components.js

This file was deleted.

46 changes: 0 additions & 46 deletions src/views/documentation/index.vue

This file was deleted.

37 changes: 0 additions & 37 deletions src/views/guide/index.vue

This file was deleted.

Loading

0 comments on commit 297ff86

Please sign in to comment.