refactor: 清理无用配置和优化类型导入
- 移除 wrangler.toml 中未使用的 UA_BLACKLIST 和 USER_AGENT 配置 - 将 zip.vue 中的 TableColumn 类型更新为 DataTableColumns - 精简 components.d.ts 中未使用的 naive-ui 组件类型声明
This commit is contained in:
7
src/components.d.ts
vendored
7
src/components.d.ts
vendored
@@ -27,16 +27,9 @@ declare module 'vue' {
|
|||||||
ListLink: typeof import('./components/SideNav/ListLink.vue')['default']
|
ListLink: typeof import('./components/SideNav/ListLink.vue')['default']
|
||||||
NaiveuiProvider: typeof import('./components/NaiveuiProvider.vue')['default']
|
NaiveuiProvider: typeof import('./components/NaiveuiProvider.vue')['default']
|
||||||
NAlert: typeof import('naive-ui')['NAlert']
|
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']
|
NLi: typeof import('naive-ui')['NLi']
|
||||||
NPagination: typeof import('naive-ui')['NPagination']
|
|
||||||
NProgress: typeof import('./components/NProgress.vue')['default']
|
NProgress: typeof import('./components/NProgress.vue')['default']
|
||||||
NSpace: typeof import('naive-ui')['NSpace']
|
NSpace: typeof import('naive-ui')['NSpace']
|
||||||
NTabPane: typeof import('naive-ui')['NTabPane']
|
|
||||||
NTabs: typeof import('naive-ui')['NTabs']
|
|
||||||
NTag: typeof import('naive-ui')['NTag']
|
NTag: typeof import('naive-ui')['NTag']
|
||||||
NUl: typeof import('naive-ui')['NUl']
|
NUl: typeof import('naive-ui')['NUl']
|
||||||
Placeholder: typeof import('./components/Placeholder.vue')['default']
|
Placeholder: typeof import('./components/Placeholder.vue')['default']
|
||||||
|
|||||||
@@ -52,14 +52,14 @@ import {
|
|||||||
type ZipEntry,
|
type ZipEntry,
|
||||||
} from '@/utils/ZipDownloader'
|
} from '@/utils/ZipDownloader'
|
||||||
import { IconDownload } from '@tabler/icons-vue'
|
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 downloader = new ZipDownloader('')
|
||||||
|
|
||||||
const data = ref<ZipOverview>()
|
const data = ref<ZipOverview>()
|
||||||
const entries = computed(() => data.value?.entries)
|
const entries = computed(() => data.value?.entries)
|
||||||
|
|
||||||
const columns = ref<TableColumn<ZipEntry>[]>([
|
const columns = ref<DataTableColumns<ZipEntry>>([
|
||||||
{
|
{
|
||||||
title: '',
|
title: '',
|
||||||
key: 'actions',
|
key: 'actions',
|
||||||
|
|||||||
@@ -10,9 +10,7 @@ bucket = "./dist"
|
|||||||
# 这些变量都有默认值,可以根据需要自定义
|
# 这些变量都有默认值,可以根据需要自定义
|
||||||
[vars]
|
[vars]
|
||||||
# User-Agent 黑名单(JSON 数组格式)
|
# User-Agent 黑名单(JSON 数组格式)
|
||||||
UA_BLACKLIST = "[]"
|
|
||||||
# 自定义 User-Agent(可选,有默认值)
|
|
||||||
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0"
|
|
||||||
# 代理IP配置(可选,用于绕过Pixiv WAF)
|
# 代理IP配置(可选,用于绕过Pixiv WAF)
|
||||||
PROXY_IP = "ProxyIP.US.CMLiussss.net"
|
PROXY_IP = "ProxyIP.US.CMLiussss.net"
|
||||||
# 自定义图片代理 URL(可选,默认使用 Pixiv 原始 URL)
|
# 自定义图片代理 URL(可选,默认使用 Pixiv 原始 URL)
|
||||||
|
|||||||
Reference in New Issue
Block a user