고정 페이지 HTML 문서 모드 추가 v1.5.1

This commit is contained in:
2026-05-26 11:03:33 +09:00
parent 0ad2ab3f9d
commit a25306389b
15 changed files with 169 additions and 14 deletions

View File

@@ -62,6 +62,7 @@ const mapPageRow = (row) => ({
title: row.title,
slug: row.slug,
content: row.content,
renderMode: row.render_mode || 'markdown',
featuredImage: row.featured_image,
createdAt: row.created_at.toISOString(),
updatedAt: row.updated_at.toISOString()
@@ -538,12 +539,14 @@ export const createAdminPage = async (input) => {
title,
slug,
content,
render_mode,
featured_image
)
VALUES (
${input.title},
${input.slug},
${input.content},
${input.renderMode},
${input.featuredImage}
)
RETURNING *
@@ -571,6 +574,7 @@ export const updateAdminPage = async (id, input) => {
title = ${input.title},
slug = ${input.slug},
content = ${input.content},
render_mode = ${input.renderMode},
featured_image = ${input.featuredImage},
updated_at = now()
WHERE id = ${id}