관리자 UX·본문 스타일 개선 및 발행일 보존(v1.1.19)
글쓰기 헤더 모드 전환·미디어 검색, Update 시 발행일 유지, 설정 카드 편집/저장 분리, 인용·인라인 코드 스타일 반영. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -10,16 +10,24 @@ const props = defineProps({
|
||||
toolbarTeleportTo: {
|
||||
type: String,
|
||||
default: '#admin-post-form-editor-toolbar-host'
|
||||
},
|
||||
/** 작성/미리보기 토글 버튼 Teleport 대상(AdminPostForm 헤더) */
|
||||
modeToggleTeleportTo: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
})
|
||||
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
const activeMode = defineModel('editorMode', {
|
||||
type: String,
|
||||
default: 'write'
|
||||
})
|
||||
|
||||
const editorRootRef = ref(null)
|
||||
const textareaRef = ref(null)
|
||||
const previewRef = ref(null)
|
||||
const gutterRef = ref(null)
|
||||
const activeMode = ref('write')
|
||||
/** 커서가 있는 논리 줄(0-based, `\\n` 기준) */
|
||||
const activeLogicalLineIndex = ref(0)
|
||||
const mediaItems = ref([])
|
||||
@@ -28,6 +36,7 @@ const isLoadingMedia = ref(false)
|
||||
const isUploading = ref(false)
|
||||
const mediaPickerTarget = ref('image')
|
||||
const activeMediaPickerTab = ref('library')
|
||||
const mediaSearchQuery = ref('')
|
||||
const selectedMediaUrls = ref([])
|
||||
const lastSelectionState = ref({
|
||||
start: 0,
|
||||
@@ -323,6 +332,10 @@ onMounted(() => {
|
||||
* @returns {void}
|
||||
*/
|
||||
const focusFirstBlock = () => {
|
||||
if (activeMode.value !== 'write') {
|
||||
activeMode.value = 'write'
|
||||
}
|
||||
|
||||
nextTick(() => {
|
||||
textareaRef.value?.focus()
|
||||
refreshCaretLogicalLine()
|
||||
@@ -330,7 +343,9 @@ const focusFirstBlock = () => {
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
focusFirstBlock
|
||||
focusFirstBlock,
|
||||
toggleEditorMode,
|
||||
activeMode
|
||||
})
|
||||
|
||||
/**
|
||||
@@ -675,6 +690,7 @@ const fetchMediaItems = async () => {
|
||||
const openMediaPicker = async (target) => {
|
||||
mediaPickerTarget.value = target
|
||||
activeMediaPickerTab.value = 'library'
|
||||
mediaSearchQuery.value = ''
|
||||
selectedMediaUrls.value = []
|
||||
isMediaPickerOpen.value = true
|
||||
await fetchMediaItems()
|
||||
@@ -688,8 +704,38 @@ const closeMediaPicker = () => {
|
||||
isMediaPickerOpen.value = false
|
||||
selectedMediaUrls.value = []
|
||||
activeMediaPickerTab.value = 'library'
|
||||
mediaSearchQuery.value = ''
|
||||
}
|
||||
|
||||
/**
|
||||
* 미디어 항목이 검색어와 일치하는지 확인한다.
|
||||
* @param {Object} item - 미디어 항목
|
||||
* @param {string} query - 소문자 검색어
|
||||
* @returns {boolean} 일치 여부
|
||||
*/
|
||||
const mediaItemMatchesQuery = (item, query) => {
|
||||
if (!query) {
|
||||
return true
|
||||
}
|
||||
|
||||
return [item.name, item.title, item.url]
|
||||
.some((value) => String(value || '').toLowerCase().includes(query))
|
||||
}
|
||||
|
||||
/**
|
||||
* 검색어로 필터링된 미디어 목록
|
||||
* @returns {Array<Object>} 필터링된 미디어 목록
|
||||
*/
|
||||
const filteredMediaItems = computed(() => {
|
||||
const query = mediaSearchQuery.value.trim().toLowerCase()
|
||||
|
||||
if (!query) {
|
||||
return mediaItems.value
|
||||
}
|
||||
|
||||
return mediaItems.value.filter((item) => mediaItemMatchesQuery(item, query))
|
||||
})
|
||||
|
||||
/**
|
||||
* 미디어 선택 상태를 토글한다.
|
||||
* @param {Object} mediaItem - 미디어 항목
|
||||
@@ -1049,12 +1095,9 @@ const handleKeydown = (event) => {
|
||||
|
||||
<template>
|
||||
<div ref="editorRootRef" class="admin-markdown-editor grid gap-3">
|
||||
<Teleport :to="toolbarTeleportTo">
|
||||
<Teleport v-if="activeMode === 'write'" :to="toolbarTeleportTo">
|
||||
<div class="admin-markdown-editor__toolbar flex w-full min-h-[40px] items-center gap-1.5 border-b border-[#e3e6e8] bg-white px-8 py-1.5">
|
||||
<div
|
||||
v-show="activeMode === 'write'"
|
||||
class="admin-markdown-editor__toolbar-tools flex min-w-0 flex-1 flex-wrap items-center gap-1.5"
|
||||
>
|
||||
<div class="admin-markdown-editor__toolbar-tools flex min-w-0 flex-1 flex-wrap items-center gap-1.5">
|
||||
<button class="admin-markdown-editor__tool rounded px-2.5 py-1.5 text-sm font-semibold text-[#394047] hover:bg-[#eff1f2]" type="button" @click="applyHeading(1)">
|
||||
H1
|
||||
</button>
|
||||
@@ -1093,50 +1136,53 @@ const handleKeydown = (event) => {
|
||||
갤러리
|
||||
</button>
|
||||
</div>
|
||||
<button
|
||||
class="admin-markdown-editor__mode-toggle ml-auto inline-flex size-8 shrink-0 items-center justify-center rounded text-[#394047] transition-colors hover:bg-[#f1f3f4] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8e9cac]"
|
||||
type="button"
|
||||
:aria-label="activeMode === 'write' ? '미리보기로 전환' : '작성 모드로 전환'"
|
||||
@click="toggleEditorMode"
|
||||
>
|
||||
<svg
|
||||
v-if="activeMode === 'write'"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="admin-markdown-editor__mode-icon lucide-book-open"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<path d="M12 7v14" />
|
||||
<path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z" />
|
||||
</svg>
|
||||
<svg
|
||||
v-else
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="admin-markdown-editor__mode-icon lucide-edit-3"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<path d="M13 21h8" />
|
||||
<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</Teleport>
|
||||
|
||||
<Teleport v-if="modeToggleTeleportTo" :to="modeToggleTeleportTo">
|
||||
<button
|
||||
class="admin-markdown-editor__mode-toggle inline-flex size-8 shrink-0 items-center justify-center rounded text-[#394047] transition-colors hover:bg-[#f1f3f4] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8e9cac]"
|
||||
type="button"
|
||||
:aria-label="activeMode === 'write' ? '미리보기로 전환' : '작성 모드로 전환'"
|
||||
@click="toggleEditorMode"
|
||||
>
|
||||
<svg
|
||||
v-if="activeMode === 'write'"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="admin-markdown-editor__mode-icon lucide-book-open"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<path d="M12 7v14" />
|
||||
<path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z" />
|
||||
</svg>
|
||||
<svg
|
||||
v-else
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="admin-markdown-editor__mode-icon lucide-edit-3"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<path d="M13 21h8" />
|
||||
<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" />
|
||||
</svg>
|
||||
</button>
|
||||
</Teleport>
|
||||
|
||||
<div v-if="activeMode === 'write'" class="admin-markdown-editor__write relative">
|
||||
<div class="admin-markdown-editor__editor-surface min-h-[620px]">
|
||||
<div
|
||||
@@ -1289,23 +1335,35 @@ const handleKeydown = (event) => {
|
||||
</button>
|
||||
</header>
|
||||
|
||||
<div class="admin-markdown-editor__media-tabs flex border-b border-[#e3e6e8] px-5">
|
||||
<button
|
||||
class="admin-markdown-editor__media-tab border-b-2 px-3 py-3 text-sm font-semibold transition-colors"
|
||||
:class="activeMediaPickerTab === 'library' ? 'border-[#15171a] text-[#15171a]' : 'border-transparent text-[#6b7280] hover:text-[#15171a]'"
|
||||
type="button"
|
||||
@click="activeMediaPickerTab = 'library'"
|
||||
>
|
||||
미디어 라이브러리
|
||||
</button>
|
||||
<button
|
||||
class="admin-markdown-editor__media-tab border-b-2 px-3 py-3 text-sm font-semibold transition-colors"
|
||||
:class="activeMediaPickerTab === 'upload' ? 'border-[#15171a] text-[#15171a]' : 'border-transparent text-[#6b7280] hover:text-[#15171a]'"
|
||||
type="button"
|
||||
@click="activeMediaPickerTab = 'upload'"
|
||||
>
|
||||
업로드
|
||||
</button>
|
||||
<div class="admin-markdown-editor__media-tabs flex items-center gap-3 border-b border-[#e3e6e8] px-5">
|
||||
<div class="flex min-w-0 flex-1 items-center">
|
||||
<button
|
||||
class="admin-markdown-editor__media-tab border-b-2 px-3 py-3 text-sm font-semibold transition-colors"
|
||||
:class="activeMediaPickerTab === 'library' ? 'border-[#15171a] text-[#15171a]' : 'border-transparent text-[#6b7280] hover:text-[#15171a]'"
|
||||
type="button"
|
||||
@click="activeMediaPickerTab = 'library'"
|
||||
>
|
||||
미디어 라이브러리
|
||||
</button>
|
||||
<button
|
||||
class="admin-markdown-editor__media-tab border-b-2 px-3 py-3 text-sm font-semibold transition-colors"
|
||||
:class="activeMediaPickerTab === 'upload' ? 'border-[#15171a] text-[#15171a]' : 'border-transparent text-[#6b7280] hover:text-[#15171a]'"
|
||||
type="button"
|
||||
@click="activeMediaPickerTab = 'upload'"
|
||||
>
|
||||
업로드
|
||||
</button>
|
||||
</div>
|
||||
<label class="admin-markdown-editor__media-search mb-px flex w-full max-w-xs shrink-0 items-center py-2">
|
||||
<span class="sr-only">파일명 검색</span>
|
||||
<input
|
||||
v-model="mediaSearchQuery"
|
||||
class="admin-markdown-editor__media-search-input w-full rounded border border-[#d7dde2] bg-white px-3 py-1.5 text-sm text-[#394047] outline-none transition-colors placeholder:text-[#8e9cac] focus:border-[#15171a] focus:ring-1 focus:ring-[#15171a]/20"
|
||||
type="search"
|
||||
placeholder="파일명 검색"
|
||||
autocomplete="off"
|
||||
>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="admin-markdown-editor__media-body flex-1 overflow-y-auto p-5">
|
||||
@@ -1313,9 +1371,9 @@ const handleKeydown = (event) => {
|
||||
<div v-if="isLoadingMedia" class="admin-markdown-editor__media-loading py-12 text-center text-sm text-[#8e9cac]">
|
||||
불러오는 중
|
||||
</div>
|
||||
<div v-else-if="mediaItems.length" class="admin-markdown-editor__media-grid grid grid-cols-2 gap-3 md:grid-cols-4">
|
||||
<div v-else-if="filteredMediaItems.length" class="admin-markdown-editor__media-grid grid grid-cols-2 gap-3 md:grid-cols-4">
|
||||
<button
|
||||
v-for="item in mediaItems"
|
||||
v-for="item in filteredMediaItems"
|
||||
:key="item.url"
|
||||
class="admin-markdown-editor__media-item group overflow-hidden rounded border bg-white text-left transition"
|
||||
:class="selectedMediaUrls.includes(item.url) ? 'border-[#15171a] ring-2 ring-[#15171a]/20' : 'border-[#e3e6e8] hover:border-[#8e9cac]'"
|
||||
@@ -1329,7 +1387,12 @@ const handleKeydown = (event) => {
|
||||
</button>
|
||||
</div>
|
||||
<div v-else class="admin-markdown-editor__media-empty py-12 text-center text-sm text-[#8e9cac]">
|
||||
선택할 미디어가 없습니다. 업로드 탭에서 이미지를 추가할 수 있습니다.
|
||||
<template v-if="mediaSearchQuery.trim()">
|
||||
「{{ mediaSearchQuery.trim() }}」에 맞는 미디어가 없습니다.
|
||||
</template>
|
||||
<template v-else>
|
||||
선택할 미디어가 없습니다. 업로드 탭에서 이미지를 추가할 수 있습니다.
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
<div
|
||||
|
||||
@@ -47,6 +47,8 @@ const slugTouched = ref(
|
||||
&& !isAdminPostDraftPlaceholderSlug(props.initialPost.slug)
|
||||
)
|
||||
const blockEditor = ref(null)
|
||||
/** 본문 에디터 모드: write | preview */
|
||||
const editorMode = ref('write')
|
||||
const mediaItems = ref([])
|
||||
const isMediaPickerOpen = ref(false)
|
||||
const mediaPickerTarget = ref('featuredImage')
|
||||
@@ -139,7 +141,7 @@ const form = reactive({
|
||||
content: normalizeMarkdownContent(props.initialPost.content),
|
||||
featuredImage: props.initialPost.featuredImage || '',
|
||||
isFeatured: Boolean(props.initialPost.isFeatured),
|
||||
noindex: Boolean(props.initialPost.noindex),
|
||||
noindex: props.initialPost.noindex === true,
|
||||
status: props.initialPost.status === 'private' ? 'draft' : (props.initialPost.status || 'draft'),
|
||||
publishedAt: toDateTimeLocalValue(props.initialPost.publishedAt),
|
||||
tagsText: props.initialPost.tags?.join(', ') || ''
|
||||
@@ -149,6 +151,16 @@ const autosaveKey = computed(() => `${autosaveStoragePrefix}:${props.initialPost
|
||||
const postUrlLabel = computed(() => form.slug || toSlug(form.title) || '')
|
||||
const postUrlHint = computed(() => props.publicUrl || (postUrlLabel.value ? `/post/${postUrlLabel.value}/` : '/post/'))
|
||||
|
||||
/**
|
||||
* 검색엔진 노출 여부(`noindex` 반전, 기본 노출)
|
||||
*/
|
||||
const searchEngineVisible = computed({
|
||||
get: () => !form.noindex,
|
||||
set: (value) => {
|
||||
form.noindex = !value
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 한글 음절 1자를 영문 표기로 변환
|
||||
* @param {string} char - 변환할 문자
|
||||
@@ -293,10 +305,16 @@ const getPersistedPublishKind = (post) => {
|
||||
/** 마지막으로 서버와 맞춘 게시 형태 */
|
||||
const persistedPublishKind = ref(getPersistedPublishKind(props.initialPost))
|
||||
|
||||
/** 서버에 반영된 발행 시각(본문 Update 시 유지) */
|
||||
const persistedPublishedAtIso = ref(props.initialPost.publishedAt || null)
|
||||
|
||||
watch(
|
||||
() => props.initialPost,
|
||||
(post) => {
|
||||
persistedPublishKind.value = getPersistedPublishKind(post)
|
||||
if (post?.publishedAt) {
|
||||
persistedPublishedAtIso.value = post.publishedAt
|
||||
}
|
||||
},
|
||||
{ deep: true }
|
||||
)
|
||||
@@ -350,14 +368,44 @@ const publishTimingSummaryLabel = computed(() => {
|
||||
}).format(date)
|
||||
})
|
||||
|
||||
/**
|
||||
* 저장 요청용 발행 시각을 결정한다.
|
||||
* @param {{ allowNewPublishTimestamp?: boolean }} [options] - 신규 발행 시각 허용 여부
|
||||
* @returns {string|null} ISO 발행 시각 또는 null
|
||||
*/
|
||||
const resolvePayloadPublishedAt = (options = {}) => {
|
||||
if (form.status !== 'published') {
|
||||
return null
|
||||
}
|
||||
|
||||
const fromForm = toIsoDateTime(form.publishedAt)
|
||||
|
||||
if (fromForm) {
|
||||
return fromForm
|
||||
}
|
||||
|
||||
if (persistedPublishedAtIso.value) {
|
||||
return persistedPublishedAtIso.value
|
||||
}
|
||||
|
||||
if (props.initialPost.publishedAt) {
|
||||
return props.initialPost.publishedAt
|
||||
}
|
||||
|
||||
if (options.allowNewPublishTimestamp) {
|
||||
return new Date().toISOString()
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
|
||||
/**
|
||||
* 게시물 입력값 생성
|
||||
* @param {{ allowNewPublishTimestamp?: boolean }} [options] - 신규 발행 시각 허용 여부
|
||||
* @returns {Object} 게시물 입력값
|
||||
*/
|
||||
const createPostPayload = () => {
|
||||
const publishedAt = form.status === 'published'
|
||||
? toIsoDateTime(form.publishedAt) || props.initialPost.publishedAt || new Date().toISOString()
|
||||
: null
|
||||
const createPostPayload = (options = {}) => {
|
||||
const publishedAt = resolvePayloadPublishedAt(options)
|
||||
|
||||
return {
|
||||
title: toAdminPostStoredTitle(form.title),
|
||||
@@ -671,7 +719,7 @@ const focusContentEditor = (event) => {
|
||||
const submitPost = () => {
|
||||
isPublishModalOpen.value = false
|
||||
isUnpublishModalOpen.value = false
|
||||
emit('submit', createPostPayload())
|
||||
emit('submit', createPostPayload({ allowNewPublishTimestamp: true }))
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -900,6 +948,11 @@ const unpublishModalKind = computed(() => (
|
||||
*/
|
||||
const markSaved = () => {
|
||||
savedPostSnapshot.value = serializePostPayload()
|
||||
const publishedAt = resolvePayloadPublishedAt()
|
||||
|
||||
if (publishedAt) {
|
||||
persistedPublishedAtIso.value = publishedAt
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1035,6 +1088,10 @@ defineExpose({
|
||||
</div>
|
||||
</div>
|
||||
<div class="admin-post-form__toolbar-actions flex h-full shrink-0 items-center gap-2">
|
||||
<div
|
||||
id="admin-post-form-mode-toggle-host"
|
||||
class="admin-post-form__mode-toggle-host flex shrink-0 items-center"
|
||||
/>
|
||||
<template v-if="persistedPublishKind === 'draft'">
|
||||
<template v-if="isDraftLike">
|
||||
<button
|
||||
@@ -1110,6 +1167,7 @@ defineExpose({
|
||||
</header>
|
||||
|
||||
<div
|
||||
v-show="editorMode === 'write'"
|
||||
id="admin-post-form-editor-toolbar-host"
|
||||
class="admin-post-form__editor-toolbar-host min-h-[40px] shrink-0 bg-white"
|
||||
/>
|
||||
@@ -1147,7 +1205,12 @@ defineExpose({
|
||||
>
|
||||
|
||||
<div class="admin-post-form__field admin-post-form__content-editor text-sm">
|
||||
<AdminMarkdownEditor ref="blockEditor" v-model="form.content" />
|
||||
<AdminMarkdownEditor
|
||||
ref="blockEditor"
|
||||
v-model="form.content"
|
||||
v-model:editor-mode="editorMode"
|
||||
mode-toggle-teleport-to="#admin-post-form-mode-toggle-host"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
@@ -1302,28 +1365,26 @@ defineExpose({
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<div class="admin-post-form__search-visibility grid gap-3 border-t border-[#e3e6e8] pt-5 text-sm">
|
||||
<div>
|
||||
<h2 class="admin-post-form__section-title text-sm font-semibold text-ink">
|
||||
검색 노출
|
||||
</h2>
|
||||
<p class="admin-post-form__section-description mt-1 text-xs text-muted">
|
||||
메타 제목·설명은 저장 시 글 제목과 요약을 그대로 사용합니다.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<label class="admin-post-form__checkbox flex items-start gap-2 text-sm">
|
||||
<input
|
||||
v-model="form.noindex"
|
||||
class="admin-post-form__checkbox-input mt-1"
|
||||
type="checkbox"
|
||||
>
|
||||
<span>
|
||||
<span class="admin-post-form__label block font-medium">검색엔진 노출 제외</span>
|
||||
<span class="admin-post-form__hint mt-1 block text-xs text-muted">공개 글이어도 robots noindex 메타를 추가합니다.</span>
|
||||
<label class="admin-post-form__search-toggle flex items-center justify-between gap-4 border-t border-[#e3e6e8] pt-5 text-sm">
|
||||
<span class="admin-post-form__search-toggle-copy flex min-w-0 items-center gap-3">
|
||||
<span class="admin-post-form__search-toggle-icon flex size-7 shrink-0 items-center justify-center text-[#15171a]" aria-hidden="true">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="ffffff"><path d="M480-100q-78.77 0-148.11-29.96-69.35-29.96-120.66-81.27-51.31-51.31-81.27-120.66Q100-401.23 100-480q0-78.77 29.96-148.11 29.96-69.35 81.27-120.66 51.31-51.31 120.66-81.27Q401.23-860 480-860q142.92 0 248.38 91.89 105.47 91.88 126.31 228.73h-61.23q-14.77-79.93-65.61-143.2Q677-745.85 600-776.77V-760q0 33-23.5 56.5T520-680h-80v80q0 17-11.5 28.5T400-560h-80v80h76.92v120H360L168-552q-3 18-5.5 36t-2.5 36q0 131 92 225t228 95v60Zm362.46-15.39-133-132.23q-19.46 12.39-41.92 20Q645.08-220 620-220q-66.92 0-113.46-46.54Q460-313.08 460-380q0-66.92 46.54-113.46Q553.08-540 620-540q66.92 0 113.46 46.54Q780-446.92 780-380q0 25.46-7.81 48.12-7.81 22.65-20.58 42.11l133 132.23-42.15 42.15ZM691-309q29-29 29-71t-29-71q-29-29-71-29t-71 29q-29 29-29 71t29 71q29 29 71 29t71-29Z"/></svg>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<span class="admin-post-form__search-toggle-label font-bold text-[#15171a]">
|
||||
검색엔진 노출
|
||||
</span>
|
||||
</span>
|
||||
<span class="admin-post-form__search-toggle-control relative inline-flex h-7 w-12 shrink-0 items-center">
|
||||
<input
|
||||
v-model="searchEngineVisible"
|
||||
class="peer sr-only"
|
||||
type="checkbox"
|
||||
aria-label="검색엔진에 노출"
|
||||
>
|
||||
<span class="absolute inset-0 rounded-full bg-[#c8ced3] transition-colors peer-checked:bg-[#15171a]" aria-hidden="true" />
|
||||
<span class="relative ml-1 size-5 rounded-full bg-white shadow transition-transform peer-checked:translate-x-5" aria-hidden="true" />
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div v-if="showDelete" class="admin-post-form__settings-bottom shrink-0 border-t border-[#e3e6e8] px-8 py-6">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user