From 06271b367408def052d16648d9ee4b99de0c4486 Mon Sep 17 00:00:00 2001 From: zenn Date: Fri, 12 Jun 2026 15:40:35 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EB=AC=BC=20=EC=83=81?= =?UTF-8?q?=EC=84=B8=20=EC=82=AC=EC=9D=B4=EB=93=9C=EB=B0=94=20=EB=AA=A9?= =?UTF-8?q?=EC=B0=A8=C2=B7=EA=B4=91=EA=B3=A0=20=EC=9E=AC=EB=B0=B0=EC=B9=98?= =?UTF-8?q?=EC=99=80=20=EC=84=B8=EC=85=98=20=ED=99=95=EC=9D=B8=20=EA=B0=9C?= =?UTF-8?q?=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 게시물 상세에서는 오른쪽 사이드에 목차와 광고를 배치하고, 비로그인 세션 확인 시 콘솔 401 로그가 나지 않도록 정리했다. Co-authored-by: Cursor --- components/admin/AdminAdsSettingsCard.vue | 4 +- components/comments/PostComments.vue | 2 +- components/site/LeftSidebar.vue | 15 ------ components/site/RightSidebar.vue | 65 +++++++++++++++-------- components/site/SiteHeader.vue | 2 +- docs/changelog.md | 38 +++++++++++++ docs/deploy.md | 47 ++++++++++++++-- docs/history.md | 12 +++++ docs/map.md | 8 +-- docs/spec.md | 8 +-- docs/update.md | 44 +++++++++++++++ package.json | 2 +- pages/post/[slug].vue | 4 +- server/api/auth/me.get.js | 12 +++-- server/routes/admin/api/auth/me.get.js | 12 +++-- 15 files changed, 214 insertions(+), 61 deletions(-) diff --git a/components/admin/AdminAdsSettingsCard.vue b/components/admin/AdminAdsSettingsCard.vue index b98263e..89fbee2 100644 --- a/components/admin/AdminAdsSettingsCard.vue +++ b/components/admin/AdminAdsSettingsCard.vue @@ -20,8 +20,8 @@ const adSlots = [ }, { key: 'adPostSidebarCode', - label: '게시물 왼쪽 사이드', - description: '게시물 상세 화면의 왼쪽 사이드바 하단에 표시됩니다.', + label: '게시물 오른쪽 사이드', + description: '게시물 상세 화면의 오른쪽 사이드바 TOC 아래에 표시됩니다.', placeholder: '' }, { diff --git a/components/comments/PostComments.vue b/components/comments/PostComments.vue index 92b1dea..8d85518 100644 --- a/components/comments/PostComments.vue +++ b/components/comments/PostComments.vue @@ -113,7 +113,7 @@ const markAvatarBroken = (commentId) => { */ const fetchMember = async () => { try { - member.value = await $fetch('/api/auth/me') + member.value = await $fetch('/api/auth/me?optional=1') } catch { member.value = null } diff --git a/components/site/LeftSidebar.vue b/components/site/LeftSidebar.vue index ebdfafe..fad3244 100644 --- a/components/site/LeftSidebar.vue +++ b/components/site/LeftSidebar.vue @@ -7,13 +7,6 @@ defineProps({ }) const { isDarkMode, toggleTheme } = useThemeMode() -const route = useRoute() - -const { data: siteSettings } = await useFetch('/api/site-settings', { - default: () => ({ - adPostSidebarCode: '' - }) -}) const { data: tags } = await useFetch('/api/tags', { default: () => [] @@ -29,7 +22,6 @@ const { data: navigation } = await useFetch('/api/navigation', { /** 저자 영역 공개 여부 */ const showAuthorSection = false -const isPostDetailRoute = computed(() => route.path.startsWith('/post/')) const STORAGE_KEY = 'sori-primary-nav-expanded' @@ -201,13 +193,6 @@ onMounted(() => { - -