108 lines
2.8 KiB
JSON
108 lines
2.8 KiB
JSON
{
|
|
"version": "1.0.0",
|
|
"layout_name": "mypage/profile",
|
|
"extends": "_user_base",
|
|
"permissions": [],
|
|
"transition_overlay": {
|
|
"enabled": true,
|
|
"style": "spinner",
|
|
"target": "mypage_tab_content",
|
|
"fallback_target": "main_content_area",
|
|
"spinner": {
|
|
"component": "PageLoading"
|
|
}
|
|
},
|
|
"computed": {
|
|
"currentTab": "profile"
|
|
},
|
|
"data_sources": [
|
|
{
|
|
"id": "user",
|
|
"label_key": "$t:editor.data_source.user",
|
|
"type": "api",
|
|
"endpoint": "/api/me",
|
|
"method": "GET",
|
|
"auto_fetch": true,
|
|
"auth_required": true,
|
|
"loading_strategy": "progressive",
|
|
"initLocal": "profileEditForm"
|
|
}
|
|
],
|
|
"slots": {
|
|
"content": [
|
|
{
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"props": {
|
|
"className": "min-h-screen bg-gray-50 dark:bg-gray-900"
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "layout",
|
|
"name": "Container",
|
|
"props": {
|
|
"className": "py-8"
|
|
},
|
|
"responsive": {
|
|
"portable": {
|
|
"props": {
|
|
"className": "py-4"
|
|
}
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"comment": "페이지 제목",
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"props": {
|
|
"className": "flex items-center gap-2 mb-6"
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "basic",
|
|
"name": "Icon",
|
|
"props": {
|
|
"name": "user",
|
|
"size": "xl",
|
|
"className": "text-gray-900 dark:text-white"
|
|
}
|
|
},
|
|
{
|
|
"type": "basic",
|
|
"name": "H1",
|
|
"props": {
|
|
"className": "text-2xl font-bold text-gray-900 dark:text-white"
|
|
},
|
|
"text": "$t:mypage.title"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"comment": "탭 네비게이션",
|
|
"partial": "partials/mypage/_tab_navigation.json"
|
|
},
|
|
{
|
|
"comment": "탭 컨텐츠 영역 (스켈레톤 타겟)",
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"id": "mypage_tab_content",
|
|
"children": [
|
|
{
|
|
"comment": "프로필 보기",
|
|
"partial": "partials/mypage/profile/_view.json"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"modals": [
|
|
{
|
|
"partial": "partials/mypage/profile/_modal_withdraw.json"
|
|
}
|
|
]
|
|
} |