diff --git a/src/router/index.js b/src/router/index.js index 6114e4e..4077afe 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -57,31 +57,37 @@ const routes = [ component: () => import('@/views/index/ConfigEditor.vue'), meta: { requiresAuth: true, requiredPrivilege: ['lv-admin','lv-mod'] } }, + // { + // path: 'competition', + // name: 'Competition', + // component: () => import('@/views/index/Competition.vue'), + // // meta: { requiresAuth: true, requiredPrivilege: ['lv-admin','lv-competitor'] } + // meta: { requiresAuth: true} + // }, + // { + // path: 'competition/add', + // name: 'AddCompetition', + // component: () => import('@/views/index/AddContestant.vue'), + // meta: { requiresAuth: true } + // }, + // { + // path: 'competition/detail', + // name: 'CompetitionDetail', + // component: () => import('@/views/index/CompetitionDetail.vue'), + // meta: { requiresAuth: true } + // }, + // { + // path: 'competition/signup', + // name: 'CompetitionSignUp', + // component: () => import('@/views/index/CompetitionSignUp.vue'), + // meta: { requiresAuth: true } + // }, { path: 'competition', name: 'Competition', - component: () => import('@/views/index/Competition.vue'), - // meta: { requiresAuth: true, requiredPrivilege: ['lv-admin','lv-competitor'] } + component: () => import('@/views/competition/Competition.vue'), meta: { requiresAuth: true} }, - { - path: 'competition/add', - name: 'AddCompetition', - component: () => import('@/views/index/AddContestant.vue'), - meta: { requiresAuth: true } - }, - { - path: 'competition/detail', - name: 'CompetitionDetail', - component: () => import('@/views/index/CompetitionDetail.vue'), - meta: { requiresAuth: true } - }, - { - path: 'competition/signup', - name: 'CompetitionSignUp', - component: () => import('@/views/index/CompetitionSignUp.vue'), - meta: { requiresAuth: true } - }, { path: 'editors-maps', name: 'EditorsMaps', diff --git a/src/views/competition/Competition.vue b/src/views/competition/Competition.vue new file mode 100644 index 0000000..96c0baf --- /dev/null +++ b/src/views/competition/Competition.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/src/views/index.vue b/src/views/index.vue index 1958d35..bba370c 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -359,13 +359,13 @@ function handlePasswordChangeError(errorMessage) { - - - - - - - +