WS-3 PR-B1: Portal moves + routing wiring #4

Merged
bert.hausmans merged 11 commits from feat/ws-3-pr-b1-portal-moves into main 2026-05-05 20:21:05 +02:00
2 changed files with 2 additions and 9 deletions
Showing only changes of commit 0dceb437f3 - Show all commits

View File

@@ -238,11 +238,7 @@ module.exports = {
{ from: 'components', allow: ['types', 'utils', 'lib', 'composables', 'composables-forms', 'stores', 'components', 'components-shared', 'components-organizer'] },
{ from: 'layouts', allow: ['types', 'utils', 'lib', 'composables', 'composables-forms', 'stores', 'stores-portal', 'navigation', 'components', 'components-shared', 'components-portal', 'components-organizer', 'layouts'] },
// success.vue conditionally enriches with the portal auth user
// ("Welcome back, X") when authenticated. The page is still public-
// accessible; the store read is optional. PR-B2 cleanup may move
// success.vue into pages-portal so this exception can drop.
{ from: 'pages-register', allow: ['types', 'utils', 'lib', 'composables', 'composables-forms', 'plugins', 'components-shared', 'stores-portal', 'layouts'] },
{ from: 'pages-register', allow: ['types', 'utils', 'lib', 'composables', 'composables-forms', 'plugins', 'components-shared', 'layouts'] },
{ from: 'pages-portal', allow: ['types', 'utils', 'lib', 'composables', 'composables-forms', 'stores', 'stores-portal', 'navigation', 'components-shared', 'components-portal', 'layouts', 'plugins'] },
{ from: 'pages-organizer', allow: ['types', 'utils', 'lib', 'composables', 'composables-forms', 'stores', 'navigation', 'components', 'components-shared', 'components-organizer', 'layouts', 'plugins'] },
{ from: 'pages-platform', allow: ['types', 'utils', 'lib', 'composables', 'composables-forms', 'stores', 'navigation', 'components', 'components-shared', 'components-organizer', 'layouts', 'plugins'] },

View File

@@ -1,6 +1,4 @@
<script setup lang="ts">
import { usePortalAuthStore } from '@/stores/portal/usePortalAuthStore'
definePage({
name: 'register-success',
meta: {
@@ -10,11 +8,10 @@ definePage({
})
const route = useRoute('register-success')
const authStore = usePortalAuthStore()
const eventName = computed(() => (route.query.event as string) || 'het evenement')
const bannerUrl = computed(() => (route.query.banner as string) || null)
const isAuthenticated = computed(() => route.query.authenticated === '1' || authStore.isAuthenticated)
const isAuthenticated = computed(() => route.query.authenticated === '1')
</script>
<template>