메뉴 관리 기능 추가
This commit is contained in:
@@ -1053,7 +1053,6 @@ const activateBlock = (block) => {
|
||||
* @returns {boolean} placeholder 표시 여부
|
||||
*/
|
||||
const shouldShowPlaceholder = (block, index) => !block.text && (
|
||||
activeBlockId.value === block.id ||
|
||||
(index === 0 && editorBlocks.value.length === 1) ||
|
||||
index === editorBlocks.value.length - 1
|
||||
)
|
||||
|
||||
@@ -2,6 +2,13 @@
|
||||
const { data: tags } = await useFetch('/api/tags', {
|
||||
default: () => []
|
||||
})
|
||||
|
||||
const { data: navigation } = await useFetch('/api/navigation', {
|
||||
default: () => ({
|
||||
primary: [],
|
||||
footer: []
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -9,29 +16,13 @@ const { data: tags } = await useFetch('/api/tags', {
|
||||
<div class="left-sidebar__scroll min-h-0 flex-1 overflow-y-auto">
|
||||
<div class="left-sidebar__block site-sidebar-section py-3 pl-0 pr-3">
|
||||
<nav class="left-sidebar__nav grid gap-1 text-[15px]">
|
||||
<NuxtLink class="left-sidebar__nav-link flex items-center justify-between py-2 pl-3" to="/">
|
||||
<span>Home pages</span>
|
||||
<span>⌄</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink class="left-sidebar__nav-link py-2 pl-3" to="/tags">
|
||||
Tags
|
||||
</NuxtLink>
|
||||
<NuxtLink class="left-sidebar__nav-link py-2 pl-3" to="/pages/about">
|
||||
Authors
|
||||
</NuxtLink>
|
||||
<NuxtLink class="left-sidebar__nav-link py-2 pl-3" to="/post/hello-sori-studio">
|
||||
Style
|
||||
</NuxtLink>
|
||||
<NuxtLink class="left-sidebar__nav-link flex items-center justify-between py-2 pl-3" to="/post/custom-writing-tool">
|
||||
<span>Post types</span>
|
||||
<span>⌄</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink class="left-sidebar__nav-link flex items-center justify-between py-2 pl-3" to="/pages/contact">
|
||||
<span>Members</span>
|
||||
<span>⌄</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink class="left-sidebar__nav-link py-2 pl-3" to="/pages/projects">
|
||||
Landing pages
|
||||
<NuxtLink
|
||||
v-for="item in navigation.primary"
|
||||
:key="item.id"
|
||||
class="left-sidebar__nav-link py-2 pl-3"
|
||||
:to="item.url"
|
||||
>
|
||||
{{ item.label }}
|
||||
</NuxtLink>
|
||||
</nav>
|
||||
</div>
|
||||
@@ -74,14 +65,12 @@ const { data: tags } = await useFetch('/api/tags', {
|
||||
|
||||
<footer class="left-sidebar__footer flex items-center justify-between px-1 py-4 text-xs">
|
||||
<nav class="left-sidebar__footer-nav flex gap-4">
|
||||
<NuxtLink to="/pages/links">
|
||||
Portal
|
||||
</NuxtLink>
|
||||
<NuxtLink to="/pages/about">
|
||||
Docs
|
||||
</NuxtLink>
|
||||
<NuxtLink to="/pages/projects">
|
||||
Projects
|
||||
<NuxtLink
|
||||
v-for="item in navigation.footer"
|
||||
:key="item.id"
|
||||
:to="item.url"
|
||||
>
|
||||
{{ item.label }}
|
||||
</NuxtLink>
|
||||
</nav>
|
||||
<span class="left-sidebar__theme-dot">☾</span>
|
||||
|
||||
Reference in New Issue
Block a user