팔로우 피드 보기 전환 추가

This commit is contained in:
2026-04-07 14:37:10 +09:00
parent d2273fa723
commit a952d2a062
7 changed files with 57 additions and 9 deletions

View File

@@ -32,7 +32,14 @@ const leftRailCollapsed = ref(false)
const mobileLeftNavOpen = ref(false)
const rightRailOpen = ref(true)
const searchQuery = ref('')
const leftRailSearchPlaceholder = computed(() => (route.name === 'templates' ? '주제 템플릿 검색' : '공개 티어표 검색'))
const leftRailSearchPlaceholder = computed(() => {
if (route.name === 'templates') return '주제 템플릿 검색'
if (route.name === 'topicHub') return '이 템플릿의 공개 티어표 검색'
if (route.name === 'followingFeed') return '팔로우한 사람의 공개 티어표 검색'
if (route.name === 'favorites') return '즐겨찾기한 티어표 검색'
if (route.name === 'me') return '내 티어표 검색'
return '공개 티어표 검색'
})
const isCollapsedSearchOpen = ref(false)
const isGuideModalOpen = ref(false)
const themeMode = ref('dark')
@@ -157,7 +164,7 @@ const isGuideNextDisabled = computed(() => guideStepIndex.value >= guideSteps.le
const isLightTheme = computed(() => themeMode.value === 'light')
const themeToggleLabel = computed(() => (isLightTheme.value ? '다크 모드' : '라이트 모드'))
const showSettingsThemePanel = computed(() => route.name === 'profile')
const showTopicViewToggle = computed(() => ['home', 'templates', 'topicHub', 'me', 'favorites'].includes(String(route.name || '')))
const showTopicViewToggle = computed(() => ['home', 'templates', 'topicHub', 'me', 'favorites', 'followingFeed'].includes(String(route.name || '')))
const topicViewMode = computed(() => (route.query.view === 'list' ? 'list' : 'grid'))
const showBackendFallback = computed(() => !isPreviewMode.value && ['maintenance', 'offline'].includes(backendState.value))
const shouldLockRightRailBodyScroll = computed(() => isRightRailOverlay.value && rightRailOpen.value && !showBackendFallback.value)