From 345dbec5e38f5912e5130f72a423280514f1bc56 Mon Sep 17 00:00:00 2001 From: xianfuxing Date: Tue, 31 Jul 2018 17:50:31 +0800 Subject: [PATCH] # disabled useless components --- src/router/index.js | 394 ++++++++++++++++++++++---------------------- 1 file changed, 197 insertions(+), 197 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 0d7c168..466a00a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -40,17 +40,17 @@ export const constantRouterMap = [ meta: { title: 'dashboard', icon: 'dashboard', noCache: true } }] }, - { - path: '/documentation', - component: Layout, - redirect: '/documentation/index', - children: [{ - path: 'index', - component: () => import('@/views/documentation/index'), - name: 'documentation', - meta: { title: 'documentation', icon: 'documentation', noCache: true } - }] - }, + // { + // path: '/documentation', + // component: Layout, + // redirect: '/documentation/index', + // children: [{ + // path: 'index', + // component: () => import('@/views/documentation/index'), + // name: 'documentation', + // meta: { title: 'documentation', icon: 'documentation', noCache: true } + // }] + // }, { path: '/counter', component: Layout, @@ -65,18 +65,18 @@ export const constantRouterMap = [ { path: 'device', component: () => import('@/views/counter/device'), name: 'device', meta: { title: 'device' }}, { path: 'count', component: () => import('@/views/counter/count'), name: 'count', meta: { title: 'count' }} ] - }, - { - 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: '/guide', + // component: Layout, + // redirect: '/guide/index', + // children: [{ + // path: 'index', + // component: () => import('@/views/guide/index'), + // name: 'guide', + // meta: { title: 'guide', icon: 'guide', noCache: true } + // }] + // } ] export default new Router({ @@ -126,193 +126,193 @@ export const asyncRouterMap = [ }] }, - { - path: '/components', - component: Layout, - redirect: 'noredirect', - name: 'component-demo', - meta: { - title: 'components', - icon: 'component' - }, - children: [ - { path: 'tinymce', component: () => import('@/views/components-demo/tinymce'), name: 'tinymce-demo', meta: { title: 'tinymce' }}, - { path: 'markdown', component: () => import('@/views/components-demo/markdown'), name: 'markdown-demo', meta: { title: 'markdown' }}, - { path: 'json-editor', component: () => import('@/views/components-demo/jsonEditor'), name: 'jsonEditor-demo', meta: { title: 'jsonEditor' }}, - { path: 'splitpane', component: () => import('@/views/components-demo/splitpane'), name: 'splitpane-demo', meta: { title: 'splitPane' }}, - { path: 'avatar-upload', component: () => import('@/views/components-demo/avatarUpload'), name: 'avatarUpload-demo', meta: { title: 'avatarUpload' }}, - { path: 'dropzone', component: () => import('@/views/components-demo/dropzone'), name: 'dropzone-demo', meta: { title: 'dropzone' }}, - { path: 'sticky', component: () => import('@/views/components-demo/sticky'), name: 'sticky-demo', meta: { title: 'sticky' }}, - { path: 'count-to', component: () => import('@/views/components-demo/countTo'), name: 'countTo-demo', meta: { title: 'countTo' }}, - { path: 'mixin', component: () => import('@/views/components-demo/mixin'), name: 'componentMixin-demo', meta: { title: 'componentMixin' }}, - { path: 'back-to-top', component: () => import('@/views/components-demo/backToTop'), name: 'backToTop-demo', meta: { title: 'backToTop' }}, - { path: 'drag-dialog', component: () => import('@/views/components-demo/dragDialog'), name: 'dragDialog-demo', meta: { title: 'dragDialog' }}, - { path: 'dnd-list', component: () => import('@/views/components-demo/dndList'), name: 'dndList-demo', meta: { title: 'dndList' }}, - { path: 'drag-kanban', component: () => import('@/views/components-demo/dragKanban'), name: 'dragKanban-demo', meta: { title: 'dragKanban' }} - ] - }, + // { + // path: '/components', + // component: Layout, + // redirect: 'noredirect', + // name: 'component-demo', + // meta: { + // title: 'components', + // icon: 'component' + // }, + // children: [ + // { path: 'tinymce', component: () => import('@/views/components-demo/tinymce'), name: 'tinymce-demo', meta: { title: 'tinymce' }}, + // { path: 'markdown', component: () => import('@/views/components-demo/markdown'), name: 'markdown-demo', meta: { title: 'markdown' }}, + // { path: 'json-editor', component: () => import('@/views/components-demo/jsonEditor'), name: 'jsonEditor-demo', meta: { title: 'jsonEditor' }}, + // { path: 'splitpane', component: () => import('@/views/components-demo/splitpane'), name: 'splitpane-demo', meta: { title: 'splitPane' }}, + // { path: 'avatar-upload', component: () => import('@/views/components-demo/avatarUpload'), name: 'avatarUpload-demo', meta: { title: 'avatarUpload' }}, + // { path: 'dropzone', component: () => import('@/views/components-demo/dropzone'), name: 'dropzone-demo', meta: { title: 'dropzone' }}, + // { path: 'sticky', component: () => import('@/views/components-demo/sticky'), name: 'sticky-demo', meta: { title: 'sticky' }}, + // { path: 'count-to', component: () => import('@/views/components-demo/countTo'), name: 'countTo-demo', meta: { title: 'countTo' }}, + // { path: 'mixin', component: () => import('@/views/components-demo/mixin'), name: 'componentMixin-demo', meta: { title: 'componentMixin' }}, + // { path: 'back-to-top', component: () => import('@/views/components-demo/backToTop'), name: 'backToTop-demo', meta: { title: 'backToTop' }}, + // { path: 'drag-dialog', component: () => import('@/views/components-demo/dragDialog'), name: 'dragDialog-demo', meta: { title: 'dragDialog' }}, + // { path: 'dnd-list', component: () => import('@/views/components-demo/dndList'), name: 'dndList-demo', meta: { title: 'dndList' }}, + // { path: 'drag-kanban', component: () => import('@/views/components-demo/dragKanban'), name: 'dragKanban-demo', meta: { title: 'dragKanban' }} + // ] + // }, - { - path: '/charts', - component: Layout, - redirect: 'noredirect', - name: 'charts', - meta: { - title: 'charts', - icon: 'chart' - }, - children: [ - { path: 'keyboard', component: () => import('@/views/charts/keyboard'), name: 'keyboardChart', meta: { title: 'keyboardChart', noCache: true }}, - { path: 'line', component: () => import('@/views/charts/line'), name: 'lineChart', meta: { title: 'lineChart', noCache: true }}, - { path: 'mixchart', component: () => import('@/views/charts/mixChart'), name: 'mixChart', meta: { title: 'mixChart', noCache: true }} - ] - }, + // { + // path: '/charts', + // component: Layout, + // redirect: 'noredirect', + // name: 'charts', + // meta: { + // title: 'charts', + // icon: 'chart' + // }, + // children: [ + // { path: 'keyboard', component: () => import('@/views/charts/keyboard'), name: 'keyboardChart', meta: { title: 'keyboardChart', noCache: true }}, + // { path: 'line', component: () => import('@/views/charts/line'), name: 'lineChart', meta: { title: 'lineChart', noCache: true }}, + // { path: 'mixchart', component: () => import('@/views/charts/mixChart'), name: 'mixChart', meta: { title: 'mixChart', noCache: true }} + // ] + // }, - { - path: '/tab', - component: Layout, - children: [{ - path: 'index', - component: () => import('@/views/tab/index'), - name: 'tab', - meta: { title: 'tab', icon: 'tab' } - }] - }, + // { + // path: '/tab', + // component: Layout, + // children: [{ + // path: 'index', + // component: () => import('@/views/tab/index'), + // name: 'tab', + // meta: { title: 'tab', icon: 'tab' } + // }] + // }, - { - path: '/table', - component: Layout, - redirect: '/table/complex-table', - name: 'table', - meta: { - title: 'Table', - icon: 'table' - }, - children: [ - { path: 'dynamic-table', component: () => import('@/views/table/dynamicTable/index'), name: 'dynamicTable', meta: { title: 'dynamicTable' }}, - { path: 'drag-table', component: () => import('@/views/table/dragTable'), name: 'dragTable', meta: { title: 'dragTable' }}, - { path: 'inline-edit-table', component: () => import('@/views/table/inlineEditTable'), name: 'inlineEditTable', meta: { title: 'inlineEditTable' }}, - { path: 'tree-table', component: () => import('@/views/table/treeTable/treeTable'), name: 'treeTableDemo', meta: { title: 'treeTable' }}, - { path: 'custom-tree-table', component: () => import('@/views/table/treeTable/customTreeTable'), name: 'customTreeTableDemo', meta: { title: 'customTreeTable' }}, - { path: 'complex-table', component: () => import('@/views/table/complexTable'), name: 'complexTable', meta: { title: 'complexTable' }} - ] - }, + // { + // path: '/table', + // component: Layout, + // redirect: '/table/complex-table', + // name: 'table', + // meta: { + // title: 'Table', + // icon: 'table' + // }, + // children: [ + // { path: 'dynamic-table', component: () => import('@/views/table/dynamicTable/index'), name: 'dynamicTable', meta: { title: 'dynamicTable' }}, + // { path: 'drag-table', component: () => import('@/views/table/dragTable'), name: 'dragTable', meta: { title: 'dragTable' }}, + // { path: 'inline-edit-table', component: () => import('@/views/table/inlineEditTable'), name: 'inlineEditTable', meta: { title: 'inlineEditTable' }}, + // { path: 'tree-table', component: () => import('@/views/table/treeTable/treeTable'), name: 'treeTableDemo', meta: { title: 'treeTable' }}, + // { path: 'custom-tree-table', component: () => import('@/views/table/treeTable/customTreeTable'), name: 'customTreeTableDemo', meta: { title: 'customTreeTable' }}, + // { path: 'complex-table', component: () => import('@/views/table/complexTable'), name: 'complexTable', meta: { title: 'complexTable' }} + // ] + // }, - { - 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: 'createArticle', icon: 'edit' }}, - { path: 'edit/:id(\\d+)', component: () => import('@/views/example/edit'), name: 'editArticle', meta: { title: 'editArticle', noCache: true }, hidden: true }, - { path: 'list', component: () => import('@/views/example/list'), name: 'articleList', meta: { title: 'articleList', icon: 'list' }} - ] - }, + // { + // 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: 'createArticle', icon: 'edit' }}, + // { path: 'edit/:id(\\d+)', component: () => import('@/views/example/edit'), name: 'editArticle', meta: { title: 'editArticle', noCache: true }, hidden: true }, + // { path: 'list', component: () => import('@/views/example/list'), name: 'articleList', meta: { title: 'articleList', icon: 'list' }} + // ] + // }, - { - path: '/nested', - component: Layout, - redirect: '/nested/bar/profile', - name: 'nested', - meta: { - title: 'nested', - icon: 'nested' - }, - children: [ - { - path: '/nested/bar', // Must write the full path - component: () => import('@/views/nested/bar/index'), // Parent router-view - name: 'bar', - meta: { title: 'bar' }, - children: [ - { - path: 'profile', - component: () => import('@/views/nested/bar/profile'), - name: 'bar-profile', - meta: { title: 'barProfile' } - }, - { - path: 'posts', - component: () => import('@/views/nested/bar/posts'), - name: 'bar-posts', - meta: { title: 'barPosts' } - } - ] - } - ] - }, + // { + // path: '/nested', + // component: Layout, + // redirect: '/nested/bar/profile', + // name: 'nested', + // meta: { + // title: 'nested', + // icon: 'nested' + // }, + // children: [ + // { + // path: '/nested/bar', // Must write the full path + // component: () => import('@/views/nested/bar/index'), // Parent router-view + // name: 'bar', + // meta: { title: 'bar' }, + // children: [ + // { + // path: 'profile', + // component: () => import('@/views/nested/bar/profile'), + // name: 'bar-profile', + // meta: { title: 'barProfile' } + // }, + // { + // path: 'posts', + // component: () => import('@/views/nested/bar/posts'), + // name: 'bar-posts', + // meta: { title: 'barPosts' } + // } + // ] + // } + // ] + // }, - { - path: '/error', - component: Layout, - redirect: 'noredirect', - name: 'errorPages', - meta: { - title: 'errorPages', - icon: '404' - }, - children: [ - { path: '401', component: () => import('@/views/errorPage/401'), name: 'page401', meta: { title: 'page401', noCache: true }}, - { path: '404', component: () => import('@/views/errorPage/404'), name: 'page404', meta: { title: 'page404', noCache: true }} - ] - }, + // { + // path: '/error', + // component: Layout, + // redirect: 'noredirect', + // name: 'errorPages', + // meta: { + // title: 'errorPages', + // icon: '404' + // }, + // children: [ + // { path: '401', component: () => import('@/views/errorPage/401'), name: 'page401', meta: { title: 'page401', noCache: true }}, + // { path: '404', component: () => import('@/views/errorPage/404'), name: 'page404', meta: { title: 'page404', noCache: true }} + // ] + // }, - { - path: '/error-log', - component: Layout, - redirect: 'noredirect', - children: [{ path: 'log', component: () => import('@/views/errorLog/index'), name: 'errorLog', meta: { title: 'errorLog', icon: 'bug' }}] - }, + // { + // path: '/error-log', + // component: Layout, + // redirect: 'noredirect', + // children: [{ path: 'log', component: () => import('@/views/errorLog/index'), name: 'errorLog', meta: { title: 'errorLog', icon: 'bug' }}] + // }, - { - path: '/excel', - component: Layout, - redirect: '/excel/export-excel', - name: 'excel', - meta: { - title: 'excel', - icon: 'excel' - }, - children: [ - { path: 'export-excel', component: () => import('@/views/excel/exportExcel'), name: 'exportExcel', meta: { title: 'exportExcel' }}, - { path: 'export-selected-excel', component: () => import('@/views/excel/selectExcel'), name: 'selectExcel', meta: { title: 'selectExcel' }}, - { path: 'upload-excel', component: () => import('@/views/excel/uploadExcel'), name: 'uploadExcel', meta: { title: 'uploadExcel' }} - ] - }, + // { + // path: '/excel', + // component: Layout, + // redirect: '/excel/export-excel', + // name: 'excel', + // meta: { + // title: 'excel', + // icon: 'excel' + // }, + // children: [ + // { path: 'export-excel', component: () => import('@/views/excel/exportExcel'), name: 'exportExcel', meta: { title: 'exportExcel' }}, + // { path: 'export-selected-excel', component: () => import('@/views/excel/selectExcel'), name: 'selectExcel', meta: { title: 'selectExcel' }}, + // { path: 'upload-excel', component: () => import('@/views/excel/uploadExcel'), name: 'uploadExcel', meta: { title: 'uploadExcel' }} + // ] + // }, - { - path: '/zip', - component: Layout, - redirect: '/zip/download', - alwaysShow: true, - meta: { title: 'zip', icon: 'zip' }, - children: [{ path: 'download', component: () => import('@/views/zip/index'), name: 'exportZip', meta: { title: 'exportZip' }}] - }, + // { + // path: '/zip', + // component: Layout, + // redirect: '/zip/download', + // alwaysShow: true, + // meta: { title: 'zip', icon: 'zip' }, + // children: [{ path: 'download', component: () => import('@/views/zip/index'), name: 'exportZip', meta: { title: 'exportZip' }}] + // }, - { - path: '/theme', - component: Layout, - redirect: 'noredirect', - children: [{ path: 'index', component: () => import('@/views/theme/index'), name: 'theme', meta: { title: 'theme', icon: 'theme' }}] - }, + // { + // path: '/theme', + // component: Layout, + // redirect: 'noredirect', + // children: [{ path: 'index', component: () => import('@/views/theme/index'), name: 'theme', meta: { title: 'theme', icon: 'theme' }}] + // }, - { - path: '/clipboard', - component: Layout, - redirect: 'noredirect', - children: [{ path: 'index', component: () => import('@/views/clipboard/index'), name: 'clipboardDemo', meta: { title: 'clipboardDemo', icon: 'clipboard' }}] - }, + // { + // path: '/clipboard', + // component: Layout, + // redirect: 'noredirect', + // children: [{ path: 'index', component: () => import('@/views/clipboard/index'), name: 'clipboardDemo', meta: { title: 'clipboardDemo', icon: 'clipboard' }}] + // }, - { - path: '/i18n', - component: Layout, - children: [{ path: 'index', component: () => import('@/views/i18n-demo/index'), name: 'i18n', meta: { title: 'i18n', icon: 'international' }}] - }, + // { + // path: '/i18n', + // component: Layout, + // children: [{ path: 'index', component: () => import('@/views/i18n-demo/index'), name: 'i18n', meta: { title: 'i18n', icon: 'international' }}] + // }, { path: '*', redirect: '/404', hidden: true } ]