관리자 글쓰기·목록 UX 개선 및 POST 설정 추가(v1.1.14~v1.1.18)

Ghost형 툴바·초안 자동 저장·발행 모달, private 제거, 미디어 모달 통합,
발행일·수정일 표시 설정과 DB 마이그레이션 025·026을 반영한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-15 16:26:48 +09:00
parent ca1e17890b
commit 2074b0b93a
26 changed files with 1184 additions and 393 deletions

View File

@@ -13,6 +13,9 @@ const { data: tags } = await useFetch('/api/tags', {
const { data: posts } = await useFetch('/api/posts', {
default: () => []
})
const { data: siteSettings } = await useFetch('/api/site-settings', {
default: () => ({ showPostUpdatedAt: false })
})
if (!post.value) {
throw createError({
@@ -43,6 +46,13 @@ const primaryTagMeta = computed(() => {
})
const publishedAtLabel = computed(() => formatPostDate(post.value.publishedAt || null))
const updatedAtLabel = computed(() => {
if (!siteSettings.value?.showPostUpdatedAt || !wasPostUpdatedAfterPublish(post.value)) {
return ''
}
return `수정: ${formatPostDateTime(post.value.updatedAt)}`
})
const authorLabel = computed(() => 'sori.studio')
const shareModalOpen = ref(false)
const copyButtonLabel = ref('Copy link')
@@ -234,6 +244,10 @@ useHead(() => ({
{{ publishedAtLabel }}
</time>
<time v-if="updatedAtLabel" :datetime="post.updatedAt" class="admin-post-detail__updated-at">
{{ updatedAtLabel }}
</time>
<a href="#" class="hover:opacity-75">
{{ authorLabel }}
</a>