refactor: 清理无用配置和优化类型导入

- 移除 wrangler.toml 中未使用的 UA_BLACKLIST 和 USER_AGENT 配置
- 将 zip.vue 中的 TableColumn 类型更新为 DataTableColumns
- 精简 components.d.ts 中未使用的 naive-ui 组件类型声明
This commit is contained in:
2025-10-08 17:03:17 +08:00
parent 30ac5c76be
commit 54a3ee6e9d
3 changed files with 3 additions and 12 deletions

7
src/components.d.ts vendored
View File

@@ -27,16 +27,9 @@ declare module 'vue' {
ListLink: typeof import('./components/SideNav/ListLink.vue')['default']
NaiveuiProvider: typeof import('./components/NaiveuiProvider.vue')['default']
NAlert: typeof import('naive-ui')['NAlert']
NButton: typeof import('naive-ui')['NButton']
NCard: typeof import('naive-ui')['NCard']
NEmpty: typeof import('naive-ui')['NEmpty']
NFlex: typeof import('naive-ui')['NFlex']
NLi: typeof import('naive-ui')['NLi']
NPagination: typeof import('naive-ui')['NPagination']
NProgress: typeof import('./components/NProgress.vue')['default']
NSpace: typeof import('naive-ui')['NSpace']
NTabPane: typeof import('naive-ui')['NTabPane']
NTabs: typeof import('naive-ui')['NTabs']
NTag: typeof import('naive-ui')['NTag']
NUl: typeof import('naive-ui')['NUl']
Placeholder: typeof import('./components/Placeholder.vue')['default']

View File

@@ -52,14 +52,14 @@ import {
type ZipEntry,
} from '@/utils/ZipDownloader'
import { IconDownload } from '@tabler/icons-vue'
import { type TableColumn } from 'naive-ui/es/data-table/src/interface'
import { type DataTableColumns } from 'naive-ui'
const downloader = new ZipDownloader('')
const data = ref<ZipOverview>()
const entries = computed(() => data.value?.entries)
const columns = ref<TableColumn<ZipEntry>[]>([
const columns = ref<DataTableColumns<ZipEntry>>([
{
title: '',
key: 'actions',