1
1
import Home from '@/presentation/pages/Home.vue' ;
2
2
import Note from '@/presentation/pages/Note.vue' ;
3
3
import Landing from '@/presentation/pages/Landing.vue' ;
4
- import Settings from '@/presentation/pages/Settings.vue' ;
5
- import NoteSettings from '@/presentation/pages/NoteSettings.vue' ;
6
- import ErrorPage from '@/presentation/pages/Error.vue' ;
7
- import JoinPage from '@/presentation/pages/Join.vue' ;
8
- import AuthorizationPage from '@/presentation/pages/AuthorizationPage.vue' ;
9
4
import type { RouteRecordRaw } from 'vue-router' ;
10
- import AddTool from '@/presentation/pages/marketplace/AddTool.vue' ;
11
- import MarketplacePage from '@/presentation/pages/marketplace/MarketplacePage.vue' ;
12
- import History from '@/presentation/pages/History.vue' ;
13
- import HistoryVersion from '@/presentation/pages/HistoryVersion.vue' ;
14
5
import MarketplaceTools from '@/presentation/pages/marketplace/MarketplaceTools.vue' ;
15
6
16
7
// Default production hostname for homepage. If different, then custom hostname used
@@ -48,7 +39,7 @@ const routes: RouteRecordRaw[] = [
48
39
{
49
40
name : 'history' ,
50
41
path : '/note/:noteId/history' ,
51
- component : History ,
42
+ component : ( ) => import ( '@/presentation/pages/ History.vue' ) ,
52
43
meta : {
53
44
layout : 'fullpage' ,
54
45
pageTitleI18n : 'pages.history' ,
@@ -61,7 +52,7 @@ const routes: RouteRecordRaw[] = [
61
52
{
62
53
name : 'history_version' ,
63
54
path : '/note/:noteId/history/:historyId' ,
64
- component : HistoryVersion ,
55
+ component : ( ) => import ( '@/presentation/pages/ HistoryVersion.vue' ) ,
65
56
meta : {
66
57
layout : 'fullpage' ,
67
58
pageTitleI18n : 'pages.historyVersion' ,
@@ -109,7 +100,7 @@ const routes: RouteRecordRaw[] = [
109
100
{
110
101
name : 'settings' ,
111
102
path : `/settings/` ,
112
- component : Settings ,
103
+ component : ( ) => import ( '@/presentation/pages/ Settings.vue' ) ,
113
104
meta : {
114
105
pageTitleI18n : 'pages.userSettings' ,
115
106
authRequired : true ,
@@ -118,7 +109,7 @@ const routes: RouteRecordRaw[] = [
118
109
{
119
110
name : 'note_settings' ,
120
111
path : '/note/:id/settings' ,
121
- component : NoteSettings ,
112
+ component : ( ) => import ( '@/presentation/pages/ NoteSettings.vue' ) ,
122
113
props : route => ( {
123
114
id : String ( route . params . id ) ,
124
115
} ) ,
@@ -130,7 +121,7 @@ const routes: RouteRecordRaw[] = [
130
121
{
131
122
name : 'marketplacePage' ,
132
123
path : `/` ,
133
- component : MarketplacePage ,
124
+ component : ( ) => import ( '@/presentation/pages/marketplace/ MarketplacePage.vue' ) ,
134
125
redirect : '/marketplace' ,
135
126
meta : {
136
127
pageTitleI18n : 'pages.marketplace' ,
@@ -147,7 +138,7 @@ const routes: RouteRecordRaw[] = [
147
138
{
148
139
name : 'marketplaceAddTool' ,
149
140
path : `marketplace/add` ,
150
- component : AddTool ,
141
+ component : ( ) => import ( '@/presentation/pages/marketplace/ AddTool.vue' ) ,
151
142
meta : {
152
143
pageTitleI18n : 'pages.addTool' ,
153
144
authRequired : true ,
@@ -157,7 +148,7 @@ const routes: RouteRecordRaw[] = [
157
148
{
158
149
name : 'join' ,
159
150
path : '/join/:hash' ,
160
- component : JoinPage ,
151
+ component : ( ) => import ( '@/presentation/pages/Join.vue' ) ,
161
152
props : route => ( {
162
153
invitationHash : String ( route . params . hash ) ,
163
154
} ) ,
@@ -170,7 +161,7 @@ const routes: RouteRecordRaw[] = [
170
161
{
171
162
name : 'authorization' ,
172
163
path : '/auth' ,
173
- component : AuthorizationPage ,
164
+ component : ( ) => import ( '@/presentation/pages/ AuthorizationPage.vue' ) ,
174
165
props : route => ( {
175
166
redirect : String ( route . query . redirect ) ,
176
167
} ) ,
@@ -184,7 +175,7 @@ const routes: RouteRecordRaw[] = [
184
175
*/
185
176
{
186
177
path : '/:pathMatch(.*)*' ,
187
- component : ErrorPage ,
178
+ component : ( ) => import ( '@/presentation/pages/Error.vue' ) ,
188
179
meta : {
189
180
layout : 'fullpage' ,
190
181
pageTitleI18n : 'pages.notFound' ,
@@ -199,7 +190,7 @@ const routes: RouteRecordRaw[] = [
199
190
*/
200
191
{
201
192
path : '/error/:code' ,
202
- component : ErrorPage ,
193
+ component : ( ) => import ( '@/presentation/pages/Error.vue' ) ,
203
194
meta : {
204
195
layout : 'fullpage' ,
205
196
pageTitleI18n : 'pages.error' ,
0 commit comments