From fbb75e175354ad549b6353a493b3aea1e9535cbf Mon Sep 17 00:00:00 2001 From: xream Date: Fri, 12 Jan 2024 03:06:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=87=E4=BB=B6=E5=8A=9F=E8=83=BD(?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=20>=202.14.143)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/FileListItem.vue | 18 ++++-------------- src/locales/en.ts | 7 ++++++- src/locales/zh.ts | 7 ++++++- src/views/File.vue | 6 +++--- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index e2b3c28dd..e0109acac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.34", + "version": "2.14.35", "private": true, "scripts": { "dev": "vite --host", diff --git a/src/components/FileListItem.vue b/src/components/FileListItem.vue index 2e1ad6279..62eee6774 100644 --- a/src/components/FileListItem.vue +++ b/src/components/FileListItem.vue @@ -5,7 +5,9 @@ class="sub-item-wrapper" :style="{ padding: isSimpleMode ? '9px' : '16px' }" > -
@@ -32,7 +34,7 @@ bg-color="" />
- +
@@ -287,18 +289,6 @@ router.back(); }; - const compareSub = async () => { - Toast.loading('生成节点对比中...', { id: 'compare', cover: true, duration: 1500 }); - const res = await useSubsApi().compareSub( - props.type, - props.sub ?? props.collection - ); - if (res?.data?.status === 'success') { - compareData.value = res.data.data; - compareTableIsVisible.value = true; - Toast.hide('compare'); - } - }; const swipeClose = () => { swipe.value.close(); }; diff --git a/src/locales/en.ts b/src/locales/en.ts index 7184ad0e4..f70c55a14 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -66,7 +66,12 @@ export default { }, content: { placeholder: 'The content of the file' - } + }, + emptySub: { + title: 'You have no File yet', + desc: 'After adding you can enjoy the love of YM Peng', + btn: 'Create File Now', + }, }, // subscription management page subPage: { diff --git a/src/locales/zh.ts b/src/locales/zh.ts index f41715bb0..50fbe82e0 100644 --- a/src/locales/zh.ts +++ b/src/locales/zh.ts @@ -70,7 +70,12 @@ export default { copyNotify: { succeed: '复制文件链接成功', failed: '复制文件链接失败\n{e}', - } + }, + emptySub: { + title: '你还没有添加文件', + desc: '添加后开始使用文件', + btn: '立即添加', + }, }, // 订阅管理页 subPage: { diff --git a/src/views/File.vue b/src/views/File.vue index 863b49b43..2af880e24 100644 --- a/src/views/File.vue +++ b/src/views/File.vue @@ -75,13 +75,13 @@ > - {{ $t(`subPage.emptySub.btn`) }} + {{ $t(`filePage.emptySub.btn`) }}