Skip to content

Commit

Permalink
refactor: standardized files name (PanJiaChen#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen authored and illidanet committed Apr 12, 2019
1 parent c40d917 commit c1b3de2
Show file tree
Hide file tree
Showing 66 changed files with 74 additions and 75 deletions.
2 changes: 1 addition & 1 deletion mock/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { param2Obj } from '../src/utils'
import user from './user'
import role from './role'
import article from './article'
import search from './remoteSearch'
import search from './remote-search'

const mocks = [
...user,
Expand Down
File renamed without changes.
40 changes: 20 additions & 20 deletions mock/role/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ export const constantRoutes = [
},
{
path: '/auth-redirect',
component: 'views/login/authRedirect',
component: 'views/login/auth-redirect',
hidden: true
},
{
path: '/404',
component: 'views/errorPage/404',
component: 'views/error-page/404',
hidden: true
},
{
path: '/401',
component: 'views/errorPage/401',
component: 'views/error-page/401',
hidden: true
},
{
Expand Down Expand Up @@ -150,19 +150,19 @@ export const asyncRoutes = [
},
{
path: 'json-editor',
component: 'views/components-demo/jsonEditor',
component: 'views/components-demo/json-editor',
name: 'JsonEditorDemo',
meta: { title: 'jsonEditor' }
},
{
path: 'splitpane',
component: 'views/components-demo/splitpane',
path: 'split-pane',
component: 'views/components-demo/split-pane',
name: 'SplitpaneDemo',
meta: { title: 'splitPane' }
},
{
path: 'avatar-upload',
component: 'views/components-demo/avatarUpload',
component: 'views/components-demo/avatar-upload',
name: 'AvatarUploadDemo',
meta: { title: 'avatarUpload' }
},
Expand All @@ -180,7 +180,7 @@ export const asyncRoutes = [
},
{
path: 'count-to',
component: 'views/components-demo/countTo',
component: 'views/components-demo/count-to',
name: 'CountToDemo',
meta: { title: 'countTo' }
},
Expand All @@ -192,31 +192,31 @@ export const asyncRoutes = [
},
{
path: 'back-to-top',
component: 'views/components-demo/backToTop',
component: 'views/components-demo/back-to-top',
name: 'BackToTopDemo',
meta: { title: 'backToTop' }
},
{
path: 'drag-dialog',
component: 'views/components-demo/dragDialog',
component: 'views/components-demo/drag-dialog',
name: 'DragDialogDemo',
meta: { title: 'dragDialog' }
},
{
path: 'drag-select',
component: 'views/components-demo/dragSelect',
component: 'views/components-demo/drag-select',
name: 'DragSelectDemo',
meta: { title: 'dragSelect' }
},
{
path: 'dnd-list',
component: 'views/components-demo/dndList',
component: 'views/components-demo/dnd-list',
name: 'DndListDemo',
meta: { title: 'dndList' }
},
{
path: 'drag-kanban',
component: 'views/components-demo/dragKanban',
component: 'views/components-demo/drag-kanban',
name: 'DragKanbanDemo',
meta: { title: 'dragKanban' }
}
Expand Down Expand Up @@ -370,13 +370,13 @@ export const asyncRoutes = [
children: [
{
path: '401',
component: 'views/errorPage/401',
component: 'views/error-page/401',
name: 'Page401',
meta: { title: 'page401', noCache: true }
},
{
path: '404',
component: 'views/errorPage/404',
component: 'views/error-page/404',
name: 'Page404',
meta: { title: 'page404', noCache: true }
}
Expand All @@ -390,7 +390,7 @@ export const asyncRoutes = [
children: [
{
path: 'log',
component: 'views/errorLog/index',
component: 'views/error-log/index',
name: 'ErrorLog',
meta: { title: 'errorLog', icon: 'bug' }
}
Expand All @@ -409,25 +409,25 @@ export const asyncRoutes = [
children: [
{
path: 'export-excel',
component: 'views/excel/exportExcel',
component: 'views/excel/export-excel',
name: 'ExportExcel',
meta: { title: 'exportExcel' }
},
{
path: 'export-selected-excel',
component: 'views/excel/selectExcel',
component: 'views/excel/select-excel',
name: 'SelectExcel',
meta: { title: 'selectExcel' }
},
{
path: 'export-merge-header',
component: 'views/excel/mergeHeader',
component: 'views/excel/merge-header',
name: 'MergeHeader',
meta: { title: 'mergeHeader' }
},
{
path: 'upload-excel',
component: 'views/excel/uploadExcel',
component: 'views/excel/upload-excel',
name: 'UploadExcel',
meta: { title: 'uploadExcel' }
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/MarkdownEditor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'tui-editor/dist/tui-editor.css' // editor ui
import 'tui-editor/dist/tui-editor-contents.css' // editor content
import Editor from 'tui-editor'
import defaultOptions from './defaultOptions'
import defaultOptions from './default-options'
export default {
name: 'MarddownEditor',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Pagination/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</template>

<script>
import { scrollTo } from '@/utils/scrollTo'
import { scrollTo } from '@/utils/scroll-to'
export default {
name: 'Pagination',
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/Tinymce/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</template>

<script>
import editorImage from './components/editorImage'
import editorImage from './components/EditorImage'
import plugins from './plugins'
import toolbar from './toolbar'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import router from './router'
import i18n from './lang' // Internationalization
import './icons' // icon
import './permission' // permission control
import './utils/errorLog' // error log
import './utils/error-log' // error log

import * as filters from './filters' // global filters

Expand Down
20 changes: 10 additions & 10 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ export const constantRoutes = [
},
{
path: '/auth-redirect',
component: () => import('@/views/login/authRedirect'),
component: () => import('@/views/login/auth-redirect'),
hidden: true
},
{
path: '/404',
component: () => import('@/views/errorPage/404'),
component: () => import('@/views/error-page/404'),
hidden: true
},
{
path: '/401',
component: () => import('@/views/errorPage/401'),
component: () => import('@/views/error-page/401'),
hidden: true
},
{
Expand Down Expand Up @@ -232,13 +232,13 @@ export const asyncRoutes = [
children: [
{
path: '401',
component: () => import('@/views/errorPage/401'),
component: () => import('@/views/error-page/401'),
name: 'Page401',
meta: { title: 'page401', noCache: true }
},
{
path: '404',
component: () => import('@/views/errorPage/404'),
component: () => import('@/views/error-page/404'),
name: 'Page404',
meta: { title: 'page404', noCache: true }
}
Expand All @@ -252,7 +252,7 @@ export const asyncRoutes = [
children: [
{
path: 'log',
component: () => import('@/views/errorLog/index'),
component: () => import('@/views/error-log/index'),
name: 'ErrorLog',
meta: { title: 'errorLog', icon: 'bug' }
}
Expand All @@ -271,25 +271,25 @@ export const asyncRoutes = [
children: [
{
path: 'export-excel',
component: () => import('@/views/excel/exportExcel'),
component: () => import('@/views/excel/export-excel'),
name: 'ExportExcel',
meta: { title: 'exportExcel' }
},
{
path: 'export-selected-excel',
component: () => import('@/views/excel/selectExcel'),
component: () => import('@/views/excel/select-excel'),
name: 'SelectExcel',
meta: { title: 'selectExcel' }
},
{
path: 'export-merge-header',
component: () => import('@/views/excel/mergeHeader'),
component: () => import('@/views/excel/merge-header'),
name: 'MergeHeader',
meta: { title: 'mergeHeader' }
},
{
path: 'upload-excel',
component: () => import('@/views/excel/uploadExcel'),
component: () => import('@/views/excel/upload-excel'),
name: 'UploadExcel',
meta: { title: 'uploadExcel' }
}
Expand Down
4 changes: 2 additions & 2 deletions src/router/modules/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const chartsRouter = {
meta: { title: 'lineChart', noCache: true }
},
{
path: 'mixchart',
component: () => import('@/views/charts/mixChart'),
path: 'mix-chart',
component: () => import('@/views/charts/mix-chart'),
name: 'MixChart',
meta: { title: 'mixChart', noCache: true }
}
Expand Down
20 changes: 10 additions & 10 deletions src/router/modules/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ const componentsRouter = {
},
{
path: 'json-editor',
component: () => import('@/views/components-demo/jsonEditor'),
component: () => import('@/views/components-demo/json-editor'),
name: 'JsonEditorDemo',
meta: { title: 'jsonEditor' }
},
{
path: 'splitpane',
component: () => import('@/views/components-demo/splitpane'),
path: 'split-pane',
component: () => import('@/views/components-demo/split-pane'),
name: 'SplitpaneDemo',
meta: { title: 'splitPane' }
},
{
path: 'avatar-upload',
component: () => import('@/views/components-demo/avatarUpload'),
component: () => import('@/views/components-demo/avatar-upload'),
name: 'AvatarUploadDemo',
meta: { title: 'avatarUpload' }
},
Expand All @@ -56,7 +56,7 @@ const componentsRouter = {
},
{
path: 'count-to',
component: () => import('@/views/components-demo/countTo'),
component: () => import('@/views/components-demo/count-to'),
name: 'CountToDemo',
meta: { title: 'countTo' }
},
Expand All @@ -68,31 +68,31 @@ const componentsRouter = {
},
{
path: 'back-to-top',
component: () => import('@/views/components-demo/backToTop'),
component: () => import('@/views/components-demo/back-to-top'),
name: 'BackToTopDemo',
meta: { title: 'backToTop' }
},
{
path: 'drag-dialog',
component: () => import('@/views/components-demo/dragDialog'),
component: () => import('@/views/components-demo/drag-dialog'),
name: 'DragDialogDemo',
meta: { title: 'dragDialog' }
},
{
path: 'drag-select',
component: () => import('@/views/components-demo/dragSelect'),
component: () => import('@/views/components-demo/drag-select'),
name: 'DragSelectDemo',
meta: { title: 'dragSelect' }
},
{
path: 'dnd-list',
component: () => import('@/views/components-demo/dndList'),
component: () => import('@/views/components-demo/dnd-list'),
name: 'DndListDemo',
meta: { title: 'dndList' }
},
{
path: 'drag-kanban',
component: () => import('@/views/components-demo/dragKanban'),
component: () => import('@/views/components-demo/drag-kanban'),
name: 'DragKanbanDemo',
meta: { title: 'dragKanban' }
}
Expand Down
8 changes: 4 additions & 4 deletions src/router/modules/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ const tableRouter = {
children: [
{
path: 'dynamic-table',
component: () => import('@/views/table/dynamicTable/index'),
component: () => import('@/views/table/dynamic-table/index'),
name: 'DynamicTable',
meta: { title: 'dynamicTable' }
},
{
path: 'drag-table',
component: () => import('@/views/table/dragTable'),
component: () => import('@/views/table/drag-table'),
name: 'DragTable',
meta: { title: 'dragTable' }
},
{
path: 'inline-edit-table',
component: () => import('@/views/table/inlineEditTable'),
component: () => import('@/views/table/inline-edit-table'),
name: 'InlineEditTable',
meta: { title: 'inlineEditTable' }
},
{
path: 'complex-table',
component: () => import('@/views/table/complexTable'),
component: () => import('@/views/table/complex-table'),
name: 'ComplexTable',
meta: { title: 'complexTable' }
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/views/charts/keyboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script>
import Chart from '@/components/Charts/keyboard'
import Chart from '@/components/Charts/Keyboard'
export default {
name: 'KeyboardChart',
Expand Down
2 changes: 1 addition & 1 deletion src/views/charts/line.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script>
import Chart from '@/components/Charts/lineMarker'
import Chart from '@/components/Charts/LineMarker'
export default {
name: 'LineChart',
Expand Down
Loading

0 comments on commit c1b3de2

Please sign in to comment.