vue frontend update

This commit is contained in:
carodej
2020-04-17 11:33:06 +02:00
parent ae4353cc4b
commit 506c39896a
45 changed files with 2366 additions and 784 deletions

View File

@@ -4,6 +4,8 @@ import store from '@/store'
import Index from './views/Auth/SignIn'
import SignUp from './views/Auth/SignUp'
import SharedContent from './views/Shared/SharedContent'
import VerifyByPassword from './views/Shared/VerifyByPassword'
import ForgottenPassword from './views/Auth/ForgottenPassword'
import CreateNewPassword from './views/Auth/CreateNewPassword'
@@ -47,6 +49,22 @@ const router = new Router({
requiresAuth: false
},
},
{
name: 'SharedContent',
path: '/shared',
component: SharedContent,
meta: {
requiresAuth: false
},
},
{
name: 'VerifyByPassword',
path: '/protected',
component: VerifyByPassword,
meta: {
requiresAuth: false
},
},
{
name: 'Files',
path: '/files',
@@ -80,7 +98,8 @@ router.beforeEach((to, from, next) => {
// this route requires auth, check if logged in
// if not, redirect to login page.
if ( ! store.getters.isLogged || ! config.hasAuthCookie) {
//if ( ! store.getters.isLogged) {
if ( false ) {
next({
name: 'SignIn',
query: { redirect: to.fullPath }