Merge commit '318139f3ef6ac57845c63fab2636d1fe2f8de975' into feature/20250130_cl_SWV-798_2
This commit is contained in:
@@ -57,6 +57,7 @@ const createStyleLinks = (faviconJson: GameDataImg, fontPath: string = '') => {
|
|||||||
|
|
||||||
// 메타 태그 생성 헬퍼
|
// 메타 태그 생성 헬퍼
|
||||||
const createMetaTags = (metaTag: Partial<GameDataMetaTag> = {}) => {
|
const createMetaTags = (metaTag: Partial<GameDataMetaTag> = {}) => {
|
||||||
|
if (!metaTag) return []
|
||||||
const metaList = [
|
const metaList = [
|
||||||
{ name: 'description', content: metaTag.page_desc },
|
{ name: 'description', content: metaTag.page_desc },
|
||||||
{ property: 'og:title', content: metaTag.og_title },
|
{ property: 'og:title', content: metaTag.og_title },
|
||||||
@@ -92,7 +93,7 @@ const createStyleCss = (keyColorJson: GameDataKeyColors) => {
|
|||||||
// 게임 헤드 설정
|
// 게임 헤드 설정
|
||||||
const setupGameHead = (data: GameDataValue) => {
|
const setupGameHead = (data: GameDataValue) => {
|
||||||
try {
|
try {
|
||||||
const metaTag: Partial<GameDataMetaTag> = data.meta_tag_json ?? {}
|
const metaTag: Partial<GameDataMetaTag> = data?.meta_tag_json ?? {}
|
||||||
const designTheme = data.design_theme === 1 ? 'light' : 'dark'
|
const designTheme = data.design_theme === 1 ? 'light' : 'dark'
|
||||||
const styleLinks = createStyleLinks(
|
const styleLinks = createStyleLinks(
|
||||||
data.favicon_json,
|
data.favicon_json,
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ const enabledMarkets = computed(() => {
|
|||||||
const logoImgUrl = computed(() => {
|
const logoImgUrl = computed(() => {
|
||||||
const currentLocale = locale.value || 'ko'
|
const currentLocale = locale.value || 'ko'
|
||||||
const localeData = (webInspectionData.value as any)?.[currentLocale]
|
const localeData = (webInspectionData.value as any)?.[currentLocale]
|
||||||
return formatPathHost(localeData?.img_json.bi_large)
|
return formatPathHost(localeData?.img_json?.bi_large)
|
||||||
})
|
})
|
||||||
|
|
||||||
const communityUrl = computed(() => {
|
const communityUrl = computed(() => {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export interface GameDataValue {
|
|||||||
comm_sns_bg_color_json: {
|
comm_sns_bg_color_json: {
|
||||||
display: ColorObject
|
display: ColorObject
|
||||||
}
|
}
|
||||||
comm_multilang_filename: string
|
comm_multilang_filename?: string
|
||||||
footer_dev_ci_img_yn: boolean
|
footer_dev_ci_img_yn: boolean
|
||||||
footer_dev_ci_img_path: string
|
footer_dev_ci_img_path: string
|
||||||
default_lang_code?: string
|
default_lang_code?: string
|
||||||
@@ -43,13 +43,13 @@ export interface GameDataValue {
|
|||||||
inspection: Record<string, any>
|
inspection: Record<string, any>
|
||||||
stove_gnb_json: GameDataStoveGnb
|
stove_gnb_json: GameDataStoveGnb
|
||||||
favicon_json: GameDataImg
|
favicon_json: GameDataImg
|
||||||
meta_tag_json: GameDataMetaTag
|
meta_tag_json?: GameDataMetaTag
|
||||||
sns_json: GameDataSns
|
sns_json?: GameDataSns
|
||||||
url_json: Record<string, string>
|
url_json?: Record<string, string>
|
||||||
footer_json: string // JSON 문자열로 변경
|
footer_json: string // JSON 문자열로 변경
|
||||||
img_json: GameDataImg
|
img_json?: GameDataImg
|
||||||
market_json: Record<string, { url: string }>
|
market_json: Record<string, { url: string }>
|
||||||
event_banner: GameDataEventBanner
|
event_banner?: GameDataEventBanner
|
||||||
os_type: OsType
|
os_type: OsType
|
||||||
platform_type: PlatformType
|
platform_type: PlatformType
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ export interface OperateResourcesResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface getOperateResourcesParams {
|
export interface getOperateResourcesParams {
|
||||||
pageSeq: string
|
pageSeq: number
|
||||||
pageVer: string
|
pageVer: number
|
||||||
pageVerTmplSeq: number
|
pageVerTmplSeq: number
|
||||||
langCode: string
|
langCode: string
|
||||||
q?: string
|
q?: string
|
||||||
|
|||||||
@@ -25,20 +25,19 @@ export interface PageDataResponse {
|
|||||||
|
|
||||||
// API 응답의 value 객체 타입
|
// API 응답의 value 객체 타입
|
||||||
export interface PageDataValue {
|
export interface PageDataValue {
|
||||||
page_seq: string
|
page_seq: number
|
||||||
page_type: number
|
page_type: number
|
||||||
page_name: string
|
page_name: string
|
||||||
page_name_en: string
|
page_name_en: string
|
||||||
page_ver: string
|
page_ver: number
|
||||||
is_login_required: number
|
is_login_required: number
|
||||||
meta_tag_type: number
|
meta_tag_type: number
|
||||||
fit_page_height: boolean
|
|
||||||
use_top_btn: boolean
|
use_top_btn: boolean
|
||||||
use_sns_btn: boolean
|
use_sns_btn: boolean
|
||||||
use_lnb: boolean
|
use_lnb: boolean
|
||||||
lnb_text_color_code_active: string
|
lnb_text_color_code_active?: string
|
||||||
lnb_text_color_code_deactive: string
|
lnb_text_color_code_deactive?: string
|
||||||
lnb_menus: Record<string, PageDataLnbMenu>
|
lnb_menus?: Record<string, PageDataLnbMenu>
|
||||||
meta_tag_json: PageDataMetaTag
|
meta_tag_json: PageDataMetaTag
|
||||||
templates: Record<string, PageDataTemplate>
|
templates: Record<string, PageDataTemplate>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ export const ssrGetFinalLocale = (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3. 서비스 기본 언어
|
// 4. 서비스 기본 언어
|
||||||
finalLocale = defaultLocale
|
finalLocale = defaultLocale
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
finalLocale = defaultLocale
|
finalLocale = defaultLocale
|
||||||
|
|||||||
Reference in New Issue
Block a user