From d37f4b08e745bb41e52a95bb7aa2d7061734c842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Camblor?= Date: Fri, 8 Nov 2024 03:34:21 +0100 Subject: [PATCH] #74 got rid of speaker-talk component, replacing it with schedule-talk component --- .../components/speaker-card/SpeakerTalk.vue | 225 ------------------ mobile/src/models/VoxxrinSpeaker.ts | 10 +- mobile/src/views/SpeakerDetailsPage.vue | 30 ++- .../src/views/event/SpeakersDirectoryPage.vue | 32 ++- 4 files changed, 54 insertions(+), 243 deletions(-) delete mode 100644 mobile/src/components/speaker-card/SpeakerTalk.vue diff --git a/mobile/src/components/speaker-card/SpeakerTalk.vue b/mobile/src/components/speaker-card/SpeakerTalk.vue deleted file mode 100644 index 364b4583..00000000 --- a/mobile/src/components/speaker-card/SpeakerTalk.vue +++ /dev/null @@ -1,225 +0,0 @@ - - - - - diff --git a/mobile/src/models/VoxxrinSpeaker.ts b/mobile/src/models/VoxxrinSpeaker.ts index 4538e907..02bc21d0 100644 --- a/mobile/src/models/VoxxrinSpeaker.ts +++ b/mobile/src/models/VoxxrinSpeaker.ts @@ -4,7 +4,13 @@ import {Replace} from "../../../shared/type-utils"; import {LineupSpeaker, LineupTalk} from "../../../shared/event-lineup.firestore"; import {TalkId} from "@/models/VoxxrinTalk"; import {RoomId, VoxxrinRoom} from "@/models/VoxxrinRoom"; -import {findRoom, findTalkFormat, findTrack, VoxxrinConferenceDescriptor} from "@/models/VoxxrinConferenceDescriptor"; +import { + findRoom, + findTalkFormat, + findTrack, + TalkLanguageCode, + VoxxrinConferenceDescriptor +} from "@/models/VoxxrinConferenceDescriptor"; import {match, P} from "ts-pattern"; import {TalkFormatId, VoxxrinTalkFormat} from "@/models/VoxxrinTalkFormat"; import {TrackId, VoxxrinTrack} from "@/models/VoxxrinTrack"; @@ -21,6 +27,7 @@ export type VoxxrinLineupTalk = Replace export type VoxxrinLineupSpeaker = Replace toVoxxrinSpeaker(sp)), + language: new TalkLanguageCode(firestoreTalk.language), }; }) } diff --git a/mobile/src/views/SpeakerDetailsPage.vue b/mobile/src/views/SpeakerDetailsPage.vue index 3ada841b..15eca297 100644 --- a/mobile/src/views/SpeakerDetailsPage.vue +++ b/mobile/src/views/SpeakerDetailsPage.vue @@ -48,13 +48,24 @@
{{LL.Speaker_talks()}} - + + + +
@@ -88,10 +99,13 @@ import {getResolvedEventRootPathFromSpacedEventIdRef, useCurrentSpaceEventIdRef} import SpeakerThumbnail from "@/components/speaker/SpeakerThumbnail.vue"; import SocialMediaIcon from "@/components/ui/SocialMediaIcon.vue"; import {useLineupSpeaker} from "@/state/useEventSpeakers"; -import SpeakerTalk from "@/components/speaker-card/SpeakerTalk.vue"; import {useLocalEventTalkFavsStorage, useUserEventTalkNotes} from "@/state/useUserTalkNotes"; import {computed, toValue} from "vue"; import {useEventTalkStats} from "@/state/useEventTalkStats"; +import ScheduleTalk from "@/components/talk-card/ScheduleTalk.vue"; +import TalkRoom from "@/components/talk-card/TalkRoom.vue"; +import TalkFavoriteButton from "@/components/talk-card/TalkFavoriteButton.vue"; +import TalkWatchLaterButton from "@/components/talk-card/TalkWatchLaterButton.vue"; const LOGGER = Logger.named("SpeakerDetailsPage"); diff --git a/mobile/src/views/event/SpeakersDirectoryPage.vue b/mobile/src/views/event/SpeakersDirectoryPage.vue index 29794933..98f98593 100644 --- a/mobile/src/views/event/SpeakersDirectoryPage.vue +++ b/mobile/src/views/event/SpeakersDirectoryPage.vue @@ -10,13 +10,24 @@ @@ -34,7 +45,7 @@ import CurrentEventHeader from "@/components/events/CurrentEventHeader.vue"; import {useSharedConferenceDescriptor} from "@/state/useConferenceDescriptor"; import {typesafeI18n} from "@/i18n/i18n-vue"; - import {managedRef as ref} from "@/views/vue-utils"; + import {managedRef as ref, toManagedRef as toRef} from "@/views/vue-utils"; import {IonFab, IonFabButton} from "@ionic/vue"; import {albums, list, ticket} from "ionicons/icons"; import PoweredVoxxrin from "@/components/ui/PoweredVoxxrin.vue"; @@ -44,11 +55,14 @@ import ToolbarHeader from "@/components/ui/ToolbarHeader.vue"; import {getResolvedEventRootPathFromSpacedEventIdRef, useCurrentSpaceEventIdRef} from "@/services/Spaces"; import {useLineupSpeakers} from "@/state/useEventSpeakers"; - import SpeakerTalk from "@/components/speaker-card/SpeakerTalk.vue"; import {useLocalEventTalkFavsStorage, useUserEventTalkNotes} from "@/state/useUserTalkNotes"; import {computed, toValue} from "vue"; import {TalkId} from "@/models/VoxxrinTalk"; import {useEventTalkStats} from "@/state/useEventTalkStats"; + import ScheduleTalk from "@/components/talk-card/ScheduleTalk.vue"; + import TalkRoom from "@/components/talk-card/TalkRoom.vue"; + import TalkFavoriteButton from "@/components/talk-card/TalkFavoriteButton.vue"; + import TalkWatchLaterButton from "@/components/talk-card/TalkWatchLaterButton.vue"; const { LL } = typesafeI18n() const spacedEventIdRef = useCurrentSpaceEventIdRef();