fix. 템플릿 데이터 수정에 따른 fe 소스 수정
This commit is contained in:
@@ -36,12 +36,23 @@ export interface PageDataValue {
|
||||
lnb_text_color_code_active: string
|
||||
lnb_text_color_code_deactive: string
|
||||
lnb_menus: PageDataLnbMenu[]
|
||||
templates: Record<string, PageDataTemplate>
|
||||
meta_tag: PageDataMetaTag
|
||||
templates: Record<string, PageDataTemplate>
|
||||
}
|
||||
|
||||
// ===== 세부 데이터 타입들 =====
|
||||
|
||||
// LNB 메뉴 타입
|
||||
export interface PageDataLnbMenu {
|
||||
path_code: string
|
||||
depth: number
|
||||
sort_order: number
|
||||
menu_name: string
|
||||
target_type: number
|
||||
page_ver_tmpl_name_en: string
|
||||
tracking: string
|
||||
}
|
||||
|
||||
// 메타 태그 타입
|
||||
export interface PageDataMetaTag {
|
||||
x_desc: string
|
||||
@@ -54,7 +65,14 @@ export interface PageDataMetaTag {
|
||||
page_title: string
|
||||
}
|
||||
|
||||
// 리소스 그룹 타입
|
||||
export type PageDataResourceGroupType =
|
||||
| 'TXT'
|
||||
| 'BTN'
|
||||
| 'VID'
|
||||
| 'IMG_COMM'
|
||||
| 'IMG_LANG'
|
||||
| 'IMG_COMM_GLOBAL'
|
||||
|
||||
export interface PageDataResourceGroupResPath {
|
||||
path_mo: string
|
||||
path_pc?: string
|
||||
@@ -72,8 +90,7 @@ export interface PageDataResourceGroupBtnInfo {
|
||||
|
||||
// 리소스 그룹 타입
|
||||
export interface PageDataResourceGroup {
|
||||
group_type?: string
|
||||
group_code?: string
|
||||
resource_type?: PageDataResourceGroupType
|
||||
res_path?: PageDataResourceGroupResPath
|
||||
btn_info?: PageDataResourceGroupBtnInfo
|
||||
display?: {
|
||||
@@ -81,29 +98,27 @@ export interface PageDataResourceGroup {
|
||||
color_code?: string
|
||||
color_name?: string
|
||||
}
|
||||
tracking: string // JSON 문자열
|
||||
tracking: string
|
||||
}
|
||||
|
||||
export type PageDataResourceGroups = PageDataResourceGroup[]
|
||||
|
||||
// 컴포넌트 타입
|
||||
export interface PageDataComponent {
|
||||
groups: PageDataResourceGroup[]
|
||||
groups: PageDataResourceGroups
|
||||
}
|
||||
|
||||
// 템플릿 컴포넌트 타입 - 두 가지 패턴 지원
|
||||
export type PageDataTemplateComponent = Record<string, PageDataComponent>
|
||||
|
||||
// 그룹 세트 아이템 타입
|
||||
export type PageDataTemplateComponentSet = PageDataTemplateComponent & {
|
||||
set_order?: number
|
||||
}
|
||||
|
||||
// 템플릿 컴포넌트 타입 - 두 가지 패턴
|
||||
export type PageDataTemplateComponents =
|
||||
| Record<string, PageDataComponent> // 직접 PageDataComponent가 들어있는 패턴
|
||||
| { group_sets: Record<string, any> } // group_sets 안에 PageDataComponent가 들어있는 패턴
|
||||
|
||||
// LNB 메뉴 타입
|
||||
export interface PageDataLnbMenu {
|
||||
path_code: string
|
||||
depth: number
|
||||
sort_order: number
|
||||
menu_name: string
|
||||
target_type: number
|
||||
page_ver_tmpl_name_en: string
|
||||
tracking: string // JSON string
|
||||
}
|
||||
| PageDataTemplateComponent // 단일 컴포넌트 패턴
|
||||
| { group_sets: PageDataTemplateComponentSet[] } // 그룹 세트 패턴
|
||||
|
||||
// 템플릿 타입
|
||||
export interface PageDataTemplate {
|
||||
|
||||
Reference in New Issue
Block a user