Skip to content

Commit

Permalink
TicketPageSection
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyuujin committed Jul 3, 2024
1 parent 2f61452 commit b05d027
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/web/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ AVAILABLE_APPLY_SPONSOR=
ENABLE_INVITE_STAFF=
ENABLE_OPERATE_ADMIN=
ENABLE_SWITCH_LOCALE=
ENABLE_REGISTER_TICKET=
ENABLE_REGISTER_NAMECARD=
12 changes: 12 additions & 0 deletions apps/web/app/components/TicketPageSection.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<script setup lang="ts">
import { useRuntimeConfig } from '#imports'
import TicketSection from '~/components/ticket/TicketSection.vue'
import NamecardSection from '~/components/ticket/NamecardSection.vue'
const config = useRuntimeConfig()
</script>

<template>
<TicketSection />
<NamecardSection v-if="config.public.enableRegisterNamecard" />
</template>
3 changes: 3 additions & 0 deletions apps/web/app/components/ticket/NamecardSection.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
Namecard
</template>
3 changes: 3 additions & 0 deletions apps/web/app/components/ticket/TicketSection.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
Ticket
</template>
4 changes: 3 additions & 1 deletion apps/web/app/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<script setup lang="ts">
import { useHead, useI18n } from '#imports'
import { useHead, useI18n, useRuntimeConfig } from '#imports'
import { conferenceTitle } from '~/utils/constants'
import { generalOg, twitterOg } from '~/utils/og.constants'
const { locale } = useI18n({ useScope: 'global' })
const config = useRuntimeConfig()
useHead({
// eslint-disable-next-line no-unused-vars
Expand All @@ -18,6 +19,7 @@ useHead({
<SpeakerPageSection />
<VolunteerPageSection v-if="locale === 'ja'" />
<SponsorPageSection />
<TicketPageSection v-if="config.public.enableRegisterTicket" />
<CooperationPartnerSection />
<FormPageSection />
</template>
2 changes: 2 additions & 0 deletions apps/web/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ export default defineNuxtConfig({
enableInviteStaff: process.env.ENABLE_INVITE_STAFF,
enableOperateAdmin: process.env.ENABLE_OPERATE_ADMIN,
enableSwitchLocale: process.env.ENABLE_SWITCH_LOCALE,
enableRegisterTicket: process.env.ENABLE_REGISTER_TICKET,
enableRegisterNamecard: process.env.ENABLE_REGISTER_NAMECARD,
},
},
// for https on localhost
Expand Down

0 comments on commit b05d027

Please sign in to comment.