From cff63fcf86a3fed3bec44dbfce0e76d5a3a1ee69 Mon Sep 17 00:00:00 2001 From: xream Date: Fri, 28 Jun 2024 18:34:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=87=E4=BB=B6=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20=E6=9F=A5=E8=AF=A2=E6=B5=81=E9=87=8F?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E8=AE=A2=E9=98=85=E9=93=BE=E6=8E=A5.=20?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E7=89=88=E4=B8=AD=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=AD=A4=E9=93=BE=E6=8E=A5=E5=8F=AF=E5=9C=A8=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E4=B8=AD=E4=BC=A0=E9=80=92=E8=AE=A2=E9=98=85=E6=B5=81=E9=87=8F?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/locales/en.ts | 8 ++++++++ src/locales/zh.ts | 8 ++++++++ src/views/FileEditor.vue | 31 +++++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d13b20570..7bf9477e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.248", + "version": "2.14.250", "private": true, "scripts": { "dev": "vite --host", diff --git a/src/locales/en.ts b/src/locales/en.ts index 1b0ea8439..86358969c 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -225,6 +225,14 @@ export default { label: 'Display Name', placeholder: 'The display name', }, + subInfoUrl: { + label: 'Sub Info URL', + placeholder: 'The URL for fetching subscription usage info', + }, + subInfoUserAgent: { + label: 'Sub Info User-Agent', + placeholder: 'User-Agent for fetching subscription usage info', + }, tag: { label: 'Tag(s)', placeholder: 'The tag(s) (separated by comma) will be used for grouping.', diff --git a/src/locales/zh.ts b/src/locales/zh.ts index da32b67d6..298acc8ea 100644 --- a/src/locales/zh.ts +++ b/src/locales/zh.ts @@ -225,6 +225,14 @@ export default { label: '显示名称', placeholder: '输入展示的名称', }, + subInfoUrl: { + label: '查询流量信息订阅链接', + placeholder: '用于传递流量信息', + }, + subInfoUserAgent: { + label: '查询流量信息 User-Agent', + placeholder: '不设置则使用默认 User-Agent', + }, tag: { label: '标签', placeholder: '标签(用 , 分隔) 将用于分组', diff --git a/src/views/FileEditor.vue b/src/views/FileEditor.vue index 6229c166b..df0cdf34e 100644 --- a/src/views/FileEditor.vue +++ b/src/views/FileEditor.vue @@ -145,6 +145,35 @@ /> + + + + + + + { form.icon = sourceData.icon; form.source = sourceData.source || "local"; form.url = sourceData.url; + form.subInfoUrl = sourceData.subInfoUrl; + form.subInfoUserAgent = sourceData.subInfoUserAgent; form.ua = sourceData.ua; form.mergeSources = sourceData.mergeSources; form.content = sourceData.content;