From ebd20b0d403ffef636ba5d9021ef3f200c114c38 Mon Sep 17 00:00:00 2001 From: hsingyin Date: Sat, 4 Jan 2025 23:02:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=AE=A1=E7=90=86Mihomo=E9=85=8D=E7=BD=AE=E4=B8=AD=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E5=90=8D=E7=A7=B0=E9=80=89=E5=8F=96=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/locales/en.ts | 6 ++ src/locales/zh.ts | 6 ++ src/views/FileEditor.vue | 115 ++++++++++++++++++++++++++++++++------- 4 files changed, 108 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 70c55b72..e5d4eb18 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.321", + "version": "2.14.322", "private": true, "scripts": { "dev": "vite --host", diff --git a/src/locales/en.ts b/src/locales/en.ts index 983b9990..e8c37ab9 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -533,6 +533,12 @@ export default { tipsDes: "Use a JavaScript script to filter nodes", }, }, + sourceNamePicker: { + title: 'Select Subscription Name', + cancel: 'Cancel', + confirm: 'Confirm', + emptyTips: 'Subscription not found? Click to add a subscription', + }, }, }, myPage: { diff --git a/src/locales/zh.ts b/src/locales/zh.ts index 954835af..e565a46c 100644 --- a/src/locales/zh.ts +++ b/src/locales/zh.ts @@ -528,6 +528,12 @@ export default { tipsDes: '使用一段 JavaScript 脚本来过滤节点', }, }, + sourceNamePicker: { + title: '选择订阅名称', + cancel: '取消', + confirm: '确定', + emptyTips: '未找到订阅?点击去添加订阅', + }, }, }, myPage: { diff --git a/src/views/FileEditor.vue b/src/views/FileEditor.vue index 763e2779..7fd1cc0c 100644 --- a/src/views/FileEditor.vue +++ b/src/views/FileEditor.vue @@ -90,22 +90,18 @@ @click-left-icon="showIconPopup" /> - -
- - - {{ $t(`filePage.type.mihomoProfile`) }} - - - {{ $t(`specificWord.file`) }} - - -
-
+ +
+ + + {{ $t(`filePage.type.mihomoProfile`) }} + + + {{ $t(`specificWord.file`) }} + + +
+
@@ -353,6 +357,21 @@ /> + + +
+

{{ t(`editorPage.subConfig.sourceNamePicker.emptyTips`) }}

+
+