@@ -195,6 +167,7 @@ import {computed, ref, onMounted} from "vue";
import {ElMessage} from "element-plus"
import axios from "axios";
import qs from "qs";
+import HentaiSearch from "./HentaiSearch.vue";
//授权码相关
let AuthCode = ref("")
@@ -208,8 +181,6 @@ let isViewingTag = ref(false)
let isConfig = ref(false)
let isDark = ref(false)
let keyword = ref("")
-let galleries = ref([])
-let queryPage = ref({})
let darkConfig = ref({})
let lengthPerPage = ref(0)
@@ -306,14 +277,6 @@ function postTask(){
}
//查询任务
-function queryRemoteTask(){
- if(!validateLink(param.value)){
- ElMessage("链接错误")
- return
- }
- let tempLink = coverLink(param.value)
- store.dispatch("queryGalleryTask", tempLink)
-}
function queryLocalTask(){
switch (type.value){
case "link":
@@ -410,35 +373,9 @@ function resetLocalQuery(){
store.commit("_searchLocalByKeyword", "")
param.value = ""
}
-function queryGalleries(link) {
- let tempParam
- if (link !== null) {
- let url = new URL(link)
- tempParam = url.search.replace("?f_search=", "")
- } else {
- tempParam = keyword.value
- }
- tempParam = tempParam.replace(" ", "+")
- document.getElementById("loading").style.display = "inline-block";
- axios.get("http://downloader.lionwebsite.xyz/query?keyword=" + tempParam)
- .then((res) => {
- document.getElementById("loading").style.display = "none";
- if (res.data.result === "success") {
- let tempGalleries = JSON.parse(res.data.data)
- queryPage.value.first = 'first' in res.data ? res.data.first : undefined
- queryPage.value.previous = 'previous' in res.data ? res.data.previous : undefined
- queryPage.value.next = 'next' in res.data ? res.data.next : undefined
- queryPage.value.last = 'last' in res.data ? res.data.last : undefined
-
- galleries.value.splice(0)
- tempGalleries.forEach((gallery) => {
- galleries.value.push(gallery)
- })
- } else {
- ElMessage({message: res.data.data, type: "error"})
- }
- })
+function closeQueryPanel(){
+ isQuerying.value = false
}
function deleteGallery(){
@@ -603,18 +540,4 @@ function saveConfig(){
.el-input{
width: 200px;
}
-
- #loading {
- width: 25px;
- height: 25px;
- border: 2px solid #ccc;
- border-top-color: #3498db;
- border-radius: 50%;
- animation: spin 1s linear infinite;
- display: none;
- }
-
- @keyframes spin {
- to { transform: rotate(360deg); }
- }
\ No newline at end of file
diff --git a/src/components/HentaiSearch.vue b/src/components/HentaiSearch.vue
new file mode 100644
index 0000000..ac241fe
--- /dev/null
+++ b/src/components/HentaiSearch.vue
@@ -0,0 +1,131 @@
+
+
+
+
+
+
+
+
+
+
{{gallery.name}}
+
上传时间:{{gallery.uploadTime}}
+
页数:{{gallery.page}}
+
类型:{{gallery.type}}
+
链接
+
下载
+
+
+
+
+ 首页
+ 上一页
+ 下一页
+ 尾页
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/OnlineReader.vue b/src/components/OnlineReader.vue
index fb72540..8e2065e 100644
--- a/src/components/OnlineReader.vue
+++ b/src/components/OnlineReader.vue
@@ -35,6 +35,7 @@ function jump(targetIndex){
links.value = props.currentLinks.slice(targetIndex * lengthPerPage.value, (targetIndex + 1) * lengthPerPage.value)
index.value = targetIndex
temp_index.value = targetIndex + 1
+ onlineReadingScrollbar.value.setScrollTop(0)
}
function closeDialog(){
@@ -43,12 +44,15 @@ function closeDialog(){
-
-
- {{index + 1}} - {{(index) * lengthPerPage + 1}} ~ {{(index + 1) * lengthPerPage + 1 > currentLinks.length? currentLinks.length: (index + 1) * lengthPerPage + 1}}
-
+
+
+ 在线预览
+
+ {{index + 1}} - {{(index) * lengthPerPage + 1}} ~ {{(index + 1) * lengthPerPage + 1 > currentLinks.length? currentLinks.length: (index + 1) * lengthPerPage + 1}}
+
+
-
@@ -68,7 +72,7 @@ function closeDialog(){
< {{max}}
下一页
- 跳转
+ 跳转
diff --git a/src/store/index.js b/src/store/index.js
index 3e640d7..6334a1f 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -129,8 +129,8 @@ const actions = {
//
// width = width - (width % 10)
//写死图片合适宽度
- state.imageWidth = 550 + 'px'
- state.imagePadding = 10 + 'px'
+ state.imageWidth = 27 + 'vw'
+ state.imagePadding = 1 + 'vw'
}
else
context.commit("_unAuthed")