Skip to content

Commit

Permalink
Fix fossasia#36 404 page (fossasia#37)
Browse files Browse the repository at this point in the history
* fix fossasia#14 Password Prompt added

* Update NavBar.vue

* Update App.vue

* Renamed and Relocated Modal Files

* Update SearchAttendee.vue

* Flex UI fixed

* Update SearchAttendee.vue

* FIx fossasia#9

* Codacy Fix

* Fix fossasia#30

* Codacy Fix

* useApiStore comment fix

* fossasia#33 Fix

* Not Found page added

* Resolved comment

* Remove commented out code
  • Loading branch information
DonChiaQE committed Jul 15, 2023
1 parent 9e7ab0e commit da992f6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 24 deletions.
5 changes: 3 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<script setup>
import { RouterView } from 'vue-router'
import NavBar from '@/components/NavBar.vue'
import { useLoadingStore } from '@/stores/loading'
import LoadingView from '@/components/Utilities/LoadingView.vue'
</script>

<template>
<div class="flex flex-col h-screen">
<NavBar />
<div class="mx-3 grow flex">
<RouterView class="grow flex flex-col" />
</div>
</div>
<LoadingView v-if="useLoadingStore().show"></LoadingView>
</template>
14 changes: 14 additions & 0 deletions src/AuthTemplate.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<script setup>
import NavBar from '@/components/NavBar.vue'
import { useLoadingStore } from '@/stores/loading'
import LoadingView from '@/components/Utilities/LoadingView.vue'
</script>
<template>
<div class="flex flex-col h-screen w-full">
<NavBar />
<div class="mx-3 grow flex">
<RouterView class="grow flex flex-col" />
</div>
</div>
<LoadingView v-if="useLoadingStore().show"></LoadingView>
</template>
51 changes: 29 additions & 22 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import RegistrationKiosk from '@/components/Registration/Kiosk/ScannerCamera.vue
//import RegistrationStats from '@/components/Registration/Manual/RegistrationStats.vue'
import RegistrationManual from '@/components/Registration/Manual/ScanSearch.vue'
import NotFound from '@/views/NotFound.vue'
import AuthTemplate from '@/AuthTemplate.vue'

const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
Expand All @@ -18,34 +19,40 @@ const router = createRouter({
component: UserAuth
},
{
path: '/station-selector',
name: 'stationSelector',
component: StationSelector
},
{
path: '/:eventId/registration/:registrationType',
name: 'registration',
redirect: { name: 'registerKiosk' },
component: Registration,
path: '/auth',
name: 'auth',
component: AuthTemplate,
children: [
{
path: 'kiosk',
name: 'registerKiosk',
component: RegistrationKiosk
path: 'station-selector',
name: 'stationSelector',
component: StationSelector
},
{
path: ':eventId/registration/:registrationType',
name: 'registration',
redirect: { name: 'registerKiosk' },
component: Registration,
children: [
{
path: 'kiosk',
name: 'registerKiosk',
component: RegistrationKiosk
},
{
path: 'manual',
name: 'registerHybrid',
component: RegistrationManual
}
]
},
// out of kiosk mode
{
path: 'manual',
name: 'registerHybrid',
component: RegistrationManual
}
path: ':eventId/scanner/:scannerType',
name: 'scanner',
component: QRScannerCamera
},
]
},
{
path: '/:eventId/scanner/:scannerType',
name: 'scanner',
component: QRScannerCamera
},
{ path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound }
]
})
Expand Down

0 comments on commit da992f6

Please sign in to comment.