fix. 공통 함수, 샘플 이미지 수정

This commit is contained in:
clkim
2025-10-27 17:38:46 +09:00
parent 24a934576c
commit 624e01472e
53 changed files with 21 additions and 17 deletions

View File

@@ -7,6 +7,7 @@ interface Props {
type?: ResponsiveOptions['type']
slideItemLength?: number
autoplay?: boolean
perPage?: number
arrows?: boolean
pagination?: boolean
paginationData?: PageDataResourceGroups
@@ -24,7 +25,10 @@ const emit = defineEmits(['mounted', 'move', 'arrowClick'])
// Splide 화살표 로직을 위한 composable 사용
const { addArrowClickListeners } = useSplideArrow()
const isMultipleItems = computed(() => (props.slideItemLength ?? 0) > 1)
const perPage = computed(() => props.perPage ?? 1)
const isMultipleItems = computed(
() => (props.slideItemLength ?? 0) > perPage.value
)
const resolvedType = computed<ResponsiveOptions['type']>(() => {
if (props.type) return props.type
return isMultipleItems.value ? 'loop' : 'slide'
@@ -35,6 +39,7 @@ const options = computed((): ResponsiveOptions => {
type: resolvedType.value,
autoWidth: true,
autoHeight: true,
perPage: perPage.value,
speed: 500,
updateOnMove: true,
autoplay: props.autoplay,

View File

@@ -1,12 +1,12 @@
import type {
GetResourcesDataParams,
ResourcesDataResponse,
getOperateResourcesDataParams,
OperateResourcesDataResponse,
OperateComponents,
} from '#layers/types/api/resourcesData'
export const useResourcesData = () => {
const getResourcesData = async (
params: GetResourcesDataParams
const getOperateResourcesData = async (
params: getOperateResourcesDataParams
): Promise<OperateComponents | null> => {
const { pageSeq, pageVer, pageVerTmplSeq, langCode, q, qc } = params
@@ -27,7 +27,7 @@ export const useResourcesData = () => {
const response = (await commonFetch('GET', apiUrl, {
query: queryParams,
loading: true,
})) as ResourcesDataResponse | null
})) as OperateResourcesDataResponse | null
if (response?.code === 0 && 'value' in response) {
return response.value
@@ -36,6 +36,6 @@ export const useResourcesData = () => {
}
return {
getResourcesData,
getOperateResourcesData,
}
}

View File

@@ -1,6 +1,6 @@
export function useTokenValidation() {
const runtimeConfig = useRuntimeConfig()
const apiBaseUrl = `${runtimeConfig.public.stoveApiUrl}`
const config = useRuntimeConfig()
const apiBaseUrl = `${config.public.stoveApiUrl}`
const isTokenValid = ref(false)
const validateToken = async (token: string) => {

View File

@@ -114,7 +114,6 @@ const onArrowClick = (direction, targetIndex) => {
ref="slideThumbnailRef"
:slide-data="slideData"
variant="media"
:drag="false"
class="mt-[24px] md:mt-[32px]"
:pagination-data="paginationData"
@move="stopVideo"

View File

@@ -17,7 +17,7 @@ interface Props {
const props = defineProps<Props>()
const pageDataStore = usePageDataStore()
const { getResourcesData } = useResourcesData()
const { getOperateResourcesData } = useResourcesData()
const { locale } = useI18n()
const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
@@ -43,7 +43,7 @@ const { data: slideData } = await useAsyncData(
return []
}
const operateGroupList = await getResourcesData({
const operateGroupList = await getOperateResourcesData({
pageSeq: pageData.value.page_seq,
pageVer: pageData.value.page_ver,
pageVerTmplSeq: props.pageVerTmplSeq,

View File

@@ -26,14 +26,14 @@ export interface OperateComponents {
}
// Resources Data API 응답
export interface ResourcesDataResponse {
export interface OperateResourcesDataResponse {
code: number
message: string
value: OperateComponents
}
// getResourcesData 함수 파라미터
export interface GetResourcesDataParams {
// getOperateResourcesData 함수 파라미터
export interface getOperateResourcesDataParams {
pageSeq: string
pageVer: string
pageVerTmplSeq: number

View File

@@ -9,10 +9,10 @@ import { csrFormatJWT } from '#layers/utils/formatUtil'
* Stove 로그인
*/
export const csrGoStoveLogin = () => {
const runtimeConfig = useRuntimeConfig()
const config = useRuntimeConfig()
const gameDataStore = useGameDataStore()
const loginUrl = runtimeConfig.public.stoveLoginUrl
const loginUrl = config.public.stoveLoginUrl
const stoveGameId = gameDataStore.gameData?.game_id
const stoveGameNo = gameDataStore.gameData?.game_code
const redirectUrl = encodeURIComponent(location.href)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 KiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 KiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 772 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 772 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

View File

Before

Width:  |  Height:  |  Size: 415 KiB

After

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 KiB

View File

Before

Width:  |  Height:  |  Size: 171 KiB

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 773 KiB

After

Width:  |  Height:  |  Size: 794 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 KiB