From ce9faad652555b74a263080423a1c9bec1fd6357 Mon Sep 17 00:00:00 2001 From: SeanHsieh Date: Tue, 4 Jun 2024 21:05:29 +0800 Subject: [PATCH] feat(keynote): toggle keynote and fix js error in server --- pages/conference/keynotes.vue | 4 ++-- store/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/conference/keynotes.vue b/pages/conference/keynotes.vue index cc7cd378e8..16f923f911 100644 --- a/pages/conference/keynotes.vue +++ b/pages/conference/keynotes.vue @@ -173,8 +173,8 @@ export default { getKeynoteId(keynote) { if (keynote.speaker.name_en_us) { return keynote.speaker.name_en_us - .replaceAll(' ', '_') - .replaceAll('.', '') + .replace(/[' ']/g, '_') + .replace(/['.']/g, '') } }, getAttributeByLocale(data, attr) { diff --git a/store/index.js b/store/index.js index f957946960..349b437dbc 100644 --- a/store/index.js +++ b/store/index.js @@ -20,14 +20,14 @@ export const state = () => ({ showRegistrationPage: true, showEventOverviewPage: true, showEventsPage: false, - showConferencePage: false, + showConferencePage: true, showVenuePage: false, showProposalSystemPage: true, showIndexSponsorSection: true, showIndexSecondaryBtn: false, aboutHideItems: ['apacCommunity'], // ['pycontw', 'apacCommunity', 'history', 'community', 'codeOfConduct'] eventsHideItems: [], // ['sprints', 'openSpaces', 'jobs'] - conferenceHideItems: [], // ['keynotes', 'talks', 'tutorials', 'panelDiscussion'] + conferenceHideItems: ['talks', 'tutorials', 'panelDiscussion'], // ['keynotes', 'talks', 'tutorials', 'panelDiscussion'] registrationHideItems: ['tickets'], // ['tickets', 'financialAid'] venueHideItems: [], // ['venueInfo', 'accommodation'] },