Skip to content

Commit

Permalink
refactor: remove-redundancy
Browse files Browse the repository at this point in the history
Remove redundancy codes such as Steps, and unrelated links.
  • Loading branch information
SivanYeh committed Apr 28, 2024
1 parent 5298e4d commit 88312d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 77 deletions.
30 changes: 4 additions & 26 deletions i18n/speaking/poster-session.i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default genI18nMessages({
'Call for Poster Ends:Jun 15th 23:59:5 ({aoe})',
'Announcement of Acceptance:Jun 30th',
],
steps: [],
},

howToSubmit: {
Expand All @@ -26,7 +25,6 @@ export default genI18nMessages({
'Please go to the {posterForm} form to submit, provide the Poster topic, abstract, and content description, and your personal information.',
'Backboard dimensions 900mm x 1800mm, multiple posters allowed within the above dimensions.',
],
steps: [],
},

topics: {
Expand All @@ -35,37 +33,26 @@ export default genI18nMessages({
'We accept a broad range of Python-related proposals from academic research to commercial projects, case studies, or soft topics such as running a community, making good communication, mental health, etc. So basically, if you are reading this, just submit your proposal!',
'We encourage speakers to talk about your own Python package or application, your experience of learning Python or hosting a Python community, etc. Talks on advanced topics are highly welcomed as well. For your inspiration, our committee has suggested that they’d love to see talks on the following topics: A.I., Machine Learning, Data Analysis, FinTech, Medical Care, Semiconductor, Manufacturing, Civic Technology, etc.',
],
steps: [],
},

inappropriate: {
title: 'Inappropriate Words or Images',
description: [
'Please note that PyCon Taiwan is a conference where the audience comes from different cultural backgrounds. Some jokes may be rude to others. If you want to add some humorous images or words to your speech, please double check if there is any possibility of offense, and refer to our {coc}.',
],
steps: [],
},
},

terms: {
aoe: 'AoE',
signUp: 'sign up',
proposalSystem: 'Proposal System',
pyVideo: 'pyvideo.org',
recording: 'recording release',
everyoneContributesPolicy: 'Everyone Contributes Policy',
programEmail: '[email protected]',
talk: 'How to Propose a Talk?',
tutorial: 'How to Propose a Tutorial?',
coc: 'Code of Conduct',
position: 'Kaohsiung NSTM South Complex',
posterForm: 'Poster Session submission',
},

og: {
title: 'Call for Proposals',
description:
'The Call for Proposals is now open. PyCon Taiwan 2024 is accepting talks and tutorials!',
title: 'Call for Poster Session',
description: "Welcome to PyCon TW's first Poster Session!",
},
},
'zh-hant': {
Expand Down Expand Up @@ -123,23 +110,14 @@ export default genI18nMessages({

terms: {
aoe: 'AoE',
signUp: '註冊',
proposalSystem: '投稿系統',
pyVideo: 'pyvideo.org',
recording: '錄影釋出',
everyoneContributesPolicy: 'Everyone Contributes Policy',
programEmail: '[email protected]',
talk: '如何投稿演講?',
tutorial: '如何投稿專業課程?',
coc: '行為準則',
position: 'Kaohsiung NSTM South Complex',
posterForm: 'Poster Session 投稿表單',
},

og: {
title: '稿件募集',
description:
'PyCon Taiwan 2024 正式開始徵稿,接受包括議程(Talks)與課程(Tutorials)的稿件!',
title: 'Poster Session 稿件募集',
description: '首先,謝謝您考慮投稿 Poster 至 PyCon Taiwan 2024。',
},
},
})
51 changes: 0 additions & 51 deletions pages/speaking/poster-session.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,35 +54,6 @@
</locale-link>
</template>
</i18n>
<template v-if="$t(`info.${section.tag}.steps`).length">
<steps
v-for="(step, stepIndex) in $t(
`info.${section.tag}.steps`,
)"
:key="stepIndex"
:show-step-line="stepIndex > 0"
>
<template #title>
<i18n
:key="`info.${section.tag}.steps[${stepIndex}].title`"
:path="`info.${section.tag}.steps[${stepIndex}].title`"
tag="div"
>
</i18n>
</template>
<template #description>
<i18n
v-for="(description, index) in $t(
`info.${section.tag}.steps[${stepIndex}].description`,
)"
:key="`info.${section.tag}.steps[${stepIndex}].description.${index}`"
:path="`info.${section.tag}.steps[${stepIndex}].description.${index}`"
tag="div"
>
</i18n>
</template>
</steps>
</template>
</div>
</two-col-wrapper>
</div>
Expand All @@ -95,7 +66,6 @@ import CoreH1 from '@/components/core/titles/H1'
import TwoColWrapper from '@/components/core/layout/TwoColWrapper'
import LocaleLink from '@/components/core/links/LocaleLink.vue'
import ExtLink from '@/components/core/links/ExtLink.vue'
import Steps from '@/components/core/steps/Steps.vue'
import i18n from '@/i18n/speaking/poster-session.i18n'
export default {
Expand All @@ -107,7 +77,6 @@ export default {
TwoColWrapper,
ExtLink,
LocaleLink,
Steps,
},
data() {
return {
Expand All @@ -134,18 +103,6 @@ export default {
tag: 'howToSubmit',
isDescriptionList: true,
links: [
{
slot: 'signUp',
textKey: 'terms.signUp',
url: `https://tw.pycon.org/prs/${this.$i18n.locale}/accounts/login`,
isExternalLink: true,
},
{
slot: 'proposalSystem',
textKey: 'terms.proposalSystem',
url: `https://tw.pycon.org/prs/${this.$i18n.locale}/dashboard`,
isExternalLink: true,
},
{
slot: 'posterForm',
textKey: 'terms.posterForm',
Expand All @@ -157,14 +114,6 @@ export default {
{
tag: 'topics',
isDescriptionList: false,
links: [
{
slot: 'talk',
textKey: 'terms.talk',
url: '/speaking/talk',
isExternalLink: false,
},
],
},
{
tag: 'inappropriate',
Expand Down

0 comments on commit 88312d2

Please sign in to comment.