Files
Gnuboard7/templates/_bundled/sirsoft-basic/layouts/mypage/change-password.json
T
HeuJung 3ebbda5d86 feat(board,ecommerce,pay,verification,templates,core): 문의 답변 사슬·답글 삭제 정책·검증 계약 + 실패 사유 표면화 전수
공개 (답변 중복 등록)/(문의 삭제 시 답변 잔존) 수정과 동형 결함 전수 해소.

- 문의 답변 단일성: 1차(피벗 is_answered) + 2차(게시판 리스너 duplicate 마커) 이중 방어,
 경합 경로에서도 사유(reply_already_exists 422)가 보존되도록 훅 반환 계약 확장
- 질문·답변·피벗 생명주기 대칭: 삭제/복원/영구삭제 훅 연동 + 고아 데이터 백필 업그레이드 스텝
- 게시판별 답글 삭제 정책(cascade/block) 신설, 정렬 화이트리스트·per_page 게이트
 (전량 조회 소비처 200/999 를 수용하는 상한 999 — 조였다가 관리자 화면 2곳 422 회귀 즉시 정정)
- 결제/본인인증 플러그인 검증 계약: FormRequest 15종 승격 + 컨트롤러 catch 정합.
 거래 조회 tid 상한은 저장 컬럼(varchar 100) 기준 — 해외 CBT TID(40자) 수용
- onError 토스트 고정 문구 전수 해소(67건/50파일/15확장) — 서버 실패 사유를 그대로 표면화,
 change-password 오변수(response→error) 교정
- 코어 플러그인 설정 검증 안내의 항목 표시명이 스키마 라벨(ko/en) 폴백에 덮여 요청 로케일
 (ja) 라벨을 잃던 회귀 정정 — 번역 등록이 있으면 그것을 우선 (7.0.7 미출시 기능 자체 결함)
- 사전 결함 정리(Icon 등가표 27·darkmode 2·validated 통일), API 문서·CHANGELOG·ja 팩 동기
- develop(60652fdc0) 리베이스: getTable 정비와 병합 — 양측 의도 보존 (충돌 18파일)
2026-08-17 17:04:44 +09:00

369 lines
16 KiB
JSON

