fix. formatPathHost 파라미터 직관적으로 명칭 수정
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
interface Props {
|
||||
src: string | { pc?: string; mo?: string }
|
||||
alt?: string
|
||||
imageType?: 'common' | 'game'
|
||||
imageType?: 'public' | 'cdn'
|
||||
priority?: 'high' | 'low' | 'auto'
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
alt: 'image',
|
||||
imageType: 'game',
|
||||
imageType: 'cdn',
|
||||
priority: 'auto',
|
||||
})
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ const buttonStyle = computed<CSSProperties>(() => {
|
||||
style.backgroundColor = props.backgroundColor
|
||||
}
|
||||
if (props.type === 'duplication') {
|
||||
style.backgroundImage = `url(${formatPathHost(DUP_IMAGE_MAP[props.platform], { imageType: 'common' })})`
|
||||
style.backgroundImage = `url(${formatPathHost(DUP_IMAGE_MAP[props.platform], { imageType: 'public' })})`
|
||||
}
|
||||
|
||||
return style
|
||||
|
||||
@@ -71,7 +71,7 @@ const handleCopy = async () => {
|
||||
height="100%"
|
||||
:src="
|
||||
formatPathHost(`/images/common/ic-v2-logo-${key}-fill.png`, {
|
||||
imageType: 'common',
|
||||
imageType: 'public',
|
||||
})
|
||||
"
|
||||
:alt="key"
|
||||
@@ -88,7 +88,7 @@ const handleCopy = async () => {
|
||||
height="100%"
|
||||
:src="
|
||||
formatPathHost('/images/common/ic-v2-community-link-line.png', {
|
||||
imageType: 'common',
|
||||
imageType: 'public',
|
||||
})
|
||||
"
|
||||
alt="copy"
|
||||
|
||||
@@ -101,7 +101,7 @@ const getGameRatingImage = computed((): { type: string; image: string } => {
|
||||
image: formatPathHost(
|
||||
`/images/common/grades_age/${locale.value}/${type}.svg`,
|
||||
{
|
||||
imageType: 'common',
|
||||
imageType: 'public',
|
||||
}
|
||||
),
|
||||
}
|
||||
@@ -134,7 +134,7 @@ const getContentInfoImage = computed((): string[] => {
|
||||
const type = contentTypeMap[item]
|
||||
return type
|
||||
? formatPathHost(`/images/common/grades_use/${type}.svg`, {
|
||||
imageType: 'common',
|
||||
imageType: 'public',
|
||||
})
|
||||
: ''
|
||||
})
|
||||
@@ -331,7 +331,7 @@ const footerAgeRatingInfo = computed((): string[] => {
|
||||
<img
|
||||
:src="
|
||||
formatPathHost(`/images/common/logo_smilegate.png`, {
|
||||
imageType: 'common',
|
||||
imageType: 'public',
|
||||
})
|
||||
"
|
||||
width="114px"
|
||||
@@ -344,12 +344,12 @@ const footerAgeRatingInfo = computed((): string[] => {
|
||||
v-if="footerData.use_dev_ci_url"
|
||||
:href="footerData.dev_ci_url"
|
||||
target="_blank"
|
||||
class="block nx3"
|
||||
class="block"
|
||||
>
|
||||
<img
|
||||
:src="
|
||||
formatPathHost(`${setDevCi.dev_ci_img_path}`, {
|
||||
imageType: 'game',
|
||||
imageType: 'cdn',
|
||||
})
|
||||
"
|
||||
alt="CI"
|
||||
@@ -361,7 +361,7 @@ const footerAgeRatingInfo = computed((): string[] => {
|
||||
v-else
|
||||
:src="
|
||||
formatPathHost(`${setDevCi.dev_ci_img_path}`, {
|
||||
imageType: 'game',
|
||||
imageType: 'cdn',
|
||||
})
|
||||
"
|
||||
alt="CI"
|
||||
|
||||
@@ -397,7 +397,7 @@ defineExpose({
|
||||
<AtomsImg
|
||||
src="/images/common/stove_app_qr.png"
|
||||
alt="STOVE APP QR Code"
|
||||
image-type="common"
|
||||
image-type="public"
|
||||
class="w-full h-full object-contain"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user