diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index 0eb0060..674cf60 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -56,21 +56,6 @@ - - - 视频名字:{{chosenVideo.name}} - 视频网站: {{chosenVideo.website}} - 视频链接: {{chosenVideo.link}} - 视频状态:{{chosenVideo.status}} - - 目标分辨率: - - - -
- 下载 - 删除 -
@@ -131,18 +116,10 @@ let chosenGallery = computed(() => { return store.state.chosenGallery }) -let chosenVideo = computed(() => { - return store.state.chosenVideo -}) - let loadComplete = computed(() => { return store.state.loadComplete }) -let maskDomain = computed(() => { - return store.state.maskDomain -}) - let weekUsed = computed(() => { return store.state.weekUsed }) @@ -178,11 +155,7 @@ function postTask(){ return } let tempLink = coverLink(param.value) - if(param.value.includes("hentai")) - store.dispatch("postGalleryTask", {link: tempLink, targetResolution: targetResolution.value}) - else - store.dispatch("postVideoTask", {link: tempLink, targetResolution: targetResolution.value}) - + store.dispatch("postGalleryTask", {link: tempLink, targetResolution: targetResolution.value}) targetResolution.value = "" } @@ -193,10 +166,7 @@ function queryRemoteTask(){ return } let tempLink = coverLink(param.value) - if(param.value.includes("hentai")) - store.dispatch("queryGalleryTask", tempLink) - else - store.dispatch("queryVideoTask", tempLink) + store.dispatch("queryGalleryTask", tempLink) } function queryLocalTask(){ switch (type.value){ @@ -218,9 +188,6 @@ function resetLocalQuery(){ } //删除任务 -function deleteVideo(){ - store.dispatch("deleteVideo", chosenVideo.value.id) -} function deleteGallery(){ store.dispatch("deleteGallery", chosenGallery.value.gid) } @@ -241,28 +208,13 @@ function validate(){ function validateLink(rawLink){ if(rawLink.trim() === "") return false - if(rawLink.includes("hentai")){ + if(rawLink.includes("hentai")) return rawLink.includes("/g/") - } - else if(rawLink.includes("xvideos.com")){ - return true - } - else if(rawLink.includes("pornhub.com")){ - return rawLink.includes("view_video.php") - } - else if(rawLink.includes("xhamster") && rawLink.includes(".com")){ - return true - } + else + return false } function coverLink(rawLink){ - if(rawLink.includes("xhamster")) - rawLink = "https://zh.xhamster" + rawLink.substring(rawLink.indexOf(".com")) - let url = new URL(rawLink) - maskDomain.value.forEach((mask) => { - if(url.host === mask['raw']) - rawLink = rawLink.replace(mask['raw'], mask['mask']) - }) - return rawLink; + return rawLink.replace("exhentai.org", "element-plus.org").replace("e-hentai.org", "element.org"); } //打开面板以及在线阅读 diff --git a/src/components/Side.vue b/src/components/Side.vue index 6e2d9fe..c88be41 100644 --- a/src/components/Side.vue +++ b/src/components/Side.vue @@ -2,7 +2,7 @@
- +