From 9e3f4e3aae5cddabfaf8024bf3d513638cdbe361 Mon Sep 17 00:00:00 2001 From: svyeh Date: Wed, 31 Jan 2024 22:28:31 +0800 Subject: [PATCH 1/4] add showProposalSystem parameter that makes hiding proposal system easier --- components/core/header/nav-bar/NavBar.vue | 1 + components/core/header/nav-bar/NavBarHamburger.vue | 1 + store/index.js | 1 + 3 files changed, 3 insertions(+) diff --git a/components/core/header/nav-bar/NavBar.vue b/components/core/header/nav-bar/NavBar.vue index d2d9fbebb9..3d760d9670 100644 --- a/components/core/header/nav-bar/NavBar.vue +++ b/components/core/header/nav-bar/NavBar.vue @@ -64,6 +64,7 @@ > diff --git a/components/core/header/nav-bar/NavBarHamburger.vue b/components/core/header/nav-bar/NavBarHamburger.vue index 20dceea24f..f5114376f8 100644 --- a/components/core/header/nav-bar/NavBarHamburger.vue +++ b/components/core/header/nav-bar/NavBarHamburger.vue @@ -82,6 +82,7 @@ @click.native="toggleAccordion('venue')" > {{ $t('proposalSystemUrl') }} ({ showEventsPage: false, showConferencePage: false, showVenuePage: false, + showProposalSystem: false, showIndexSponsorSection: false, showIndexSecondaryBtn: true, aboutHideItems: ['apacCommunity'], // ['pycontw', 'apacCommunity', 'history', 'community', 'codeOfConduct'] From 99bdf70a5b54b951372c0ea034240a193bac5bdd Mon Sep 17 00:00:00 2001 From: svyeh Date: Wed, 31 Jan 2024 22:53:40 +0800 Subject: [PATCH 2/4] switch link to txt hiding link by switching link to text --- i18n/speaking/cfp.i18n.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/speaking/cfp.i18n.js b/i18n/speaking/cfp.i18n.js index cdea42a549..c320b4f6ba 100644 --- a/i18n/speaking/cfp.i18n.js +++ b/i18n/speaking/cfp.i18n.js @@ -20,7 +20,7 @@ export default genI18nMessages({ howToSubmit: { title: 'How to Submit Your Proposal', description: [ - 'You need to {signUp} for a new account on our system. With an activated account, you can fill up the speaker profile and create new proposals through the {proposalSystem} page.', + 'You need to sign up for a new account on our system. With an activated account, you can fill up the speaker profile and create new proposals through the proposal system page.', 'We encourage you to submit the proposal as early as possible. You are welcomed to submit multiple proposals.', 'Since COVID-19 become stable, we recommend attending the meeting venue in person. If you have personal reasons, you may ask to give your talk or tutorial remotely.', ], @@ -151,7 +151,7 @@ export default genI18nMessages({ howToSubmit: { title: '提交稿件', description: [ - '您需要先在系統上 {signUp} 一個新的帳號。在啟用您的帳號之後,就可以填寫講者資訊,並從 {proposalSystem} 頁面中建立新的投搞。我們強烈建議您儘早送出您的投稿。', + '您需要先在系統上註冊一個新的帳號。在啟用您的帳號之後,就可以填寫講者資訊,並從投稿系統頁面中建立新的投搞。我們強烈建議您儘早送出您的投稿。', '因應 COVID-19 疫情逐漸穩定,今年演講與專業課程將會以實體會議形式舉辦,建議講者來到現場與會眾互動。若有不可抗力之因素,您仍可以依照自身狀況選擇是否親自前來。', ], steps: [], From 0a5348be1d417462eefa9c10661f231e40b089ea Mon Sep 17 00:00:00 2001 From: svyeh Date: Thu, 1 Feb 2024 22:57:41 +0800 Subject: [PATCH 3/4] fix NavBarHamburger and NavBar get showProposalSystemPage from store.configs and sync the name convention. --- components/core/header/nav-bar/NavBar.vue | 5 ++++- components/core/header/nav-bar/NavBarHamburger.vue | 5 ++++- store/index.js | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/components/core/header/nav-bar/NavBar.vue b/components/core/header/nav-bar/NavBar.vue index 3d760d9670..edb185013d 100644 --- a/components/core/header/nav-bar/NavBar.vue +++ b/components/core/header/nav-bar/NavBar.vue @@ -64,7 +64,7 @@ > @@ -148,6 +148,9 @@ export default { showVenuePage() { return this.$store.state.configs.showVenuePage }, + showProposalSystemPage() { + return this.$store.state.configs.showProposalSystemPage + }, }, methods: { generateI18nItems(items, hideItems = []) { diff --git a/components/core/header/nav-bar/NavBarHamburger.vue b/components/core/header/nav-bar/NavBarHamburger.vue index f5114376f8..96073211af 100644 --- a/components/core/header/nav-bar/NavBarHamburger.vue +++ b/components/core/header/nav-bar/NavBarHamburger.vue @@ -82,7 +82,7 @@ @click.native="toggleAccordion('venue')" > {{ $t('proposalSystemUrl') }} ({ showEventsPage: false, showConferencePage: false, showVenuePage: false, - showProposalSystem: false, + showProposalSystemPage: true, showIndexSponsorSection: false, showIndexSecondaryBtn: true, aboutHideItems: ['apacCommunity'], // ['pycontw', 'apacCommunity', 'history', 'community', 'codeOfConduct'] From d3df0ef450fea8fd4eb089fd952f951c851892c4 Mon Sep 17 00:00:00 2001 From: svyeh Date: Thu, 1 Feb 2024 23:23:11 +0800 Subject: [PATCH 4/4] switch showpage to false --- store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/index.js b/store/index.js index 4462e2526c..2748a316b7 100644 --- a/store/index.js +++ b/store/index.js @@ -22,7 +22,7 @@ export const state = () => ({ showEventsPage: false, showConferencePage: false, showVenuePage: false, - showProposalSystemPage: true, + showProposalSystemPage: false, showIndexSponsorSection: false, showIndexSecondaryBtn: true, aboutHideItems: ['apacCommunity'], // ['pycontw', 'apacCommunity', 'history', 'community', 'codeOfConduct']