Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85803479
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
5 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/boot/routes.js b/src/boot/routes.js
index 1fdb2a1f49..e1961587b1 100644
--- a/src/boot/routes.js
+++ b/src/boot/routes.js
@@ -1,55 +1,55 @@
const PublicTimeline = () => import(/* webpackChunkName: "public-timeline" */ 'components/public_timeline/public_timeline.vue')
const PublicAndExternalTimeline = () => import(/* webpackChunkName: "public-external-timeline" */ 'components/public_and_external_timeline/public_and_external_timeline.vue')
const FriendsTimeline = () => import(/* webpackChunkName: "friends" */ 'components/friends_timeline/friends_timeline.vue')
const TagTimeline = () => import(/* webpackChunkName: "tag-timeline" */ 'components/tag_timeline/tag_timeline.vue')
const ConversationPage = () => import(/* webpackChunkName: "conversation" */ 'components/conversation-page/conversation-page.vue')
const Mentions = () => import(/* webpackChunkName: "mentions" */ 'components/mentions/mentions.vue')
-const DMs = () => import(/* webpackChunkName: "dms" */ 'components/dm_timeline/dm_timeline.vue')
+const DMs = () => import(/* webpackChunkName: "dms", webpackPrefetch: true */ 'components/dm_timeline/dm_timeline.vue')
const UserProfile = () => import(/* webpackChunkName: "user-profile" */ 'components/user_profile/user_profile.vue')
-const Settings = () => import(/* webpackChunkName: "settings" */ 'components/settings/settings.vue')
+const Settings = () => import(/* webpackChunkName: "settings", webpackPrefetch: true */ 'components/settings/settings.vue')
const Registration = () => import(/* webpackChunkName: "registration" */ 'components/registration/registration.vue')
-const UserSettings = () => import(/* webpackChunkName: "user-settings" */ 'components/user_settings/user_settings.vue')
+const UserSettings = () => import(/* webpackChunkName: "user-settings", webpackPrefetch: true */ 'components/user_settings/user_settings.vue')
const FollowRequests = () => import(/* webpackChunkName: "friend-requests" */ 'components/follow_requests/follow_requests.vue')
const OAuthCallback = () => import(/* webpackChunkName: "oauth-callback" */ 'components/oauth_callback/oauth_callback.vue')
-const UserSearch = () => import(/* webpackChunkName: "user-search" */ 'components/user_search/user_search.vue')
-const Notifications = () => import(/* webpackChunkName: "notifications" */ 'components/notifications/notifications.vue')
-const UserPanel = () => import(/* webpackChunkName: "new-status" */ 'components/user_panel/user_panel.vue')
+const UserSearch = () => import(/* webpackChunkName: "user-search", webpackPrefetch: true */ 'components/user_search/user_search.vue')
+const Notifications = () => import(/* webpackChunkName: "notifications", webpackPreload: true */ 'components/notifications/notifications.vue')
+const UserPanel = () => import(/* webpackChunkName: "new-status", webpackPreload: true */ 'components/user_panel/user_panel.vue')
const LoginForm = () => import(/* webpackChunkName: "login" */ 'components/login_form/login_form.vue')
const ChatPanel = () => import(/* webpackChunkName: "chat" */ 'components/chat_panel/chat_panel.vue')
const WhoToFollow = () => import(/* webpackChunkName: "who-to-follow" */ 'components/who_to_follow/who_to_follow.vue')
-const About = () => import(/* webpackChunkName: "about" */ 'components/about/about.vue')
+const About = () => import(/* webpackChunkName: "about", webpackPrefetch: true */ 'components/about/about.vue')
export default (store) => {
return [
{ name: 'root',
path: '/',
redirect: _to => {
return (store.state.users.currentUser
? store.state.instance.redirectRootLogin
: store.state.instance.redirectRootNoLogin) || '/main/all'
}
},
{ name: 'public-external-timeline', path: '/main/all', component: PublicAndExternalTimeline },
{ name: 'public-timeline', path: '/main/public', component: PublicTimeline },
{ name: 'friends', path: '/main/friends', component: FriendsTimeline },
{ name: 'tag-timeline', path: '/tag/:tag', component: TagTimeline },
{ name: 'conversation', path: '/notice/:id', component: ConversationPage, meta: { dontScroll: true } },
{ name: 'user-profile', path: '/users/:id', component: UserProfile },
{ name: 'mentions', path: '/users/:username/mentions', component: Mentions },
{ name: 'dms', path: '/users/:username/dms', component: DMs },
{ name: 'settings', path: '/settings', component: Settings },
{ name: 'registration', path: '/registration', component: Registration },
{ name: 'registration', path: '/registration/:token', component: Registration },
{ name: 'friend-requests', path: '/friend-requests', component: FollowRequests },
{ name: 'user-settings', path: '/user-settings', component: UserSettings },
{ name: 'notifications', path: '/:username/notifications', component: Notifications },
{ name: 'new-status', path: '/:username/new-status', component: UserPanel },
{ name: 'login', path: '/login', component: LoginForm },
{ name: 'chat', path: '/chat', component: ChatPanel, props: () => ({ floating: false }) },
{ name: 'oauth-callback', path: '/oauth-callback', component: OAuthCallback, props: (route) => ({ code: route.query.code }) },
{ name: 'user-search', path: '/user-search', component: UserSearch, props: (route) => ({ query: route.query.query }) },
{ name: 'who-to-follow', path: '/who-to-follow', component: WhoToFollow },
{ name: 'about', path: '/about', component: About },
{ name: 'user-profile', path: '/(users/)?:name', component: UserProfile }
]
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Oct 9, 8:01 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1784539
Default Alt Text
(5 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment