1
- import {
2
- createRouter ,
3
- createWebHistory
4
- } from 'vue-router'
5
-
6
- const routes = [ {
7
- path : '/' ,
8
- component : ( ) => import ( '@/views/About.vue' )
9
- } ,
10
- {
11
- path : '/features' ,
12
- component : ( ) => import ( '@/views/Features.vue' )
13
- } ,
14
- {
15
- path : '/pricing' ,
16
- component : ( ) => import ( '@/views/Pricing.vue' )
17
- } ,
18
- {
19
- path : '/accordion' ,
20
- component : ( ) => import ( '@/layouts/TestAccordion.vue' )
21
- } ,
22
- {
23
- path : '/documentation' ,
24
- component : ( ) => import ( '@/views/Documentation.vue' ) ,
25
- children : [ {
26
- path : '' ,
27
- component : ( ) => import ( '@/docs/Introduction.vue' )
28
- } ,
29
- {
30
- path : 'keyboard-shortcuts' ,
31
- component : ( ) => import ( '@/docs/KeyboardShortcuts.vue' )
32
- } ,
33
- {
34
- path : 'deployment' ,
35
- component : ( ) => import ( '@/docs/Deployment.vue' )
36
- } ,
37
- {
38
- path : 'faq' ,
39
- component : ( ) => import ( '@/docs/FAQ.vue' )
40
- } ,
41
- {
42
- path : 'controls' ,
43
- component : ( ) => import ( '@/docs/Controls.vue' )
44
- }
45
- ]
46
- } ,
47
- {
48
- path : '/feedback' ,
49
- component : ( ) => import ( '@/views/Feedback.vue' )
50
- } ,
51
- {
52
- path : '/feedback/:id' ,
53
- component : ( ) => import ( '@/views/Post.vue' ) ,
54
- props : true
55
- } ,
56
- {
57
- path : '/search' ,
58
- component : ( ) => import ( '@/views/Search.vue' )
59
- } ,
60
- {
61
- path : '/search/:id' ,
62
- component : ( ) => import ( '@/views/Component.vue' ) ,
63
- props : true
64
- } ,
65
- {
66
- path : '/support' ,
67
- component : ( ) => import ( '@/views/Support.vue' )
68
- } ,
69
- {
70
- path : '/terms-of-service' ,
71
- component : ( ) => import ( '@/views/TermsOfService.vue' )
72
- } ,
73
- {
74
- path : '/privacy-policy' ,
75
- component : ( ) => import ( '@/views/PrivacyPolicy.vue' )
76
- } ,
77
- {
78
- path : '/data-deletion' ,
79
- component : ( ) => import ( '@/views/DataDeletion.vue' )
80
- } ,
81
- {
82
- path : '/release-log' ,
83
- component : ( ) => import ( '@/views/ReleaseLog.vue' )
84
- }
1
+ import { createRouter , createWebHistory } from 'vue-router'
2
+ const routes = [
3
+ {
4
+ path : '/' ,
5
+ component : ( ) => import ( '@/views/About.vue' )
6
+ } ,
7
+ {
8
+ path : '/features' ,
9
+ component : ( ) => import ( '@/views/Features.vue' )
10
+ } ,
11
+ {
12
+ path : '/pricing' ,
13
+ component : ( ) => import ( '@/views/Pricing.vue' )
14
+ } ,
15
+ {
16
+ path : '/accordion' ,
17
+ component : ( ) => import ( '@/layouts/TestAccordion.vue' )
18
+ } ,
19
+ {
20
+ path : '/documentation' ,
21
+ component : ( ) => import ( '@/views/Documentation.vue' ) ,
22
+ children : [
23
+ {
24
+ path : '' ,
25
+ component : ( ) => import ( '@/docs/Introduction.vue' )
26
+ } ,
27
+ {
28
+ path : 'keyboard-shortcuts' ,
29
+ component : ( ) => import ( '@/docs/KeyboardShortcuts.vue' )
30
+ } ,
31
+ {
32
+ path : 'deployment' ,
33
+ component : ( ) => import ( '@/docs/Deployment.vue' )
34
+ } ,
35
+ {
36
+ path : 'faq' ,
37
+ component : ( ) => import ( '@/docs/FAQ.vue' )
38
+ } ,
39
+ {
40
+ path : 'controls' ,
41
+ component : ( ) => import ( '@/docs/Controls.vue' )
42
+ }
43
+ ]
44
+ } ,
45
+ {
46
+ path : '/feedback' ,
47
+ component : ( ) => import ( '@/views/Feedback.vue' )
48
+ } ,
49
+ {
50
+ path : '/feedback/:id' ,
51
+ component : ( ) => import ( '@/views/Post.vue' ) ,
52
+ props : true
53
+ } ,
54
+ {
55
+ path : '/search' ,
56
+ component : ( ) => import ( '@/views/Search.vue' )
57
+ } ,
58
+ {
59
+ path : '/search/:id' ,
60
+ component : ( ) => import ( '@/views/Component.vue' ) ,
61
+ props : true
62
+ } ,
63
+ {
64
+ path : '/support' ,
65
+ component : ( ) => import ( '@/views/Support.vue' )
66
+ } ,
67
+ {
68
+ path : '/terms-of-service' ,
69
+ component : ( ) => import ( '@/views/TermsOfService.vue' )
70
+ } ,
71
+ {
72
+ path : '/privacy-policy' ,
73
+ component : ( ) => import ( '@/views/PrivacyPolicy.vue' )
74
+ } ,
75
+ {
76
+ path : '/data-deletion' ,
77
+ component : ( ) => import ( '@/views/DataDeletion.vue' )
78
+ } ,
79
+ {
80
+ path : '/release-log' ,
81
+ component : ( ) => import ( '@/views/ReleaseLog.vue' )
82
+ }
85
83
]
86
-
87
84
const router = createRouter ( {
88
- history : createWebHistory ( "/" ) ,
89
- routes,
90
- scrollBehavior ( to , from , savedPosition ) {
91
- return {
92
- top : 0
93
- }
85
+ history : createWebHistory ( '/' ) ,
86
+ routes,
87
+ scrollBehavior ( to , from , savedPosition ) {
88
+ return {
89
+ top : 0
94
90
}
91
+ }
95
92
} )
96
-
97
- export default router
93
+ export default router
0 commit comments