{
"version": "1.0.0",
"layout_name": "mypage/change-password",
"extends": "_user_base",
"permissions": [],
"data_sources": [],
"init_actions": [
{
"handler": "setState",
"params": {
"target": "local",
"isSubmitting": false,
"success": false
}
}
],
"slots": {
"content": [
{
"type": "basic",
"name": "Div",
"props": {
"className": "min-h-[60vh] flex items-center justify-center py-12 px-4"
},
"children": [
{
"type": "basic",
"name": "Div",
"props": {
"className": "w-full max-w-md"
},
"children": [
{
"type": "basic",
"name": "Div",
"props": {
"className": "bg-white dark:bg-gray-800 rounded-lg shadow-md p-8"
},
"responsive": {
"portable": {
"props": {
"className": "bg-white dark:bg-gray-800 rounded-lg shadow-md p-6"
}
}
},
"children": [
{
"comment": "헤더",
"type": "basic",
"name": "Div",
"props": {
"className": "text-center mb-8"
},
"children": [
{
"type": "basic",
"name": "Div",
"props": {
"className": "w-16 h-16 mx-auto mb-4 bg-primary-100 dark:bg-primary-900/30 rounded-full flex items-center justify-center"
},
"children": [
{
"type": "basic",
"name": "Icon",
"props": {
"name": "lock",
"size": "xl",
"className": "text-primary-600 dark:text-primary-400"
}
}
]
},
{
"type": "basic",
"name": "H1",
"props": {
"className": "text-2xl font-bold text-gray-900 dark:text-white mb-2"
},
"text": "$t:mypage.profile.change_password_title"
},
{
"type": "basic",
"name": "P",
"props": {
"className": "text-gray-600 dark:text-gray-400"
},
"text": "$t:mypage.profile.change_password_subtitle"
}
]
},
{
"comment": "성공 메시지",
"type": "basic",
"name": "Div",
"props": {
"className": "text-center"
},
"if": "{{_local?.success}}",
"children": [
{
"type": "basic",
"name": "Div",
"props": {
"className": "w-16 h-16 mx-auto mb-4 bg-green-100 dark:bg-green-900/30 rounded-full flex items-center justify-center"
},
"children": [
{
"type": "basic",
"name": "Icon",
"props": {
"name": "check",
"size": "xl",
"className": "text-green-600 dark:text-green-400"
}
}
]
},
{
"type": "basic",
"name": "P",
"props": {
"className": "text-green-700 dark:text-green-300 mb-6"
},
"text": "$t:mypage.profile.change_password_success"
},
{
"type": "basic",
"name": "Button",
"props": {
"className": "inline-block px-6 py-3 bg-primary-600 text-white rounded-lg hover:bg-primary-700 transition-colors cursor-pointer"
},
"actions": [
{
"type": "click",
"handler": "navigate",
"params": {
"path": "/mypage/profile"
}
}
],
"text": "$t:mypage.profile.back_to_profile"
}
]
},
{
"comment": "폼",
"type": "basic",
"name": "Form",
"dataKey": "form",
"props": {
"className": "space-y-6",
"id": "form"
},
"if": "{{!_local?.success}}",
"actions": [
{
"type": "submit",
"handler": "sequence",
"actions": [
{
"handler": "setState",
"params": {
"target": "local",
"isSubmitting": true
}
},
{
"handler": "apiCall",
"auth_required": true,
"target": "/api/me/password",
"params": {
"method": "PUT",
"body": {
"current_password": "{{form?.current_password}}",
"password": "{{form?.password}}",
"password_confirmation": "{{form?.password_confirmation}}"
}
},
"onSuccess": {
"handler": "setState",
"params": {
"target": "local",
"isSubmitting": false,
"success": true
}
},
"onError": [
{
"handler": "setState",
"params": {
"target": "local",
"isSubmitting": false
}
},
{
"handler": "toast",
"params": {
"type": "error",
"message": "{{error.message ?? '$t:mypage.profile.change_password_failed'}}"
}
}
]
}
]
}
],
"children": [
{
"comment": "현재 비밀번호",
"type": "basic",
"name": "Div",
"children": [
{
"type": "basic",
"name": "Label",
"props": {
"className": "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2"
},
"text": "$t:mypage.profile.current_password"
},
{
"type": "basic",
"name": "PasswordInput",
"props": {
"name": "current_password",
"placeholder": "$t:mypage.profile.current_password_placeholder",
"className": "w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:ring-2 focus:ring-primary-500 focus:border-transparent disabled:opacity-50 disabled:cursor-not-allowed",
"required": true,
"showToggle": true,
"disabled": "{{_local?.isSubmitting ?? false}}"
}
}
]
},
{
"comment": "새 비밀번호",
"type": "basic",
"name": "Div",
"children": [
{
"type": "basic",
"name": "Label",
"props": {
"className": "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2"
},
"text": "$t:mypage.profile.new_password"
},
{
"type": "basic",
"name": "PasswordInput",
"props": {
"name": "password",
"placeholder": "$t:mypage.profile.new_password_placeholder",
"className": "w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:ring-2 focus:ring-primary-500 focus:border-transparent disabled:opacity-50 disabled:cursor-not-allowed",
"required": true,
"showToggle": true,
"showValidation": true,
"enableRules": [
"minLength:8"
],
"disabled": "{{_local?.isSubmitting ?? false}}"
}
}
]
},
{
"comment": "새 비밀번호 확인",
"type": "basic",
"name": "Div",
"children": [
{
"type": "basic",
"name": "Label",
"props": {
"className": "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2"
},
"text": "$t:mypage.profile.confirm_password"
},
{
"type": "basic",
"name": "PasswordInput",
"props": {
"name": "password_confirmation",
"placeholder": "$t:mypage.profile.confirm_password_placeholder",
"className": "w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:ring-2 focus:ring-primary-500 focus:border-transparent disabled:opacity-50 disabled:cursor-not-allowed",
"required": true,
"showToggle": true,
"isConfirmField": true,
"confirmTarget": "{{_local?.form?.password ?? ''}}",
"disabled": "{{_local?.isSubmitting ?? false}}"
}
}
]
},
{
"comment": "버튼 영역",
"type": "basic",
"name": "Div",
"props": {
"className": "flex flex-col gap-3 pt-2"
},
"children": [
{
"comment": "제출 버튼",
"type": "basic",
"name": "Button",
"props": {
"type": "submit",
"className": "w-full py-3 bg-primary-600 text-white rounded-lg hover:bg-primary-700 transition-colors font-medium disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",
"disabled": "{{_local?.isSubmitting ?? false}}"
},
"children": [
{
"comment": "스피너",
"type": "basic",
"name": "Div",
"if": "{{_local?.isSubmitting}}",
"props": {
"className": "w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"
}
},
{
"type": "basic",
"name": "Span",
"if": "{{!_local?.isSubmitting}}",
"text": "$t:mypage.profile.change_password_submit"
},
{
"type": "basic",
"name": "Span",
"if": "{{_local?.isSubmitting}}",
"text": "$t:mypage.profile.change_password_processing"
}
]
},
{
"comment": "취소 버튼",
"type": "basic",
"name": "Button",
"props": {
"type": "button",
"className": "w-full py-3 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded-lg hover:bg-gray-300 dark:hover:bg-gray-600 transition-colors font-medium cursor-pointer",
"disabled": "{{_local?.isSubmitting ?? false}}"
},
"actions": [
{
"type": "click",
"handler": "navigate",
"params": {
"path": "/mypage/profile"
}
}
],
"text": "$t:common.cancel"
}
]
}
]
}
]
}
]
}
]
}
]
}
}