Add anonymous and remote participations
This commit is contained in:
@@ -3,10 +3,12 @@ import Dashboard from '@/views/Admin/Dashboard.vue';
|
||||
import Follows from '@/views/Admin/Follows.vue';
|
||||
import Followings from '@/components/Admin/Followings.vue';
|
||||
import Followers from '@/components/Admin/Followers.vue';
|
||||
import Settings from '@/views/Admin/Settings.vue';
|
||||
|
||||
export enum AdminRouteName {
|
||||
DASHBOARD = 'Dashboard',
|
||||
RELAYS = 'Relays',
|
||||
ADMIN_SETTINGS = 'ADMIN_SETTINGS',
|
||||
RELAY_FOLLOWINGS = 'Followings',
|
||||
RELAY_FOLLOWERS = 'Followers',
|
||||
}
|
||||
@@ -19,6 +21,13 @@ export const adminRoutes: RouteConfig[] = [
|
||||
props: true,
|
||||
meta: { requiredAuth: true },
|
||||
},
|
||||
{
|
||||
path: '/admin/settings',
|
||||
name: AdminRouteName.ADMIN_SETTINGS,
|
||||
component: Settings,
|
||||
props: true,
|
||||
meta: { requiredAuth: true },
|
||||
},
|
||||
{
|
||||
path: '/admin/relays',
|
||||
name: AdminRouteName.RELAYS,
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import EventList from '@/views/Event/EventList.vue';
|
||||
import Location from '@/views/Location.vue';
|
||||
import { RouteConfig } from 'vue-router';
|
||||
import { RouteName } from '@/router/index';
|
||||
import ParticipationWithAccount from '@/components/Participation/ParticipationWithAccount.vue';
|
||||
import UnloggedParticipation from '@/components/Participation/UnloggedParticipation.vue';
|
||||
import ParticipationWithoutAccount from '@/components/Participation/ParticipationWithoutAccount.vue';
|
||||
import ConfirmParticipation from '@/components/Participation/ConfirmParticipation.vue';
|
||||
|
||||
// tslint:disable:space-in-parens
|
||||
const participations = () => import(/* webpackChunkName: "participations" */ '@/views/Event/Participants.vue');
|
||||
@@ -19,6 +22,10 @@ export enum EventRouteName {
|
||||
EDIT_EVENT = 'EditEvent',
|
||||
PARTICIPATIONS = 'Participations',
|
||||
EVENT = 'Event',
|
||||
EVENT_PARTICIPATE_WITH_ACCOUNT = 'EVENT_PARTICIPATE_WITH_ACCOUNT',
|
||||
EVENT_PARTICIPATE_WITHOUT_ACCOUNT = 'EVENT_PARTICIPATE_WITHOUT_ACCOUNT',
|
||||
EVENT_PARTICIPATE_LOGGED_OUT = 'EVENT_PARTICIPATE_LOGGED_OUT',
|
||||
EVENT_PARTICIPATE_CONFIRM = 'EVENT_PARTICIPATE_CONFIRM',
|
||||
LOCATION = 'Location',
|
||||
TAG = 'Tag',
|
||||
}
|
||||
@@ -75,6 +82,30 @@ export const eventRoutes: RouteConfig[] = [
|
||||
props: true,
|
||||
meta: { requiredAuth: false },
|
||||
},
|
||||
{
|
||||
path: '/events/:uuid/participate',
|
||||
name: EventRouteName.EVENT_PARTICIPATE_LOGGED_OUT,
|
||||
component: UnloggedParticipation,
|
||||
props: true,
|
||||
},
|
||||
{
|
||||
path: '/events/:uuid/participate/with-account',
|
||||
name: EventRouteName.EVENT_PARTICIPATE_WITH_ACCOUNT,
|
||||
component: ParticipationWithAccount,
|
||||
props: true,
|
||||
},
|
||||
{
|
||||
path: '/events/:uuid/participate/without-account',
|
||||
name: EventRouteName.EVENT_PARTICIPATE_WITHOUT_ACCOUNT,
|
||||
component: ParticipationWithoutAccount,
|
||||
props: true,
|
||||
},
|
||||
{
|
||||
path: '/participation/email/confirm/:token',
|
||||
name: EventRouteName.EVENT_PARTICIPATE_CONFIRM,
|
||||
component: ConfirmParticipation,
|
||||
props: true,
|
||||
},
|
||||
{
|
||||
path: '/tag/:tag',
|
||||
name: EventRouteName.TAG,
|
||||
|
||||
@@ -19,6 +19,8 @@ enum GlobalRouteName {
|
||||
ABOUT = 'About',
|
||||
PAGE_NOT_FOUND = 'PageNotFound',
|
||||
SEARCH = 'Search',
|
||||
TERMS = 'TERMS',
|
||||
INTERACT = 'INTERACT',
|
||||
}
|
||||
|
||||
function scrollBehavior(to, from, savedPosition) {
|
||||
@@ -79,6 +81,18 @@ const router = new Router({
|
||||
component: () => import(/* webpackChunkName: "about" */ '@/views/About.vue'),
|
||||
meta: { requiredAuth: false },
|
||||
},
|
||||
{
|
||||
path: '/terms',
|
||||
name: RouteName.TERMS,
|
||||
component: () => import(/* webpackChunkName: "cookies" */ '@/views/Terms.vue'),
|
||||
meta: { requiredAuth: false },
|
||||
},
|
||||
{
|
||||
path: '/interact',
|
||||
name: RouteName.INTERACT,
|
||||
component: () => import(/* webpackChunkName: "cookies" */ '@/views/Interact.vue'),
|
||||
meta: { requiredAuth: false },
|
||||
},
|
||||
{
|
||||
path: '/404',
|
||||
name: RouteName.PAGE_NOT_FOUND,
|
||||
|
||||
Reference in New Issue
Block a user