Skip to content

Commit 4410911

Browse files
committed
Newt CMS から Local の管理へ切り替え
1 parent 93fb4fa commit 4410911

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1329
-8
lines changed

app/components/SponsorsPageSection.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<script setup lang="ts">
22
import SponsorList from '~/components/sponsors/SponsorList.vue'
33
import SectionTitle from '~/components/SectionTitle.vue'
4-
import { useSponsorsCMS } from '~/composables/useCMS'
4+
// import { useSponsorsCMS } from '~/composables/useCMS'
55
import { individuals } from '~/utils/individuals.constants'
66
7-
const { fetchContent } = useSponsorsCMS()
8-
const { data: sponsors } = useLazyAsyncData('sponsors', () => fetchContent())
7+
import { sponsors } from '~/utils/newt.constants'
8+
9+
// const { fetchContent } = useSponsorsCMS()
10+
// const { data: sponsors } = useLazyAsyncData('sponsors', () => fetchContent())
911
</script>
1012

1113
<template>

app/components/sponsors/SponsorListBio.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import type { CustomPropType } from '~/types/shims-vue'
33
import { sponsorSupportLevelTitle } from '~/utils/sponsors.constants'
44
import { ISponsor } from '~/types/sponsors'
5+
import { REDIRECT_URL } from '~/utils/environment.constants'
56
67
const props = defineProps({
78
sponsors: {
@@ -46,7 +47,7 @@ const sponsorRankClass = computed(() => {
4647
rel="noopener"
4748
>
4849
<img
49-
:src="sponsor.image.src"
50+
:src="`${REDIRECT_URL}/sponsor/${sponsor.image.src}`"
5051
:alt="sponsor.name_jp"
5152
loading="lazy"
5253
class="aspect-video mb-5 w-full"

app/components/sponsors/SponsorLogo.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import { ISponsor } from '~/types/sponsors'
3+
import { REDIRECT_URL } from '~/utils/environment.constants'
34
45
const props = defineProps<{
56
sponsor: ISponsor
@@ -14,7 +15,7 @@ const props = defineProps<{
1415
class="shadow-card hover:shadow-card-hover transition"
1516
>
1617
<img
17-
:src="props.sponsor.image.src"
18+
:src="`${REDIRECT_URL}/sponsor/${props.sponsor.image.src}`"
1819
:alt="props.sponsor.name_jp"
1920
class="aspect-16/9 object-cover w-full bg-center"
2021
>

app/pages/sponsors/index.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ import SponsorListBio from '~/components/sponsors/SponsorListBio.vue'
66
import PageTitle from '~/components/PageTitle.vue'
77
import FooterPageSection from '~/components/FooterPageSection.vue'
88
import IchimatsuDividedBar from '~/components/IchimatsuDividedBar.vue'
9-
import { useSponsorsCMS } from '~/composables/useCMS'
9+
// import { useSponsorsCMS } from '~/composables/useCMS'
1010
import { SHOW_SPONSOR_LIST } from '~/utils/feature.constants'
1111
import { conferenceTitle } from '~/utils/constants'
1212
import { generalOg, twitterOg } from '~/utils/og.constants'
1313
14+
import { sponsors } from '~/utils/newt.constants'
15+
1416
const title = `スポンサー一覧 | ${conferenceTitle}`
1517
const url = 'https://vuefes.jp/2022/sponsors'
1618
const description = `${conferenceTitle} のスポンサー情報です。`
@@ -23,8 +25,8 @@ useNuxt2Meta({
2325
]
2426
})
2527
26-
const { fetchContent } = useSponsorsCMS()
27-
const { data: sponsors } = useLazyAsyncData('sponsors', () => fetchContent())
28+
// const { fetchContent } = useSponsorsCMS()
29+
// const { data: sponsors } = useLazyAsyncData('sponsors', () => fetchContent())
2830
2931
const links = [
3032
{ label: 'Platinum', link: '#platinum' },

app/static/sponsor-square/base.png

2.26 KB
2.96 KB

app/static/sponsor-square/future.png

4.07 KB
7.58 KB

app/static/sponsor-square/icare.png

10.8 KB

app/static/sponsor-square/line.png

1.74 KB

app/static/sponsor-square/medpeer.png

5.92 KB

app/static/sponsor-square/stores.png

4.81 KB

app/static/sponsor-square/yesod.png

1.57 KB

app/static/sponsor/base.png

-1.74 KB

app/static/sponsor/bengo4.png

3.44 KB

app/static/sponsor/coconala.png

2.67 KB

app/static/sponsor/codedict.png

2.4 KB

app/static/sponsor/cybozu.png

2.36 KB

app/static/sponsor/esa.png

1.73 KB

app/static/sponsor/excite.png

2.87 KB

app/static/sponsor/future.png

-2.09 KB

app/static/sponsor/giftee.png

2.22 KB

app/static/sponsor/gihyo.png

2.39 KB

app/static/sponsor/grapecity.png

-3.03 KB

app/static/sponsor/hacomono.png

1.73 KB

app/static/sponsor/hamworks.png

2.4 KB

app/static/sponsor/icare.png

-6.06 KB

app/static/sponsor/line.png

-694 Bytes

app/static/sponsor/lm.png

1.76 KB

app/static/sponsor/m3.png

2.94 KB

app/static/sponsor/macloud.png

2.17 KB

app/static/sponsor/medpeer.png

-2.07 KB

app/static/sponsor/microad.png

3.87 KB

app/static/sponsor/monsterdive.png

2.83 KB

app/static/sponsor/newt.png

1.89 KB

app/static/sponsor/raksul.png

3.12 KB

app/static/sponsor/rakus.png

2.33 KB

app/static/sponsor/retty.png

1.86 KB

app/static/sponsor/satori.png

1.34 KB

app/static/sponsor/stores.png

-1.36 KB

app/static/sponsor/studist.png

2.09 KB

app/static/sponsor/tanomu.png

3.09 KB

app/static/sponsor/techfeed.png

616 Bytes

app/static/sponsor/visasq.png

1.58 KB

app/static/sponsor/wacaxi.png

2.25 KB

app/static/sponsor/winenabe.png

1.72 KB

app/static/sponsor/yappli.png

2.06 KB

app/static/sponsor/yesod.png

-1.3 KB

app/static/sponsor/yourmystar.png

2.36 KB

app/static/sponsor/yumemi.png

2.79 KB

app/utils/environment.constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
export const isProd = process.env.NODE_ENV === 'production'
2+
3+
export const REDIRECT_URL = isProd ? 'https://vuefes.jp/2022' : 'http://localhost:3000'

0 commit comments

Comments
 (0)