mirror of
https://github.com/ctwj/urldb.git
synced 2025-11-25 19:37:33 +08:00
Merge branch 'main' of https://github.com/ctwj/urldb into feat_xunlei
This commit is contained in:
@@ -23,12 +23,12 @@
|
||||
</div>
|
||||
|
||||
<!-- 自动处理状态 -->
|
||||
<div class="flex items-center space-x-2">
|
||||
<NuxtLink to="/admin/feature-config" class="flex items-center space-x-2 cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-700 px-2 py-1 rounded transition-colors">
|
||||
<div :class="autoProcessEnabled ? 'w-2 h-2 bg-green-500 rounded-full' : 'w-2 h-2 bg-gray-400 rounded-full'"></div>
|
||||
<span class="text-sm text-gray-600 dark:text-gray-300">
|
||||
自动处理{{ autoProcessEnabled ? '已开启' : '已关闭' }}
|
||||
</span>
|
||||
</div>
|
||||
</NuxtLink>
|
||||
|
||||
<!-- 自动转存状态 -->
|
||||
<div class="flex items-center space-x-2">
|
||||
|
||||
@@ -21,15 +21,14 @@
|
||||
<script setup lang="ts">
|
||||
import { useApiFetch } from '~/composables/useApiFetch'
|
||||
import { parseApiResponse } from '~/composables/useApi'
|
||||
|
||||
// 使用版本信息组合式函数
|
||||
const { versionInfo, fetchVersionInfo } = useVersion()
|
||||
|
||||
// 获取系统配置
|
||||
const { data: systemConfigData } = await useAsyncData('footerSystemConfig',
|
||||
() => useApiFetch('/system/config').then(parseApiResponse)
|
||||
)
|
||||
|
||||
const systemConfig = computed(() => (systemConfigData.value as any) || { copyright: '© 2025 老九网盘资源数据库 By 老九' })
|
||||
import { useSystemConfigStore } from '~/stores/systemConfig'
|
||||
const systemConfigStore = useSystemConfigStore()
|
||||
await systemConfigStore.initConfig(false, false)
|
||||
const systemConfig = computed(() => systemConfigStore.config)
|
||||
console.log(systemConfig.value)
|
||||
|
||||
// 组件挂载时获取版本信息
|
||||
onMounted(() => {
|
||||
|
||||
@@ -9,6 +9,21 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 违禁词禁止访问状态 -->
|
||||
<div v-else-if="forbidden" class="space-y-4">
|
||||
<div class="flex flex-col items-center justify-center py-4">
|
||||
<!-- 使用SVG图标 -->
|
||||
<div class="mb-6">
|
||||
<img src="/assets/svg/forbidden.svg" alt="禁止访问" class="w-48 h-48" />
|
||||
</div>
|
||||
<h3 class="text-xl font-bold text-red-600 dark:text-red-400 mb-2">禁止访问</h3>
|
||||
<p class="text-gray-600 dark:text-gray-400 mb-4">该资源包含违禁内容,无法访问</p>
|
||||
<n-button @click="closeModal" class="bg-red-500 hover:bg-red-600 text-white">
|
||||
我知道了
|
||||
</n-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 错误状态 -->
|
||||
<div v-else-if="error" class="space-y-4">
|
||||
<n-alert type="error" :show-icon="false">
|
||||
@@ -150,6 +165,8 @@ interface Props {
|
||||
platform?: string
|
||||
message?: string
|
||||
error?: string
|
||||
forbidden?: boolean
|
||||
forbidden_words?: string[]
|
||||
}
|
||||
|
||||
interface Emits {
|
||||
|
||||
Reference in New Issue
Block a user