@@ -7,56 +7,19 @@ import Full from '@/containers/Full'
7
7
// Views
8
8
import Dashboard from '@/views/sample/Dashboard'
9
9
10
- import Colors from '@/views/sample/theme/Colors'
11
- import Typography from '@/views/sample/theme/Typography'
12
-
13
- import Charts from '@/views/sample/Charts'
14
- import Widgets from '@/views/sample/Widgets'
15
- import Loading from '@/views/sample/Loading'
16
-
17
- // Views - Components
18
- import Cards from '@/views/sample/base/Cards'
19
- import Forms from '@/views/sample/base/Forms'
20
- import Switches from '@/views/sample/base/Switches'
21
- import Tables from '@/views/sample/base/Tables'
22
- import Breadcrumbs from '@/views/sample/base/Breadcrumbs'
23
- import Carousels from '@/views/sample/base/Carousels'
24
- import Collapses from '@/views/sample/base/Collapses'
25
- import Jumbotrons from '@/views/sample/base/Jumbotrons'
26
- import ListGroups from '@/views/sample/base/ListGroups'
27
- import Navs from '@/views/sample/base/Navs'
28
- import Navbars from '@/views/sample/base/Navbars'
29
- import Paginations from '@/views/sample/base/Paginations'
30
- import Popovers from '@/views/sample/base/Popovers'
31
- import ProgressBars from '@/views/sample/base/ProgressBars'
32
- import Tooltips from '@/views/sample/base/Tooltips'
33
-
34
- // Views - Buttons
35
- import StandardButtons from '@/views/sample/buttons/StandardButtons'
36
- import ButtonGroups from '@/views/sample/buttons/ButtonGroups'
37
- import Dropdowns from '@/views/sample/buttons/Dropdowns'
38
- import SocialButtons from '@/views/sample/buttons/SocialButtons'
39
-
40
- // Views - Icons
41
- import Flags from '@/views/sample/icons/Flags'
42
- import FontAwesome from '@/views/sample/icons/FontAwesome'
43
- import SimpleLineIcons from '@/views/sample/icons/SimpleLineIcons'
44
-
45
- // Views - Notifications
46
- import Alerts from '@/views/sample/notifications/Alerts'
47
- import Badges from '@/views/sample/notifications/Badges'
48
- import Modals from '@/views/sample/notifications/Modals'
49
-
50
10
// Views - Pages
51
11
import Page404 from '@/views/pages/Page404'
52
12
import Page500 from '@/views/pages/Page500'
53
13
import Login from '@/views/pages/Login'
54
14
import Register from '@/views/pages/Register'
55
15
16
+ // Sample route
17
+ import sample from './sample'
18
+
56
19
Vue . use ( Router )
57
20
58
21
export default new Router ( {
59
- mode : 'history' , // Demo is living in GitHub.io, so required!
22
+ mode : 'history' ,
60
23
linkActiveClass : 'open active' ,
61
24
scrollBehavior : ( ) => ( { y : 0 } ) ,
62
25
routes : [
@@ -71,196 +34,7 @@ export default new Router({
71
34
name : 'Dashboard' ,
72
35
component : Dashboard ,
73
36
} ,
74
- {
75
- path : 'theme' ,
76
- redirect : '/theme/colors' ,
77
- name : 'Theme' ,
78
- component : { render ( c ) { return c ( 'router-view' ) } } ,
79
- children : [
80
- {
81
- path : 'colors' ,
82
- name : 'Colors' ,
83
- component : Colors ,
84
- } ,
85
- {
86
- path : 'typography' ,
87
- name : 'Typography' ,
88
- component : Typography ,
89
- } ,
90
- ] ,
91
- } ,
92
- {
93
- path : 'charts' ,
94
- name : 'Charts' ,
95
- component : Charts ,
96
- } ,
97
- {
98
- path : 'widgets' ,
99
- name : 'Widgets' ,
100
- component : Widgets ,
101
- } ,
102
- {
103
- path : 'loading' ,
104
- name : 'Loading' ,
105
- component : Loading ,
106
- } ,
107
- {
108
- path : 'base' ,
109
- redirect : '/base/cards' ,
110
- name : 'Base' ,
111
- component : { render ( c ) { return c ( 'router-view' ) } } ,
112
- children : [
113
- {
114
- path : 'cards' ,
115
- name : 'Cards' ,
116
- component : Cards ,
117
- } ,
118
- {
119
- path : 'forms' ,
120
- name : 'Forms' ,
121
- component : Forms ,
122
- } ,
123
- {
124
- path : 'switches' ,
125
- name : 'Switches' ,
126
- component : Switches ,
127
- } ,
128
- {
129
- path : 'tables' ,
130
- name : 'Tables' ,
131
- component : Tables ,
132
- } ,
133
- {
134
- path : 'breadcrumbs' ,
135
- name : 'Breadcrumbs' ,
136
- component : Breadcrumbs ,
137
- } ,
138
- {
139
- path : 'carousels' ,
140
- name : 'Carousels' ,
141
- component : Carousels ,
142
- } ,
143
- {
144
- path : 'collapses' ,
145
- name : 'Collapses' ,
146
- component : Collapses ,
147
- } ,
148
- {
149
- path : 'jumbotrons' ,
150
- name : 'Jumbotrons' ,
151
- component : Jumbotrons ,
152
- } ,
153
- {
154
- path : 'list-groups' ,
155
- name : 'List Groups' ,
156
- component : ListGroups ,
157
- } ,
158
- {
159
- path : 'navs' ,
160
- name : 'Navs' ,
161
- component : Navs ,
162
- } ,
163
- {
164
- path : 'navbars' ,
165
- name : 'Navbars' ,
166
- component : Navbars ,
167
- } ,
168
- {
169
- path : 'paginations' ,
170
- name : 'Paginations' ,
171
- component : Paginations ,
172
- } ,
173
- {
174
- path : 'popovers' ,
175
- name : 'Popovers' ,
176
- component : Popovers ,
177
- } ,
178
- {
179
- path : 'progress-bars' ,
180
- name : 'Progress Bars' ,
181
- component : ProgressBars ,
182
- } ,
183
- {
184
- path : 'tooltips' ,
185
- name : 'Tooltips' ,
186
- component : Tooltips ,
187
- } ,
188
- ] ,
189
- } ,
190
- {
191
- path : 'buttons' ,
192
- redirect : '/buttons/buttons' ,
193
- name : 'Buttons' ,
194
- component : { render ( c ) { return c ( 'router-view' ) } } ,
195
- children : [
196
- {
197
- path : 'standard-buttons' ,
198
- name : 'Standard Buttons' ,
199
- component : StandardButtons ,
200
- } ,
201
- {
202
- path : 'button-groups' ,
203
- name : 'Button Groups' ,
204
- component : ButtonGroups ,
205
- } ,
206
- {
207
- path : 'dropdowns' ,
208
- name : 'Dropdowns' ,
209
- component : Dropdowns ,
210
- } ,
211
- {
212
- path : 'social-buttons' ,
213
- name : 'Social Buttons' ,
214
- component : SocialButtons ,
215
- } ,
216
- ] ,
217
- } ,
218
- {
219
- path : 'icons' ,
220
- redirect : '/icons/font-awesome' ,
221
- name : 'Icons' ,
222
- component : { render ( c ) { return c ( 'router-view' ) } } ,
223
- children : [
224
- {
225
- path : 'flags' ,
226
- name : 'Flags' ,
227
- component : Flags ,
228
- } ,
229
- {
230
- path : 'font-awesome' ,
231
- name : 'Font Awesome' ,
232
- component : FontAwesome ,
233
- } ,
234
- {
235
- path : 'simple-line-icons' ,
236
- name : 'Simple Line Icons' ,
237
- component : SimpleLineIcons ,
238
- } ,
239
- ] ,
240
- } ,
241
- {
242
- path : 'notifications' ,
243
- redirect : '/notifications/alerts' ,
244
- name : 'Notifications' ,
245
- component : { render ( c ) { return c ( 'router-view' ) } } ,
246
- children : [
247
- {
248
- path : 'alerts' ,
249
- name : 'Alerts' ,
250
- component : Alerts ,
251
- } ,
252
- {
253
- path : 'badges' ,
254
- name : 'Badges' ,
255
- component : Badges ,
256
- } ,
257
- {
258
- path : 'modals' ,
259
- name : 'Modals' ,
260
- component : Modals ,
261
- } ,
262
- ] ,
263
- } ,
37
+ ...sample ,
264
38
] ,
265
39
} ,
266
40
{
0 commit comments