From f5c683b1d979a62d3357f84d315d2cc7fc019fc9 Mon Sep 17 00:00:00 2001 From: Josix Date: Sat, 5 Aug 2023 02:55:32 +0800 Subject: [PATCH] feat(schedule): update 2023 schedule layout --- components/events/SpeechCard.vue | 6 --- components/schedule/ScheduleEvent.vue | 9 ++-- components/schedule/ScheduleRoom.vue | 11 ++--- components/schedule/ScheduleRooms.vue | 10 +--- components/schedule/ScheduleTable.vue | 66 +++------------------------ pages/conference/_eventType/_id.vue | 6 --- pages/conference/schedule.vue | 32 +++---------- store/index.js | 2 +- 8 files changed, 25 insertions(+), 117 deletions(-) diff --git a/components/events/SpeechCard.vue b/components/events/SpeechCard.vue index f64580bb8f..9c1d245d0a 100644 --- a/components/events/SpeechCard.vue +++ b/components/events/SpeechCard.vue @@ -78,14 +78,8 @@ export default { }, locationMapping: { '4-r0': 'R0', - '4-r0-1': 'R0', - '4-r0-2': 'R0', '5-r1': 'R1', - '5-r1-1': 'R1', - '5-r1-2': 'R1', '6-r2': 'R2', - '6-r2-1': 'R2', - '6-r2-2': 'R2', '1-r3': 'R3', }, levelBgColorMapping: { diff --git a/components/schedule/ScheduleEvent.vue b/components/schedule/ScheduleEvent.vue index 1eef2e0b2b..e9b933f7d3 100644 --- a/components/schedule/ScheduleEvent.vue +++ b/components/schedule/ScheduleEvent.vue @@ -130,7 +130,11 @@ export default { event_id: eventId, speakers, } = this.value - if (eventType === 'keynote' && speakers[0].en_us) { + if ( + eventType === 'keynote' && + speakers.length > 0 && + speakers[0].en_us + ) { const keynoteSpeakerId = speakers[0].en_us .replaceAll(' ', '_') .replaceAll('.', '') @@ -163,8 +167,7 @@ export default { diff --git a/components/schedule/ScheduleTable.vue b/components/schedule/ScheduleTable.vue index bd90eb5670..906e651ad2 100644 --- a/components/schedule/ScheduleTable.vue +++ b/components/schedule/ScheduleTable.vue @@ -1,11 +1,5 @@ @@ -13,43 +7,19 @@ + diff --git a/store/index.js b/store/index.js index 9732ad42c9..7b34ba7176 100644 --- a/store/index.js +++ b/store/index.js @@ -15,7 +15,7 @@ export const state = () => ({ conferenceDate: '2023-09-02', showSpeakingPage: false, showAboutStaffPage: false, - showSchedulePage: false, + showSchedulePage: true, showSponsorPage: false, showRegistrationPage: true, showEventOverviewPage: false,