From 8187ca42983b324b2bb796826777fa75aed77900 Mon Sep 17 00:00:00 2001 From: xream Date: Sun, 29 Dec 2024 21:47:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BF=9C=E7=A8=8B=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=80=8F=E4=BC=A0=E8=AF=B7=E6=B1=82=E7=9A=84?= =?UTF-8?q?=20User-Agent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/locales/en.ts | 3 +++ src/locales/zh.ts | 3 +++ src/views/SubEditor.vue | 12 ++++++++++++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d6a6c6532..62901bf47 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.317", + "version": "2.14.318", "private": true, "scripts": { "dev": "vite --host", diff --git a/src/locales/en.ts b/src/locales/en.ts index 43f177832..e01bf327e 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -314,6 +314,9 @@ export default { label: "Subscription-Userinfo", placeholder: "Value or URL(use response content)", }, + passThroughUA: { + label: 'Pass Through Request User-Agent' + }, proxy: { label: "Proxy/Policy", placeholder: "The proxy/node/policy for downloading resource(s)", diff --git a/src/locales/zh.ts b/src/locales/zh.ts index a2c878b5a..17c263d54 100644 --- a/src/locales/zh.ts +++ b/src/locales/zh.ts @@ -332,6 +332,9 @@ export default { label: '订阅流量信息', placeholder: '填写值或链接(使用响应内容)', }, + passThroughUA: { + label: '透传请求的 User-Agent' + }, proxy: { label: '代理/策略', placeholder: '通过代理/节点/策略获取远程资源,不填使用默认', diff --git a/src/views/SubEditor.vue b/src/views/SubEditor.vue index 3d2485e49..ee3b0cb8e 100644 --- a/src/views/SubEditor.vue +++ b/src/views/SubEditor.vue @@ -199,6 +199,16 @@ + +
+ +
+
({ remark: "", mergeSources: "", ignoreFailedRemoteSub: false, + passThroughUA: false, icon: "", process: [ { @@ -629,6 +640,7 @@ watchEffect(() => { const newProcess = JSON.parse(JSON.stringify(sourceData.process)); form.mergeSources = sourceData.mergeSources; form.ignoreFailedRemoteSub = sourceData.ignoreFailedRemoteSub; + form.passThroughUA = sourceData.passThroughUA; form.name = sourceData.name; form.displayName = sourceData.displayName || sourceData["display-name"]; form.remark = sourceData.remark;