Client - init privacy policy and instance description

This commit is contained in:
Sam
2023-02-26 18:25:25 +01:00
parent 8a3f9a5d59
commit 3834e71c95
33 changed files with 359 additions and 26 deletions

View File

@ -23,6 +23,7 @@ import { AUTH_USER_STORE } from '@/store/constants'
import AboutView from '@/views/AboutView.vue'
import Dashboard from '@/views/Dashboard.vue'
import NotFoundView from '@/views/NotFoundView.vue'
import PrivacyPolicyView from '@/views/PrivacyPolicyView.vue'
import LoginOrRegister from '@/views/user/LoginOrRegister.vue'
const getTabFromPath = (path: string): string => {
@ -318,6 +319,11 @@ const routes: Array<RouteRecordRaw> = [
name: 'About',
component: AboutView,
},
{
path: '/privacy-policy',
name: 'PrivacyPolicy',
component: PrivacyPolicyView,
},
{
path: '/:pathMatch(.*)*',
name: 'not-found',
@ -342,7 +348,7 @@ const pathsWithoutAuthentication = [
'/account-confirmation/email-sent',
]
const pathsWithoutChecks = ['/email-update', '/about']
const pathsWithoutChecks = ['/email-update', '/about', '/privacy-policy']
router.beforeEach((to, from, next) => {
store