공개 페이지 전환 경고 정리
This commit is contained in:
@@ -6,10 +6,7 @@ import {
|
||||
normalizeDisplayCount
|
||||
} from '~/lib/display-count-settings.js'
|
||||
|
||||
const { data: siteSettings } = await useFetch('/api/site-settings', {
|
||||
key: 'site-settings-public',
|
||||
default: () => ({})
|
||||
})
|
||||
const { data: siteSettings } = await usePublicSiteSettings()
|
||||
|
||||
const homeLatestPostLimit = computed(() => normalizeDisplayCount(siteSettings.value?.homeLatestPostLimit, DEFAULT_HOME_LATEST_POST_LIMIT))
|
||||
const featuredPostLimit = computed(() => normalizeDisplayCount(siteSettings.value?.featuredPostLimit, DEFAULT_FEATURED_POST_LIMIT))
|
||||
|
||||
@@ -16,10 +16,7 @@ const { data: post } = await useFetch(() => `/api/posts/${slug.value}`)
|
||||
const { data: tags } = useLazyFetch('/api/tags?tagType=all', {
|
||||
default: () => []
|
||||
})
|
||||
const { data: siteSettings } = useLazyFetch('/api/site-settings', {
|
||||
key: 'site-settings-public',
|
||||
default: () => ({})
|
||||
})
|
||||
const { data: siteSettings } = await usePublicSiteSettings()
|
||||
const postToc = useState('post-detail-toc', () => [])
|
||||
|
||||
if (!post.value) {
|
||||
|
||||
@@ -7,9 +7,7 @@ import {
|
||||
|
||||
const route = useRoute()
|
||||
|
||||
const { data: siteSettings } = await useFetch('/api/site-settings', {
|
||||
default: () => ({})
|
||||
})
|
||||
const { data: siteSettings } = await usePublicSiteSettings()
|
||||
|
||||
const { data: tags } = await useFetch('/api/tags?tagType=all', {
|
||||
default: () => []
|
||||
|
||||
@@ -14,13 +14,7 @@ const signupCompleted = ref(false)
|
||||
const createdAdmin = ref(false)
|
||||
const statusMessage = ref('')
|
||||
const submitErrorMessage = ref('')
|
||||
const { data: siteSettings } = await useFetch('/api/site-settings', {
|
||||
default: () => ({
|
||||
title: 'AFFiNE',
|
||||
description: 'Configure your Self Host AFFiNE with a few simple settings.',
|
||||
signupBlockedUsernames: []
|
||||
})
|
||||
})
|
||||
const { data: siteSettings } = await usePublicSiteSettings()
|
||||
const { data: bootstrapStatus } = await useFetch('/api/auth/bootstrap-status', {
|
||||
default: () => ({
|
||||
hasUsers: true,
|
||||
|
||||
@@ -28,9 +28,7 @@ if (!tag.value) {
|
||||
})
|
||||
}
|
||||
|
||||
const { data: siteSettings } = await useFetch('/api/site-settings', {
|
||||
default: () => ({})
|
||||
})
|
||||
const { data: siteSettings } = await usePublicSiteSettings()
|
||||
|
||||
const currentPage = computed(() => normalizeListPage(route.query.page))
|
||||
const tagPostListPageSize = computed(() => normalizeDisplayCount(siteSettings.value?.tagPostListPageSize, DEFAULT_TAG_POST_LIST_PAGE_SIZE))
|
||||
|
||||
Reference in New Issue
Block a user