From 89de425d77e0fd959a2abceb7498603d581330a1 Mon Sep 17 00:00:00 2001 From: hsingyin Date: Tue, 12 Nov 2024 23:04:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=AE=A2=E9=98=85=E5=A4=96=E9=93=BE=E8=B7=B3=E8=BD=AC=EF=BC=8C?= =?UTF-8?q?=E8=AE=A2=E9=98=85=E3=80=81=E6=96=87=E4=BB=B6=E3=80=81=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=96=B0=E5=A2=9E=E6=8C=89=E9=92=AE=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=B7=A6=E4=B8=8B=E8=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/SubListItem.vue | 19 ++++++++++++++++++- src/plugin/awesomeIcon.ts | 4 +++- src/views/File.vue | 2 +- src/views/Sub.vue | 2 +- src/views/Sync.vue | 2 +- 6 files changed, 25 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index af42ae8e6..cd78f03ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.291", + "version": "2.14.292", "private": true, "scripts": { "dev": "vite --host", diff --git a/src/components/SubListItem.vue b/src/components/SubListItem.vue index 7dcd86e38..8d84a2955 100644 --- a/src/components/SubListItem.vue +++ b/src/components/SubListItem.vue @@ -57,6 +57,9 @@

{{ displayName || name }} + + + {{ i }} @@ -67,6 +70,9 @@ style="color: var(--primary-text-color); font-size: 16px" > {{ displayName || name }} + + + {{ i }} @@ -348,6 +354,7 @@ const remarkText = computed(() => { } }); const { flows } = storeToRefs(subsStore); + const icon = computed(() => { return appearanceSetting.value.isDefaultIcon ? logoIcon : logoRedIcon; }); @@ -520,7 +527,13 @@ const closeCompare = () => { router.back(); }; + +const appOpenBtnVisible = computed(() => { + return props.type === 'sub' && typeof flow.value === 'object' && flow.value?.appUrl; +}); + const openAppUrl = () => { + console.log('flow', flow.value); if (typeof flow.value === 'object' && flow.value?.appUrl) { window.open(flow.value.appUrl); } @@ -784,8 +797,12 @@ const onClickRefresh = async () => { overflow: hidden; font-size: 16px; color: var(--primary-text-color); + vertical-align: middle; + } + .app-url { + font-size: 14px !important; + margin: 0 2px; } - .tag { margin: 0 2px; } diff --git a/src/plugin/awesomeIcon.ts b/src/plugin/awesomeIcon.ts index 834293c24..fe0a1fb87 100644 --- a/src/plugin/awesomeIcon.ts +++ b/src/plugin/awesomeIcon.ts @@ -31,7 +31,8 @@ import { faFileImport, faFileExport, faShareNodes, - faLink + faLink, + faSquareArrowUpRight, } from '@fortawesome/free-solid-svg-icons'; library.add(faFileImport); @@ -65,3 +66,4 @@ library.add(faT); library.add(faICursor); library.add(faShareNodes); library.add(faLink); +library.add(faSquareArrowUpRight); diff --git a/src/views/File.vue b/src/views/File.vue index bc16d187d..55f17ed02 100644 --- a/src/views/File.vue +++ b/src/views/File.vue @@ -18,7 +18,7 @@ }" :style="{ cursor: 'pointer', - right: '16px', + left: '16px', bottom: `${ bottomSafeArea + 48 + diff --git a/src/views/Sub.vue b/src/views/Sub.vue index fef21b6f2..39f6ee8c6 100644 --- a/src/views/Sub.vue +++ b/src/views/Sub.vue @@ -71,7 +71,7 @@ }" :style="{ cursor: 'pointer', - right: '16px', + left: '16px', bottom: `${ bottomSafeArea + 48 + diff --git a/src/views/Sync.vue b/src/views/Sync.vue index 02f9eac4b..9b6d85a7e 100644 --- a/src/views/Sync.vue +++ b/src/views/Sync.vue @@ -17,7 +17,7 @@ }" :style="{ cursor: 'pointer', - right: '16px', + left: '16px', bottom: `${ bottomSafeArea + 48 +