Skip to content

Commit

Permalink
Bug/breadcrumps (epicmaxco#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderBoriskin authored Sep 14, 2018
1 parent f4ee0dc commit 74a6650
Show file tree
Hide file tree
Showing 7 changed files with 144 additions and 150 deletions.
4 changes: 3 additions & 1 deletion src/components/admin/app-breadcrumbs/AppBreadcrumbs.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<template>
<div class="row">
<div class="col-md-12">
<vuestic-breadcrumbs :breadcrumbs="breadcrumbs" :current-path="currentRoute"/>
<vuestic-widget class="no-padding no-v-padding">
<vuestic-breadcrumbs :breadcrumbs="breadcrumbs" :current-path="currentRoute"/>
</vuestic-widget>
</div>
</div>
</template>
Expand Down
70 changes: 38 additions & 32 deletions src/components/admin/app-breadcrumbs/Breadcrumbs.js
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
export default {
root: {
path: '/',
name: '/',
displayName: 'Home'
},
routes: [
{
path: 'dashboard',
name: 'dashboard',
displayName: 'menu.dashboard'
},
{
path: 'statistics',
name: 'statistics',
displayName: 'menu.statistics',
disabled: true,
children: [
{
path: 'charts',
name: 'charts',
displayName: 'menu.charts',
},
{
path: 'progress-bars',
name: 'progress-bars',
displayName: 'menu.progressBars'
},
]
},
{
path: 'forms',
name: 'forms',
displayName: 'menu.forms',
disabled: true,
children: [
{
path: 'form-elements',
name: 'form-elements',
displayName: 'menu.formElements'
},
{
path: 'form-wizards',
name: 'form-wizards',
displayName: 'menu.formWizards'
},
{
path: 'medium-editor',
name: 'medium-editor',
displayName: 'menu.mediumEditor'
}
]
},
{
path: 'tables',
name: 'tables',
displayName: 'menu.tables'
},
{
path: 'ui',
name: 'ui',
displayName: 'menu.uiElements',
disabled: true,
children: [
{
path: 'typography',
name: 'typography',
displayName: 'menu.typography'
},
{
path: 'buttons',
name: 'buttons',
displayName: 'menu.buttons'
},
{
Expand All @@ -68,81 +68,87 @@ export default {
displayName: 'menu.colorPickers'
},
{
path: 'notifications',
name: 'notifications',
displayName: 'menu.notifications'
},
{
path: 'icons',
displayName: 'menu.icons'
name: 'icon-sets',
displayName: 'menu.icons',
children: [
{
displayName: 'concrete',
name: 'icon-set',
},
]
},
{
path: 'spinners',
name: 'spinners',
displayName: 'menu.spinners',
},
{
path: 'grid',
name: 'grid',
displayName: 'menu.grid',
},
{
path: 'modals',
name: 'modals',
displayName: 'menu.modals'
},
{
path: 'file-upload',
name: 'file-upload',
displayName: 'menu.fileUpload'
},
{
path: 'tags',
name: 'tags',
displayName: 'menu.tags'
},
{
path: 'cards',
name: 'cards',
displayName: 'menu.cards'
},
{
path: 'tree-view',
name: 'tree-view',
displayName: 'menu.treeView'
}
]
},
{
path: 'extra',
name: 'extra',
displayName: 'menu.extra'
},
{
path: 'maps',
name: 'maps',
displayName: 'menu.maps',
disabled: true,
children: [
{
path: 'google-maps',
name: 'google-maps',
displayName: 'Google Maps'
},
{
path: 'yandex-maps',
name: 'yandex-maps',
displayName: 'Yandex Maps'
},
{
path: 'leaflet-maps',
name: 'leaflet-maps',
displayName: 'Leaflet Maps',
},
{
path: 'bubble-maps',
name: 'bubble-maps',
displayName: 'Bubble Maps',
},
{
path: 'line-maps',
name: 'line-maps',
displayName: 'Line Maps'
}
]
},
{
path: 'pages',
name: 'pages',
displayName: 'menu.pages',
disabled: true,
children: [
{
path: '404-pages',
name: '404-pages',
displayName: '404 Pages'
}
]
Expand Down
12 changes: 6 additions & 6 deletions src/components/ui/collapse/Collapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@
</template>

<script>
import VuesticCollapse from '../../../vuestic-theme/vuestic-components/vuestic-collapse/VuesticCollapse'
import VuesticAccordion from '../../../vuestic-theme/vuestic-components/vuestic-collapse/VuesticAccordion'
import VuesticCollapse from '../../../vuestic-theme/vuestic-components/vuestic-collapse/VuesticCollapse'
import VuesticAccordion from '../../../vuestic-theme/vuestic-components/vuestic-collapse/VuesticAccordion'
export default {
name: 'cards',
components: { VuesticCollapse, VuesticAccordion }
}
export default {
name: 'cards',
components: { VuesticCollapse, VuesticAccordion }
}
</script>

<style lang="scss">
Expand Down
34 changes: 12 additions & 22 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export default new Router({
default: true,
},
{
name: 'statistics',
path: 'statistics',
component: EmptyParentComponent,
children: [
Expand All @@ -97,14 +98,11 @@ export default new Router({
name: 'progress-bars',
path: 'progress-bars',
component: lazyLoading('statistics/progress-bars/ProgressBars'),
},
{
path: '',
redirect: { name: 'charts' },
},
}
],
},
{
name: 'forms',
path: 'forms',
component: EmptyParentComponent,
children: [
Expand All @@ -116,17 +114,13 @@ export default new Router({
{
name: 'form-wizards',
path: 'form-wizards',
component: lazyLoading('forms/form-wizard/FormWizard'),
component: lazyLoading('forms/form-wizard/FormWizard')
},
{
name: 'medium-editor',
path: 'medium-editor',
component: lazyLoading('forms/medium-editor/MediumEditor'),
},
{
path: '',
redirect: { name: 'form-elements' },
},
}
],
},
{
Expand All @@ -135,6 +129,7 @@ export default new Router({
component: lazyLoading('tables/Table'),
},
{
name: 'ui',
path: 'ui',
component: EmptyParentComponent,
children: [
Expand Down Expand Up @@ -163,11 +158,12 @@ export default new Router({
component: lazyLoading('ui/icons/Icons'),
children: [
{
name: 'icons',
name: 'icon-sets',
path: '', // Default route
component: lazyLoading('ui/icons/SetsList'),
},
{
name: 'icon-set',
path: ':name',
component: lazyLoading('ui/icons/Set'),
props: true,
Expand Down Expand Up @@ -213,11 +209,7 @@ export default new Router({
name: 'collapse',
path: 'collapse',
component: lazyLoading('ui/collapse/Collapse')
},
{
path: '',
redirect: { name: 'typography' },
},
}
],
},
{
Expand All @@ -226,6 +218,7 @@ export default new Router({
component: lazyLoading('extra/Extra'),
},
{
name: 'maps',
path: 'maps',
component: EmptyParentComponent,
children: [
Expand Down Expand Up @@ -253,14 +246,11 @@ export default new Router({
name: 'line-maps',
path: 'line-maps',
component: lazyLoading('maps/line-maps/LineMapsPage'),
},
{
path: '',
redirect: { name: 'google-maps' },
},
}
],
},
{
name: 'pages',
path: 'pages',
component: EmptyParentComponent,
children: [
Expand Down
Loading

0 comments on commit 74a6650

Please sign in to comment.