aboutsummaryrefslogtreecommitdiff
path: root/src/boot/routes.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2018-12-28 21:39:54 +0200
committershpuld <shp@cock.li>2018-12-28 21:39:54 +0200
commit85c058e95c04245dacf3ffb6b45a6eceb3253e7b (patch)
treee4a60a67ead56c8d4bdf675bfcb3a1fe914dc7b9 /src/boot/routes.js
parent47520818180eb9f0eb8d98fbed716ce8c72a46c1 (diff)
New routes, notifications, other impovements in side drwaer
Diffstat (limited to 'src/boot/routes.js')
-rw-r--r--src/boot/routes.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/boot/routes.js b/src/boot/routes.js
index 8ea8cc7f..4de0e104 100644
--- a/src/boot/routes.js
+++ b/src/boot/routes.js
@@ -12,6 +12,10 @@ import UserSettings from 'components/user_settings/user_settings.vue'
import FollowRequests from 'components/follow_requests/follow_requests.vue'
import OAuthCallback from 'components/oauth_callback/oauth_callback.vue'
import UserSearch from 'components/user_search/user_search.vue'
+import Notifications from 'components/notifications/notifications.vue'
+import UserPanel from 'components/user_panel/user_panel.vue'
+import LoginForm from 'components/login_form/login_form.vue'
+import ChatPanel from 'components/chat_panel/chat_panel.vue'
export default (store) => {
return [
@@ -62,6 +66,10 @@ export default (store) => {
{ name: 'friend-requests', path: '/~/friend-requests', component: FollowRequests },
{ name: 'user-settings', path: '/~/user-settings', component: UserSettings },
{ 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: 'user-search', path: '/~/user-search', component: UserSearch, props: (route) => ({ query: route.query.query }) },
+ { 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 }) }
]
}