From 1d28a8985130dadfd71ed01b870d0f3e5c51555f Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Thu, 21 Dec 2023 18:32:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=8B=E8=BD=BD=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E9=80=89=E6=8B=A9;=E6=96=B0=E5=A2=9E=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E5=89=8D=E6=9F=A5=E7=9C=8B=E9=A2=84=E8=A7=88=E5=9B=BE?= =?UTF-8?q?;=E5=8E=BB=E9=99=A4=E9=93=BE=E6=8E=A5=E4=BC=AA=E8=A3=85;?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8B=E8=BD=BD=E5=AE=8C=E6=88=90=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E5=88=A4=E6=96=AD;=E4=BB=85=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=87=8C=E7=AB=99=E9=93=BE=E6=8E=A5(?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=9B=B4=E6=96=B0)=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9C=AA=E4=B8=8B=E8=BD=BD=E5=AE=8C=E6=88=90=E6=97=B6=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E9=A2=84=E8=A7=88=E5=AF=BC=E8=87=B4=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DashBoard.vue | 31 ++++++++++++++++++++++--------- src/components/HentaiSearch.vue | 11 +++-------- src/components/Side.vue | 30 ++++++++++++++++++++++++------ src/store/index.js | 27 +++++++++++++++++---------- 4 files changed, 66 insertions(+), 33 deletions(-) diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index ac26870..573c127 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -37,6 +37,8 @@ + 本子名字:{{chosenGallery.name}}本子页数:{{chosenGallery.pages}} @@ -50,6 +52,13 @@ + + 下载模式: + + + + + 标签: {{store.state.tags.get(tid).tag}} @@ -178,6 +187,7 @@ let param = ref("") let paramForTags = ref([]) //tidS let targetResolution = ref("") +let targetDownloadMode = ref("") let tag = ref("") let tagKeyWord = ref("") //查询tag的关键字 @@ -264,10 +274,15 @@ function postTask(){ ElMessage("请选择分辨率再提交") return } - let tempLink = coverLink(chosenGallery.value.link) - store.dispatch("postGalleryTask", {link: tempLink, - targetResolution: targetResolution.value, - tags:tag.value}) + if(targetDownloadMode.value === ''){ + ElMessage("请选择下载模式再提交") + return + } + store.dispatch("postGalleryTask", + {link: chosenGallery.value.link, + targetResolution: targetResolution.value, + mode: targetDownloadMode.value, + tags:tag.value}) targetResolution.value = "" } @@ -277,8 +292,9 @@ function queryRemoteTask(){ ElMessage("链接错误") return } - let tempLink = coverLink(param.value) - store.dispatch("queryGalleryTask", tempLink) + if(param.value.includes("e-hentai")) + param.value = param.value.replace("e-hentai", "exhentai") + store.dispatch("queryGalleryTask", param.value) } function queryLocalTask(){ switch (type.value){ @@ -404,9 +420,6 @@ function validateLink(rawLink){ else return false } -function coverLink(rawLink){ - return rawLink.replace("exhentai.org", "element-plus.org").replace("e-hentai.org", "element.org"); -} //打开面板以及在线阅读 function openPanel(){ diff --git a/src/components/HentaiSearch.vue b/src/components/HentaiSearch.vue index e81d87d..7cd1d06 100644 --- a/src/components/HentaiSearch.vue +++ b/src/components/HentaiSearch.vue @@ -55,8 +55,7 @@ function queryRemoteTask(){ ElMessage("链接错误") return } - let tempLink = coverLink(param.value) - store.dispatch("queryGalleryTask", tempLink) + store.dispatch("queryGalleryTask", param.value) } function validateLink(rawLink){ @@ -68,10 +67,6 @@ function validateLink(rawLink){ return false } -function coverLink(rawLink){ - return rawLink.replace("exhentai.org", "element-plus.org").replace("e-hentai.org", "element.org"); -} - function close(){ emit("close") } @@ -103,8 +98,8 @@ function adjustGalleryName(name, length) {
- - 页数:{{gallery.pages}}
语言:{{gallery.language}} - + 下载进度: {{gallery.progress}}
@@ -107,9 +107,9 @@
- + :preview-src-list="currentGallery.download === undefined ? [] : ['https://downloader.lionwebsite.xyz/GalleryManage/onlineImage/1?gid=' + currentGallery.gid,]"> {{adjustGalleryName(currentGallery.name, 150)}}
@@ -122,7 +122,10 @@ 下载链接:link
标签:{{currentGallery.tag === '' ? '无': currentGallery.tag}}
- downloader:{{currentGallery.downloader}} + downloader:{{currentGallery.downloader}} + + + 下载进度: {{currentGallery.progress}}