Introduce group basic federation, event new page and notifications

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-02-18 08:57:00 +01:00
parent 300ef8f245
commit 4144e9ffd0
416 changed files with 32220 additions and 16750 deletions

View File

@@ -1,80 +1,75 @@
import RegisterUser from '@/views/User/Register.vue';
import RegisterProfile from '@/views/Account/Register.vue';
import Login from '@/views/User/Login.vue';
import Validate from '@/views/User/Validate.vue';
import ResendConfirmation from '@/views/User/ResendConfirmation.vue';
import SendPasswordReset from '@/views/User/SendPasswordReset.vue';
import PasswordReset from '@/views/User/PasswordReset.vue';
import { beforeRegisterGuard } from '@/router/guards/register-guard';
import { RouteConfig } from 'vue-router';
import EmailValidate from '@/views/User/EmailValidate.vue';
import { beforeRegisterGuard } from "@/router/guards/register-guard";
import { RouteConfig } from "vue-router";
export enum UserRouteName {
REGISTER = 'Register',
REGISTER_PROFILE = 'RegisterProfile',
RESEND_CONFIRMATION = 'ResendConfirmation',
SEND_PASSWORD_RESET = 'SendPasswordReset',
PASSWORD_RESET = 'PasswordReset',
VALIDATE = 'Validate',
LOGIN = 'Login',
REGISTER = "Register",
REGISTER_PROFILE = "RegisterProfile",
RESEND_CONFIRMATION = "ResendConfirmation",
SEND_PASSWORD_RESET = "SendPasswordReset",
PASSWORD_RESET = "PasswordReset",
VALIDATE = "Validate",
LOGIN = "Login",
}
export const userRoutes: RouteConfig[] = [
{
path: '/register/user',
path: "/register/user",
name: UserRouteName.REGISTER,
component: RegisterUser,
component: () => import("@/views/User/Register.vue"),
props: true,
meta: { requiredAuth: false },
beforeEnter: beforeRegisterGuard,
},
{
path: '/register/profile',
path: "/register/profile",
name: UserRouteName.REGISTER_PROFILE,
component: RegisterProfile,
component: () => import("@/views/Account/Register.vue"),
// We can only pass string values through params, therefore
props: (route) => ({ email: route.params.email, userAlreadyActivated: route.params.userAlreadyActivated === 'true' }),
props: (route) => ({
email: route.params.email,
userAlreadyActivated: route.params.userAlreadyActivated === "true",
}),
meta: { requiredAuth: false },
},
{
path: '/resend-instructions',
path: "/resend-instructions",
name: UserRouteName.RESEND_CONFIRMATION,
component: ResendConfirmation,
component: () => import("@/views/User/ResendConfirmation.vue"),
props: true,
meta: { requiresAuth: false },
},
{
path: '/password-reset/send',
path: "/password-reset/send",
name: UserRouteName.SEND_PASSWORD_RESET,
component: SendPasswordReset,
component: () => import("@/views/User/SendPasswordReset.vue"),
props: true,
meta: { requiresAuth: false },
},
{
path: '/password-reset/:token',
path: "/password-reset/:token",
name: UserRouteName.PASSWORD_RESET,
component: PasswordReset,
component: () => import("@/views/User/PasswordReset.vue"),
meta: { requiresAuth: false },
props: true,
},
{
path: '/validate/email/:token',
path: "/validate/email/:token",
name: UserRouteName.VALIDATE,
component: EmailValidate,
component: () => import("@/views/User/EmailValidate.vue"),
props: true,
meta: { requiresAuth: false },
},
{
path: '/validate/:token',
path: "/validate/:token",
name: UserRouteName.VALIDATE,
component: Validate,
component: () => import("@/views/User/Validate.vue"),
props: true,
meta: { requiresAuth: false },
},
{
path: '/login',
path: "/login",
name: UserRouteName.LOGIN,
component: Login,
component: () => import("@/views/User/Login.vue"),
props: true,
meta: { requiredAuth: false },
},