Bump web v3.24.101920
This commit is contained in:
1 parent
816ceff6bd
commit
f22f9860ef
10 files changed
+20
-20
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
import{d as le,a2 as Te,p as l,y as D,S as Ve,a7 as Fe,o as f,e as m,h as t,t as M,F as ee,O as ae,u as a,a8 as J,a9 as Pe,J as be,s as U,f as K,w as R,aa as Je,z as pe,ab as Ge,g as T,L as ge,ac as qe,a6 as Le,m as L,ad as Ze,v as Ye,ae as Me,af as Re,ag as je,V as Xe,N as xe,a5 as _e,ah as $e,ai as et,c as tt}from"./vendor-DyE_jpJ0.js";import{u as ie,i as ot,A as re,_ as ce,a as Qe}from"./index-CoMQMWtZ.js";import{u as nt}from"./loading-DO4FBnCG.js";const st=(d,s,u,B)=>(d/=B/2,d<1?u/2*d*d+s:(d--,-u/2*(d*(d-2)-1)+s)),at=()=>{let d,s,u,B,n,I,p,w,k,V,x,E,y;function Q(){let g=d.scrollTop||d.scrollY||d.pageYOffset;return g=typeof g>"u"?0:g,g}function h(g){const b=g.getBoundingClientRect().top,te=d.getBoundingClientRect?d.getBoundingClientRect().top:0;return b-te+u}function C(g){d.scrollTo?d.scrollTo(0,g):d.scrollTop=g}function i(g){V||(V=g),x=g-V,E=I(x,u,w,k),C(E),x<k?requestAnimationFrame(i):c()}function c(){C(u+w),s&&p&&(s.setAttribute("tabindex","-1"),s.focus()),typeof y=="function"&&y(),V=!1}function A(g,b={}){switch(k=b.duration||1e3,n=b.offset||0,y=b.callback,I=b.easing||st,p=b.a11y||!1,typeof b.container){case"object":d=b.container;break;case"string":d=document.querySelector(b.container);break;default:d=window}switch(u=Q(),typeof g){case"number":s=void 0,p=!1,B=u+g;break;case"object":s=g,B=h(s);break;case"string":s=document.querySelector(g),B=h(s);break}switch(w=B-u+n,typeof b.duration){case"number":k=b.duration;break;case"function":k=b.duration(w);break}requestAnimationFrame(i)}return A},_=at(),it=["data-chapterpos"],rt=["src"],lt=["innerHTML"],ct=le({__name:"ChapterContent",props:{chapterIndex:{},contents:{},title:{},spacing:{},fontFamily:{},fontSize:{}},emits:["readedLengthChange"],setup(d,{expose:s,emit:u}){Te(i=>({dcb41ef4:p.spacing.letter,ad61d758:p.spacing.line,"6503210e":p.spacing.paragraph}));const B=ie(),n=l(()=>B.config.readWidth),I=l(()=>B.readingBook.bookUrl),p=d,w=i=>{const c=/<img[^>]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,A=i.match(c)[1];return ot(A)?re.getProxyImageUrl(I.value,A,ie().config.readWidth):A},k=i=>{i.target.src=re.getProxyImageUrl(I.value,i.target.src,n.value)},V=i=>{const c=/<img[^>]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g;return i.replaceAll(c," ").length},x=l(()=>{let i=-1;return Array.from(p.contents,c=>(i+=V(c)+1,i))}),E=D(),y=D();s({scrollToReadedLength:i=>{if(i===0)return;const c=x.value.findIndex(A=>A>=i);c!==-1&&Pe(()=>{_(y.value[c],{duration:0})})}});let h=null;const C=u;return Ve(()=>{h=new IntersectionObserver(i=>{for(const{target:c,isIntersecting:A}of i)A&&C("readedLengthChange",p.chapterIndex,parseInt(c.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),h.observe(E.value),y.value.forEach(i=>{h.observe(i)})}),Fe(()=>{h==null||h.disconnect(),h=null}),(i,c)=>(f(),m(ee,null,[t("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:E},M(i.title),513),(f(!0),m(ee,null,ae(i.contents,(A,g)=>(f(),m("div",{key:g,ref_for:!0,ref_key:"paragraphRef",ref:y,"data-chapterpos":a(x)[g]},[/^\s*<img[^>]*src[^>]+>$/.test(String(A))?(f(),m("img",{key:0,class:"full",src:w(A),onErrorOnce:k,loading:"lazy"},null,40,rt)):(f(),m("p",{key:1,style:J({fontFamily:i.fontFamily,fontSize:i.fontSize}),innerHTML:A},null,12,lt))],8,it))),128))],64))}}),At=ce(ct,[["__scopeId","data-v-dce2cef9"]]),dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXpgQinb46nOulnn4b5laUHTxLfseeArAoNOeJlOIjdoal0n1FA7tKFv5roK+YaHOqP3P0XyKHPHY+MhTRe5uCZnKhtJKw2eSrSoBDPLtpZuNcFNJcFyiCMxOaaHIfXz1e8HQbWLySrBQ4x0x1qlhnHlnz2HQEC6TNb0gTHXa7IKhcaHqkE015hk9whA0YeWiLIXf7Fa2CZo3DjqjB4tTuF8jIcbfcEx5z/w4sXpQhXW+ju0cqh7icTFmRMaG+v6CIvTjcSpHcH8JEsF3EPh3fRthYdVLLgI2fWXm85/pGFE4l046s70L+yKCcirGFR+jbpy3kMmiCGHrSezVONsn1RBixncyk2PcVWk7DlgxHo8iZwDyq5uAUD854dZhdIFYzKoQig2haUKi1lVufz2RZUZPZ41n/hrOQB6h0Hhg8I367FNoEHgeM/KY7szSeQwD8q2WE3HM35ZLl0K1MJiOtHIkBclRQUwZnyOWcNsRQQgVLj1PSqkjF9DsoOSaSg3iinKzvfmgsNFFfpP/2T3GLGvL4fHEfwIX1sVvXcPqLztehWGcfn9nI2U9nTfCgJPe/jFPLZwgVEzimBgAm0VIyK2tt1cE/AzQdLK+SxLSQ4aDCZnnId94OG2S1XwvnTbNk/ZnhyRCQT+sZM6z9g6LXL1BOBe+zJySiFkHAINCtnQokbCJ/apCv0foqPiZVfhpywAAAAASUVORK5CYII=",ut="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAACVBMVEX28ef48+n69esoK7jYAAAB4UlEQVQozw2OsW4bQQxEhwLXkDrysGdEqRRgVShfQQq8wOr2jD0jSpXCLvwXbtKfADlFqgSwC/9ljqweZgYzQFnb/QGepYhA9jzmTc1WaSEtQpbFgjWATI00ZZtIckXx8q2Oe5yEByBy+RHOTcM+VVTadULsvxvRC/q8WTwgcWGD+Mnaqa0oy2gw2pKFzK+PzEsus5hP9AHojKslVynLlioVTBEN8cjDNnZoR1uMGTiZAAN47HxMtEkGUE9b8HWzkqNX5Lpk0yVziAJOs46rK1pG/xNuXLjz95fSDoJE5IqG23MAYPtWoeWPvfVtIV/Ng9oH3W0gGMPIOqd4MK4QZ55dV61gOb8Zxp7I9qayaGxp6Q91cmC0ZRdBwEQVHWzSAanlZwVWc9yljeTCeaHjBVvlPSLeyeBUT2rPdJegQI103jVS3uYkyIx1il6mslMDedZuOkwzolsagvPuQAfp7cYg7k9V1NOxfq64PNSvMdwONV4VYEmqlbpZy5OAakRKkjPnL4CBv5/OZRgoWHBmNbxB0LgB1I4vXFj93UoF2/0TPEsWwV9EhbIiTPqYoTHYoMn3Line truncated
|
||||
import{d as le,a2 as Te,s as l,B as D,T as Ve,a8 as Fe,o as f,e as m,h as t,v as M,F as ee,P as ie,u as i,a9 as J,aa as Pe,L as be,y as U,f as K,w as R,ab as Je,C as pe,ac as Ge,g as T,N as ge,ad as qe,a7 as Le,n as L,ae as Ze,z as Ye,af as Me,a5 as Re,ag as je,V as Xe,O as xe,a6 as _e,ah as $e,ai as et,c as tt}from"./vendor-Cq9RjTRr.js";import{u as ae,i as ot,A as re,_ as ce,c as Qe}from"./index-CcaAk_ul.js";import{u as nt}from"./loading-DPQW_bh6.js";const st=(d,s,u,B)=>(d/=B/2,d<1?u/2*d*d+s:(d--,-u/2*(d*(d-2)-1)+s)),it=()=>{let d,s,u,B,n,I,p,w,k,V,x,E,y;function Q(){let g=d.scrollTop||d.scrollY||d.pageYOffset;return g=typeof g>"u"?0:g,g}function h(g){const b=g.getBoundingClientRect().top,te=d.getBoundingClientRect?d.getBoundingClientRect().top:0;return b-te+u}function C(g){d.scrollTo?d.scrollTo(0,g):d.scrollTop=g}function a(g){V||(V=g),x=g-V,E=I(x,u,w,k),C(E),x<k?requestAnimationFrame(a):c()}function c(){C(u+w),s&&p&&(s.setAttribute("tabindex","-1"),s.focus()),typeof y=="function"&&y(),V=!1}function A(g,b={}){switch(k=b.duration||1e3,n=b.offset||0,y=b.callback,I=b.easing||st,p=b.a11y||!1,typeof b.container){case"object":d=b.container;break;case"string":d=document.querySelector(b.container);break;default:d=window}switch(u=Q(),typeof g){case"number":s=void 0,p=!1,B=u+g;break;case"object":s=g,B=h(s);break;case"string":s=document.querySelector(g),B=h(s);break}switch(w=B-u+n,typeof b.duration){case"number":k=b.duration;break;case"function":k=b.duration(w);break}requestAnimationFrame(a)}return A},_=it(),at=["data-chapterpos"],rt=["src"],lt=["innerHTML"],ct=le({__name:"ChapterContent",props:{chapterIndex:{},contents:{},title:{},spacing:{},fontFamily:{},fontSize:{}},emits:["readedLengthChange"],setup(d,{expose:s,emit:u}){Te(a=>({dcb41ef4:p.spacing.letter,ad61d758:p.spacing.line,"6503210e":p.spacing.paragraph}));const B=ae(),n=l(()=>B.config.readWidth),I=l(()=>B.readingBook.bookUrl),p=d,w=a=>{const c=/<img[^>]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,A=a.match(c)[1];return ot(A)?re.getProxyImageUrl(I.value,A,ae().config.readWidth):A},k=a=>{a.target.src=re.getProxyImageUrl(I.value,a.target.src,n.value)},V=a=>{const c=/<img[^>]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g;return a.replaceAll(c," ").length},x=l(()=>{let a=-1;return Array.from(p.contents,c=>(a+=V(c)+1,a))}),E=D(),y=D();s({scrollToReadedLength:a=>{if(a===0)return;const c=x.value.findIndex(A=>A>=a);c!==-1&&Pe(()=>{_(y.value[c],{duration:0})})}});let h=null;const C=u;return Ve(()=>{h=new IntersectionObserver(a=>{for(const{target:c,isIntersecting:A}of a)A&&C("readedLengthChange",p.chapterIndex,parseInt(c.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),h.observe(E.value),y.value.forEach(a=>{h.observe(a)})}),Fe(()=>{h==null||h.disconnect(),h=null}),(a,c)=>(f(),m(ee,null,[t("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:E},M(a.title),513),(f(!0),m(ee,null,ie(a.contents,(A,g)=>(f(),m("div",{key:g,ref_for:!0,ref_key:"paragraphRef",ref:y,"data-chapterpos":i(x)[g]},[/^\s*<img[^>]*src[^>]+>$/.test(String(A))?(f(),m("img",{key:0,class:"full",src:w(A),onErrorOnce:k,loading:"lazy"},null,40,rt)):(f(),m("p",{key:1,style:J({fontFamily:a.fontFamily,fontSize:a.fontSize}),innerHTML:A},null,12,lt))],8,at))),128))],64))}}),At=ce(ct,[["__scopeId","data-v-dce2cef9"]]),dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXpgQinb46nOulnn4b5laUHTxLfseeArAoNOeJlOIjdoal0n1FA7tKFv5roK+YaHOqP3P0XyKHPHY+MhTRe5uCZnKhtJKw2eSrSoBDPLtpZuNcFNJcFyiCMxOaaHIfXz1e8HQbWLySrBQ4x0x1qlhnHlnz2HQEC6TNb0gTHXa7IKhcaHqkE015hk9whA0YeWiLIXf7Fa2CZo3DjqjB4tTuF8jIcbfcEx5z/w4sXpQhXW+ju0cqh7icTFmRMaG+v6CIvTjcSpHcH8JEsF3EPh3fRthYdVLLgI2fWXm85/pGFE4l046s70L+yKCcirGFR+jbpy3kMmiCGHrSezVONsn1RBixncyk2PcVWk7DlgxHo8iZwDyq5uAUD854dZhdIFYzKoQig2haUKi1lVufz2RZUZPZ41n/hrOQB6h0Hhg8I367FNoEHgeM/KY7szSeQwD8q2WE3HM35ZLl0K1MJiOtHIkBclRQUwZnyOWcNsRQQgVLj1PSqkjF9DsoOSaSg3iinKzvfmgsNFFfpP/2T3GLGvL4fHEfwIX1sVvXcPqLztehWGcfn9nI2U9nTfCgJPe/jFPLZwgVEzimBgAm0VIyK2tt1cE/AzQdLK+SxLSQ4aDCZnnId94OG2S1XwvnTbNk/ZnhyRCQT+sZM6z9g6LXL1BOBe+zJySiFkHAINCtnQokbCJ/apCv0foqPiZVfhpywAAAAASUVORK5CYII=",ut="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAACVBMVEX28ef48+n69esoK7jYAAAB4UlEQVQozw2OsW4bQQxEhwLXkDrysGdEqRRgVShfQQq8wOr2jD0jSpXCLvwXbtKfADlFqgSwC/9ljqweZgYzQFnb/QGepYhA9jzmTc1WaSEtQpbFgjWATI00ZZtIckXx8q2Oe5yEByBy+RHOTcM+VVTadULsvxvRC/q8WTwgcWGD+Mnaqa0oy2gw2pKFzK+PzEsus5hP9AHojKslVynLlioVTBEN8cjDNnZoR1uMGTiZAAN47HxMtEkGUE9b8HWzkqNX5Lpk0yVziAJOs46rK1pG/xNuXLjz95fSDoJE5IqG23MAYPtWoeWPvfVtIV/Ng9oH3W0gGMPIOqd4MK4QZ55dV61gOb8Zxp7I9qayaGxp6Q91cmC0ZRdBwEQVHWzSAanlZwVWc9yljeTCeaHjBVvlPSLeyeBUT2rPdJegQI103jVS3uYkyIx1il6mslMDedZuOkwzolsagvPuQAfp7cYg7k9V1NOxfq64PNSvMdwONV4VYEmqlbpZy5OAakRKkjPnL4CBv5/OZRgoWHBmNbxB0LgB1I4vXFj93UoF2/0TPEsWwV9EhbIiTPqYoTHYoMn3Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
@charset "UTF-8";.title[data-v-dce2cef9]{margin-bottom:57px;font:24px/32px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}p[data-v-dce2cef9]{display:block;word-wrap:break-word;letter-spacing:calc(var(--dcb41ef4) * 1em);line-height:calc(1 + var(--ad61d758));margin:calc(var(--6503210e) * 1em) 0}p[data-v-dce2cef9] img{height:1em}.full[data-v-dce2cef9]{display:block;width:100%}@font-face{font-family:FZZCYSK;src:local("☺"),url(./popfont-WaOB0hHG.ttf);font-style:normal;font-weight:400}@font-face{font-family:iconfont;src:url(./iconfont-PstzbNMW.woff) format("woff")}[data-v-dd7cfcb2] .iconfont,[data-v-dd7cfcb2] .moon-icon{font-family:iconfont;font-style:normal}.settings-wrapper[data-v-dd7cfcb2]{-webkit-user-select:none;user-select:none;margin:-13px;text-align:left;padding:40px 0 40px 24px;background:#ede7da url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAD1BMVEX48dr48Nf58tv379X17NJtIBxUAAACFUlEQVQ4y1XRUZakMAgF0Af2AiDWApDZgHZqAV1nZv9rGh7Rj7Y8McUFEg1wvcMESMNVD/neU8Xcaz7nYYkYlYO6Ti82PBI4BvIEg1aj3wKwRvIMgZsUy5LdhCawPFh1sZs4SrlyN9fQKpv8s5dgZ2eLyqqJiu+WkCmUEybXkm3INS01WAiv0PapJ0CZc0SJQUzcWnZYbOOY20iFD8Bk+/j2A3wNxH7GdShFYS5ff237kXh9I9zSkQmIAhOsOSVfJ6DIXTMDaPnzkRJ92S1BQQmXl5LdirgRLLDdcYqcGPwe3QN4xCBiGNbrqq9wpW1XCecChwaQdVOsRDpPCpeoolPdxeXp3WNB9PHVzWBHlygy4NJCCrFHREv6bDt0VGwJZASkpONmm1UseGeFKAQexgaAkrfYWl3AGxWOLL2AIMBNbCXpktmS3k3vHeYjGCPBa43wJTurO3ZFVpQSJdAZGLoHTyk1upkjxMEaIxum3iIARcCa5kSkFAW5fi1mUlL9eyOsaanFmOMruwvEdE3ZYzsRSzo5ewRLXyVPPEvknt8ij4DvCg2O7xOgBCUprEzV4z1WekSpUgI8DT2mrnSOXKRfQavwuKA1F+tFnMKdJSUpMA7wQAifWRkMgjUKKZE4lBl6MCM4B1pq1P4uIjDE6Pq6rL0FnW1nIFmta5vrSvq/Ch4tpqG/ZNyyWa5jZPktq81eYv8Bt5s4iFITOp4AAAAASUVORK5CYII=) repeat}.settings-wrapper .settings-title[data-v-dd7cfcb2]{font-size:18px;line-height:22px;margin-bottom:28px;font-family:FZZCYSK;font-weight:400}.settings-wrapper .setting-list[data-v-dd7cfcb2]{max-height:calc(70vh - 50px);overflow:auto}.settings-wrapper .setting-list ul[data-v-dd7cfcb2]{list-style:none outside none;margin:0;padding:0}.settings-wrapper .setting-list ul li[data-v-dd7cfcb2]{list-style:none outside none}.settings-wrapper .setting-list ul li i[data-v-dd7cfcb2]{font:12px/16px PingFangSC-Regular,-apple-system,Simsun;display:inline-block;min-width:48px;margin-right:16px;vertical-align:middle;color:#666}.settings-wrapper .setting-list ul li .theme-item[data-v-dd7cfcb2]{line-height:32px;width:34px;height:34px;margin-right:16px;margin-top:5px;border-radius:100%;display:inline-block;cursor:pointer;text-align:center;vertical-align:middle}.settings-wrapper .setting-list ul li .theme-item .iconfont[data-v-dd7cfcb2]{display:none}.settings-wrapper .setting-list ul li .selected[data-v-dd7cfcb2]{color:#ed4259}.settings-wrapper .setting-list ul li .selected .iconfont[data-v-dd7cfcb2]{display:inline}.settings-wrapper .setting-list ul .font-list[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .infinite-loading[data-v-dd7cfcb2]{margin-top:28px}.settings-wrapper .setting-list ul .font-list .font-item[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-dd7cfcb2]{width:78px;height:34px;cursor:pointer;margin-right:16px;border-radius:2px;text-align:center;vertical-align:middle;display:inline-block;font:14px/34px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.settings-wrapper .setting-list ul .font-list .font-item-input[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .infinite-loading .font-item-input[data-v-dd7cfcb2]{width:168px;color:#000}.settings-wrapper .setting-list ul .font-list .selected[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .infinite-loading .selected[data-v-dd7cfcb2]{color:#ed4259;border:1px solid #ed4259}.settings-wrapper .setting-list ul .font-list .font-item[data-v-dd7cfcb2]:hover,.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-dd7cfcb2]:hover,.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-dd7cfcb2]:hover,.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-dd7cfcb2]:hover{border:1px solid #ed4259;color:#ed4259}.settings-wrapper .setting-list ul .font-size[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .read-width[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .letter-spacing[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .line-spacing[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .paragraph-spacing[data-v-dd7cfcb2]{margin-top:28px}.settings-wrapper .setting-list ul .font-size .resize[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .read-width .resize[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .letter-spacing .resize[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .line-spacing .resize[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .paraLine truncated
|
||||
@charset "UTF-8";.title[data-v-dce2cef9]{margin-bottom:57px;font:24px/32px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}p[data-v-dce2cef9]{display:block;word-wrap:break-word;letter-spacing:calc(var(--dcb41ef4) * 1em);line-height:calc(1 + var(--ad61d758));margin:calc(var(--6503210e) * 1em) 0}p[data-v-dce2cef9] img{height:1em}.full[data-v-dce2cef9]{display:block;width:100%}@font-face{font-family:FZZCYSK;src:local("☺"),url(./popfont-WaOB0hHG.ttf);font-style:normal;font-weight:400}@font-face{font-family:iconfont;src:url(./iconfont-PstzbNMW.woff) format("woff")}[data-v-dd7cfcb2] .iconfont,[data-v-dd7cfcb2] .moon-icon{font-family:iconfont;font-style:normal}.settings-wrapper[data-v-dd7cfcb2]{-webkit-user-select:none;user-select:none;margin:-13px;text-align:left;padding:40px 0 40px 24px;background:#ede7da url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAD1BMVEX48dr48Nf58tv379X17NJtIBxUAAACFUlEQVQ4y1XRUZakMAgF0Af2AiDWApDZgHZqAV1nZv9rGh7Rj7Y8McUFEg1wvcMESMNVD/neU8Xcaz7nYYkYlYO6Ti82PBI4BvIEg1aj3wKwRvIMgZsUy5LdhCawPFh1sZs4SrlyN9fQKpv8s5dgZ2eLyqqJiu+WkCmUEybXkm3INS01WAiv0PapJ0CZc0SJQUzcWnZYbOOY20iFD8Bk+/j2A3wNxH7GdShFYS5ff237kXh9I9zSkQmIAhOsOSVfJ6DIXTMDaPnzkRJ92S1BQQmXl5LdirgRLLDdcYqcGPwe3QN4xCBiGNbrqq9wpW1XCecChwaQdVOsRDpPCpeoolPdxeXp3WNB9PHVzWBHlygy4NJCCrFHREv6bDt0VGwJZASkpONmm1UseGeFKAQexgaAkrfYWl3AGxWOLL2AIMBNbCXpktmS3k3vHeYjGCPBa43wJTurO3ZFVpQSJdAZGLoHTyk1upkjxMEaIxum3iIARcCa5kSkFAW5fi1mUlL9eyOsaanFmOMruwvEdE3ZYzsRSzo5ewRLXyVPPEvknt8ij4DvCg2O7xOgBCUprEzV4z1WekSpUgI8DT2mrnSOXKRfQavwuKA1F+tFnMKdJSUpMA7wQAifWRkMgjUKKZE4lBl6MCM4B1pq1P4uIjDE6Pq6rL0FnW1nIFmta5vrSvq/Ch4tpqG/ZNyyWa5jZPktq81eYv8Bt5s4iFITOp4AAAAASUVORK5CYII=) repeat}.settings-wrapper .settings-title[data-v-dd7cfcb2]{font-size:18px;line-height:22px;margin-bottom:28px;font-family:FZZCYSK;font-weight:400}.settings-wrapper .setting-list[data-v-dd7cfcb2]{max-height:calc(70vh - 50px);overflow:auto}.settings-wrapper .setting-list ul[data-v-dd7cfcb2]{list-style:none outside none;margin:0;padding:0}.settings-wrapper .setting-list ul li[data-v-dd7cfcb2]{list-style:none outside none}.settings-wrapper .setting-list ul li i[data-v-dd7cfcb2]{font:12px/16px PingFangSC-Regular,-apple-system,Simsun;display:inline-block;min-width:48px;margin-right:16px;vertical-align:middle;color:#666}.settings-wrapper .setting-list ul li .theme-item[data-v-dd7cfcb2]{line-height:32px;width:34px;height:34px;margin-right:16px;margin-top:5px;border-radius:100%;display:inline-block;cursor:pointer;text-align:center;vertical-align:middle}.settings-wrapper .setting-list ul li .theme-item .iconfont[data-v-dd7cfcb2]{display:none}.settings-wrapper .setting-list ul li .selected[data-v-dd7cfcb2]{color:#ed4259}.settings-wrapper .setting-list ul li .selected .iconfont[data-v-dd7cfcb2]{display:inline}.settings-wrapper .setting-list ul .font-list[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .infinite-loading[data-v-dd7cfcb2]{margin-top:28px}.settings-wrapper .setting-list ul .font-list .font-item[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-dd7cfcb2]{width:78px;height:34px;cursor:pointer;margin-right:16px;border-radius:2px;text-align:center;vertical-align:middle;display:inline-block;font:14px/34px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.settings-wrapper .setting-list ul .font-list .font-item-input[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .infinite-loading .font-item-input[data-v-dd7cfcb2]{width:168px;color:#000}.settings-wrapper .setting-list ul .font-list .selected[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .infinite-loading .selected[data-v-dd7cfcb2]{color:#ed4259;border:1px solid #ed4259}.settings-wrapper .setting-list ul .font-list .font-item[data-v-dd7cfcb2]:hover,.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-dd7cfcb2]:hover,.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-dd7cfcb2]:hover,.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-dd7cfcb2]:hover{border:1px solid #ed4259;color:#ed4259}.settings-wrapper .setting-list ul .font-size[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .read-width[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .letter-spacing[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .line-spacing[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .paragraph-spacing[data-v-dd7cfcb2]{margin-top:28px}.settings-wrapper .setting-list ul .font-size .resize[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .read-width .resize[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .letter-spacing .resize[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .line-spacing .resize[data-v-dd7cfcb2],.settings-wrapper .setting-list ul .paraLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
@charset "UTF-8";.books-wrapper[data-v-0f5f0160]{overflow:auto}.books-wrapper .wrapper[data-v-0f5f0160]{display:grid;grid-template-columns:repeat(auto-fill,380px);justify-content:space-around;grid-gap:10px}.books-wrapper .wrapper .book[data-v-0f5f0160]{-webkit-user-select:none;user-select:none;display:flex;cursor:pointer;margin-bottom:18px;padding:24px;width:360px;flex-direction:row;justify-content:space-around}.books-wrapper .wrapper .book .cover-img[data-v-0f5f0160],.books-wrapper .wrapper .book .cover-img .cover[data-v-0f5f0160]{width:84px;height:112px}.books-wrapper .wrapper .book .info[data-v-0f5f0160]{display:flex;flex-direction:column;justify-content:space-around;align-items:left;height:112px;margin-left:20px;flex:1;overflow:hidden}.books-wrapper .wrapper .book .info .name[data-v-0f5f0160]{width:fit-content;font-size:16px;font-weight:700;color:#33373d}.books-wrapper .wrapper .book .info .sub[data-v-0f5f0160]{display:flex;flex-direction:row;align-items:baseline;justify-content:var(--2a51eeb0);font-size:12px;font-weight:600;color:#6b6b6b}.books-wrapper .wrapper .book .info .sub .tags[data-v-0f5f0160] .el-tag{margin-right:.5em}.books-wrapper .wrapper .book .info .sub .update-info[data-v-0f5f0160]{display:flex}.books-wrapper .wrapper .book .info .sub .update-info .dot[data-v-0f5f0160]{margin:0 7px}.books-wrapper .wrapper .book .info .intro[data-v-0f5f0160],.books-wrapper .wrapper .book .info .dur-chapter[data-v-0f5f0160],.books-wrapper .wrapper .book .info .last-chapter[data-v-0f5f0160]{color:#969ba3;font-size:13px;margin-top:3px;font-weight:500;word-wrap:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;text-align:left}.books-wrapper .wrapper .book[data-v-0f5f0160]:hover{background:#0000001a;transition-duration:.5s}.books-wrapper .wrapper[data-v-0f5f0160]:last-child{margin-right:auto}.books-wrapper[data-v-0f5f0160]::-webkit-scrollbar{width:0!important}@media screen and (max-width: 750px){.books-wrapper .wrapper[data-v-0f5f0160]{display:flex;flex-direction:column}.books-wrapper .wrapper .book[data-v-0f5f0160]{box-sizing:border-box;width:100%;margin-bottom:0;padding:10px 20px}}body{padding:0;margin:0;height:100vh}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50;margin:0;height:100%}@font-face{font-family:FZZCYSK;src:local("☺"),url(./shelffont-D-W4UqG-.ttf);font-style:normal;font-weight:400}.index-wrapper[data-v-ea3fcb53]{height:100%;width:100%;display:flex;flex-direction:row}.index-wrapper .navigation-wrapper[data-v-ea3fcb53]{width:260px;min-width:260px;padding:48px 36px;background-color:#f7f7f7}.index-wrapper .navigation-wrapper .navigation-title[data-v-ea3fcb53]{font-size:24px;font-weight:500;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .navigation-sub-title[data-v-ea3fcb53]{font-size:16px;font-weight:300;font-family:FZZCYSK;margin-top:16px;color:#b1b1b1}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-ea3fcb53]{border-radius:50%;margin-top:24px}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-ea3fcb53] .el-input__wrapper{border-radius:50px;border-color:#e3e3e3}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-ea3fcb53]{display:flex;flex-direction:column}.index-wrapper .navigation-wrapper .recent-wrapper[data-v-ea3fcb53]{margin-top:36px}.index-wrapper .navigation-wrapper .recent-wrapper .recent-title[data-v-ea3fcb53]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent[data-v-ea3fcb53]{margin:18px 0}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent .recent-book[data-v-ea3fcb53]{font-size:10px;cursor:pointer}.index-wrapper .navigation-wrapper .setting-wrapper[data-v-ea3fcb53]{margin-top:36px}.index-wrapper .navigation-wrapper .setting-wrapper .setting-title[data-v-ea3fcb53]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .setting-wrapper .no-point[data-v-ea3fcb53]{pointer-events:none}.index-wrapper .navigation-wrapper .setting-wrapper .setting-connect[data-v-ea3fcb53]{font-size:8px;margin-top:16px;cursor:pointer}.index-wrapper .navigation-wrapper .bottom-icons[data-v-ea3fcb53]{position:fixed;bottom:0;height:120px;width:260px;align-items:center;display:flex;flex-direction:row}.index-wrapper .shelf-wrapper[data-v-ea3fcb53]{padding:48px;width:100%;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden}@media screen and (max-width: 750px){.index-wrapper[data-v-ea3fcb53]{overflow-x:hidden;flex-direction:column}.index-wrapper .navigation-wrapper[data-v-ea3fcb53]{padding:20px 24px;box-sizing:border-box;width:100%}.index-wrapper .navigation-wrapper .navigation-title-wrapper[data-v-ea3fcb53]{white-space:nowrap;display:flex;justify-content:space-between;align-items:flex-end}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-ea3fcb53]{flex-directiLine truncated
|
||||
@charset "UTF-8";.books-wrapper[data-v-0f5f0160]{overflow:auto}.books-wrapper .wrapper[data-v-0f5f0160]{display:grid;grid-template-columns:repeat(auto-fill,380px);justify-content:space-around;grid-gap:10px}.books-wrapper .wrapper .book[data-v-0f5f0160]{-webkit-user-select:none;user-select:none;display:flex;cursor:pointer;margin-bottom:18px;padding:24px;width:360px;flex-direction:row;justify-content:space-around}.books-wrapper .wrapper .book .cover-img[data-v-0f5f0160],.books-wrapper .wrapper .book .cover-img .cover[data-v-0f5f0160]{width:84px;height:112px}.books-wrapper .wrapper .book .info[data-v-0f5f0160]{display:flex;flex-direction:column;justify-content:space-around;align-items:left;height:112px;margin-left:20px;flex:1;overflow:hidden}.books-wrapper .wrapper .book .info .name[data-v-0f5f0160]{width:fit-content;font-size:16px;font-weight:700;color:#33373d}.books-wrapper .wrapper .book .info .sub[data-v-0f5f0160]{display:flex;flex-direction:row;align-items:baseline;justify-content:var(--2a51eeb0);font-size:12px;font-weight:600;color:#6b6b6b}.books-wrapper .wrapper .book .info .sub .tags[data-v-0f5f0160] .el-tag{margin-right:.5em}.books-wrapper .wrapper .book .info .sub .update-info[data-v-0f5f0160]{display:flex}.books-wrapper .wrapper .book .info .sub .update-info .dot[data-v-0f5f0160]{margin:0 7px}.books-wrapper .wrapper .book .info .intro[data-v-0f5f0160],.books-wrapper .wrapper .book .info .dur-chapter[data-v-0f5f0160],.books-wrapper .wrapper .book .info .last-chapter[data-v-0f5f0160]{color:#969ba3;font-size:13px;margin-top:3px;font-weight:500;word-wrap:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;text-align:left}.books-wrapper .wrapper .book[data-v-0f5f0160]:hover{background:#0000001a;transition-duration:.5s}.books-wrapper .wrapper[data-v-0f5f0160]:last-child{margin-right:auto}.books-wrapper[data-v-0f5f0160]::-webkit-scrollbar{width:0!important}@media screen and (max-width: 750px){.books-wrapper .wrapper[data-v-0f5f0160]{display:flex;flex-direction:column}.books-wrapper .wrapper .book[data-v-0f5f0160]{box-sizing:border-box;width:100%;margin-bottom:0;padding:10px 20px}}body{padding:0;margin:0;height:100vh}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50;margin:0;height:100%}@font-face{font-family:FZZCYSK;src:local("☺"),url(./shelffont-D-W4UqG-.ttf);font-style:normal;font-weight:400}.index-wrapper[data-v-5061e9c0]{height:100%;width:100%;display:flex;flex-direction:row}.index-wrapper .navigation-wrapper[data-v-5061e9c0]{width:260px;min-width:260px;padding:48px 36px;background-color:#f7f7f7}.index-wrapper .navigation-wrapper .navigation-title[data-v-5061e9c0]{font-size:24px;font-weight:500;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .navigation-sub-title[data-v-5061e9c0]{font-size:16px;font-weight:300;font-family:FZZCYSK;margin-top:16px;color:#b1b1b1}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-5061e9c0]{border-radius:50%;margin-top:24px}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-5061e9c0] .el-input__wrapper{border-radius:50px;border-color:#e3e3e3}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-5061e9c0]{display:flex;flex-direction:column}.index-wrapper .navigation-wrapper .recent-wrapper[data-v-5061e9c0]{margin-top:36px}.index-wrapper .navigation-wrapper .recent-wrapper .recent-title[data-v-5061e9c0]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent[data-v-5061e9c0]{margin:18px 0}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent .recent-book[data-v-5061e9c0]{font-size:10px;cursor:pointer}.index-wrapper .navigation-wrapper .setting-wrapper[data-v-5061e9c0]{margin-top:36px}.index-wrapper .navigation-wrapper .setting-wrapper .setting-title[data-v-5061e9c0]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .setting-wrapper .no-point[data-v-5061e9c0]{pointer-events:none}.index-wrapper .navigation-wrapper .setting-wrapper .setting-connect[data-v-5061e9c0]{font-size:8px;margin-top:16px;cursor:pointer}.index-wrapper .navigation-wrapper .bottom-icons[data-v-5061e9c0]{position:fixed;bottom:0;height:120px;width:260px;align-items:center;display:flex;flex-direction:row}.index-wrapper .shelf-wrapper[data-v-5061e9c0]{padding:48px;width:100%;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden}@media screen and (max-width: 750px){.index-wrapper[data-v-5061e9c0]{overflow-x:hidden;flex-direction:column}.index-wrapper .navigation-wrapper[data-v-5061e9c0]{padding:20px 24px;box-sizing:border-box;width:100%}.index-wrapper .navigation-wrapper .navigation-title-wrapper[data-v-5061e9c0]{white-space:nowrap;display:flex;justify-content:space-between;align-items:flex-end}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-5061e9c0]{flex-directiLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{d as J,a2 as $,p as w,o as u,e as h,h as e,F as U,O as W,t as g,c as ee,w as b,g as z,L as A,u as a,a3 as O,y as C,a4 as te,N as se,a5 as oe,S as ae,f as I,z as ne,K as re,s as T,a6 as ie,m as x,H as ce,A as le}from"./vendor-DyE_jpJ0.js";import{d as de,A as y,i as ue,_ as Z,u as pe,l as D,v as he,s as ge,p as me,b as H}from"./index-CoMQMWtZ.js";import{u as fe}from"./loading-DO4FBnCG.js";const ve={class:"books-wrapper"},_e={class:"wrapper"},we=["onClick"],ye={class:"cover-img"},Be=["src"],Se={class:"info"},ke={class:"name"},Ae={class:"sub"},Ce={class:"author"},Ie={key:0,class:"tags"},xe={key:1,class:"update-info"},Re={class:"size"},Ee={class:"date"},Le={key:0,class:"intro"},Te={key:1,class:"dur-chapter"},be={class:"last-chapter"},ze=J({__name:"BookItems",props:{books:{},isSearch:{type:Boolean}},emits:["bookClick"],setup(V,{emit:s}){$(i=>({"2a51eeb0":a(k)}));const B=V,R=s,n=i=>R("bookClick",i),S=({bookUrl:i,coverUrl:c})=>c===void 0?y.getProxyCoverUrl(i):ue(c)?y.getProxyCoverUrl(c):c,E=i=>{const c=i.target;c.src=y.getProxyCoverUrl(c.src)},k=w(()=>B.isSearch?"space-between":"flex-start");return(i,c)=>{const m=O;return u(),h("div",ve,[e("div",_e,[(u(!0),h(U,null,W(i.books,r=>{var l;return u(),h("div",{class:"book",key:r.bookUrl,onClick:v=>n(r)},[e("div",ye,[(u(),h("img",{class:"cover",src:S(r),key:r.coverUrl,onErrorOnce:E,alt:"",loading:"lazy"},null,40,Be))]),e("div",Se,[e("div",ke,g(r.name),1),e("div",Ae,[e("div",Ce,g(r.author),1),i.isSearch?(u(),h("div",Ie,[(u(!0),h(U,null,W((l=r.kind)==null?void 0:l.split(",").slice(0,2),v=>(u(),ee(m,{key:v},{default:b(()=>[z(g(v),1)]),_:2},1024))),128))])):A("",!0),i.isSearch?A("",!0):(u(),h("div",xe,[c[0]||(c[0]=e("div",{class:"dot"},"•",-1)),e("div",Re,"共"+g(r.totalChapterNum)+"章",1),c[1]||(c[1]=e("div",{class:"dot"},"•",-1)),e("div",Ee,g(a(de)(r.lastCheckTime)),1)]))]),i.isSearch?(u(),h("div",Le,g(r.intro),1)):A("",!0),i.isSearch?A("",!0):(u(),h("div",Te," 已读:"+g(r.durChapterTitle),1)),e("div",be,"最新:"+g(r.latestChapterTitle),1)])],8,we)}),128))])])}}}),Ve=Z(ze,[["__scopeId","data-v-0f5f0160"]]),Me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAECUlEQVRYR7WXTYhcRRDHq3pY9yKrYBQ8KBsjgvHgwRhiQBTjYZm4Xe8NusawhwS/o9GLoKhgBGPAgJd1NdGIXwtZTbRf9Rqzl6gHTVyDeIkIgnEOghAM6oKHzTJd0sO8Zaa338zb7NjwmJn++Ndv+lVVVyOsoM3Ozl69sLBAiHiDc26NUuoKv9w5d14p9aeI/DI4OMgjIyN/lJXFMhOttQ8BgBaR0TLzEXEGAKzW+lCv+V0BmLmGiLtF5M5eQrFxRPxaRCaI6LOi9YUAzPwGADxxMYYjayaJ6MkoZKyTmU8AwF19Mp7LfElEW0LNZTvAzIcBYFufjedy00T0QLt2B4AxZo9S6qX/yXhT1jn3cpqme3IbSwDM/DgAvNlu3Dm3Uyl1HAA2IOJ2EdleEu5Io9H4EBHPVCqVLSISRsMuInrLazUBpqamhoaGhr4TkRsDgLVpmtbzPmPMLQBwOwD4vvzxw8P5IyJztVrtVL4my7L1iPhTx7Yj/jw/P79pfHx8vgmQZdkLiPhK+O8GBgauqVarv5f819FpxpjLlVJ/hYMi8mKSJHubAMz8KwBcF1EYI6IjqwRIlFImonGWiNZhlmVVRDxWYGTVAMx8HwB8EtMXka1orT0gIo9GJrxNRLH+FW8IMx8EgEeW5QDEgx5gTkQ2Bk7yr9b60hVb6rKAmc8BwJWBne+x4P3XiWhtPwGstV9FzpSzHuBvALgsMHaaiDp2ZbUwWZZNIuKuQOcfD7AAAJeEcaq1Xr9ao+3rmdknnscCzQse4LdWEukYazQaa2q12vl+QTDztwCwOdCr+zA8iYi3RQwREdl+ADDz9QDwIwB0OLaInPJRcEhEHoyEyAmt9d39ALDW2lg1hYjv+lfgC4WJgkTxcJIkPcuqbpC+qgKATwvm7PYAGwDgdBeRZ4notYvZCWPMDqXUe13W3to8C6y10yJyv//u6zj/2R6ziPiRiBwt6xPMrBExFZEdRcYR8WOt9bb8MNoKAJ+3Jvtwed05d4dSKtz+c4h4VGsdrRWttZMici8AXFVix+4homNLBUmWZQcQMc/9x4mommXZ84i4t11MKbV5dHR06bxvH5uZmbnZOfdN6O0RmMNE1CxulgCstdeKyBcAcFPrVTyltZ4wxiSVSuXplkhda72zh9P1rClFZFOSJHMdAP5Hq3rxR6eH+IGIvIOuqFlr94nIc10WdRzxy6riAMJnr2nn3JlcME3TppMWNWvtfhF5pmB8WX0RvZgEEEtaYUUbM2KtfUdE/FUubNHipvBmZIxZp5TaDwBprlQGIHLqzSHiPq01x4B7Xk6Z2d8TfDwPlwFozfd1f90598Hi4uKrY2NjFwrzQVkP81nNi/byAWOMv8gOp2n6fhnt/wDqJrRWLmhIrwAAAABJRU5ErkJggg==",Pe={class:"navigation-wrapper"},Ne={class:"search-wrapper"},Ue={class:"bottom-wrapper"},We={class:"recent-wrapper"},De={class:"reading-recent"},He={class:"setting-wrapper"},Je={class:"setting-item"},Oe={class:"bottom-icons"},Ze={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},Fe={class:"bottom-icon"},Ke=["src"],Ye=J({__name:"BookShelf",setup(V){const s=pe(),B=w(()=>s.isNight),R=o=>{try{o!==void 0&&s.setConfig(o)}catch{x.info("阅读界面配置解析错误")}},n=C({name:"尚无阅读记录",author:"",bookUrl:"",chapterIndex:0,chapterPos:0,isSeachBook:!1}),S=C(),{showLoading:E,closeLoading:k,loadingWrapper:i,isLoading:c}=fe(S,"正在获取书籍信息"),m=te([]),r=w(()=>s.shelf),l=C(""),v=C(!1);se(()=>{if(!(v.value&&l.value!="")){if(v.value=!1,m.value=[],l.value==""){m.value=r.value;return}m.value=r.value.filter(o=>o.name.includes(l.value)||o.author.includes(l.value))}});const M=()=>{l.value!=""&&(m.value=[],s.clearSearchBooks(),E(),v.value=!0,y.search(l.value,o=>{c&&k();try{s.setSearchBooks(o),m.value=s.searchBooks}catch(t){throw x.error("后端数据错误"),t}},()=>{k(),m.value.length==0&&x.info("搜索结果为空")}))},F=w(()=>s.connectStatus),K=w(()=>s.connectType),Y=w(()=>s.newConnect),Q=()=>{ie.prompt("请输入 后端地址 ( 如:http://127.0.0.1:9527 或者通过内网穿透的地址)","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPlaceholder:Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{d as J,a2 as j,s as M,o as u,e as h,h as e,F as U,P as W,v as g,c as $,w as P,g as T,N as S,u as o,a3 as H,B as I,a4 as ee,O as te,a5 as se,a6 as oe,T as ae,f as C,C as ne,M as re,y as L,a7 as ie,J as le,D as ce,n as b}from"./vendor-Cq9RjTRr.js";import{d as de,A as w,i as ue,_ as O,u as pe,a as he,l as ge,v as ve,s as me,p as fe,b as D}from"./index-CcaAk_ul.js";import{u as _e}from"./loading-DPQW_bh6.js";const we={class:"books-wrapper"},Be={class:"wrapper"},ke=["onClick"],ye={class:"cover-img"},Ae=["src"],Se={class:"info"},Ie={class:"name"},Ce={class:"sub"},xe={class:"author"},Re={key:0,class:"tags"},Ee={key:1,class:"update-info"},Le={class:"size"},be={class:"date"},Me={key:0,class:"intro"},Pe={key:1,class:"dur-chapter"},Te={class:"last-chapter"},Ve=J({__name:"BookItems",props:{books:{},isSearch:{type:Boolean}},emits:["bookClick"],setup(V,{emit:l}){j(r=>({"2a51eeb0":o(y)}));const B=V,x=l,a=r=>x("bookClick",r),k=({bookUrl:r,coverUrl:i})=>i===void 0?w.getProxyCoverUrl(r):ue(i)?w.getProxyCoverUrl(i):i,R=r=>{const i=r.target;i.src=w.getProxyCoverUrl(i.src)},y=M(()=>B.isSearch?"space-between":"flex-start");return(r,i)=>{const v=H;return u(),h("div",we,[e("div",Be,[(u(!0),h(U,null,W(r.books,n=>{var c;return u(),h("div",{class:"book",key:n.bookUrl,onClick:f=>a(n)},[e("div",ye,[(u(),h("img",{class:"cover",src:k(n),key:n.coverUrl,onErrorOnce:R,alt:"",loading:"lazy"},null,40,Ae))]),e("div",Se,[e("div",Ie,g(n.name),1),e("div",Ce,[e("div",xe,g(n.author),1),r.isSearch?(u(),h("div",Re,[(u(!0),h(U,null,W((c=n.kind)==null?void 0:c.split(",").slice(0,2),f=>(u(),$(v,{key:f},{default:P(()=>[T(g(f),1)]),_:2},1024))),128))])):S("",!0),r.isSearch?S("",!0):(u(),h("div",Ee,[i[0]||(i[0]=e("div",{class:"dot"},"•",-1)),e("div",Le,"共"+g(n.totalChapterNum)+"章",1),i[1]||(i[1]=e("div",{class:"dot"},"•",-1)),e("div",be,g(o(de)(n.lastCheckTime)),1)]))]),r.isSearch?(u(),h("div",Me,g(n.intro),1)):S("",!0),r.isSearch?S("",!0):(u(),h("div",Pe," 已读:"+g(n.durChapterTitle),1)),e("div",Te,"最新:"+g(n.latestChapterTitle),1)])],8,ke)}),128))])])}}}),ze=O(Ve,[["__scopeId","data-v-0f5f0160"]]),Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAECUlEQVRYR7WXTYhcRRDHq3pY9yKrYBQ8KBsjgvHgwRhiQBTjYZm4Xe8NusawhwS/o9GLoKhgBGPAgJd1NdGIXwtZTbRf9Rqzl6gHTVyDeIkIgnEOghAM6oKHzTJd0sO8Zaa338zb7NjwmJn++Ndv+lVVVyOsoM3Ozl69sLBAiHiDc26NUuoKv9w5d14p9aeI/DI4OMgjIyN/lJXFMhOttQ8BgBaR0TLzEXEGAKzW+lCv+V0BmLmGiLtF5M5eQrFxRPxaRCaI6LOi9YUAzPwGADxxMYYjayaJ6MkoZKyTmU8AwF19Mp7LfElEW0LNZTvAzIcBYFufjedy00T0QLt2B4AxZo9S6qX/yXhT1jn3cpqme3IbSwDM/DgAvNlu3Dm3Uyl1HAA2IOJ2EdleEu5Io9H4EBHPVCqVLSISRsMuInrLazUBpqamhoaGhr4TkRsDgLVpmtbzPmPMLQBwOwD4vvzxw8P5IyJztVrtVL4my7L1iPhTx7Yj/jw/P79pfHx8vgmQZdkLiPhK+O8GBgauqVarv5f819FpxpjLlVJ/hYMi8mKSJHubAMz8KwBcF1EYI6IjqwRIlFImonGWiNZhlmVVRDxWYGTVAMx8HwB8EtMXka1orT0gIo9GJrxNRLH+FW8IMx8EgEeW5QDEgx5gTkQ2Bk7yr9b60hVb6rKAmc8BwJWBne+x4P3XiWhtPwGstV9FzpSzHuBvALgsMHaaiDp2ZbUwWZZNIuKuQOcfD7AAAJeEcaq1Xr9ao+3rmdknnscCzQse4LdWEukYazQaa2q12vl+QTDztwCwOdCr+zA8iYi3RQwREdl+ADDz9QDwIwB0OLaInPJRcEhEHoyEyAmt9d39ALDW2lg1hYjv+lfgC4WJgkTxcJIkPcuqbpC+qgKATwvm7PYAGwDgdBeRZ4notYvZCWPMDqXUe13W3to8C6y10yJyv//u6zj/2R6ziPiRiBwt6xPMrBExFZEdRcYR8WOt9bb8MNoKAJ+3Jvtwed05d4dSKtz+c4h4VGsdrRWttZMici8AXFVix+4homNLBUmWZQcQMc/9x4mommXZ84i4t11MKbV5dHR06bxvH5uZmbnZOfdN6O0RmMNE1CxulgCstdeKyBcAcFPrVTyltZ4wxiSVSuXplkhda72zh9P1rClFZFOSJHMdAP5Hq3rxR6eH+IGIvIOuqFlr94nIc10WdRzxy6riAMJnr2nn3JlcME3TppMWNWvtfhF5pmB8WX0RvZgEEEtaYUUbM2KtfUdE/FUubNHipvBmZIxZp5TaDwBprlQGIHLqzSHiPq01x4B7Xk6Z2d8TfDwPlwFozfd1f90598Hi4uKrY2NjFwrzQVkP81nNi/byAWOMv8gOp2n6fhnt/wDqJrRWLmhIrwAAAABJRU5ErkJggg==",Ue={class:"navigation-wrapper"},We={class:"search-wrapper"},De={class:"bottom-wrapper"},Je={class:"recent-wrapper"},He={class:"reading-recent"},Oe={class:"setting-wrapper"},Ze={class:"setting-item"},Fe={class:"bottom-icons"},Ke={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},Ye={class:"bottom-icon"},Qe=["src"],qe=J({__name:"BookShelf",setup(V){const l=pe(),B=M(()=>l.isNight),x=s=>{try{s!==void 0&&l.setConfig(s)}catch{b.info("阅读界面配置解析错误")}},a=I({name:"尚无阅读记录",author:"",bookUrl:"",chapterIndex:0,chapterPos:0,isSeachBook:!1}),k=I(),{showLoading:R,closeLoading:y,loadingWrapper:r,isLoading:i}=_e(k,"正在获取书籍信息"),v=ee([]),n=M(()=>l.shelf),c=I(""),f=I(!1);te(()=>{if(!(f.value&&c.value!="")){if(f.value=!1,v.value=[],c.value==""){v.value=n.value;return}v.value=n.value.filter(s=>s.name.includes(c.value)||s.author.includes(c.value))}});const z=()=>{c.value!=""&&(v.value=[],l.clearSearchBooks(),R(),f.value=!0,w.search(c.value,s=>{i&&y();try{l.setSearchBooks(s),v.value=l.searchBooks}catch(t){throw b.error("后端数据错误"),t}},()=>{y(),v.value.length==0&&b.info("搜索结果为空")}))},A=he(),{connectStatus:Z,connectType:F,newConnect:K}=se(A),Y=()=>{ie.prompt("请输入 后端地址 ( 如:http://127.0.0.1:9527 或者通过内网穿透的地址)","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPlaceholLine truncated
|
||||
@@ -0,0 +1,10 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BookShelf-CaphAGEv.js","./vendor-Cq9RjTRr.js","./vendor-B4LKkcA9.css","./loading-DPQW_bh6.js","./loading-DyaW7RXx.css","./BookShelf-6UPZfG3x.css","./BookChapter-CmD5n20t.js","./BookChapter-iYunK_yl.css"])))=>i.map(i=>d[i]);
|
||||
import{r as $e,c as C,o as g,a as le,b as ae,d as K,e as E,f as h,w as p,g as y,u as i,l as V,h as S,F as N,E as je,i as ve,j as Ae,k as Ke,m as ce,n as k,t as we,p as We,q as Ce,s as A,v as ee,x as Ue,y as Be,z as ue,A as He,B as J,C as M,D as Ee,G as Me,H as Fe,I as me,V as qe,J as te,K as ze,L as de,M as Ge,N as I,O as Ye,P as W,Q as xe,R as Le,S as z,T as Qe,U as Xe,W as Ze,X as et,Y as tt,Z as ot,_ as nt,$ as rt,a0 as st,a1 as it}from"./vendor-Cq9RjTRr.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function t(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(r){if(r.ep)return;r.ep=!0;const s=t(r);fetch(r.href,s)}})();const j=(e,o)=>{const t=e.__vccOpts||e;for(const[n,r]of o)t[n]=r;return t},lt={};function at(e,o){const t=$e("router-view");return g(),C(t)}const Re=j(lt,[["render",at]]),ct="modulepreload",ut=function(e,o){return new URL(e,o).href},Se={},fe=function(o,t,n){let r=Promise.resolve();if(t&&t.length>0){const c=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),b=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(t.map(w=>{if(w=ut(w,n),w in Se)return;Se[w]=!0;const U=w.endsWith(".css"),x=U?'[rel="stylesheet"]':"";if(!!n)for(let _=c.length-1;_>=0;_--){const v=c[_];if(v.href===w&&(!U||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${w}"]${x}`))return;const l=document.createElement("link");if(l.rel=U?"stylesheet":ct,U||(l.as="script"),l.crossOrigin="",l.href=w,b&&l.setAttribute("nonce",b),document.head.appendChild(l),U)return new Promise((_,v)=>{l.addEventListener("load",_),l.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${w}`)))})}))}function s(c){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=c,window.dispatchEvent(a),!a.defaultPrevented)throw c}return r.then(c=>{for(const a of c||[])a.status==="rejected"&&s(a.reason);return o().catch(s)})},Ie=[{path:"/",name:"shelf",component:()=>fe(()=>import("./BookShelf-CaphAGEv.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},{path:"/chapter",name:"chapter",component:()=>fe(()=>import("./BookChapter-CmD5n20t.js"),__vite__mapDeps([6,1,2,3,4,7]),import.meta.url)}];le({history:ae(),routes:Ie});const dt={style:{"margin-top":"20px"}},pt=K({__name:"SourceHelp",setup(e){return(o,t)=>{const n=je,r=ve;return g(),E(N,null,[h(n,{icon:i(V),href:"/help/#appHelp",target:"_blank"},{default:p(()=>t[0]||(t[0]=[y("APP帮助文档")])),_:1},8,["icon"]),t[19]||(t[19]=S("br",null,null,-1)),h(n,{icon:i(V),href:"/help/#ruleHelp",target:"_blank"},{default:p(()=>t[1]||(t[1]=[y("书源制作教程")])),_:1},8,["icon"]),t[20]||(t[20]=S("br",null,null,-1)),h(n,{icon:i(V),href:"/help/#jsHelp",target:"_blank"},{default:p(()=>t[2]||(t[2]=[y("js变量和函数")])),_:1},8,["icon"]),t[21]||(t[21]=S("br",null,null,-1)),h(n,{icon:i(V),href:"/help/#xpathHelp",target:"_blank"},{default:p(()=>t[3]||(t[3]=[y("xpath语法教程")])),_:1},8,["icon"]),t[22]||(t[22]=S("br",null,null,-1)),h(n,{icon:i(V),href:"/help/#regexHelp",target:"_blank"},{default:p(()=>t[4]||(t[4]=[y("正则表达式教程")])),_:1},8,["icon"]),t[23]||(t[23]=S("br",null,null,-1)),h(n,{icon:i(V),href:"/help/#txtTocRuleHelp",target:"_blank"},{default:p(()=>t[5]||(t[5]=[y("txt目录正则说明")])),_:1},8,["icon"]),t[24]||(t[24]=S("br",null,null,-1)),h(n,{icon:i(V),href:"/help/#debugHelp",target:"_blank"},{default:p(()=>t[6]||(t[6]=[y("书源调试说明")])),_:1},8,["icon"]),t[25]||(t[25]=S("br",null,null,-1)),h(n,{icon:i(V),href:"/help/#httpTTSHelp",target:"_blank"},{default:p(()=>t[7]||(t[7]=[y("在线朗读规则")])),_:1},8,["icon"]),t[26]||(t[26]=S("br",null,null,-1)),h(n,{icon:i(V),href:"/help/#webDavBookHelp",target:"_blank"},{default:p(()=>t[8]||(t[8]=[y(" WebDav书籍简明使用教程")])),_:1},8,["icon"]),t[27]||(t[27]=S("br",null,null,-1)),h(n,{icon:i(V),href:"/help/#webDavHelp",target:"_blank"},{default:p(()=>t[9]||(t[9]=[y(" WebDav备份教程")])),_:1},8,["icon"]),t[28]||(t[28]=S("br",null,null,-1)),h(n,{icon:i(V),href:"https://regexr-cn.com/",target:"_blank"},{default:p(()=>t[10]||(t[10]=[y("正则表达式在线验证工具")])),_:1},8,["icon"]),t[29]||(t[29]=S("br",null,null,-1)),S("div",dt,[S("span",null,[h(r,null,{default:p(()=>t[11]||(t[11]=[S("code",null,"^$()[]{}.?+*|",-1),y(" 这些是Java正则特殊符号,匹配需转义")])),_:1})]),t[15]||(t[15]=S("br",null,null,-1)),S("span",null,[h(r,null,{default:p(()=>t[12]||(t[12Line truncated
|
||||
`},s=async()=>{t.value="";try{await P.saveSource(o.currentSource)}catch(a){throw o.debugFinish(),a}P.debug(o.currentSourceUrl,n.value||o.searchKey,r,o.debugFinish)},c=A(()=>/bookSource/i.test(window.location.href));return(a,b)=>{const w=te;return g(),E(N,null,[i(c)?(g(),C(w,{key:0,id:"debug-key",modelValue:i(n),"onUpdate:modelValue":b[0]||(b[0]=U=>M(n)?n.value=U:null),placeholder:"搜索书名、作者","prefix-icon":i(Ee),style:{"padding-bottom":"4px"},onKeydown:Ge(s,["enter"])},null,8,["modelValue","prefix-icon"])):I("",!0),h(w,{id:"debug-text",modelValue:i(t),"onUpdate:modelValue":b[1]||(b[1]=U=>M(t)?t.value=U:null),type:"textarea",readonly:"",rows:29,placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}}),Xt=j(Qt,[["__scopeId","data-v-3ac68c8a"]]),Zt=K({__name:"SourceJson",setup(e){const o=F(),t=J(""),n=async r=>{try{o.changeEditTabSource(JSON.parse(r))}catch{k({message:"粘贴的源格式错误",type:"error"})}};return Ye(async()=>{const r=o.editTabSource;Object.keys(r).length>0?t.value=JSON.stringify(r,null,4):t.value=""}),(r,s)=>{const c=te;return g(),C(c,{id:"source-json",modelValue:i(t),"onUpdate:modelValue":s[0]||(s[0]=a=>M(t)?t.value=a:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:30,onChange:n,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}}),eo=j(Zt,[["__scopeId","data-v-f62d9369"]]),to=K({__name:"SourceTabTools",setup(e){const o=F(),t=A({get:()=>o.currentTab,set:r=>o.currentTab=r}),n=J([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(r,s)=>{const c=eo,a=Xt,b=Yt,w=gt,U=xe,x=Le;return g(),C(x,{modelValue:i(t),"onUpdate:modelValue":s[0]||(s[0]=d=>M(t)?t.value=d:null)},{default:p(()=>[(g(!0),E(N,null,W(i(n),(d,l)=>(g(),C(U,{key:d[0],name:d[0],label:d[1]},{default:p(()=>[l==0?(g(),C(c,{key:0})):I("",!0),l==1?(g(),C(a,{key:1})):I("",!0),l==2?(g(),C(b,{key:2})):I("",!0),l==3?(g(),C(w,{key:3})):I("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}}),oo=j(to,[["__scopeId","data-v-fd81540f"]]),no={class:"menu flex-column-center"},ro={class:"hotkeys-header flex-space-between"},so=["id"],io={key:0},lo={class:"hotkeys-settings flex-column-center"},ao={class:"title"},co={class:"hotkeys-item__content"},uo={key:0},po={key:0},go=K({__name:"ToolBar",setup(e){const o=F(),t=()=>{const f=k({message:"加载中……",showClose:!0,duration:0});P.getSources().then(({data:u})=>{u.isSuccess?(o.changeTabName("editList"),o.saveSources(u.data),k({message:`成功拉取${u.data.length}条源`,type:"success"})):k({message:u.errorMsg??"后端错误",type:"error"})}).finally(()=>f.close())},n=()=>{const f=o.sources;if(o.changeTabName("editList"),f.length===0)return k({message:"空空如也",type:"info"});k({message:"正在推送中",type:"info"}),P.saveSources(f).then(({data:u})=>{if(u.isSuccess){const m=u.data;if(Array.isArray(m)){let D="";f.length>m.length&&(D=`
|
||||
推送失败的源将用红色字体标注!`,o.setPushReturnSources(m)),k({message:`批量推送源到「阅读3.0APP」
|
||||
共计: ${f.length} 条
|
||||
成功: ${m.length} 条
|
||||
失败: ${f.length-m.length} 条${D}`,type:"success"})}}else k({message:`批量推送源失败!
|
||||
ErrorMsg: ${u.errorMsg}`,type:"error"})})},r=()=>{o.changeTabName("editTab"),o.changeEditTabSource(o.currentSource)},s=()=>{o.changeCurrentSource(o.editTabSource)},c=()=>{o.editHistoryUndo()},a=()=>{o.clearEdit(),k({message:"已清除",type:"success"})},b=()=>{o.clearEdit(),o.clearAllHistory(),k({message:"已清除所有历史记录",type:"success"})},w=()=>{const f=o.currentSource;$t(f)?P.saveSource(f).then(({data:u})=>{const m=he(f);u.isSuccess?(k({message:`源《${m}》已成功保存到「阅读3.0APP」`,type:"success"}),o.saveCurrentSource()):k({message:`源《${m}》保存失败!
|
||||
ErrorMsg: ${u.errorMsg}`,type:"error"})}):k({message:"请检查<必填>项是否全部填写",type:"error"})},U=()=>{o.startDebug()},x=J(Array.of({name:"⇈推送源",hotKeys:[],action:n},{name:"⇊拉取源",hotKeys:[],action:t},{name:"⋙生成源",hotKeys:[],action:r},{name:"⋘编辑源",hotKeys:[],action:s},{name:"✗清空表单",hotKeys:[],action:a},{name:"↶撤销操作",hotKeys:[],action:c},{name:"↷重做操作",hotKeys:[],action:b},{name:"⇏调试源",hotKeys:[],action:U},{name:"✓保存源",hotKeys:[],action:w})),d=J(!0),l=J(!1),_=J(-1),v=()=>{l.value||(d.value=!1),l.value=!1};de(d,f=>{if(!f){z.unbind("*"),Q(),q();return}Q(),z.unbind(),z("*",u=>{u.preventDefault();const m=z.getPressedKeyString();m.length==1&&m[0]=="esc"||l.value&&_.value>-1&&(x.value[_.value].hotKeys=m)})},{immediate:!0});const L=f=>{l.value=!0,k({message:"按ESC键或者点击空白处结束录入",type:"info"}),x.value[f].hotKeys=[],_.value=f},O=()=>{const f=[];x.value.forEach(({hotKeys:u})=>{f.push(u)}),T(f),d.value=!1},q=()=>{z.filter=()=>!0,x.value.forEach(({hotKeys:f,action:u})=>{f.length!=0&&z(f.join("+"),m=>{m.preventDefault(),u.call(null)})})},T=f=>{localStorage.setItem("legado_web_hotkeys",JSON.stringify(f))};function Q(){try{const f=localStorage.getItem("legado_web_hotkeys");if(f===null)return!1;const u=JSON.parse(f);return!Array.isArray(u)||u.length==0?!1:(x.value.forEach((m,D)=>m.hotKeys=u[D]),!0)}catch{k({message:"快捷键配置错误",type:"error"}),localStorage.removeItem("legado_web_hotkeys")}return!1}return Qe(()=>{Q()&&(d.value=!1)}),(f,u)=>{const m=ue,D=ve,Je=Ze;return g(),E(N,null,[S("div",no,[(g(!0),E(N,null,W(i(x),R=>(g(),C(m,{size:"large",key:R.name,onClick:R.action},{default:p(()=>[y(ee(R.name),1)]),_:2},1032,["onClick"]))),128)),h(m,{size:"large",onClick:u[0]||(u[0]=()=>d.value=!0)},{default:p(()=>u[2]||(u[2]=[y("快捷键")])),_:1})]),h(Je,{modelValue:i(d),"onUpdate:modelValue":u[1]||(u[1]=R=>M(d)?d.value=R:null),"show-close":!1,"before-close":v},{header:p(({titleClass:R,titleId:re})=>[S("div",ro,[S("div",{id:re,class:Be(R)},[u[4]||(u[4]=y(" 快捷键设置 ")),i(l)?(g(),E("span",io,[h(D,null,{default:p(()=>u[3]||(u[3]=[y(" / 录入中 ")])),_:1})])):I("",!0)],10,so),h(m,{disabled:i(l),onClick:O,icon:i(Xe)},{default:p(()=>u[5]||(u[5]=[y("保存")])),_:1},8,["disabled","icon"])])]),default:p(()=>[S("div",lo,[(g(!0),E(N,null,W(i(x),(R,re)=>(g(),E("div",{key:R.name,class:"hotkeys-item flex-space-between"},[S("span",ao,[h(D,null,{default:p(()=>[y(ee(R.name),1)]),_:2},1024)]),S("div",co,[(g(!0),E(N,null,W(R.hotKeys,(se,Pe)=>(g(),E("div",{key:se},[S("kbd",null,ee(se),1),Pe+1<R.hotKeys.length?(g(),E("span",uo,[h(D,null,{default:p(()=>u[6]||(u[6]=[y("+")])),_:1})])):I("",!0)]))),128)),R.hotKeys.length==0?(g(),E("span",po,"未设置")):I("",!0)]),h(m,{disabled:i(l),text:"",icon:i(Ue),onClick:se=>L(re)},{default:p(()=>u[7]||(u[7]=[y("编辑")])),_:2},1032,["disabled","icon","onClick"])]))),128))])]),_:1},8,["modelValue"])],64)}}}),ho=j(go,[["__scopeId","data-v-7fe41be4"]]),mo=K({__name:"SourceTabForm",props:{config:{}},setup(e){const o=F(),t=A(()=>o.currentSource);return(n,r)=>{const s=te,c=et,a=tt,b=ot,w=nt,U=rt,x=st,d=xe,l=Le;return g(),C(l,{id:"source-edit"},{default:p(()=>[(g(!0),E(N,null,W(Object.values(n.config),({name:_,children:v})=>(g(),C(d,{label:_,key:_},{default:p(()=>[h(x,{"label-position":"right","label-width":"auto"},{default:p(()=>[(g(!0),E(N,null,W(v,({type:L,title:O,namespace:q,id:T,array:Q,hint:f,required:u=!1})=>(g(),C(U,{label:O,key:O,required:u},{default:p(()=>[L=="String"&&typeof q>"u"?(g(),C(s,{key:0,type:"textarea",modelValue:i(t)[T],"onUpdate:modelValue":m=>i(t)[T]=m,placeholder:f,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):I("",!0),L=="String"&&typeof q<"u"?(g(),C(s,{key:1,type:"textarea",modelValue:i(t)[q][T],"onUpdate:modelValue":m=>i(t)[q][T]=m,placeholder:f,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):I("",!0),L==="Boolean"?(g(),C(c,{key:2,modelValue:i(t)[T],"onUpdate:modelValue":m=>i(t)[T]=m},null,8,["modelValue","onUpdate:modelValue"])):I("",!0),L==="Number"?(g(),C(a,{key:3,modelValue:i(t)[T],"onUpdate:modelValue":m=>i(t)[T]=m,min:0},null,8,["modelValue","onUpdate:modelValue"])):I("",!0),L==="Array"?(g(),C(w,{key:4,modelValue:i(t)[T],"onUpdate:modelValue":m=>i(t)[T]=m},{default:p(()=>[(g(!0),E(N,null,W(Q,(m,D)=>(g(),C(b,{value:D,key:m,label:m},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):I("",!0)]),_:2},1032,["label","required"]))),128))]),_:2},1024)]),_:2},1032,["label"]))),128))]),_:1})}}}),So=j(mo,[["__scopeId","data-v-c07c5146"]]),fo={base:{name:"基础",children:[{title:"源类型",id:"bookSourceType",type:"Array",array:["文本","音频","图片","文件"],required:!0},{title:"源域名",id:"bookSourceUrl",type:"String",hint:"通常填写网站主页,例: https://www.qidian.com",required:!0},{title:"源名称",id:"bookSourceName",type:"String",hint:"会显示在源列表",
Line truncated
|
||||
名称2::链接2`},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"变量说明",id:"variableComment",type:"String",hint:"源变量说明"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"}]},list:{name:"列表",children:[{title:"列表规则",id:"ruleArticles",type:"String",hint:"规则结果为List<Element>"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List<String>或String"},{title:"标题规则",id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"内容规则",id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"},{title:"链接拦截",id:"shouldOverrideUrlLoading",type:"String",hint:"填写js,变量url为当前资源链接,返回true拦截"}]},other:{name:"其他",children:[{title:"列表样式",id:"articleStyle",type:"Array",array:["默认","大图","双列"]},{title:"加载地址",id:"loadWithBaseUrl",type:"Boolean"},{title:"启用JS",id:"enableJs",type:"Boolean"},{title:"启用",id:"enabled",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"单URL",id:"singleUrl",type:"Boolean"},{title:"排序编号",id:"customOrder",type:"Number"}]}},_o={class:"editor"},bo=K({__name:"SourceEditor",setup(e){it();let o;return/bookSource/i.test(location.href)?(o=fo,document.title="书源管理"):(o=yo,document.title="订阅源管理"),(t,n)=>{const r=So,s=ho,c=oo;return g(),E("div",_o,[h(r,{class:"left",config:i(o)},null,8,["config"]),h(s),h(c,{class:"right"})])}}}),ke=j(bo,[["__scopeId","data-v-f2c47af3"]]),Oe=[{path:"/bookSource",name:"book-home",component:ke},{path:"/rssSource",name:"rss-home",component:ke}];le({history:ae(),routes:Oe});const De=le({history:ae(),routes:[Ie,Oe].flat()});De.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});Ce(Re).use(Te).use(De).mount("#app");de(()=>Pt().isNight,e=>{e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")});export{P as A,j as _,Wt as a,ht as b,X as c,wo as d,vo as i,$ as l,Mt as p,yt as s,Pt as u,Dt as v};
|
||||
@@ -1,10 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BookShelf-CA8P-QMk.js","./vendor-DyE_jpJ0.js","./vendor-B4LKkcA9.css","./loading-DO4FBnCG.js","./loading-DyaW7RXx.css","./BookShelf-NtIGhs51.css","./BookChapter-DF8_gTi8.js","./BookChapter-c-elTHGm.css"])))=>i.map(i=>d[i]);
|
||||
import{r as Ne,c as C,o as g,a as se,b as ie,d as A,e as E,f as h,w as p,g as y,u as s,l as V,h as S,F as N,E as Oe,i as _e,j as De,k as Je,m as k,n as be,p as j,t as X,q as ke,s as ve,v as le,x as Pe,y as J,z as K,A as we,B as $e,C as je,D as pe,V as Ae,G as Ce,H as Z,I as Me,J as ae,K as Ke,L as R,M as He,N as We,O as M,P as Ue,Q as Be,R as q,S as Fe,T as qe,U as ze,W as Ge,X as Ye,Y as Qe,Z as Xe,_ as Ze,$ as et,a0 as tt,a1 as ot}from"./vendor-DyE_jpJ0.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function t(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=t(r);fetch(r.href,i)}})();const $=(e,o)=>{const t=e.__vccOpts||e;for(const[n,r]of o)t[n]=r;return t},nt={};function rt(e,o){const t=Ne("router-view");return g(),C(t)}const st=$(nt,[["render",rt]]),it="modulepreload",lt=function(e,o){return new URL(e,o).href},ge={},he=function(o,t,n){let r=Promise.resolve();if(t&&t.length>0){const c=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),b=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(t.map(w=>{if(w=lt(w,n),w in ge)return;ge[w]=!0;const U=w.endsWith(".css"),x=U?'[rel="stylesheet"]':"";if(!!n)for(let _=c.length-1;_>=0;_--){const v=c[_];if(v.href===w&&(!U||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${w}"]${x}`))return;const l=document.createElement("link");if(l.rel=U?"stylesheet":it,U||(l.as="script"),l.crossOrigin="",l.href=w,b&&l.setAttribute("nonce",b),document.head.appendChild(l),U)return new Promise((_,v)=>{l.addEventListener("load",_),l.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${w}`)))})}))}function i(c){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=c,window.dispatchEvent(a),!a.defaultPrevented)throw c}return r.then(c=>{for(const a of c||[])a.status==="rejected"&&i(a.reason);return o().catch(i)})},Ee=[{path:"/",name:"shelf",component:()=>he(()=>import("./BookShelf-CA8P-QMk.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},{path:"/chapter",name:"chapter",component:()=>he(()=>import("./BookChapter-DF8_gTi8.js"),__vite__mapDeps([6,1,2,3,4,7]),import.meta.url)}];se({history:ie(),routes:Ee});const at={style:{"margin-top":"20px"}},ct=A({__name:"SourceHelp",setup(e){return(o,t)=>{const n=Oe,r=_e;return g(),E(N,null,[h(n,{icon:s(V),href:"/help/#appHelp",target:"_blank"},{default:p(()=>t[0]||(t[0]=[y("APP帮助文档")])),_:1},8,["icon"]),t[19]||(t[19]=S("br",null,null,-1)),h(n,{icon:s(V),href:"/help/#ruleHelp",target:"_blank"},{default:p(()=>t[1]||(t[1]=[y("书源制作教程")])),_:1},8,["icon"]),t[20]||(t[20]=S("br",null,null,-1)),h(n,{icon:s(V),href:"/help/#jsHelp",target:"_blank"},{default:p(()=>t[2]||(t[2]=[y("js变量和函数")])),_:1},8,["icon"]),t[21]||(t[21]=S("br",null,null,-1)),h(n,{icon:s(V),href:"/help/#xpathHelp",target:"_blank"},{default:p(()=>t[3]||(t[3]=[y("xpath语法教程")])),_:1},8,["icon"]),t[22]||(t[22]=S("br",null,null,-1)),h(n,{icon:s(V),href:"/help/#regexHelp",target:"_blank"},{default:p(()=>t[4]||(t[4]=[y("正则表达式教程")])),_:1},8,["icon"]),t[23]||(t[23]=S("br",null,null,-1)),h(n,{icon:s(V),href:"/help/#txtTocRuleHelp",target:"_blank"},{default:p(()=>t[5]||(t[5]=[y("txt目录正则说明")])),_:1},8,["icon"]),t[24]||(t[24]=S("br",null,null,-1)),h(n,{icon:s(V),href:"/help/#debugHelp",target:"_blank"},{default:p(()=>t[6]||(t[6]=[y("书源调试说明")])),_:1},8,["icon"]),t[25]||(t[25]=S("br",null,null,-1)),h(n,{icon:s(V),href:"/help/#httpTTSHelp",target:"_blank"},{default:p(()=>t[7]||(t[7]=[y("在线朗读规则")])),_:1},8,["icon"]),t[26]||(t[26]=S("br",null,null,-1)),h(n,{icon:s(V),href:"/help/#webDavBookHelp",target:"_blank"},{default:p(()=>t[8]||(t[8]=[y(" WebDav书籍简明使用教程")])),_:1},8,["icon"]),t[27]||(t[27]=S("br",null,null,-1)),h(n,{icon:s(V),href:"/help/#webDavHelp",target:"_blank"},{default:p(()=>t[9]||(t[9]=[y(" WebDav备份教程")])),_:1},8,["icon"]),t[28]||(t[28]=S("br",null,null,-1)),h(n,{icon:s(V),href:"https://regexr-cn.com/",target:"_blank"},{default:p(()=>t[10]||(t[10]=[y("正则表达式在线验证工具")])),_:1},8,["icon"]),t[29]||(t[29]=S("br",null,null,-1)),S("div",at,[S("span",null,[h(r,null,{default:p(()=>t[11]||(t[11]=[S("code",null,"^$()[]{}.?+*|",-1),y(" 这些是Java正则特殊符号,匹配需转义")])),_:1})]),t[15]||(t[15]=S("br",null,null,-1)),S("span",null,[h(r,null,{default:p(()=>t[12]||(t[12]=Line truncated
|
||||
`},i=async()=>{t.value="";try{await P.saveSource(o.currentSource)}catch(a){throw o.debugFinish(),a}P.debug(o.currentSourceUrl,n.value||o.searchKey,r,o.debugFinish)},c=j(()=>/bookSource/i.test(window.location.href));return(a,b)=>{const w=Z;return g(),E(N,null,[s(c)?(g(),C(w,{key:0,id:"debug-key",modelValue:s(n),"onUpdate:modelValue":b[0]||(b[0]=U=>K(n)?n.value=U:null),placeholder:"搜索书名、作者","prefix-icon":s(we),style:{"padding-bottom":"4px"},onKeydown:Ke(i,["enter"])},null,8,["modelValue","prefix-icon"])):R("",!0),h(w,{id:"debug-text",modelValue:s(t),"onUpdate:modelValue":b[1]||(b[1]=U=>K(t)?t.value=U:null),type:"textarea",readonly:"",rows:29,placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}}),Wt=$(Ht,[["__scopeId","data-v-3ac68c8a"]]),Ft={theme:0,font:0,fontSize:18,readWidth:800,infiniteLoading:!1,customFontName:"",jumpDuration:1e3,spacing:{paragraph:1,line:.8,letter:0}};let fe;const qt=be("book",{state:()=>({connectStatus:"正在连接后端服务器……",connectType:"primary",newConnect:!0,searchBooks:[],shelf:[],catalog:[],readingBook:{chapterPos:0,chapterIndex:0},popCataVisible:!1,contentLoading:!0,showContent:!1,config:Ft,miniInterface:!1,readSettingsVisible:!1}),getters:{bookProgress:e=>{var c;if(e.catalog.length==0)return;const{chapterIndex:o,chapterPos:t,name:n,author:r}=e.readingBook,i=(c=e.catalog[o])==null?void 0:c.title;if(i)return{name:n,author:r,durChapterIndex:o,durChapterPos:t,durChapterTime:new Date().getTime(),durChapterTitle:i}},theme:e=>e.config.theme,isNight:e=>e.config.theme==6},actions:{setConnectStatus(e){this.connectStatus=e},setConnectType(e){this.connectType=e},setNewConnect(e){this.newConnect=e},async loadBookShelf(){const e=P.getBookShelf().then(o=>{const{isSuccess:t,data:n,errorMsg:r}=o.data;if(t===!0)this.shelf.length!==n.length&&this.shelf.length>0&&n.length>0&&k.info("书架数据已更新"),this.shelf=n.sort((i,c)=>{const a=i.durChapterTime||0;return(c.durChapterTime||0)-a});else{if(r.includes("还没有添加小说")&&this.shelf.length>0)return k.info("当前书架上的书籍已经被删除"),this.shelf=[];k.error(r??"后端返回格式错误!")}return this.shelf});return this.shelf.length>0?this.shelf:await e},clearBooks(){this.shelf=[]},async loadWebCatalog(e){const{bookUrl:o,name:t,chapterIndex:n}=e,r=P.getChapterList(e.bookUrl).then(i=>{const{isSuccess:c,data:a,errorMsg:b}=i.data;if(c===!1)throw k.error(b),new Error;return a.length!==this.catalog.length&&a.length>0&&this.catalog.length>0&&k.info(`书籍${t}: 章节目录已更新`),this.setCatalog(a),this.catalog});return o===this.readingBook.bookUrl&&this.catalog.length>0&&this.catalog.length-1>=n?this.catalog:await r},setCatalog(e){this.catalog=e},setPopCataVisible(e){this.popCataVisible=e},setContentLoading(e){this.contentLoading=e},setReadingBook(e){this.readingBook=e},async loadWebConfig(){if(fe===void 0){const e=await P.getReadConfig();return fe=new Date,this.setConfig(e)}},setConfig(e){this.config=Object.assign({},this.config,e)},setReadSettingsVisible(e){this.readSettingsVisible=e},setShowContent(e){this.showContent=e},setMiniInterface(e){this.miniInterface=e},async setSearchBooks(e){e.forEach(o=>{this.shelf.every(n=>n.bookUrl!==o.bookUrl)===!0&&this.searchBooks.push(o)})},clearSearchBooks(){this.searchBooks=[]},async saveBookProgress(){if(!this.bookProgress)return Promise.resolve();const{bookUrl:e}=this.readingBook,o=Ce(this.shelf),t=o.findIndex(n=>n.bookUrl===e);return t>-1&&(this.shelf[t]=Object.assign({},o[t],this.bookProgress)),P.saveBookProgressWithBeacon(this.bookProgress)}}}),zt=He(),Gt=A({__name:"SourceJson",setup(e){const o=W(),t=J(""),n=async r=>{try{o.changeEditTabSource(JSON.parse(r))}catch{k({message:"粘贴的源格式错误",type:"error"})}};return We(async()=>{const r=o.editTabSource;Object.keys(r).length>0?t.value=JSON.stringify(r,null,4):t.value=""}),(r,i)=>{const c=Z;return g(),C(c,{id:"source-json",modelValue:s(t),"onUpdate:modelValue":i[0]||(i[0]=a=>K(t)?t.value=a:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:30,onChange:n,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}}),Yt=$(Gt,[["__scopeId","data-v-f62d9369"]]),Qt=A({__name:"SourceTabTools",setup(e){const o=W(),t=j({get:()=>o.currentTab,set:r=>o.currentTab=r}),n=J([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(r,i)=>{const c=Yt,a=Wt,b=Kt,w=ut,U=Ue,x=Be;return g(),C(x,{modelValue:s(t),"onUpdate:modelValue":i[0]||(i[0]=d=>K(t)?t.value=d:null)},{default:p(()=>[(g(!0),E(N,null,M(s(n),(d,l)=>(g(),C(U,{key:d[0],name:d[0],label:d[1]},{default:p(()=>[l==0?(g(),C(c,{key:0})):R("",!0),l==1?(g(),C(a,{key:1})):R("",!0),l==2?(g(),C(b,{key:2})):R("",!0),l==3?(g(),C(w,{key:3})):R("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}}),Xt=$(Qt,[["__scopeId","data-v-fd81540f"]]),Zt={class:"menu flex-column-center"},eo={class:"hotkeys-header flex-space-between"},to
Line truncated
|
||||
推送失败的源将用红色字体标注!`,o.setPushReturnSources(m)),k({message:`批量推送源到「阅读3.0APP」
|
||||
共计: ${f.length} 条
|
||||
成功: ${m.length} 条
|
||||
失败: ${f.length-m.length} 条${D}`,type:"success"})}}else k({message:`批量推送源失败!
|
||||
ErrorMsg: ${u.errorMsg}`,type:"error"})})},r=()=>{o.changeTabName("editTab"),o.changeEditTabSource(o.currentSource)},i=()=>{o.changeCurrentSource(o.editTabSource)},c=()=>{o.editHistoryUndo()},a=()=>{o.clearEdit(),k({message:"已清除",type:"success"})},b=()=>{o.clearEdit(),o.clearAllHistory(),k({message:"已清除所有历史记录",type:"success"})},w=()=>{const f=o.currentSource;Ot(f)?P.saveSource(f).then(({data:u})=>{const m=de(f);u.isSuccess?(k({message:`源《${m}》已成功保存到「阅读3.0APP」`,type:"success"}),o.saveCurrentSource()):k({message:`源《${m}》保存失败!
|
||||
ErrorMsg: ${u.errorMsg}`,type:"error"})}):k({message:"请检查<必填>项是否全部填写",type:"error"})},U=()=>{o.startDebug()},x=J(Array.of({name:"⇈推送源",hotKeys:[],action:n},{name:"⇊拉取源",hotKeys:[],action:t},{name:"⋙生成源",hotKeys:[],action:r},{name:"⋘编辑源",hotKeys:[],action:i},{name:"✗清空表单",hotKeys:[],action:a},{name:"↶撤销操作",hotKeys:[],action:c},{name:"↷重做操作",hotKeys:[],action:b},{name:"⇏调试源",hotKeys:[],action:U},{name:"✓保存源",hotKeys:[],action:w})),d=J(!0),l=J(!1),_=J(-1),v=()=>{l.value||(d.value=!1),l.value=!1};ae(d,f=>{if(!f){q.unbind("*"),G(),F();return}G(),q.unbind(),q("*",u=>{u.preventDefault();const m=q.getPressedKeyString();m.length==1&&m[0]=="esc"||l.value&&_.value>-1&&(x.value[_.value].hotKeys=m)})},{immediate:!0});const L=f=>{l.value=!0,k({message:"按ESC键或者点击空白处结束录入",type:"info"}),x.value[f].hotKeys=[],_.value=f},O=()=>{const f=[];x.value.forEach(({hotKeys:u})=>{f.push(u)}),T(f),d.value=!1},F=()=>{q.filter=()=>!0,x.value.forEach(({hotKeys:f,action:u})=>{f.length!=0&&q(f.join("+"),m=>{m.preventDefault(),u.call(null)})})},T=f=>{localStorage.setItem("legado_web_hotkeys",JSON.stringify(f))};function G(){try{const f=localStorage.getItem("legado_web_hotkeys");if(f===null)return!1;const u=JSON.parse(f);return!Array.isArray(u)||u.length==0?!1:(x.value.forEach((m,D)=>m.hotKeys=u[D]),!0)}catch{k({message:"快捷键配置错误",type:"error"}),localStorage.removeItem("legado_web_hotkeys")}return!1}return Fe(()=>{G()&&(d.value=!1)}),(f,u)=>{const m=le,D=_e,Te=ze;return g(),E(N,null,[S("div",Zt,[(g(!0),E(N,null,M(s(x),I=>(g(),C(m,{size:"large",key:I.name,onClick:I.action},{default:p(()=>[y(X(I.name),1)]),_:2},1032,["onClick"]))),128)),h(m,{size:"large",onClick:u[0]||(u[0]=()=>d.value=!0)},{default:p(()=>u[2]||(u[2]=[y("快捷键")])),_:1})]),h(Te,{modelValue:s(d),"onUpdate:modelValue":u[1]||(u[1]=I=>K(d)?d.value=I:null),"show-close":!1,"before-close":v},{header:p(({titleClass:I,titleId:oe})=>[S("div",eo,[S("div",{id:oe,class:ve(I)},[u[4]||(u[4]=y(" 快捷键设置 ")),s(l)?(g(),E("span",oo,[h(D,null,{default:p(()=>u[3]||(u[3]=[y(" / 录入中 ")])),_:1})])):R("",!0)],10,to),h(m,{disabled:s(l),onClick:O,icon:s(qe)},{default:p(()=>u[5]||(u[5]=[y("保存")])),_:1},8,["disabled","icon"])])]),default:p(()=>[S("div",no,[(g(!0),E(N,null,M(s(x),(I,oe)=>(g(),E("div",{key:I.name,class:"hotkeys-item flex-space-between"},[S("span",ro,[h(D,null,{default:p(()=>[y(X(I.name),1)]),_:2},1024)]),S("div",so,[(g(!0),E(N,null,M(I.hotKeys,(ne,Ve)=>(g(),E("div",{key:ne},[S("kbd",null,X(ne),1),Ve+1<I.hotKeys.length?(g(),E("span",io,[h(D,null,{default:p(()=>u[6]||(u[6]=[y("+")])),_:1})])):R("",!0)]))),128)),I.hotKeys.length==0?(g(),E("span",lo,"未设置")):R("",!0)]),h(m,{disabled:s(l),text:"",icon:s(ke),onClick:ne=>L(oe)},{default:p(()=>u[7]||(u[7]=[y("编辑")])),_:2},1032,["disabled","icon","onClick"])]))),128))])]),_:1},8,["modelValue"])],64)}}}),co=$(ao,[["__scopeId","data-v-7fe41be4"]]),uo=A({__name:"SourceTabForm",props:{config:{}},setup(e){const o=W(),t=j(()=>o.currentSource);return(n,r)=>{const i=Z,c=Ge,a=Ye,b=Qe,w=Xe,U=Ze,x=et,d=Ue,l=Be;return g(),C(l,{id:"source-edit"},{default:p(()=>[(g(!0),E(N,null,M(Object.values(n.config),({name:_,children:v})=>(g(),C(d,{label:_,key:_},{default:p(()=>[h(x,{"label-position":"right","label-width":"auto"},{default:p(()=>[(g(!0),E(N,null,M(v,({type:L,title:O,namespace:F,id:T,array:G,hint:f,required:u=!1})=>(g(),C(U,{label:O,key:O,required:u},{default:p(()=>[L=="String"&&typeof F>"u"?(g(),C(i,{key:0,type:"textarea",modelValue:s(t)[T],"onUpdate:modelValue":m=>s(t)[T]=m,placeholder:f,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):R("",!0),L=="String"&&typeof F<"u"?(g(),C(i,{key:1,type:"textarea",modelValue:s(t)[F][T],"onUpdate:modelValue":m=>s(t)[F][T]=m,placeholder:f,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):R("",!0),L==="Boolean"?(g(),C(c,{key:2,modelValue:s(t)[T],"onUpdate:modelValue":m=>s(t)[T]=m},null,8,["modelValue","onUpdate:modelValue"])):R("",!0),L==="Number"?(g(),C(a,{key:3,modelValue:s(t)[T],"onUpdate:modelValue":m=>s(t)[T]=m,min:0},null,8,["modelValue","onUpdate:modelValue"])):R("",!0),L==="Array"?(g(),C(w,{key:4,modelValue:s(t)[T],"onUpdate:modelValue":m=>s(t)[T]=m},{default:p(()=>[(g(!0),E(N,null,M(G,(m,D)=>(g(),C(b,{value:D,key:m,label:m},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):R("",!0)]),_:2},1032,["label","required"]))),128))]),_:2},1024)]),_:2},1032,["label"]))),128))]),_:1})}}}),po=$(uo,[["__scopeId","data-v-c07c5146"]]),go={base:{name:"基础",children:[{title:"源类型",id:"bookSourceType",type:"Array",array:["文本","音频","图片","文件"],required:!0},{title:"源域名",id:"bookSourceUrl",type:"String",hint:"通常填写网站主页,例: https://www.qidian.com",required:!0},{title:"源名称",id:"bookSourceName",type:"String",hint:"会显示在源列表",requ
Line truncated
|
||||
名称2::链接2`},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"变量说明",id:"variableComment",type:"String",hint:"源变量说明"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"}]},list:{name:"列表",children:[{title:"列表规则",id:"ruleArticles",type:"String",hint:"规则结果为List<Element>"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List<String>或String"},{title:"标题规则",id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"内容规则",id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"},{title:"链接拦截",id:"shouldOverrideUrlLoading",type:"String",hint:"填写js,变量url为当前资源链接,返回true拦截"}]},other:{name:"其他",children:[{title:"列表样式",id:"articleStyle",type:"Array",array:["默认","大图","双列"]},{title:"加载地址",id:"loadWithBaseUrl",type:"Boolean"},{title:"启用JS",id:"enableJs",type:"Boolean"},{title:"启用",id:"enabled",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"单URL",id:"singleUrl",type:"Boolean"},{title:"排序编号",id:"customOrder",type:"Number"}]}},mo={class:"editor"},So=A({__name:"SourceEditor",setup(e){tt();let o;return/bookSource/i.test(location.href)?(o=go,document.title="书源管理"):(o=ho,document.title="订阅源管理"),(t,n)=>{const r=po,i=co,c=Xt;return g(),E("div",mo,[h(r,{class:"left",config:s(o)},null,8,["config"]),h(i),h(c,{class:"right"})])}}}),ye=$(So,[["__scopeId","data-v-f2c47af3"]]),Ie=[{path:"/bookSource",name:"book-home",component:ye},{path:"/rssSource",name:"rss-home",component:ye}];se({history:ie(),routes:Ie});const Re=se({history:ie(),routes:[Ee,Ie].flat()});Re.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});ot(st).use(zt).use(Re).mount("#app");ae(()=>qt().isNight,e=>{e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")});export{P as A,$ as _,Y as a,dt as b,_o as d,yo as i,H as l,Nt as p,ht as s,qt as u,Tt as v};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{y as l,J as g,aj as c,u as d,a7 as f,ak as m}from"./vendor-DyE_jpJ0.js";const L=(s,t,u=m)=>{const a=l(!1);let r=null;const o=()=>a.value=!1,n=()=>a.value=!0;g(a,e=>{if(!e)return r==null?void 0:r.close();r=c.service({target:d(s),spinner:u,text:t,lock:!0,background:"rgba(0, 0, 0, 0)"})});const i=e=>{if(!(e instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return n(),e.finally(o)};return f(()=>{o()}),{isLoading:a,showLoading:n,closeLoading:o,loadingWrapper:i}};export{L as u};
|
||||
import{B as l,L as g,aj as c,u as d,a8 as f,ak as m}from"./vendor-Cq9RjTRr.js";const L=(s,t,u=m)=>{const a=l(!1);let r=null;const o=()=>a.value=!1,n=()=>a.value=!0;g(a,e=>{if(!e)return r==null?void 0:r.close();r=c.service({target:d(s),spinner:u,text:t,lock:!0,background:"rgba(0, 0, 0, 0)"})});const i=e=>{if(!(e instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return n(),e.finally(o)};return f(()=>{o()}),{isLoading:a,showLoading:n,closeLoading:o,loadingWrapper:i}};export{L as u};
|
||||
+3
-3
@@ -42,9 +42,9 @@
|
||||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Vp]=this[Vp]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=as(i);r[a]||(LI(o,i),r[a]=!0)}return K.isArray(t)?t.forEach(s):s(t),this}}Kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);K.reduceDescriptors(Kt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});K.freezeMethods(Kt);function Bl(e,t){const n=this||ui,r=t||n,o=Kt.from(r.headers);let s=r.data;return K.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Wg(e){return!!(e&&e.__CANCEL__)}function Qo(e,t,n){Ae.call(this,e??"canceled",Ae.ERR_CANCELED,t,n),this.name="CanceledError"}K.inherits(Qo,Ae,{__CANCEL__:!0});function Gg(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ae("Request failed with status code "+n.status,[Ae.ERR_BAD_REQUEST,Ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function kI(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function NI(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];i||(i=u),n[o]=l,r[o]=u;let f=s,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i<t)return;const v=c&&u-c;return v?Math.round(d*1e3/v):void 0}}function FI(e,t){let n=0,r=1e3/t,o,s;const i=(u,c=Date.now())=>{n=c,o=null,s&&(clearTimeout(s),s=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?i(u,c):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},r-f)))},()=>o&&i(o)]}const ya=(e,t,n=3)=>{let r=0;const o=NI(50,250);return FI(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=i-r,u=o(l),c=i<=a;r=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-i)/u:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},jp=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},zp=e=>(...t)=>K.asap(()=>e(...t)),BI=Ht.hasStandardBrowserEnv?function(){const t=Ht.navigator&&/(msie|trident)/i.test(Ht.navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=K.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),DI=Ht.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];K.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),K.isString(r)&&i.push("path="+r),K.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function VI(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jI(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Yg(e,t){return e&&!VI(t)?jI(e,t):t}const Hp=e=>e instanceof Kt?{...e}:e;function ao(e,t){t=t||{};const n={};function r(u,c,f){return K.isPlainObject(u)&&K.isPlainObject(c)?K.merge.call({caseless:f},u,c):K.isPlainObject(c)?K.merge({},c):K.isArray(c)?c.slice():c}function o(u,c,f){if(K.isUndefined(c)){if(!K.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function s(u,c){if(!K.isUndefined(c))return r(void 0,c)}function i(u,c){if(K.isUndefined(c)){if(!K.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,c)=>o(Hp(u),Hp(c),!0)};return K.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||o,d=f(e[c],t[c],c);K.isUndefined(d)&&f!==a||(n[c]=d)}),n}const Jg=e=>{const t=ao({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;t.headers=i=Kt.from(i),t.url=Kg(Yg(t.baseURL,t.url),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));l
Line truncated
|
||||
`+s.map(qp).join(`
|
||||
`):" "+qp(s[0]):"as no adapter specified";throw new Ae("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Iu};function Dl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qo(null,e)}function Wp(e){return Dl(e),e.headers=Kt.from(e.headers),e.data=Bl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Qg.getAdapter(e.adapter||ui.adapter)(e).then(function(r){return Dl(e),r.data=Bl.call(e,e.transformResponse,r),r.headers=Kt.from(r.headers),r},function(r){return Wg(r)||(Dl(e),r&&r.response&&(r.response.data=Bl.call(e,e.transformResponse,r.response),r.response.headers=Kt.from(r.response.headers))),Promise.reject(r)})}const ey="1.7.7",zc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Gp={};zc.transitional=function(t,n,r){function o(s,i){return"[Axios v"+ey+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new Ae(o(i," has been removed"+(n?" in "+n:"")),Ae.ERR_DEPRECATED);return n&&!Gp[i]&&(Gp[i]=!0),t?t(s,i,a):!0}};function e8(e,t,n){if(typeof e!="object")throw new Ae("options must be an object",Ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new Ae("option "+s+" must be "+l,Ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ae("Unknown option "+s,Ae.ERR_BAD_OPTION)}}const $u={assertOptions:e8,validators:zc},vr=$u.validators;class to{constructor(t){this.defaults=t,this.interceptors={request:new Dp,response:new Dp}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||||
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ao(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&$u.assertOptions(r,{silentJSONParsing:vr.transitional(vr.boolean),forcedJSONParsing:vr.transitional(vr.boolean),clarifyTimeoutError:vr.transitional(vr.boolean)},!1),o!=null&&(K.isFunction(o)?n.paramsSerializer={serialize:o}:$u.assertOptions(o,{encode:vr.function,serialize:vr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&K.merge(s.common,s[n.method]);s&&K.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=Kt.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,f=0,d;if(!l){const p=[Wp.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f<d;)c=c.then(p[f++],p[f++]);return c}d=a.length;let v=n;for(f=0;f<d;){const p=a[f++],h=a[f++];try{v=p(v)}catch(y){h.call(this,y);break}}try{c=Wp.call(this,v)}catch(p){return Promise.reject(p)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=ao(this.defaults,t);const n=Yg(t.baseURL,t.url);return Kg(n,t.params,t.paramsSerializer)}}K.forEach(["delete","get","head","options"],function(t){to.prototype[t]=function(n,r){return this.request(ao(r||{},{method:t,url:n,data:(r||{}).data}))}});K.forEach(["post","put","patch"],function(t){function n(r){return function(s,i,a){return this.request(ao(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}to.prototype[t]=n(),to.prototype[t+"Form"]=n(!0)});class Hc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new Qo(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Hc(function(o){t=o}),cancel:t}}}function t8(e){return function(n){return e.apply(null,n)}}function n8(e){return K.isObject(e)&&e.isAxiosError===!0}const Mu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Mu).forEach(([e,t])=>{Mu[t]=e});function ty(e){const t=new to(e),n=$g(to.prototype.request,t);return K.extend(n,to.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return ty(ao(e,o))},n}const gt=ty(ui);gt.Axios=to;gt.CanceledError=Qo;gt.CancelToken=Hc;gt.isCancel=Wg;gt.VERSION=ey;gt.toFormData=sl;gt.AxiosError=Ae;gt.Cancel=gt.CanceledError;gt.all=function(t){return Promise.all(t)};gt.spread=t8;gt.isAxiosError=n8;gt.mergeConfig=ao;gt.AxiosHeaders=Kt;gt.formToJSON=e=>qg(K.isHTMLForm(e)?new FormData(e):e);gt.getAdapter=Qg.getAdapter;gt.HttpStatusCode=Mu;gt.default=gt;function ny(e){return Ta()?(Oa(e),!0):!1}function rn(e){return typeof e=="function"?e():g(e)}const r8=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const o8=Object.prototype.toString,s8=e=>o8.call(e)==="[obje
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var So={FRONT:"FRONT",BEHIND:"BEHIND"},Hr={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},Jp=2,C8=function(){function e(t,n){v8(this,e),this.init(t,n)}return g8(e,[{key:"init",value:function(n,r){this.param=n,this.callUpdate=r,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=Hr.INIT,this.offset=0,this.direction="",this.range=Object.create(null),n&&this.checkRange(0,n.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var n=Object.create(null);return n.start=this.range.start,n.end=this.range.end,n.padFront=this.range.padFront,n.padBehind=this.range.padBehind,n}},{key:"isBehind",value:function(){return this.direction===So.BEHIND}},{key:"isFront",value:function(){return this.direction===So.FRONT}},{key:"getOffset",value:function(n){return(n<1?0:this.getIndexOffset(n))+this.param.slotHeaderSize}},{key:"updateParam",value:function(n,r){var o=this;this.param&&n in this.param&&(n==="uniqueIds"&&this.sizes.forEach(function(s,i){r.includes(i)||o.sizes.delete(i)}),this.param[n]=r)}},{key:"saveSize",value:function(n,r){this.sizes.set(n,r),this.calcType===Hr.INIT?(this.fixedSizeValue=r,this.calcType=Hr.FIXED):this.calcType===Hr.FIXED&&this.fixedSizeValue!==r&&(this.calcType=Hr.DYNAMIC,delete this.fixedSizeValue),this.calcType!==Hr.FIXED&&typeof this.firstRangeTotalSize<"u"&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=b8(this.sizes.values()).reduce(function(o,s){return o+s},0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var n=this.range.start;this.isFront()?n=n-Jp:this.isBehind()&&(n=n+Jp),n=Math.max(n,0),this.updateRange(this.range.start,this.getEndByStart(n))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(n){this.direction=n<this.offset?So.FRONT:So.BEHIND,this.offset=n,this.param&&(this.direction===So.FRONT?this.handleFront():this.direction===So.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var n=this.getScrollOvers();if(!(n>this.range.start)){var r=Math.max(n-this.param.buffer,0);this.checkRange(r,this.getEndByStart(r))}}},{key:"handleBehind",value:function(){var n=this.getScrollOvers();n<this.range.start+this.param.buffer||this.checkRange(n,this.getEndByStart(n))}},{key:"getScrollOvers",value:function(){var n=this.offset-this.param.slotHeaderSize;if(n<=0)return 0;if(this.isFixedType())return Math.floor(n/this.fixedSizeValue);for(var r=0,o=0,s=0,i=this.param.uniqueIds.length;r<=i;){if(o=r+Math.floor((i-r)/2),s=this.getIndexOffset(o),s===n)return o;s<n?r=o+1:s>n&&(i=o-1)}return r>0?--r:0}},{key:"getIndexOffset",value:function(n){if(!n)return 0;for(var r=0,o=0,s=0;s<n;s++)o=this.sizes.get(this.param.uniqueIds[s]),r=r+(typeof o=="number"?o:this.getEstimateSize());return this.lastCalcIndex=Math.max(this.lastCalcIndex,n-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),r}},{key:"isFixedType",value:function(){return this.calcType===Hr.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(n,r){var o=this.param.keeps,s=this.param.uniqueIds.length;s<=o?(n=0,r=this.getLastIndex()):r-n<o-1&&(n=r-o+1),this.range.start!==n&&this.updateRange(n,r)}},{key:"updateRange",value:function(n,r){this.range.start=n,this.range.end=r,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(n){var r=n+this.param.keeps-1,o=Math.min(r,this.getLastIndex());return o}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var n=this.range.end,r=this.getLastIndex();return this.isFixedType()?(r-n)*this.fixedSizeValue:this.lastCalcIndex===r?this.getIndexOffset(r)-this.getIndexOffset(n):(r-n)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),e}(),T8={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0,default:function(){return[]}},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:"wrap"},wrapStyle:{type:Object},itemTag:{type:String,default:
Line truncated
|
||||
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ao(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&$u.assertOptions(r,{silentJSONParsing:vr.transitional(vr.boolean),forcedJSONParsing:vr.transitional(vr.boolean),clarifyTimeoutError:vr.transitional(vr.boolean)},!1),o!=null&&(K.isFunction(o)?n.paramsSerializer={serialize:o}:$u.assertOptions(o,{encode:vr.function,serialize:vr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&K.merge(s.common,s[n.method]);s&&K.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=Kt.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,f=0,d;if(!l){const p=[Wp.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f<d;)c=c.then(p[f++],p[f++]);return c}d=a.length;let v=n;for(f=0;f<d;){const p=a[f++],h=a[f++];try{v=p(v)}catch(y){h.call(this,y);break}}try{c=Wp.call(this,v)}catch(p){return Promise.reject(p)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=ao(this.defaults,t);const n=Yg(t.baseURL,t.url);return Kg(n,t.params,t.paramsSerializer)}}K.forEach(["delete","get","head","options"],function(t){to.prototype[t]=function(n,r){return this.request(ao(r||{},{method:t,url:n,data:(r||{}).data}))}});K.forEach(["post","put","patch"],function(t){function n(r){return function(s,i,a){return this.request(ao(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}to.prototype[t]=n(),to.prototype[t+"Form"]=n(!0)});class Hc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new Qo(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Hc(function(o){t=o}),cancel:t}}}function t8(e){return function(n){return e.apply(null,n)}}function n8(e){return K.isObject(e)&&e.isAxiosError===!0}const Mu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Mu).forEach(([e,t])=>{Mu[t]=e});function ty(e){const t=new to(e),n=$g(to.prototype.request,t);return K.extend(n,to.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return ty(ao(e,o))},n}const gt=ty(ui);gt.Axios=to;gt.CanceledError=Qo;gt.CancelToken=Hc;gt.isCancel=Wg;gt.VERSION=ey;gt.toFormData=sl;gt.AxiosError=Ae;gt.Cancel=gt.CanceledError;gt.all=function(t){return Promise.all(t)};gt.spread=t8;gt.isAxiosError=n8;gt.mergeConfig=ao;gt.AxiosHeaders=Kt;gt.formToJSON=e=>qg(K.isHTMLForm(e)?new FormData(e):e);gt.getAdapter=Qg.getAdapter;gt.HttpStatusCode=Mu;gt.default=gt;function ny(e){return Ta()?(Oa(e),!0):!1}function rn(e){return typeof e=="function"?e():g(e)}const r8=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const o8=Object.prototype.toString,s8=e=>o8.call(e)==="[obje
Line truncated
|
||||
* pinia v2.2.4
|
||||
* (c) 2024 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let iy;const al=e=>iy=e,ay=Symbol();function ku(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Os;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Os||(Os={}));function k$(){const e=dh(!0),t=e.run(()=>V({}));let n=[],r=[];const o=Ps({install(s){al(o),o._a=s,s.provide(ay,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!p1?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const ly=()=>{};function Zp(e,t,n,r=ly){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Ta()&&Oa(o),o}function _o(e,...t){e.slice().forEach(n=>{n(...t)})}const R8=e=>e(),Qp=Symbol(),Vl=Symbol();function Nu(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];ku(o)&&ku(r)&&e.hasOwnProperty(n)&&!Ue(r)&&!Zn(r)?e[n]=Nu(o,r):e[n]=r}return e}const P8=Symbol();function I8(e){return!ku(e)||!e.hasOwnProperty(P8)}const{assign:wr}=Object;function $8(e){return!!(Ue(e)&&e.effect)}function M8(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=sr(n.state.value[e]);return wr(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=Ps(T(()=>{al(n);const v=n._s.get(e);return i[d].call(v,v)})),f),{}))}return l=uy(e,u,t,n,r,!0),l}function uy(e,t,n={},r,o,s){let i;const a=wr({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],v;const p=r.state.value[e];!s&&!p&&(r.state.value[e]={}),V({});let h;function y(P){let I;u=c=!1,typeof P=="function"?(P(r.state.value[e]),I={type:Os.patchFunction,storeId:e,events:v}):(Nu(r.state.value[e],P),I={type:Os.patchObject,payload:P,storeId:e,events:v});const R=h=Symbol();Pe().then(()=>{h===R&&(u=!0)}),c=!0,_o(f,I,r.state.value[e])}const m=s?function(){const{state:I}=n,R=I?I():{};this.$patch(k=>{wr(k,R)})}:ly;function _(){i.stop(),f=[],d=[],r._s.delete(e)}const E=(P,I="")=>{if(Qp in P)return P[Vl]=I,P;const R=function(){al(r);const k=Array.from(arguments),L=[],D=[];function J(j){L.push(j)}function $(j){D.push(j)}_o(d,{args:k,name:R[Vl],store:b,after:J,onError:$});let x;try{x=P.apply(this&&this.$id===e?this:b,k)}catch(j){throw _o(D,j),j}return x instanceof Promise?x.then(j=>(_o(L,j),j)).catch(j=>(_o(D,j),Promise.reject(j))):(_o(L,x),x)};return R[Qp]=!0,R[Vl]=I,R},w={_p:r,$id:e,$onAction:Zp.bind(null,d),$patch:y,$reset:m,$subscribe(P,I={}){const R=Zp(f,P,I.detached,()=>k()),k=i.run(()=>ve(()=>r.state.value[e],L=>{(I.flush==="sync"?c:u)&&P({storeId:e,type:Os.direct,events:v},L)},wr({},l,I)));return R},$dispose:_},b=St(w);r._s.set(e,b);const A=(r._a&&r._a.runWithContext||R8)(()=>r._e.run(()=>(i=dh()).run(()=>t({action:E}))));for(const P in A){const I=A[P];if(Ue(I)&&!$8(I)||Zn(I))s||(p&&I8(I)&&(Ue(I)?I.value=p[P]:Nu(I,p[P])),r.state.value[e][P]=I);else if(typeof I=="function"){const R=E(I,P);A[P]=R,a.actions[P]=I}}return wr(b,A),wr($e(b),A),Object.defineProperty(b,"$state",{get:()=>r.state.value[e],set:P=>{y(I=>{wr(I,P)})}}),r._p.forEach(P=>{wr(b,i.run(()=>P({store:b,app:r._a,pinia:r,options:a})))}),p&&s&&n.hydrate&&n.hydrate(b.$state,p),u=!0,c=!0,b}function N$(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const u=qb();return a=a||(u?Se(ay,null):null),a&&al(a),a=iy,a._s.has(r)||(s?uy(r,t,o,a):M8(r,o,a)),a._s.get(r)}return i.$id=r,i}function F$(e){{e=$e(e);const t={};for(const n in e){const r=e[n];(Ue(r)||Zn(r))&&(t[n]=Yt(e,n))}return t}}const jl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function zl(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function ls(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on".concat(t),n)}function cy(e,t){const n=t.slice(0,t.length-1);for(let r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function fy(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function L8(e,t){const n=e.length>=t.length?e:t,r=e.length>=t.length?t:e;let o=!0;for(let s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(o=!1);return o}const Ys={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":jl?173:189,"=":jl?61:187,";":jl?59:186,"'":222,"[":219,"]":221,"\\":220},Vn={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:Line truncated
|
||||
*/let sy;const al=e=>sy=e,iy=Symbol();function Lu(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ts;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ts||(Ts={}));function L$(){const e=dh(!0),t=e.run(()=>V({}));let n=[],r=[];const o=Ps({install(s){al(o),o._a=s,s.provide(iy,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!p1?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const ay=()=>{};function Yp(e,t,n,r=ay){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Ta()&&Oa(o),o}function So(e,...t){e.slice().forEach(n=>{n(...t)})}const v8=e=>e(),Jp=Symbol(),Vl=Symbol();function ku(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Lu(o)&&Lu(r)&&e.hasOwnProperty(n)&&!Ue(r)&&!Zn(r)?e[n]=ku(o,r):e[n]=r}return e}const m8=Symbol();function g8(e){return!Lu(e)||!e.hasOwnProperty(m8)}const{assign:wr}=Object;function y8(e){return!!(Ue(e)&&e.effect)}function b8(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=sr(n.state.value[e]);return wr(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=Ps(T(()=>{al(n);const v=n._s.get(e);return i[d].call(v,v)})),f),{}))}return l=ly(e,u,t,n,r,!0),l}function ly(e,t,n={},r,o,s){let i;const a=wr({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],v;const p=r.state.value[e];!s&&!p&&(r.state.value[e]={}),V({});let h;function y(P){let I;u=c=!1,typeof P=="function"?(P(r.state.value[e]),I={type:Ts.patchFunction,storeId:e,events:v}):(ku(r.state.value[e],P),I={type:Ts.patchObject,payload:P,storeId:e,events:v});const R=h=Symbol();Pe().then(()=>{h===R&&(u=!0)}),c=!0,So(f,I,r.state.value[e])}const m=s?function(){const{state:I}=n,R=I?I():{};this.$patch(k=>{wr(k,R)})}:ay;function _(){i.stop(),f=[],d=[],r._s.delete(e)}const E=(P,I="")=>{if(Jp in P)return P[Vl]=I,P;const R=function(){al(r);const k=Array.from(arguments),L=[],D=[];function J(j){L.push(j)}function $(j){D.push(j)}So(d,{args:k,name:R[Vl],store:b,after:J,onError:$});let x;try{x=P.apply(this&&this.$id===e?this:b,k)}catch(j){throw So(D,j),j}return x instanceof Promise?x.then(j=>(So(L,j),j)).catch(j=>(So(D,j),Promise.reject(j))):(So(L,x),x)};return R[Jp]=!0,R[Vl]=I,R},w={_p:r,$id:e,$onAction:Yp.bind(null,d),$patch:y,$reset:m,$subscribe(P,I={}){const R=Yp(f,P,I.detached,()=>k()),k=i.run(()=>ve(()=>r.state.value[e],L=>{(I.flush==="sync"?c:u)&&P({storeId:e,type:Ts.direct,events:v},L)},wr({},l,I)));return R},$dispose:_},b=St(w);r._s.set(e,b);const A=(r._a&&r._a.runWithContext||v8)(()=>r._e.run(()=>(i=dh()).run(()=>t({action:E}))));for(const P in A){const I=A[P];if(Ue(I)&&!y8(I)||Zn(I))s||(p&&g8(I)&&(Ue(I)?I.value=p[P]:ku(I,p[P])),r.state.value[e][P]=I);else if(typeof I=="function"){const R=E(I,P);A[P]=R,a.actions[P]=I}}return wr(b,A),wr($e(b),A),Object.defineProperty(b,"$state",{get:()=>r.state.value[e],set:P=>{y(I=>{wr(I,P)})}}),r._p.forEach(P=>{wr(b,i.run(()=>P({store:b,app:r._a,pinia:r,options:a})))}),p&&s&&n.hydrate&&n.hydrate(b.$state,p),u=!0,c=!0,b}function k$(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const u=qb();return a=a||(u?Se(iy,null):null),a&&al(a),a=sy,a._s.has(r)||(s?ly(r,t,o,a):b8(r,o,a)),a._s.get(r)}return i.$id=r,i}function N$(e){{e=$e(e);const t={};for(const n in e){const r=e[n];(Ue(r)||Zn(r))&&(t[n]=Yt(e,n))}return t}}function Xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xp(Object(n),!0).forEach(function(r){E8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function w8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _8(e,t,n){return t&&S8(e.prototype,t),e}function E8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C8(e){return T8(e)||O8(e)||A8(e)||x8()}function T8(e){if(Array.isArray(e))return Nu(e)}function O8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A8(e,t){if(e){if(typeof e=="string")return Nu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.coLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _o={FRONT:"FRONT",BEHIND:"BEHIND"},Hr={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},Zp=2,R8=function(){function e(t,n){w8(this,e),this.init(t,n)}return _8(e,[{key:"init",value:function(n,r){this.param=n,this.callUpdate=r,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=Hr.INIT,this.offset=0,this.direction="",this.range=Object.create(null),n&&this.checkRange(0,n.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var n=Object.create(null);return n.start=this.range.start,n.end=this.range.end,n.padFront=this.range.padFront,n.padBehind=this.range.padBehind,n}},{key:"isBehind",value:function(){return this.direction===_o.BEHIND}},{key:"isFront",value:function(){return this.direction===_o.FRONT}},{key:"getOffset",value:function(n){return(n<1?0:this.getIndexOffset(n))+this.param.slotHeaderSize}},{key:"updateParam",value:function(n,r){var o=this;this.param&&n in this.param&&(n==="uniqueIds"&&this.sizes.forEach(function(s,i){r.includes(i)||o.sizes.delete(i)}),this.param[n]=r)}},{key:"saveSize",value:function(n,r){this.sizes.set(n,r),this.calcType===Hr.INIT?(this.fixedSizeValue=r,this.calcType=Hr.FIXED):this.calcType===Hr.FIXED&&this.fixedSizeValue!==r&&(this.calcType=Hr.DYNAMIC,delete this.fixedSizeValue),this.calcType!==Hr.FIXED&&typeof this.firstRangeTotalSize<"u"&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=C8(this.sizes.values()).reduce(function(o,s){return o+s},0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var n=this.range.start;this.isFront()?n=n-Zp:this.isBehind()&&(n=n+Zp),n=Math.max(n,0),this.updateRange(this.range.start,this.getEndByStart(n))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(n){this.direction=n<this.offset?_o.FRONT:_o.BEHIND,this.offset=n,this.param&&(this.direction===_o.FRONT?this.handleFront():this.direction===_o.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var n=this.getScrollOvers();if(!(n>this.range.start)){var r=Math.max(n-this.param.buffer,0);this.checkRange(r,this.getEndByStart(r))}}},{key:"handleBehind",value:function(){var n=this.getScrollOvers();n<this.range.start+this.param.buffer||this.checkRange(n,this.getEndByStart(n))}},{key:"getScrollOvers",value:function(){var n=this.offset-this.param.slotHeaderSize;if(n<=0)return 0;if(this.isFixedType())return Math.floor(n/this.fixedSizeValue);for(var r=0,o=0,s=0,i=this.param.uniqueIds.length;r<=i;){if(o=r+Math.floor((i-r)/2),s=this.getIndexOffset(o),s===n)return o;s<n?r=o+1:s>n&&(i=o-1)}return r>0?--r:0}},{key:"getIndexOffset",value:function(n){if(!n)return 0;for(var r=0,o=0,s=0;s<n;s++)o=this.sizes.get(this.param.uniqueIds[s]),r=r+(typeof o=="number"?o:this.getEstimateSize());return this.lastCalcIndex=Math.max(this.lastCalcIndex,n-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),r}},{key:"isFixedType",value:function(){return this.calcType===Hr.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(n,r){var o=this.param.keeps,s=this.param.uniqueIds.length;s<=o?(n=0,r=this.getLastIndex()):r-n<o-1&&(n=r-o+1),this.range.start!==n&&this.updateRange(n,r)}},{key:"updateRange",value:function(n,r){this.range.start=n,this.range.end=r,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(n){var r=n+this.param.keeps-1,o=Math.min(r,this.getLastIndex());return o}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var n=this.range.end,r=this.getLastIndex();return this.isFixedType()?(r-n)*this.fixedSizeValue:this.lastCalcIndex===r?this.getIndexOffset(r)-this.getIndexOffset(n):(r-n)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),e}(),P8={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0,default:function(){return[]}},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:"wrap"},wrapStyle:{type:Object},itemTag:{type:String,default:
Line truncated
|
||||
@@ -4,8 +4,8 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="./favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
<script type="module" crossorigin src="./assets/index-CoMQMWtZ.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./assets/vendor-DyE_jpJ0.js">
|
||||
<script type="module" crossorigin src="./assets/index-CcaAk_ul.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./assets/vendor-Cq9RjTRr.js">
|
||||
<link rel="stylesheet" crossorigin href="./assets/vendor-B4LKkcA9.css">
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-CT4Yn-oi.css">
|
||||
</head>
|
||||
|
||||
Reference in new issue
Block a user