diff --git a/layers/components/atoms/Img.vue b/layers/components/atoms/Img.vue index e4744f6..c751e60 100644 --- a/layers/components/atoms/Img.vue +++ b/layers/components/atoms/Img.vue @@ -2,10 +2,12 @@ interface Props { src: string | { pc?: string; mo?: string } alt?: string + imageType?: 'common' | 'game' } const props = withDefaults(defineProps(), { alt: 'image', + imageType: 'game', }) const isDev = process.env.NODE_ENV === 'development' @@ -16,13 +18,23 @@ const isResponsiveMode = computed(() => { }) const imagePaths = computed(() => { if (typeof props.src === 'string') { - const resolved = getImageHost(`${rootPath}${props.src}`) + const resolved = getImageHost(`${rootPath}${props.src}`, { + imageType: props.imageType, + }) return { pc: resolved, mo: '' } } return { - pc: props.src.pc ? getImageHost(`${rootPath}${props.src.pc}`) : '', - mo: props.src.mo ? getImageHost(`${rootPath}${props.src.mo}`) : '', + pc: props.src.pc + ? getImageHost(`${rootPath}${props.src.pc}`, { + imageType: props.imageType, + }) + : '', + mo: props.src.mo + ? getImageHost(`${rootPath}${props.src.mo}`, { + imageType: props.imageType, + }) + : '', } }) diff --git a/layers/components/atoms/icons/ArrowDownFill.vue b/layers/components/atoms/icons/ArrowDownFill.vue index a457130..09963b6 100644 --- a/layers/components/atoms/icons/ArrowDownFill.vue +++ b/layers/components/atoms/icons/ArrowDownFill.vue @@ -16,10 +16,10 @@ withDefaults(defineProps(), { :width="size" :height="size" viewBox="0 0 12 12" + :fill="color" > diff --git a/layers/components/atoms/icons/ArrowRightLine.vue b/layers/components/atoms/icons/ArrowRightLine.vue index 29a671f..09ca2df 100644 --- a/layers/components/atoms/icons/ArrowRightLine.vue +++ b/layers/components/atoms/icons/ArrowRightLine.vue @@ -16,12 +16,12 @@ withDefaults(defineProps(), { :width="size" :height="size" viewBox="0 0 20 20" + :fill="color" > diff --git a/layers/components/blocks/modal/YouTube.vue b/layers/components/blocks/modal/YouTube.vue index 040cc5e..cb6a28a 100644 --- a/layers/components/blocks/modal/YouTube.vue +++ b/layers/components/blocks/modal/YouTube.vue @@ -51,7 +51,7 @@ onUnmounted(() => {
diff --git a/layers/composables/useCheckPCSpec.ts b/layers/composables/useCheckPCSpec.ts index 769f720..70b36ff 100644 --- a/layers/composables/useCheckPCSpec.ts +++ b/layers/composables/useCheckPCSpec.ts @@ -27,7 +27,6 @@ export const useCheckPCSpec = (tm: (key: string) => string) => { contentText: tm('Download_Alert_InstallGuide'), confirmButtonText: tm('Download_Text_Download'), modalName: 'modal-download', - isShowDimmed: true, confirmButtonEvent: () => { location.href = String(setupUrl) }, diff --git a/layers/composables/useTokenValidation.ts b/layers/composables/useTokenValidation.ts index f4bdec5..ba07dad 100644 --- a/layers/composables/useTokenValidation.ts +++ b/layers/composables/useTokenValidation.ts @@ -27,7 +27,6 @@ export const useTokenValidation = () => { modalStore.handleOpenConfirm({ contentText: tm(alertKey), confirmButtonText: tm('Text_StoveLogin'), - modalName: 'modal-login', confirmButtonEvent: () => { csrGoStoveLogin() }, diff --git a/layers/utils/styleUtil.ts b/layers/utils/styleUtil.ts index 288ada5..512ca83 100644 --- a/layers/utils/styleUtil.ts +++ b/layers/utils/styleUtil.ts @@ -27,13 +27,11 @@ export const getImageHost = ( const { staticUrl, assetsUrl } = config.public const { imageType = 'game' } = options - const isDevelopment = process.env.NODE_ENV === 'development' + const isDevelopment = import.meta.dev const isTypeGame = imageType === 'game' // * [TODO] 수정 필요 : 게임별 이미지 로컬에 추가 필요. - if (isTypeGame) { - return `${staticUrl}${path}` - } + if (isTypeGame) return `${staticUrl}${path}` // 개발 환경일 때는 루트 경로 생략 if (isDevelopment) return path