fix. 컴포넌트 폴더 구조 변경
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
import { usePageDataStore } from '#layers/stores/usePageDataStore'
|
import { usePageDataStore } from '#layers/stores/usePageDataStore'
|
||||||
import Template from '#layers/components/molecules/Template.vue'
|
|
||||||
|
|
||||||
const pageDataStore = usePageDataStore()
|
const pageDataStore = usePageDataStore()
|
||||||
const { pageData } = storeToRefs(pageDataStore)
|
const { pageData } = storeToRefs(pageDataStore)
|
||||||
@@ -34,7 +33,7 @@ watchEffect(() => {
|
|||||||
<template>
|
<template>
|
||||||
<NuxtLayout :name="layout">
|
<NuxtLayout :name="layout">
|
||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<Template :templates="pageData?.templates ?? []" />
|
<BlocksMain :templates="pageData?.templates ?? []" />
|
||||||
</ClientOnly>
|
</ClientOnly>
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
import { usePageDataStore } from '#layers/stores/usePageDataStore'
|
import { usePageDataStore } from '#layers/stores/usePageDataStore'
|
||||||
import Template from '#layers/components/molecules/Template.vue'
|
|
||||||
|
|
||||||
const pageDataStore = usePageDataStore()
|
const pageDataStore = usePageDataStore()
|
||||||
const { pageData } = storeToRefs(pageDataStore)
|
const { pageData } = storeToRefs(pageDataStore)
|
||||||
@@ -34,7 +33,7 @@ watchEffect(() => {
|
|||||||
<template>
|
<template>
|
||||||
<NuxtLayout :name="layout">
|
<NuxtLayout :name="layout">
|
||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<Template :templates="pageData?.templates ?? []" />
|
<BlocksMain :templates="pageData?.templates ?? []" />
|
||||||
</ClientOnly>
|
</ClientOnly>
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
import { usePageDataStore } from '#layers/stores/usePageDataStore'
|
import { usePageDataStore } from '#layers/stores/usePageDataStore'
|
||||||
import Template from '#layers/components/molecules/Template.vue'
|
|
||||||
|
|
||||||
const pageDataStore = usePageDataStore()
|
const pageDataStore = usePageDataStore()
|
||||||
const { pageData } = storeToRefs(pageDataStore)
|
const { pageData } = storeToRefs(pageDataStore)
|
||||||
@@ -34,7 +33,7 @@ watchEffect(() => {
|
|||||||
<template>
|
<template>
|
||||||
<NuxtLayout :name="layout">
|
<NuxtLayout :name="layout">
|
||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<Template :templates="pageData?.templates ?? []" />
|
<BlocksMain :templates="pageData?.templates ?? []" />
|
||||||
</ClientOnly>
|
</ClientOnly>
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
import { usePageDataStore } from '#layers/stores/usePageDataStore'
|
import { usePageDataStore } from '#layers/stores/usePageDataStore'
|
||||||
import Template from '#layers/components/molecules/Template.vue'
|
|
||||||
|
|
||||||
const pageDataStore = usePageDataStore()
|
const pageDataStore = usePageDataStore()
|
||||||
const { pageData } = storeToRefs(pageDataStore)
|
const { pageData } = storeToRefs(pageDataStore)
|
||||||
@@ -43,7 +42,7 @@ watchEffect(() => {
|
|||||||
<template>
|
<template>
|
||||||
<NuxtLayout :name="layout">
|
<NuxtLayout :name="layout">
|
||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<Template :templates="pageData?.templates ?? []" />
|
<BlocksMain :templates="pageData?.templates ?? []" />
|
||||||
</ClientOnly>
|
</ClientOnly>
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ const isShowTemplate = (template: PageDataTemplate) => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<main>
|
||||||
<template
|
<template
|
||||||
v-for="(template, index) in props.templates"
|
v-for="(template, index) in props.templates"
|
||||||
:key="template.template_code ?? index"
|
:key="template.template_code ?? index"
|
||||||
@@ -21,4 +22,5 @@ const isShowTemplate = (template: PageDataTemplate) => {
|
|||||||
:components="template.components"
|
:components="template.components"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
</main>
|
||||||
</template>
|
</template>
|
||||||
@@ -12,7 +12,7 @@ const gnbList = gameData?.gnb?.menus as GameDataGnb['menus']
|
|||||||
<header
|
<header
|
||||||
class="bg-theme-foreground text-theme-foreground-reversal relative z-50"
|
class="bg-theme-foreground text-theme-foreground-reversal relative z-50"
|
||||||
>
|
>
|
||||||
<LayoutStoveGnb />
|
<MoleculesStoveGnb />
|
||||||
<div
|
<div
|
||||||
data-name="header-game"
|
data-name="header-game"
|
||||||
class="px-[40px] h-16 flex items-center whitespace-nowrap"
|
class="px-[40px] h-16 flex items-center whitespace-nowrap"
|
||||||
@@ -2,10 +2,8 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<LayoutDefaultHeader />
|
<BlocksDefaultHeader />
|
||||||
<main>
|
|
||||||
<slot />
|
<slot />
|
||||||
</main>
|
<BlocksDefaultFooter />
|
||||||
<LayoutDefaultFooter />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user