From 54a3ee6e9dc1dd8daa1c678d76bdc394f9e3010b Mon Sep 17 00:00:00 2001 From: JuLuogo <1576586736@qq.com> Date: Wed, 8 Oct 2025 17:03:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B8=85=E7=90=86=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E9=85=8D=E7=BD=AE=E5=92=8C=E4=BC=98=E5=8C=96=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 wrangler.toml 中未使用的 UA_BLACKLIST 和 USER_AGENT 配置 - 将 zip.vue 中的 TableColumn 类型更新为 DataTableColumns - 精简 components.d.ts 中未使用的 naive-ui 组件类型声明 --- src/components.d.ts | 7 ------- src/view/_debug/zip.vue | 4 ++-- wrangler.toml | 4 +--- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/components.d.ts b/src/components.d.ts index 2f1f98e..db751ef 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -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'] diff --git a/src/view/_debug/zip.vue b/src/view/_debug/zip.vue index 77e2d4f..6ab507a 100644 --- a/src/view/_debug/zip.vue +++ b/src/view/_debug/zip.vue @@ -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() const entries = computed(() => data.value?.entries) -const columns = ref[]>([ +const columns = ref>([ { title: '', key: 'actions', diff --git a/wrangler.toml b/wrangler.toml index 7799596..f297f8c 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -10,9 +10,7 @@ bucket = "./dist" # 这些变量都有默认值,可以根据需要自定义 [vars] # 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) PROXY_IP = "ProxyIP.US.CMLiussss.net" # 自定义图片代理 URL(可选,默认使用 Pixiv 原始 URL)