success integration of service
This commit is contained in:
1 parent
5679818def
commit
0ae8c4a003
40 files changed
+190
-1337
No files matched your search
@@ -1,28 +0,0 @@
|
||||
import { t } from '../i18n';
|
||||
|
||||
export default {
|
||||
path: '/auth',
|
||||
name: 'auth',
|
||||
meta: {
|
||||
title: t('common.nav.content')
|
||||
},
|
||||
component: () => import('@/layouts/Auth.vue'),
|
||||
children: [
|
||||
{
|
||||
path: 'login',
|
||||
name: 'auth-login',
|
||||
meta: {
|
||||
title: t('common.nav.article')
|
||||
},
|
||||
component: () => import('@/pages/auth/Login.vue')
|
||||
},
|
||||
{
|
||||
path: 'callback',
|
||||
name: 'auth-callback',
|
||||
meta: {
|
||||
title: t('common.nav.article')
|
||||
},
|
||||
component: () => import('@/pages/auth/Callback.vue')
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -1,15 +0,0 @@
|
||||
export default {
|
||||
path: '/categories',
|
||||
name: 'categories',
|
||||
meta: {
|
||||
auth: true
|
||||
},
|
||||
component: () => import('@/layouts/Category.vue'),
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'category-list',
|
||||
component: () => import('@/pages/category/List.vue')
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -1,20 +0,0 @@
|
||||
export default {
|
||||
path: '/courses',
|
||||
name: 'courses',
|
||||
meta: {
|
||||
auth: true
|
||||
},
|
||||
component: () => import('@/layouts/Course.vue'),
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'course-list',
|
||||
component: () => import('@/pages/course/List.vue')
|
||||
},
|
||||
{
|
||||
path: ':id',
|
||||
name: 'course-detail',
|
||||
component: () => import('@/pages/course/Detail.vue')
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -1,15 +0,0 @@
|
||||
export default {
|
||||
path: '/courses/:courseId/episodes/',
|
||||
name: 'episodes',
|
||||
meta: {
|
||||
auth: true
|
||||
},
|
||||
component: () => import('@/layouts/Episode.vue'),
|
||||
children: [
|
||||
{
|
||||
path: ':id',
|
||||
name: 'episode-detail',
|
||||
component: () => import('@/pages/episode/Detail.vue')
|
||||
}
|
||||
]
|
||||
};
|
||||
+3
-11
@@ -1,22 +1,14 @@
|
||||
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';
|
||||
import auth from './auth';
|
||||
import course from './course';
|
||||
import category from './category';
|
||||
import episode from './episode';
|
||||
import order from './order';
|
||||
import service from './service';
|
||||
import store from '@/store';
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
redirect: '/courses'
|
||||
redirect: '/services'
|
||||
},
|
||||
auth,
|
||||
course,
|
||||
episode,
|
||||
category,
|
||||
order
|
||||
service
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
export default {
|
||||
path: '/orders',
|
||||
name: 'orders',
|
||||
meta: {
|
||||
auth: true
|
||||
},
|
||||
component: () => import('@/layouts/Order.vue'),
|
||||
children: [
|
||||
{
|
||||
path: ':id',
|
||||
name: 'order-detail',
|
||||
component: () => import('@/pages/order/Detail.vue')
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -0,0 +1,20 @@
|
||||
export default {
|
||||
path: '/services',
|
||||
name: 'services',
|
||||
meta: {
|
||||
auth: true
|
||||
},
|
||||
component: () => import('@/layouts/Service.vue'),
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'service-list',
|
||||
component: () => import('@/pages/service/List.vue')
|
||||
},
|
||||
{
|
||||
path: ':id',
|
||||
name: 'service-detail',
|
||||
component: () => import('@/pages/service/Detail.vue')
|
||||
}
|
||||
]
|
||||
};
|
||||
Reference in new issue
Block a user