diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index f46bd25..bd47db0 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -57,22 +57,6 @@ - - - 视频名字:{{chosenVideo.name}} - 视频网站: {{chosenVideo.website}} - 视频链接: {{chosenVideo.link}} - 视频状态:{{chosenVideo.status}} - - 目标分辨率: - - - -
- 下载 - 删除 -
- @@ -129,16 +113,10 @@ let realAuthCode = computed(() => { 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 }) @@ -173,11 +151,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 = "" } @@ -188,10 +162,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){ @@ -212,10 +183,6 @@ function resetLocalQuery(){ param.value = "" } -//删除任务 -function deleteVideo(){ - store.dispatch("deleteVideo", chosenVideo.value.id) -} function deleteGallery(){ store.dispatch("deleteGallery", chosenGallery.value.gid) } @@ -236,28 +203,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 229a025..c7e210d 100644 --- a/src/components/Side.vue +++ b/src/components/Side.vue @@ -1,8 +1,8 @@