Skip to content

Commit

Permalink
#74 preparing speakers directory page for robin integration
Browse files Browse the repository at this point in the history
  • Loading branch information
fcamblor committed Aug 27, 2024
1 parent a29d66c commit 6f07f5d
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 5 deletions.
1 change: 1 addition & 0 deletions mobile/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const routes: Array<RouteRecordRaw> = [
{ path: `${space.pathPrefix}/events/:eventId`, component: () => preloadedPage('_BaseEventPages'), children: [
{ path: '', redirect: (route: RouteLocation) => `${space.resolvedPathPrefix(route)}/events/${route.params.eventId}/schedule` },
{ path: 'schedule', component: () => preloadedPage('SchedulePage') },
{ path: 'speakers', component: () => preloadedPage('SpeakersDirectoryPage') },
{ path: 'favorites', component: () => preloadedPage('FavoritesPage') },
{ path: 'feedbacks', component: () => preloadedPage('FeedbacksPage') },
{ path: 'notifications', component: () => preloadedPage('NotificationsPage') },
Expand Down
4 changes: 2 additions & 2 deletions mobile/src/router/preloaded-pages.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Swiper from 'swiper';
import { Navigation, Pagination, Zoom } from 'swiper/modules';
import 'swiper/css';
import 'swiper/css/navigation';
import 'swiper/css/pagination';
Expand All @@ -22,11 +20,13 @@ import MyGlobalSettingsPage from '@/views/user/MyGlobalSettingsPage.vue';
import MyPersonalDataPage from '@/views/user/MyPersonalDataPage.vue';
import UserTokenRegistrationPage from '@/views/UserTokenRegistrationPage.vue';
import FAQPage from '@/views/FAQPage.vue';
import SpeakersDirectoryPage from "@/views/event/SpeakersDirectoryPage.vue";

const modules = {
_BaseEventPages,
SchedulePage: _SchedulePage,
FavoritesPage,
SpeakersDirectoryPage,
FeedbacksPage,
NotificationsPage,
InfosPage,
Expand Down
36 changes: 36 additions & 0 deletions mobile/src/views/event/SpeakersDirectoryPage.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<template>
<ion-page>
<ion-content :fullscreen="true" v-if="confDescriptor">
<current-event-header :conf-descriptor="confDescriptor" />
<ion-header class="toolbarHeader">
<ion-toolbar>
<ion-title slot="start" >{{ LL.Speakers() }}</ion-title>
</ion-toolbar>
</ion-header>

TODO: Fill speakers directory list
<PoweredVoxxrin></PoweredVoxxrin>
</ion-content>
</ion-page>
</template>

<script setup lang="ts">
import CurrentEventHeader from "@/components/events/CurrentEventHeader.vue";
import {useRoute} from "vue-router";
import {EventId} from "@/models/VoxxrinEvent";
import {getRouteParamsValue, isRefDefined} from "@/views/vue-utils";
import {useSharedConferenceDescriptor} from "@/state/useConferenceDescriptor";
import {typesafeI18n} from "@/i18n/i18n-vue";
import {managedRef as ref} from "@/views/vue-utils";
import PoweredVoxxrin from "@/components/ui/PoweredVoxxrin.vue";
const { LL } = typesafeI18n()
const route = useRoute();
const eventId = ref(new EventId(getRouteParamsValue(route, 'eventId')));
const {conferenceDescriptor: confDescriptor} = useSharedConferenceDescriptor(eventId);
</script>

<style lang="scss" scoped>
</style>
6 changes: 3 additions & 3 deletions mobile/src/views/event/_BaseEventPages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const tabs = computed(() => {
icon: '/assets/icons/line/calendar-line.svg',
selectedIcon: '/assets/icons/solid/calendar.svg',
}].concat(confDescriptor?.features.favoritesEnabled?[{
id: 'favorites', url: `${getResolvedEventRootPathFromSpacedEventIdRef(spacedEventIdRef)}/favorites`, label: LL.value.Favorites(),
icon: '/assets/icons/line/bookmark-line-favorite.svg',
selectedIcon: '/assets/icons/solid/bookmark-favorite.svg',
id: 'speakers', url: `${getResolvedEventRootPathFromSpacedEventIdRef(spacedEventIdRef)}/speakers`, label: LL.value.Speakers(),
icon: '/assets/icons/line/megaphone-line.svg',
selectedIcon: '/assets/icons/solid/megaphone.svg',
}]:[]).concat(confDescriptor && areFeedbacksEnabled(confDescriptor) ? [{
id: 'feedbacks', url: `${getResolvedEventRootPathFromSpacedEventIdRef(spacedEventIdRef)}/feedbacks`, label: LL.value.Feedbacks(),
icon: '/assets/icons/line/comments-2-line.svg',
Expand Down

0 comments on commit 6f07f5d

Please sign in to comment.