diff --git a/package.json b/package.json index d13b20570..53bab4b6d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.248", + "version": "2.14.249", "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..f0e5fd1ea 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.flowUrl = sourceData.flowUrl; + form.flowUserAgent = sourceData.flowUserAgent; form.ua = sourceData.ua; form.mergeSources = sourceData.mergeSources; form.content = sourceData.content;