fix. 공통 함수, 샘플 이미지 수정
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
Before Width: | Height: | Size: 415 KiB After Width: | Height: | Size: 1.7 MiB |
|
Before Width: | Height: | Size: 171 KiB After Width: | Height: | Size: 1.4 MiB |
BIN
public/images/sample/GR_DETAIL_03/common/video02_m.mp4
Normal file
BIN
public/images/sample/GR_DETAIL_03/common/video03_m.mp4
Normal file
BIN
public/images/sample/GR_GALLERY_01/common/bg.jpg
Normal file
|
After Width: | Height: | Size: 1.8 MiB |
BIN
public/images/sample/GR_GALLERY_01/common/bg_m.jpg
Normal file
|
After Width: | Height: | Size: 698 KiB |
|
Before Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 772 KiB |
|
Before Width: | Height: | Size: 176 KiB |
|
Before Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 772 KiB |
|
Before Width: | Height: | Size: 176 KiB |
|
Before Width: | Height: | Size: 415 KiB After Width: | Height: | Size: 415 KiB |
|
Before Width: | Height: | Size: 415 KiB |
|
Before Width: | Height: | Size: 171 KiB |
|
Before Width: | Height: | Size: 171 KiB After Width: | Height: | Size: 171 KiB |
BIN
public/images/sample/GR_GALLERY_02/ko/img_slide01_m.jpg
Normal file
|
After Width: | Height: | Size: 255 KiB |
BIN
public/images/sample/GR_GALLERY_02/ko/img_slide02_m.jpg
Normal file
|
After Width: | Height: | Size: 255 KiB |
BIN
public/images/sample/GR_GALLERY_02/ko/img_slide03_m .jpg
Normal file
|
After Width: | Height: | Size: 255 KiB |
BIN
public/images/sample/GR_GALLERY_02/zh-tw/img_slide01_m.jpg
Normal file
|
After Width: | Height: | Size: 255 KiB |
BIN
public/images/sample/GR_GALLERY_02/zh-tw/img_slide02_m.jpg
Normal file
|
After Width: | Height: | Size: 255 KiB |
BIN
public/images/sample/GR_GALLERY_02/zh-tw/img_slide03_m .jpg
Normal file
|
After Width: | Height: | Size: 255 KiB |
BIN
public/images/sample/GR_GALLERY_03/common/bg.jpg
Normal file
|
After Width: | Height: | Size: 2.2 MiB |
|
Before Width: | Height: | Size: 415 KiB |
|
Before Width: | Height: | Size: 171 KiB |
BIN
public/images/sample/GR_GALLERY_03/common/bg_m.jpg
Normal file
|
After Width: | Height: | Size: 484 KiB |
|
Before Width: | Height: | Size: 264 KiB |
BIN
public/images/sample/GR_VISUAL_01/ko/title_main_m.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
BIN
public/images/sample/GR_VISUAL_01/ko/title_sub_m.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
public/images/sample/GR_VISUAL_01/zh-tw/title_main_m.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
BIN
public/images/sample/GR_VISUAL_01/zh-tw/title_sub_m.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 773 KiB After Width: | Height: | Size: 794 KiB |
BIN
public/images/sample/GR_VISUAL_02/ko/title_main_m.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
BIN
public/images/sample/GR_VISUAL_02/ko/title_sub_m.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
public/images/sample/GR_VISUAL_02/zh-tw/title_main_m.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
BIN
public/images/sample/GR_VISUAL_02/zh-tw/title_sub_m.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
public/images/sample/GR_VISUAL_03/common/bg01_m.jpg
Normal file
|
After Width: | Height: | Size: 425 KiB |
BIN
public/images/sample/GR_VISUAL_03/common/bg02_m.jpg
Normal file
|
After Width: | Height: | Size: 425 KiB |
BIN
public/images/sample/GR_VISUAL_03/common/bg03_m.jpg
Normal file
|
After Width: | Height: | Size: 425 KiB |