mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
116 lines
3.0 KiB
TypeScript
116 lines
3.0 KiB
TypeScript
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
|
|
|
|
const routes: Array<RouteRecordRaw> = [
|
|
{
|
|
path: '',
|
|
redirect: '/auth'
|
|
},
|
|
{
|
|
path: '/auth/',
|
|
component: () => import('@/plugins/app/_layout/auth/auth.layout.vue'),
|
|
children: [
|
|
{
|
|
path: '',
|
|
redirect: '/auth/login'
|
|
},
|
|
{
|
|
path: '/auth/login',
|
|
name: 'Login',
|
|
component: () => import('@/plugins/lib@auth/login/login.vue')
|
|
},
|
|
{
|
|
path: '/auth/forgot-password',
|
|
name: 'Forgot password',
|
|
component: () => import('@/plugins/lib@auth/forgot-password/forgot-password.vue')
|
|
},
|
|
{
|
|
path: '/auth/reset-password',
|
|
name: 'Reset password',
|
|
component: () => import('@/plugins/lib@auth/reset-password/reset-password.vue')
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/app',
|
|
component: () => import('@/plugins/app/_layout/app/app.layout.vue'),
|
|
children: [
|
|
{
|
|
path: '',
|
|
redirect: '/app/dashboard'
|
|
},
|
|
{
|
|
path: '/app/dashboard',
|
|
redirect: '/app/dashboard/tasks',
|
|
children: [
|
|
{
|
|
path: '/app/dashboard/tasks',
|
|
name: 'Dashboard - Tasks',
|
|
meta: { title: 'Úlohy' },
|
|
component: () => import('@/plugins/tm@dashboard/tasks/tasks.vue')
|
|
},
|
|
{
|
|
path: '/app/dashboard/teams',
|
|
name: 'Dashboard - Teams',
|
|
meta: { title: 'Tímové zobrazenie' },
|
|
component: () => import('@/plugins/tm@dashboard/teams/teams.vue')
|
|
},
|
|
{
|
|
path: '/app/dashboard/projects',
|
|
name: 'Dashboard - Projects',
|
|
meta: { title: 'Projektové zobrazenie' },
|
|
component: () => import('@/plugins/tm@dashboard/projects/projects.vue')
|
|
},
|
|
|
|
{
|
|
path: '/app/overview/unscheduled',
|
|
name: 'Overview - Unscheduled tasks',
|
|
meta: { title: 'Nenaplánované úlohy' },
|
|
component: () => import('@/plugins/tm@overview/tasks-unscheduled/tasks-unscheduled.vue')
|
|
},
|
|
{
|
|
path: '/app/overview/ongoing',
|
|
name: 'Overview - Ongoing tasks',
|
|
meta: { title: 'Prebiehajúce úlohy' },
|
|
component: () => import('@/plugins/tm@overview/tasks-ongoing/tasks-ongoing.vue')
|
|
},
|
|
{
|
|
path: '/app/overview/teams',
|
|
name: 'Overview - Teams',
|
|
meta: { title: 'Tímy' },
|
|
component: () => import('@/plugins/tm@overview/teams/teams.vue')
|
|
},
|
|
{
|
|
path: '/app/dashboard/user',
|
|
name: 'Dashboard - User',
|
|
meta: { title: 'Váš profil' },
|
|
component: () => import('@/plugins/tm@profile/profile/my-profile.vue')
|
|
},
|
|
// {
|
|
// path: '/app/search/:searchText',
|
|
// redirect: to => {
|
|
// return { path: '/app/search', query: { q: to.params.searchText } }
|
|
// },
|
|
// },
|
|
// {
|
|
// path: '/app/search',
|
|
// name: 'Search',
|
|
// component: () => import('@/plugins/lib@search/search/search.vue')
|
|
// }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/:catchAll(.*)',
|
|
name: '404',
|
|
component: () => import('@/plugins/w@screen/404/404.vue')
|
|
}
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHashHistory(process.env.BASE_URL),
|
|
routes
|
|
})
|
|
|
|
export default router
|