Created
December 16, 2020 07:40
-
-
Save ennjoy/60d2189aa4d60c2ee3607b717675a259 to your computer and use it in GitHub Desktop.
route is IVinete
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const routes = [ | |
{ | |
path: '/:pathMatch(.*)*', | |
component: () => import(/* webpackChunkName: "notfound" */ '../layouts/NotFound'), | |
meta: { | |
guest: true, | |
requiresAuth: true | |
} | |
}, | |
{ | |
path: '/', | |
name: 'Index', | |
component: () => import(/* webpackChunkName: "index" */ '../layouts/Index'), | |
meta: { | |
guest: true | |
} | |
}, | |
{ | |
path: '/login', | |
name: 'Login', | |
component: () => import(/* webpackChunkName: "login" */ '../layouts/Auth/Login'), | |
meta: { | |
guest: true | |
} | |
}, | |
{ | |
path: '/signup', | |
name: 'Signup', | |
component: () => import(/* webpackChunkName: "signup" */ '../layouts/Auth/Signup'), | |
meta: { | |
guest: true | |
} | |
}, | |
{ | |
path: '/feed', | |
name: 'Feed', | |
component: () => import(/* webpackChunkName: "feed" */ '../layouts/Feed/Main'), | |
redirect: { | |
name: 'FeedNews' | |
}, | |
children: [ | |
{ | |
path: '', | |
name: 'FeedNews', | |
component: () => import(/* webpackChunkName: "feedtop" */ '../layouts/Feed/Feed') | |
}, | |
{ | |
path: 'top', | |
name: 'FeedTop', | |
component: () => import(/* webpackChunkName: "feedtop" */ '../layouts/Feed/Top') | |
} | |
], | |
meta: { | |
requiresAuth: true | |
} | |
}, | |
{ | |
path: '/id:userId', | |
component: () => import(/* webpackChunkName: "users" */ '../layouts/Users/Main'), | |
children: [ | |
{ | |
path: '', | |
name: 'Users', | |
component: () => import(/* webpackChunkName: "usersprofile" */ '../layouts/Users/Profile'), | |
}, | |
{ | |
path: 'friends', | |
name: 'UsersFriends', | |
component: () => import(/* webpackChunkName: "usersfriends" */ '../layouts/Users/Friends'), | |
}, | |
{ | |
path: 'photos', | |
name: 'UsersPhotos', | |
component: () => import(/* webpackChunkName: "usersphotos" */ '../layouts/Users/Photos'), | |
}, | |
{ | |
path: 'about', | |
name: 'UsersAbout', | |
component: () => import(/* webpackChunkName: "usersabout" */ '../layouts/Users/About'), | |
} | |
], | |
meta: { | |
requiresAuth: true | |
} | |
}, | |
{ | |
path: '/page:pageId', | |
component: () => import(/* webpackChunkName: "pages" */ '../layouts/Pages/Main'), | |
children: [ | |
{ | |
path: '', | |
name: 'Pages', | |
component: () => import(/* webpackChunkName: "pagesprofile" */ '../layouts/Pages/Page') | |
}, | |
{ | |
path: 'about', | |
name: 'PagesAbout', | |
component: () => import(/* webpackChunkName: "pagesabout" */ '../layouts/Pages/About') | |
}, | |
{ | |
path: 'community', | |
name: 'PagesCommunity', | |
component: () => import(/* webpackChunkName: "pagescommunity" */ '../layouts/Pages/Community') | |
}, | |
{ | |
path: 'photos', | |
name: 'PagesPhotos', | |
component: () => import(/* webpackChunkName: "pagesphotos" */ '../layouts/Pages/Photos') | |
} | |
], | |
meta: { | |
requiresAuth: true | |
} | |
}, | |
{ | |
path: '/friends', | |
name: 'Friends', | |
component: () => import(/* webpackChunkName: "friends" */ '../layouts/Friends/Main'), | |
meta: { | |
requiresAuth: true | |
} | |
}, | |
{ | |
path: '/watch', | |
component: () => import(/* webpackChunkName: "watch" */ '../layouts/Watch/Main'), | |
children: [ | |
{ | |
path: '', | |
name: 'Watch', | |
component: () => import(/* webpackChunkName: "watchrecommended" */ '../layouts/Watch/Recommended') | |
}, | |
{ | |
path: 'video', | |
name: 'WatchVideo', | |
component: () => import(/* webpackChunkName: "watchvideo" */ '../layouts/Watch/Video') | |
}, | |
{ | |
path: ':videoId', | |
name: 'WatchView', | |
component: () => import(/* webpackChunkName: "watchview" */ '../layouts/Watch/View') | |
} | |
], | |
meta: { | |
requiresAuth: true | |
} | |
}, | |
{ | |
path: '/im', | |
props: (route) => ({ query: route.query.sel }), | |
name: 'Messages', | |
component: () => import(/* webpackChunkName: "messages" */ '../layouts/Messages/Main'), | |
meta: { | |
requiresAuth: true | |
} | |
}, | |
{ | |
path: '/music', | |
name: 'Music', | |
component: () => import(/* webpackChunkName: "music" */ '../layouts/Music/Main'), | |
meta: { | |
requiresAuth: true | |
} | |
}, | |
{ | |
path: '/events', | |
name: 'Events', | |
component: () => import(/* webpackChunkName: "events" */ '../layouts/Events'), | |
meta: { | |
requiresAuth: true | |
} | |
}, | |
{ | |
path: '/questions', | |
name: 'Questions', | |
component: () => import(/* webpackChunkName: "questions" */ '../layouts/Questions/Main'), | |
redirect: { | |
name: 'Question' | |
}, | |
children: [ | |
{ | |
path: '', | |
name: 'Question', | |
component: () => import(/* webpackChunkName: "question" */ '../layouts/Questions/Question') | |
}, | |
{ | |
path: ':questionId', | |
name: 'QuestionsSingle', | |
component: () => import(/* webpackChunkName: "questionssingle" */ '../layouts/Questions/Single') | |
}, | |
{ | |
path: 'stats', | |
name: 'QuestionsStats', | |
component: () => import(/* webpackChunkName: "questionsstats" */ '../layouts/Questions/Stats') | |
}, | |
{ | |
path: 'categories', | |
name: 'QuestionsCategories', | |
component: () => import(/* webpackChunkName: "questionscategories" */ '../layouts/Questions/Categories') | |
}, | |
{ | |
path: 'settings', | |
name: 'QuestionsSettings', | |
component: () => import(/* webpackChunkName: "questionssettings" */ '../layouts/Questions/Settings') | |
} | |
], | |
meta: { | |
requiresAuth: true | |
} | |
}, | |
{ | |
path: '/support', | |
name: 'Support', | |
component: () => import(/* webpackChunkName: "support" */ '../layouts/Support/Main'), | |
meta: { | |
requiresAuth: true | |
} | |
}, | |
{ | |
path: '/settings', | |
name: 'Settings', | |
component: () => import(/* webpackChunkName: "settings" */ '../layouts/Settings/Main'), | |
meta: { | |
requiresAuth: true | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment