Files
Gnuboard7/templates/_bundled/sirsoft-basic/layouts/mypage/wishlist.json
T
2026-07-01 10:30:32 +09:00

111 lines
2.9 KiB
JSON

{
"version": "1.0.0",
"layout_name": "mypage/wishlist",
"extends": "_user_base",
"permissions": [],
"transition_overlay": {
"enabled": true,
"style": "spinner",
"target": "mypage_tab_content",
"fallback_target": "main_content_area",
"spinner": {
"component": "PageLoading"
}
},
"computed": {
"currentTab": "wishlist"
},
"data_sources": [
{
"id": "wishlist",
"label_key": "$t:editor.data_source.wishlist",
"type": "api",
"endpoint": "/api/modules/sirsoft-ecommerce/wishlist?page={{_local.wishlistPage ?? 1}}",
"method": "GET",
"auto_fetch": true,
"auth_required": true,
"loading_strategy": "progressive"
}
],
"init_actions": [
{
"handler": "setState",
"params": {
"target": "local",
"wishlistPage": 1
}
}
],
"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/wishlist/_list.json"
}
]
}
]
}
]
}
]
}
}