v1.4.6: 사이트 설정 이미지 저장 흐름·홈 커버 라이트/다크 분리

- 로고 업로드는 파일 URL만 폼에 반영하고 기타 설정 저장 시 DB에 반영
- 메인 화면 커버 라이트·다크 이미지 필드 추가 및 테마별 HomeHero 교체
- home_cover_dark_image_url 마이그레이션 및 미디어 사용 현황 보정
This commit is contained in:
2026-05-22 17:05:34 +09:00
parent 38ca3a4709
commit dcd1060ec7
15 changed files with 260 additions and 74 deletions

View File

@@ -100,6 +100,7 @@ const mapSiteSettingsRow = (row) => ({
copyrightText: row.copyright_text,
showPostUpdatedAt: Boolean(row.show_post_updated_at),
homeCoverImageUrl: row.home_cover_image_url || '',
homeCoverDarkImageUrl: row.home_cover_dark_image_url || '',
homeCoverTitle: row.home_cover_title || '',
homeCoverText: row.home_cover_text || '',
announcementEnabled: Boolean(row.announcement_enabled),
@@ -829,6 +830,7 @@ export const updateSiteSettings = async (input) => {
copyright_text,
show_post_updated_at,
home_cover_image_url,
home_cover_dark_image_url,
home_cover_title,
home_cover_text,
announcement_enabled,
@@ -849,6 +851,7 @@ export const updateSiteSettings = async (input) => {
${input.copyrightText},
${input.showPostUpdatedAt ? true : false},
${input.homeCoverImageUrl || ''},
${input.homeCoverDarkImageUrl || ''},
${input.homeCoverTitle || ''},
${input.homeCoverText || ''},
${input.announcementEnabled ? true : false},
@@ -869,6 +872,7 @@ export const updateSiteSettings = async (input) => {
copyright_text = EXCLUDED.copyright_text,
show_post_updated_at = EXCLUDED.show_post_updated_at,
home_cover_image_url = EXCLUDED.home_cover_image_url,
home_cover_dark_image_url = EXCLUDED.home_cover_dark_image_url,
home_cover_title = EXCLUDED.home_cover_title,
home_cover_text = EXCLUDED.home_cover_text,
announcement_enabled = EXCLUDED.announcement_enabled,