Bump web v3.24.012011
This commit is contained in:
1 parent
b053c77bcd
commit
ed6dc780c7
10 files changed
+10
-10
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
import{a2 as Je,n as r,z as S,T as Se,a5 as Fe,o as p,d as f,g as e,t as O,F as oe,P as ce,u as o,a6 as Z,a7 as Le,a8 as Te,v as V,e as T,w as J,a9 as qe,A as he,aa as Ge,f as Y,M as ge,ab as Ze,x as Ye,ac as Ke,p as we,i as _e,s as ze,ad as je,V as Xe,K as $e,a4 as et,O as Re,k as z,c as tt}from"./vendor-117f3db1.js";import{i as ot,g as Me,u as nt,a as st}from"./loading-04c8e3bf.js";import{_ as le,u as Ee,A as pe}from"./index-5b3b591d.js";const at=(a,s,d,u)=>(a/=u/2,a<1?d/2*a*a+s:(a--,-d/2*(a*(a-2)-1)+s)),it=()=>{let a,s,d,u,n,D,v,w,h,k,i,I,M;function A(){let y=a.scrollTop||a.scrollY||a.pageYOffset;return y=typeof y>"u"?0:y,y}function m(y){const b=y.getBoundingClientRect().top,j=a.getBoundingClientRect?a.getBoundingClientRect().top:0;return b-j+d}function l(y){a.scrollTo?a.scrollTo(0,y):a.scrollTop=y}function x(y){k||(k=y),i=y-k,I=D(i,d,w,h),l(I),i<h?requestAnimationFrame(x):q()}function q(){l(d+w),s&&v&&(s.setAttribute("tabindex","-1"),s.focus()),typeof M=="function"&&M(),k=!1}function R(y,b={}){switch(h=b.duration||1e3,n=b.offset||0,M=b.callback,D=b.easing||at,v=b.a11y||!1,typeof b.container){case"object":a=b.container;break;case"string":a=document.querySelector(b.container);break;default:a=window}switch(d=A(),typeof y){case"number":s=void 0,v=!1,u=d+y;break;case"object":s=y,u=m(s);break;case"string":s=document.querySelector(y),u=m(s);break}switch(w=u-d+n,typeof b.duration){case"number":h=b.duration;break;case"function":h=b.duration(w);break}requestAnimationFrame(x)}return R},ee=it();const ct=["data-chapterpos"],lt=["src"],rt=["innerHTML"],At={__name:"ChapterContent",props:{chapterIndex:{type:Number,required:!0},contents:{type:Array,required:!0},title:{type:String,required:!0},spacing:{type:Object,required:!0},fontFamily:{type:String,required:!0},fontSize:{type:String,required:!0}},emits:["readedLengthChange"],setup(a,{expose:s,emit:d}){Je(A=>({"65b266c2":u.spacing.letter,"75882ce0":u.spacing.line,"89939d5c":u.spacing.paragraph}));const u=a,n=A=>{const m=/<img[^>]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,l=A.match(m)[1];return ot(l)?Me(l):l},D=A=>{A.target.src=Me(A.target.src)},v=A=>{const m=/<img[^>]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g,l=" ";return A.replaceAll(m,l).length},w=r(()=>{let A=-1;return Array.from(u.contents,m=>(A+=v(m)+1,A))}),h=S(),k=S();s({scrollToReadedLength:A=>{if(A===0)return;let m=w.value.findIndex(l=>l>=A);m!==-1&&Le(()=>{ee(k.value[m],{duration:0})})}});let I=null;const M=d;return Se(()=>{I=new IntersectionObserver(A=>{for(let{target:m,isIntersecting:l}of A)l&&M("readedLengthChange",u.chapterIndex,parseInt(m.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),I.observe(h.value),k.value.forEach(A=>{I.observe(A)})}),Fe(()=>{I==null||I.disconnect(),I=null}),(A,m)=>(p(),f(oe,null,[e("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:h},O(a.title),513),(p(!0),f(oe,null,ce(a.contents,(l,x)=>(p(),f("div",{key:x,ref_for:!0,ref_key:"paragraphRef",ref:k,"data-chapterpos":o(w)[x]},[/^\s*<img[^>]*src[^>]+>$/.test(l)?(p(),f("img",{key:0,class:"full",src:n(l),onErrorOnce:D,loading:"lazy"},null,40,lt)):(p(),f("p",{key:1,style:Z({fontFamily:a.fontFamily,fontSize:a.fontSize}),innerHTML:l},null,12,rt))],8,ct))),128))],64))}},dt=le(At,[["__scopeId","data-v-b16ecb88"]]);const ut="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=",gt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAACVBMVEX28ef48+n69esoK7jYAAAB4UlEQVQozw2OsW4bQQxEhwLXkDrysGdEqRRgVShfQQq8wOr2jD0jSpXCLvwXbtKfADlFqgSwC/9ljqweZgYzQFnb/QGepYhA9jzmTc1WaSEtQpbFgjWATI00ZZtIckXx8q2Oe5yEByBy+RHOTcM+VVTadULsvxvRC/q8WTwgcWGD+Mnaqa0oy2gw2pKFzK+PzEsus5hP9AHojKslVynLlioVTBEN8cjDNnZoR1uMGTiZAAN47HxMtEkGUE9b8HWzkqNX5Lpk0yVziAJOs46rK1pG/xNuXLjz95fSDoJE5IqG23MAYPtWoeWPvfVtIV/Ng9oH3W0gGMPIOqd4MK4QZ55dV61gOb8Zxp7I9qayaGxp6Q91cmC0ZRdBwEQVHWzSAanlZwVWc9yljeTCeaHjBVvlPSLeyeBUT2rPdJegQI103jVS3uYkyIx1il6mslMDedZuOkwzolsagvPuQAfp7cYg7k9V1NOxfq64PNSvMdwONV4VYEmqlbpZy5OAakRKkjPnL4CBv5/OZRgoWHBmNbxB0LgB1I4vXFj93UoF2/0TPEsWwV9EhbIiTPqYoTHYoMn3enTDjmrFeDTIzaL1bLine truncated
|
||||
import{a2 as Je,n as r,z as S,T as Se,a6 as Fe,o as p,d as f,g as e,t as O,F as oe,P as ce,u as o,a7 as Z,a8 as Le,a4 as Te,v as V,e as T,w as J,a9 as qe,A as he,aa as Ge,f as Y,M as ge,ab as Ze,x as Ye,ac as Ke,p as we,i as _e,s as ze,ad as je,V as Xe,K as $e,a5 as et,O as Re,k as z,c as tt}from"./vendor-cfc7c64d.js";import{i as ot,g as Me,u as nt,a as st}from"./loading-ed807e01.js";import{_ as le,u as Ee,A as pe}from"./index-4e8519b1.js";const at=(a,s,d,u)=>(a/=u/2,a<1?d/2*a*a+s:(a--,-d/2*(a*(a-2)-1)+s)),it=()=>{let a,s,d,u,n,D,v,w,h,k,i,I,M;function A(){let y=a.scrollTop||a.scrollY||a.pageYOffset;return y=typeof y>"u"?0:y,y}function m(y){const b=y.getBoundingClientRect().top,j=a.getBoundingClientRect?a.getBoundingClientRect().top:0;return b-j+d}function l(y){a.scrollTo?a.scrollTo(0,y):a.scrollTop=y}function x(y){k||(k=y),i=y-k,I=D(i,d,w,h),l(I),i<h?requestAnimationFrame(x):q()}function q(){l(d+w),s&&v&&(s.setAttribute("tabindex","-1"),s.focus()),typeof M=="function"&&M(),k=!1}function R(y,b={}){switch(h=b.duration||1e3,n=b.offset||0,M=b.callback,D=b.easing||at,v=b.a11y||!1,typeof b.container){case"object":a=b.container;break;case"string":a=document.querySelector(b.container);break;default:a=window}switch(d=A(),typeof y){case"number":s=void 0,v=!1,u=d+y;break;case"object":s=y,u=m(s);break;case"string":s=document.querySelector(y),u=m(s);break}switch(w=u-d+n,typeof b.duration){case"number":h=b.duration;break;case"function":h=b.duration(w);break}requestAnimationFrame(x)}return R},ee=it();const ct=["data-chapterpos"],lt=["src"],rt=["innerHTML"],At={__name:"ChapterContent",props:{chapterIndex:{type:Number,required:!0},contents:{type:Array,required:!0},title:{type:String,required:!0},spacing:{type:Object,required:!0},fontFamily:{type:String,required:!0},fontSize:{type:String,required:!0}},emits:["readedLengthChange"],setup(a,{expose:s,emit:d}){Je(A=>({"65b266c2":u.spacing.letter,"75882ce0":u.spacing.line,"89939d5c":u.spacing.paragraph}));const u=a,n=A=>{const m=/<img[^>]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,l=A.match(m)[1];return ot(l)?Me(l):l},D=A=>{A.target.src=Me(A.target.src)},v=A=>{const m=/<img[^>]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g,l=" ";return A.replaceAll(m,l).length},w=r(()=>{let A=-1;return Array.from(u.contents,m=>(A+=v(m)+1,A))}),h=S(),k=S();s({scrollToReadedLength:A=>{if(A===0)return;let m=w.value.findIndex(l=>l>=A);m!==-1&&Le(()=>{ee(k.value[m],{duration:0})})}});let I=null;const M=d;return Se(()=>{I=new IntersectionObserver(A=>{for(let{target:m,isIntersecting:l}of A)l&&M("readedLengthChange",u.chapterIndex,parseInt(m.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),I.observe(h.value),k.value.forEach(A=>{I.observe(A)})}),Fe(()=>{I==null||I.disconnect(),I=null}),(A,m)=>(p(),f(oe,null,[e("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:h},O(a.title),513),(p(!0),f(oe,null,ce(a.contents,(l,x)=>(p(),f("div",{key:x,ref_for:!0,ref_key:"paragraphRef",ref:k,"data-chapterpos":o(w)[x]},[/^\s*<img[^>]*src[^>]+>$/.test(l)?(p(),f("img",{key:0,class:"full",src:n(l),onErrorOnce:D,loading:"lazy"},null,40,lt)):(p(),f("p",{key:1,style:Z({fontFamily:a.fontFamily,fontSize:a.fontSize}),innerHTML:l},null,12,rt))],8,ct))),128))],64))}},dt=le(At,[["__scopeId","data-v-b16ecb88"]]);const ut="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=",gt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAACVBMVEX28ef48+n69esoK7jYAAAB4UlEQVQozw2OsW4bQQxEhwLXkDrysGdEqRRgVShfQQq8wOr2jD0jSpXCLvwXbtKfADlFqgSwC/9ljqweZgYzQFnb/QGepYhA9jzmTc1WaSEtQpbFgjWATI00ZZtIckXx8q2Oe5yEByBy+RHOTcM+VVTadULsvxvRC/q8WTwgcWGD+Mnaqa0oy2gw2pKFzK+PzEsus5hP9AHojKslVynLlioVTBEN8cjDNnZoR1uMGTiZAAN47HxMtEkGUE9b8HWzkqNX5Lpk0yVziAJOs46rK1pG/xNuXLjz95fSDoJE5IqG23MAYPtWoeWPvfVtIV/Ng9oH3W0gGMPIOqd4MK4QZ55dV61gOb8Zxp7I9qayaGxp6Q91cmC0ZRdBwEQVHWzSAanlZwVWc9yljeTCeaHjBVvlPSLeyeBUT2rPdJegQI103jVS3uYkyIx1il6mslMDedZuOkwzolsagvPuQAfp7cYg7k9V1NOxfq64PNSvMdwONV4VYEmqlbpZy5OAakRKkjPnL4CBv5/OZRgoWHBmNbxB0LgB1I4vXFj93UoF2/0TPEsWwV9EhbIiTPqYoTHYoMn3enTDjmrFeDTIzaL1bLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{a2 as $,n as V,o as i,d,g as e,F as J,P as D,t as u,c as G,w as P,f as L,M as y,u as s,a3 as W,p as O,i as Z,s as X,z as w,O as j,a4 as ee,T as te,k as S,e as x,A as se,L as ae,v as M,I as oe,B as ne}from"./vendor-117f3db1.js";import{d as ce,u as re}from"./loading-04c8e3bf.js";import{_ as H,u as ie,A as T}from"./index-5b3b591d.js";const F=o=>(O("data-v-79a0da0d"),o=o(),Z(),o),le={class:"books-wrapper"},de={class:"wrapper"},ue=["onClick"],he={class:"cover-img"},pe=["src"],_e={class:"info"},ve={class:"name"},ge={class:"sub"},me={class:"author"},fe={key:0,class:"tags"},we={key:1,class:"update-info"},Ae=F(()=>e("div",{class:"dot"},"•",-1)),Ie={class:"size"},ke=F(()=>e("div",{class:"dot"},"•",-1)),Be={class:"date"},ye={key:0,class:"intro"},Se={key:1,class:"dur-chapter"},xe={class:"last-chapter"},Ce={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(o,{emit:n}){$(l=>({d0aaf530:s(z)}));const C=o,R=n,E=l=>R("bookClick",l),A=l=>/^data:/.test(l)?l:location.origin+"/cover?path="+encodeURIComponent(l),z=V(()=>C.isSearch?"space-between":"flex-start");return(l,c)=>{const I=W;return i(),d("div",le,[e("div",de,[(i(!0),d(J,null,D(o.books,r=>{var m;return i(),d("div",{class:"book",key:r.bookUrl,onClick:f=>E(r)},[e("div",he,[(i(),d("img",{class:"cover",src:A(r.coverUrl),key:r.coverUrl,alt:"",loading:"lazy"},null,8,pe))]),e("div",_e,[e("div",ve,u(r.name),1),e("div",ge,[e("div",me,u(r.author),1),o.isSearch?(i(),d("div",fe,[(i(!0),d(J,null,D((m=r.kind)==null?void 0:m.split(",").slice(0,2),f=>(i(),G(I,{key:f},{default:P(()=>[L(u(f),1)]),_:2},1024))),128))])):y("",!0),o.isSearch?y("",!0):(i(),d("div",we,[Ae,e("div",Ie,"共"+u(r.totalChapterNum)+"章",1),ke,e("div",Be,u(s(ce)(r.lastCheckTime)),1)]))]),o.isSearch?(i(),d("div",ye,u(r.intro),1)):y("",!0),o.isSearch?y("",!0):(i(),d("div",Se," 已读:"+u(r.durChapterTitle),1)),e("div",xe,"最新:"+u(r.latestChapterTitle),1)])],8,ue)}),128))])])}}},Re=H(Ce,[["__scopeId","data-v-79a0da0d"]]);const Ee="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==";const N=o=>(O("data-v-f311f930"),o=o(),Z(),o),ze={class:"navigation-wrapper"},Me=N(()=>e("div",{class:"navigation-title-wrapper"},[e("div",{class:"navigation-title"},"阅读"),e("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),Te={class:"search-wrapper"},Ve={class:"bottom-wrapper"},Pe={class:"recent-wrapper"},Le=N(()=>e("div",{class:"recent-title"},"最近阅读",-1)),Ne={class:"reading-recent"},be={class:"setting-wrapper"},Je=N(()=>e("div",{class:"setting-title"},"基本设定",-1)),De={class:"setting-item"},We={class:"bottom-icons"},Oe={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},Ze={class:"bottom-icon"},He=["src"],Fe={__name:"BookShelf",setup(o){const n=ie(),{connectStatus:C,connectType:R,newConnect:E,shelf:A}=X(n),z=V(()=>n.config.theme),l=V(()=>z.value==6),c=w({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),I=w(null),{showLoading:r,closeLoading:m,loadingWrapper:f}=re(I,"正在获取书籍信息"),g=w([]),h=w(""),k=w(!1);j(()=>{if(!(k.value&&h.value!="")){if(k.value=!1,g.value=[],h.value==""){g.value=A.value;return}g.value=A.value.filter(t=>t.name.includes(h.value)||t.author.includes(h.value))}});const K=()=>{h.value!=""&&(g.value=[],n.clearSearchBooks(),r(),k.value=!0,T.search(h.value,t=>{m();try{n.setSearchBooks(JSON.parse(t)),n.searchBooks.forEach(a=>g.value.push(a))}catch(a){throw S.error("后端数据错误"),a}},()=>{m(),g.value.length==0&&S.info("搜索结果为空")}))},Y=()=>{},U=ee(),Q=async t=>{const{bookULine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
@charset "UTF-8";.books-wrapper[data-v-79a0da0d]{overflow:auto}.books-wrapper .wrapper[data-v-79a0da0d]{display:grid;grid-template-columns:repeat(auto-fill,380px);justify-content:space-around;grid-gap:10px}.books-wrapper .wrapper .book[data-v-79a0da0d]{-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-79a0da0d],.books-wrapper .wrapper .book .cover-img .cover[data-v-79a0da0d]{width:84px;height:112px}.books-wrapper .wrapper .book .info[data-v-79a0da0d]{display:flex;flex-direction:column;justify-content:space-around;align-items:left;height:112px;margin-left:20px;flex:1}.books-wrapper .wrapper .book .info .name[data-v-79a0da0d]{width:fit-content;font-size:16px;font-weight:700;color:#33373d}.books-wrapper .wrapper .book .info .sub[data-v-79a0da0d]{display:flex;flex-direction:row;align-items:baseline;justify-content:var(--d0aaf530);font-size:12px;font-weight:600;color:#6b6b6b}.books-wrapper .wrapper .book .info .sub .tags[data-v-79a0da0d] .el-tag{margin-right:.5em}.books-wrapper .wrapper .book .info .sub .update-info[data-v-79a0da0d]{display:flex}.books-wrapper .wrapper .book .info .sub .update-info .dot[data-v-79a0da0d]{margin:0 7px}.books-wrapper .wrapper .book .info .intro[data-v-79a0da0d],.books-wrapper .wrapper .book .info .dur-chapter[data-v-79a0da0d],.books-wrapper .wrapper .book .info .last-chapter[data-v-79a0da0d]{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;text-align:left}.books-wrapper .wrapper .book[data-v-79a0da0d]:hover{background:rgba(0,0,0,.1);transition-duration:.5s}.books-wrapper .wrapper[data-v-79a0da0d]:last-child{margin-right:auto}.books-wrapper[data-v-79a0da0d]::-webkit-scrollbar{width:0!important}@media screen and (max-width: 750px){.books-wrapper .wrapper[data-v-79a0da0d]{display:flex;flex-direction:column}.books-wrapper .wrapper .book[data-v-79a0da0d]{box-sizing:border-box;width:100%;margin-bottom:0;padding:10px 20px}}@font-face{font-family:FZZCYSK;src:local("☺"),url(./shelffont-16b1b95a.ttf);font-style:normal;font-weight:400}.index-wrapper[data-v-f311f930]{height:100%;width:100%;display:flex;flex-direction:row}.index-wrapper .navigation-wrapper[data-v-f311f930]{width:260px;min-width:260px;padding:48px 36px;background-color:#f7f7f7}.index-wrapper .navigation-wrapper .navigation-title[data-v-f311f930]{font-size:24px;font-weight:500;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .navigation-sub-title[data-v-f311f930]{font-size:16px;font-weight:300;font-family:FZZCYSK;margin-top:16px;color:#b1b1b1}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-f311f930]{border-radius:50%;margin-top:24px}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-f311f930] .el-input__wrapper{border-radius:50px;border-color:#e3e3e3}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-f311f930]{display:flex;flex-direction:column}.index-wrapper .navigation-wrapper .recent-wrapper[data-v-f311f930]{margin-top:36px}.index-wrapper .navigation-wrapper .recent-wrapper .recent-title[data-v-f311f930]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent[data-v-f311f930]{margin:18px 0}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent .recent-book[data-v-f311f930]{font-size:10px;cursor:pointer}.index-wrapper .navigation-wrapper .setting-wrapper[data-v-f311f930]{margin-top:36px}.index-wrapper .navigation-wrapper .setting-wrapper .setting-title[data-v-f311f930]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .setting-wrapper .no-point[data-v-f311f930]{pointer-events:none}.index-wrapper .navigation-wrapper .setting-wrapper .setting-connect[data-v-f311f930]{font-size:8px;margin-top:16px;cursor:pointer}.index-wrapper .navigation-wrapper .bottom-icons[data-v-f311f930]{position:fixed;bottom:0;height:120px;width:260px;align-items:center;display:flex;flex-direction:row}.index-wrapper .shelf-wrapper[data-v-f311f930]{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-f311f930]{overflow-x:hidden;flex-direction:column}.index-wrapper .navigation-wrapper[data-v-f311f930]{padding:20px 24px;box-sizing:border-box;width:100%}.index-wrapper .navigation-wrapper .navigation-title-wrapper[data-v-f311f930]{white-space:nowrap;display:flex;justify-content:space-between;align-items:flex-end}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-f311f930]{flex-direction:row}.index-wrapper .navigation-wrapper .bottom-wrapper>*[data-v-f311f930]{flex-grow:1;margin-top:18px}.index-wrapper .navigation-wrapper .bottom-wrapper>* .reading-recent[data-v-f311f930],.index-wrapper .navigatioLine truncated
|
||||
@charset "UTF-8";.books-wrapper[data-v-79a0da0d]{overflow:auto}.books-wrapper .wrapper[data-v-79a0da0d]{display:grid;grid-template-columns:repeat(auto-fill,380px);justify-content:space-around;grid-gap:10px}.books-wrapper .wrapper .book[data-v-79a0da0d]{-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-79a0da0d],.books-wrapper .wrapper .book .cover-img .cover[data-v-79a0da0d]{width:84px;height:112px}.books-wrapper .wrapper .book .info[data-v-79a0da0d]{display:flex;flex-direction:column;justify-content:space-around;align-items:left;height:112px;margin-left:20px;flex:1}.books-wrapper .wrapper .book .info .name[data-v-79a0da0d]{width:fit-content;font-size:16px;font-weight:700;color:#33373d}.books-wrapper .wrapper .book .info .sub[data-v-79a0da0d]{display:flex;flex-direction:row;align-items:baseline;justify-content:var(--d0aaf530);font-size:12px;font-weight:600;color:#6b6b6b}.books-wrapper .wrapper .book .info .sub .tags[data-v-79a0da0d] .el-tag{margin-right:.5em}.books-wrapper .wrapper .book .info .sub .update-info[data-v-79a0da0d]{display:flex}.books-wrapper .wrapper .book .info .sub .update-info .dot[data-v-79a0da0d]{margin:0 7px}.books-wrapper .wrapper .book .info .intro[data-v-79a0da0d],.books-wrapper .wrapper .book .info .dur-chapter[data-v-79a0da0d],.books-wrapper .wrapper .book .info .last-chapter[data-v-79a0da0d]{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;text-align:left}.books-wrapper .wrapper .book[data-v-79a0da0d]:hover{background:rgba(0,0,0,.1);transition-duration:.5s}.books-wrapper .wrapper[data-v-79a0da0d]:last-child{margin-right:auto}.books-wrapper[data-v-79a0da0d]::-webkit-scrollbar{width:0!important}@media screen and (max-width: 750px){.books-wrapper .wrapper[data-v-79a0da0d]{display:flex;flex-direction:column}.books-wrapper .wrapper .book[data-v-79a0da0d]{box-sizing:border-box;width:100%;margin-bottom:0;padding:10px 20px}}@font-face{font-family:FZZCYSK;src:local("☺"),url(./shelffont-16b1b95a.ttf);font-style:normal;font-weight:400}.index-wrapper[data-v-ee672f16]{height:100%;width:100%;display:flex;flex-direction:row}.index-wrapper .navigation-wrapper[data-v-ee672f16]{width:260px;min-width:260px;padding:48px 36px;background-color:#f7f7f7}.index-wrapper .navigation-wrapper .navigation-title[data-v-ee672f16]{font-size:24px;font-weight:500;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .navigation-sub-title[data-v-ee672f16]{font-size:16px;font-weight:300;font-family:FZZCYSK;margin-top:16px;color:#b1b1b1}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-ee672f16]{border-radius:50%;margin-top:24px}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-ee672f16] .el-input__wrapper{border-radius:50px;border-color:#e3e3e3}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-ee672f16]{display:flex;flex-direction:column}.index-wrapper .navigation-wrapper .recent-wrapper[data-v-ee672f16]{margin-top:36px}.index-wrapper .navigation-wrapper .recent-wrapper .recent-title[data-v-ee672f16]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent[data-v-ee672f16]{margin:18px 0}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent .recent-book[data-v-ee672f16]{font-size:10px;cursor:pointer}.index-wrapper .navigation-wrapper .setting-wrapper[data-v-ee672f16]{margin-top:36px}.index-wrapper .navigation-wrapper .setting-wrapper .setting-title[data-v-ee672f16]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .setting-wrapper .no-point[data-v-ee672f16]{pointer-events:none}.index-wrapper .navigation-wrapper .setting-wrapper .setting-connect[data-v-ee672f16]{font-size:8px;margin-top:16px;cursor:pointer}.index-wrapper .navigation-wrapper .bottom-icons[data-v-ee672f16]{position:fixed;bottom:0;height:120px;width:260px;align-items:center;display:flex;flex-direction:row}.index-wrapper .shelf-wrapper[data-v-ee672f16]{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-ee672f16]{overflow-x:hidden;flex-direction:column}.index-wrapper .navigation-wrapper[data-v-ee672f16]{padding:20px 24px;box-sizing:border-box;width:100%}.index-wrapper .navigation-wrapper .navigation-title-wrapper[data-v-ee672f16]{white-space:nowrap;display:flex;justify-content:space-between;align-items:flex-end}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-ee672f16]{flex-direction:row}.index-wrapper .navigation-wrapper .bottom-wrapper>*[data-v-ee672f16]{flex-grow:1;margin-top:18px}.index-wrapper .navigation-wrapper .bottom-wrapper>* .reading-recent[data-v-ee672f16],.index-wrapper .navigatioLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{a2 as G,n as V,o as i,d,g as e,F as J,P as D,t as u,c as X,w as P,f as L,M as B,u as s,a3 as W,p as O,i as Z,s as j,z as y,a4 as ee,O as te,a5 as se,T as ae,k as S,e as x,A as oe,L as ne,v as M,I as ce,B as re}from"./vendor-cfc7c64d.js";import{d as ie,u as le}from"./loading-ed807e01.js";import{_ as H,u as de,A as T}from"./index-4e8519b1.js";const F=a=>(O("data-v-79a0da0d"),a=a(),Z(),a),ue={class:"books-wrapper"},he={class:"wrapper"},pe=["onClick"],_e={class:"cover-img"},ve=["src"],ge={class:"info"},me={class:"name"},fe={class:"sub"},we={class:"author"},Ae={key:0,class:"tags"},Ie={key:1,class:"update-info"},ke=F(()=>e("div",{class:"dot"},"•",-1)),Be={class:"size"},ye=F(()=>e("div",{class:"dot"},"•",-1)),Se={class:"date"},xe={key:0,class:"intro"},Ce={key:1,class:"dur-chapter"},Re={class:"last-chapter"},Ee={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(a,{emit:o}){G(l=>({d0aaf530:s(z)}));const C=a,R=o,E=l=>R("bookClick",l),w=l=>/^data:/.test(l)?l:location.origin+"/cover?path="+encodeURIComponent(l),z=V(()=>C.isSearch?"space-between":"flex-start");return(l,n)=>{const A=W;return i(),d("div",ue,[e("div",he,[(i(!0),d(J,null,D(a.books,c=>{var m;return i(),d("div",{class:"book",key:c.bookUrl,onClick:f=>E(c)},[e("div",_e,[(i(),d("img",{class:"cover",src:w(c.coverUrl),key:c.coverUrl,alt:"",loading:"lazy"},null,8,ve))]),e("div",ge,[e("div",me,u(c.name),1),e("div",fe,[e("div",we,u(c.author),1),a.isSearch?(i(),d("div",Ae,[(i(!0),d(J,null,D((m=c.kind)==null?void 0:m.split(",").slice(0,2),f=>(i(),X(A,{key:f},{default:P(()=>[L(u(f),1)]),_:2},1024))),128))])):B("",!0),a.isSearch?B("",!0):(i(),d("div",Ie,[ke,e("div",Be,"共"+u(c.totalChapterNum)+"章",1),ye,e("div",Se,u(s(ie)(c.lastCheckTime)),1)]))]),a.isSearch?(i(),d("div",xe,u(c.intro),1)):B("",!0),a.isSearch?B("",!0):(i(),d("div",Ce," 已读:"+u(c.durChapterTitle),1)),e("div",Re,"最新:"+u(c.latestChapterTitle),1)])],8,pe)}),128))])])}}},ze=H(Ee,[["__scopeId","data-v-79a0da0d"]]);const 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==";const N=a=>(O("data-v-ee672f16"),a=a(),Z(),a),Te={class:"navigation-wrapper"},Ve=N(()=>e("div",{class:"navigation-title-wrapper"},[e("div",{class:"navigation-title"},"阅读"),e("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),Pe={class:"search-wrapper"},Le={class:"bottom-wrapper"},Ne={class:"recent-wrapper"},be=N(()=>e("div",{class:"recent-title"},"最近阅读",-1)),Je={class:"reading-recent"},De={class:"setting-wrapper"},We=N(()=>e("div",{class:"setting-title"},"基本设定",-1)),Oe={class:"setting-item"},Ze={class:"bottom-icons"},He={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},Fe={class:"bottom-icon"},Ke=["src"],Ye={__name:"BookShelf",setup(a){const o=de(),{connectStatus:C,connectType:R,newConnect:E,shelf:w}=j(o),z=V(()=>o.config.theme),l=V(()=>z.value==6),n=y({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),A=y(null),{showLoading:c,closeLoading:m,loadingWrapper:f,isLoading:K}=le(A,"正在获取书籍信息"),g=ee([]),h=y(""),I=y(!1);te(()=>{if(!(I.value&&h.value!="")){if(I.value=!1,g.value=[],h.value==""){g.value=w.value;return}g.value=w.value.filter(t=>t.name.includes(h.value)||t.author.includes(h.value))}});const Y=()=>{h.value!=""&&(g.value=[],o.clearSearchBooks(),c(),I.value=!0,T.search(h.value,t=>{K&&m();try{o.setSearchBooks(JSON.parse(t)),g.value=o.searchBooks}catch(r){throw S.error("后端数据错误"),r}},()=>{m(),g.value.length==0&&S.info("搜索结果为空")}))},U=()=>{},Q=se(),q=async t=>{consLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{A as f,u as i}from"./index-4e8519b1.js";import"./vendor-cfc7c64d.js";f.getReadConfig().then(e=>{var t=e.data.data;if(t){const a=i();let o=JSON.parse(t),s=a.config;o=Object.assign(s,o),a.setConfig(o)}});
|
||||
@@ -1 +0,0 @@
|
||||
import{A as f,u as i}from"./index-5b3b591d.js";import"./vendor-117f3db1.js";f.getReadConfig().then(e=>{var t=e.data.data;if(t){const a=i();let o=JSON.parse(t),s=a.config;o=Object.assign(s,o),a.setConfig(o)}});
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
import{o as a,c as w,r as Ue,a as se,b as ie,d as E,e as g,w as p,f as b,u as i,l as z,g as _,F as O,E as Ve,h as he,p as Ne,i as Te,j as Ie,k as B,m as ge,s as Y,n as G,t as X,q as _e,v as me,x as le,y as $e,z as J,A as K,B as Se,C as Le,D as Re,G as ce,V as Oe,H as Je,I as Z,J as Pe,K as ye,L as De,M as $,N as Ae,O as je,P as A,Q as fe,R as be,S as H,T as Ke,U as Me,W as He,X as Fe,Y as qe,Z as ze,_ as We,$ as Ge,a0 as Qe,a1 as Xe}from"./vendor-117f3db1.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const n of r)if(n.type==="childList")for(const l of n.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function o(r){const n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function s(r){if(r.ep)return;r.ep=!0;const n=o(r);fetch(r.href,n)}})();const Ye="modulepreload",Ze=function(e,t){return new URL(e,t).href},ue={},ne=function(t,o,s){if(!o||o.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(o.map(n=>{if(n=Ze(n,s),n in ue)return;ue[n]=!0;const l=n.endsWith(".css"),k=l?'[rel="stylesheet"]':"";if(!!s)for(let C=r.length-1;C>=0;C--){const v=r[C];if(v.href===n&&(!l||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${k}`))return;const S=document.createElement("link");if(S.rel=l?"stylesheet":Ye,l||(S.as="script",S.crossOrigin=""),S.href=n,document.head.appendChild(S),l)return new Promise((C,v)=>{S.addEventListener("load",C),S.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t()).catch(n=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=n,window.dispatchEvent(l),!l.defaultPrevented)throw n})},P=(e,t)=>{const o=e.__vccOpts||e;for(const[s,r]of t)o[s]=r;return o},et={};function tt(e,t){const o=Ue("router-view");return a(),w(o)}const ot=P(et,[["render",tt]]),ke=[{path:"/",name:"shelf",component:()=>ne(()=>import("./BookShelf-7b67aa1e.js"),["./BookShelf-7b67aa1e.js","./vendor-117f3db1.js","./vendor-b73e16d8.css","./loading-04c8e3bf.js","./loading-c009631e.css","./BookShelf-e004d9ab.css"],import.meta.url)},{path:"/chapter",name:"chapter",component:()=>ne(()=>import("./BookChapter-8d445271.js"),["./BookChapter-8d445271.js","./vendor-117f3db1.js","./vendor-b73e16d8.css","./loading-04c8e3bf.js","./loading-c009631e.css","./BookChapter-1c8277a9.css"],import.meta.url)}];se({history:ie(),routes:ke});const L=e=>(Ne("data-v-aee57c78"),e=e(),Te(),e),nt=L(()=>_("br",null,null,-1)),rt=L(()=>_("br",null,null,-1)),st=L(()=>_("br",null,null,-1)),it=L(()=>_("br",null,null,-1)),lt=L(()=>_("br",null,null,-1)),at={style:{"margin-top":"20px"}},ct=L(()=>_("code",null,"^$()[]{}.?+*|",-1)),ut=L(()=>_("br",null,null,-1)),dt=L(()=>_("code",null,"(?s)",-1)),pt=L(()=>_("br",null,null,-1)),ht=L(()=>_("code",null,"(?m)",-1)),gt=L(()=>_("br",null,null,-1)),_t=L(()=>_("code",null,"(?i)",-1)),mt=L(()=>_("br",null,null,-1)),St={__name:"SourceHelp",setup(e){return(t,o)=>{const s=Ve,r=he;return a(),E(O,null,[g(s,{icon:i(z),href:"https://alanskycn.gitee.io/teachme/",target:"_blank"},{default:p(()=>[b("书源制作教程")]),_:1},8,["icon"]),nt,g(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/29436838",target:"_blank"},{default:p(()=>[b("xpath基础教程")]),_:1},8,["icon"]),rt,g(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/32187820",target:"_blank"},{default:p(()=>[b("xpath高级教程")]),_:1},8,["icon"]),st,g(s,{icon:i(z),href:"https://www.w3cschool.cn/regex_rmjc",target:"_blank"},{default:p(()=>[b("正则表达式教程")]),_:1},8,["icon"]),it,g(s,{icon:i(z),href:"https://regexr-cn.com/",target:"_blank"},{default:p(()=>[b("正则表达式在线验证工具")]),_:1},8,["icon"]),lt,_("div",at,[_("span",null,[g(r,null,{default:p(()=>[ct,b(" 这些是Java正则特殊符号,匹配需转义")]),_:1})]),ut,_("span",null,[g(r,null,{default:p(()=>[dt,b(" 前缀表示跨行解析")]),_:1})]),pt,_("span",null,[g(r,null,{default:p(()=>[ht,b(" 前缀表示逐行匹配")]),_:1})]),gt,_("span",null,[g(r,null,{default:p(()=>[_t,b(" 前缀表示忽略大小写")]),_:1})]),mt])],64)}}},yt=P(St,[["__scopeId","data-v-aee57c78"]]),ft=1e3,U=Ie.create({baseURL:location.origin,timeout:120*ft}),{hostname:ve,port:we}=new URL(location.origin),bt=/source/i.test(location.href),kt=e=>{throw bt&&B({message:"后端错误,检查网络或者阅读app",type:"error"}),e};U.interceptors.response.use(e=>e,kt);const vt=()=>U.get("/getReadConfig"),wt=e=>U.post("/saveReadConfig",e),Ct=e=>U.post("/saveBookProgress",e),xt=e=>{e&&navigator.sendBeacon(`${location.origin}/saveBookProgress`,JSON.stringify(e))},Bt=()=>U.get("/getBookshelf"),Et=e=>U.get("Line truncated
|
||||
import{o as a,c as w,r as Ue,a as se,b as ie,d as E,e as g,w as p,f as b,u as i,l as z,g as _,F as O,E as Ve,h as he,p as Ne,i as Te,j as Ie,k as B,m as ge,s as Y,n as G,t as X,q as _e,v as me,x as le,y as $e,z as J,A as K,B as Se,C as Le,D as Re,G as ce,V as Oe,H as Je,I as Z,J as Pe,K as ye,L as De,M as $,N as Ae,O as je,P as A,Q as fe,R as be,S as H,T as Ke,U as Me,W as He,X as Fe,Y as qe,Z as ze,_ as We,$ as Ge,a0 as Qe,a1 as Xe}from"./vendor-cfc7c64d.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const n of r)if(n.type==="childList")for(const l of n.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function o(r){const n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function s(r){if(r.ep)return;r.ep=!0;const n=o(r);fetch(r.href,n)}})();const Ye="modulepreload",Ze=function(e,t){return new URL(e,t).href},ue={},ne=function(t,o,s){if(!o||o.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(o.map(n=>{if(n=Ze(n,s),n in ue)return;ue[n]=!0;const l=n.endsWith(".css"),k=l?'[rel="stylesheet"]':"";if(!!s)for(let C=r.length-1;C>=0;C--){const v=r[C];if(v.href===n&&(!l||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${k}`))return;const S=document.createElement("link");if(S.rel=l?"stylesheet":Ye,l||(S.as="script",S.crossOrigin=""),S.href=n,document.head.appendChild(S),l)return new Promise((C,v)=>{S.addEventListener("load",C),S.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t()).catch(n=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=n,window.dispatchEvent(l),!l.defaultPrevented)throw n})},P=(e,t)=>{const o=e.__vccOpts||e;for(const[s,r]of t)o[s]=r;return o},et={};function tt(e,t){const o=Ue("router-view");return a(),w(o)}const ot=P(et,[["render",tt]]),ke=[{path:"/",name:"shelf",component:()=>ne(()=>import("./BookShelf-c00a3d81.js"),["./BookShelf-c00a3d81.js","./vendor-cfc7c64d.js","./vendor-b73e16d8.css","./loading-ed807e01.js","./loading-c009631e.css","./BookShelf-a1d07211.css"],import.meta.url)},{path:"/chapter",name:"chapter",component:()=>ne(()=>import("./BookChapter-eef9836a.js"),["./BookChapter-eef9836a.js","./vendor-cfc7c64d.js","./vendor-b73e16d8.css","./loading-ed807e01.js","./loading-c009631e.css","./BookChapter-1c8277a9.css"],import.meta.url)}];se({history:ie(),routes:ke});const L=e=>(Ne("data-v-aee57c78"),e=e(),Te(),e),nt=L(()=>_("br",null,null,-1)),rt=L(()=>_("br",null,null,-1)),st=L(()=>_("br",null,null,-1)),it=L(()=>_("br",null,null,-1)),lt=L(()=>_("br",null,null,-1)),at={style:{"margin-top":"20px"}},ct=L(()=>_("code",null,"^$()[]{}.?+*|",-1)),ut=L(()=>_("br",null,null,-1)),dt=L(()=>_("code",null,"(?s)",-1)),pt=L(()=>_("br",null,null,-1)),ht=L(()=>_("code",null,"(?m)",-1)),gt=L(()=>_("br",null,null,-1)),_t=L(()=>_("code",null,"(?i)",-1)),mt=L(()=>_("br",null,null,-1)),St={__name:"SourceHelp",setup(e){return(t,o)=>{const s=Ve,r=he;return a(),E(O,null,[g(s,{icon:i(z),href:"https://alanskycn.gitee.io/teachme/",target:"_blank"},{default:p(()=>[b("书源制作教程")]),_:1},8,["icon"]),nt,g(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/29436838",target:"_blank"},{default:p(()=>[b("xpath基础教程")]),_:1},8,["icon"]),rt,g(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/32187820",target:"_blank"},{default:p(()=>[b("xpath高级教程")]),_:1},8,["icon"]),st,g(s,{icon:i(z),href:"https://www.w3cschool.cn/regex_rmjc",target:"_blank"},{default:p(()=>[b("正则表达式教程")]),_:1},8,["icon"]),it,g(s,{icon:i(z),href:"https://regexr-cn.com/",target:"_blank"},{default:p(()=>[b("正则表达式在线验证工具")]),_:1},8,["icon"]),lt,_("div",at,[_("span",null,[g(r,null,{default:p(()=>[ct,b(" 这些是Java正则特殊符号,匹配需转义")]),_:1})]),ut,_("span",null,[g(r,null,{default:p(()=>[dt,b(" 前缀表示跨行解析")]),_:1})]),pt,_("span",null,[g(r,null,{default:p(()=>[ht,b(" 前缀表示逐行匹配")]),_:1})]),gt,_("span",null,[g(r,null,{default:p(()=>[_t,b(" 前缀表示忽略大小写")]),_:1})]),mt])],64)}}},yt=P(St,[["__scopeId","data-v-aee57c78"]]),ft=1e3,U=Ie.create({baseURL:location.origin,timeout:120*ft}),{hostname:ve,port:we}=new URL(location.origin),bt=/source/i.test(location.href),kt=e=>{throw bt&&B({message:"后端错误,检查网络或者阅读app",type:"error"}),e};U.interceptors.response.use(e=>e,kt);const vt=()=>U.get("/getReadConfig"),wt=e=>U.post("/saveReadConfig",e),Ct=e=>U.post("/saveBookProgress",e),xt=e=>{e&&navigator.sendBeacon(`${location.origin}/saveBookProgress`,JSON.stringify(e))},Bt=()=>U.get("/getBookshelf"),Et=e=>U.get("Line truncated
|
||||
`},n=async()=>{o.value="",await j.saveSource(t.currentSource),j.debug(t.currentSourceUrl,s.value||t.searchKey,r,t.debugFinish)},l=G(()=>/bookSource/.test(window.location.href));return(k,m)=>{const S=Z;return a(),E(O,null,[i(l)?(a(),w(S,{key:0,id:"debug-key",modelValue:i(s),"onUpdate:modelValue":m[0]||(m[0]=C=>K(s)?s.value=C:null),placeholder:"搜索书名、作者","prefix-icon":i(Se),style:{"padding-bottom":"4px"},onKeydown:De(n,["enter"])},null,8,["modelValue","prefix-icon"])):$("",!0),g(S,{id:"debug-text",modelValue:i(o),"onUpdate:modelValue":m[1]||(m[1]=C=>K(o)?o.value=C:null),type:"textarea",readonly:"",rows:"29",placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}},zt=P(qt,[["__scopeId","data-v-f7a4e94b"]]),yo=ge("book",{state:()=>({connectStatus:"正在连接后端服务器……",connectType:"",newConnect:!0,searchBooks:[],shelf:[],catalog:[],readingBook:{index:0,chapterPos:0},popCataVisible:!1,contentLoading:!0,showContent:!1,config:{theme:0,font:0,fontSize:18,readWidth:800,infiniteLoading:!1,customFontName:"",jumpDuration:1e3,spacing:{paragraph:1,line:.8,letter:0}},miniInterface:!1,readSettingsVisible:!1}),getters:{bookProgress:e=>{var l;if(e.catalog.length==0)return;const{index:t,chapterPos:o,bookName:s,bookAuthor:r}=e.readingBook;let n=(l=e.catalog[t])==null?void 0:l.title;if(n)return{name:s,author:r,durChapterIndex:t,durChapterPos:o,durChapterTime:new Date().getTime(),durChapterTitle:n}}},actions:{setConnectStatus(e){this.connectStatus=e},setConnectType(e){this.connectType=e},setNewConnect(e){this.newConnect=e},addBooks(e){this.shelf=e},setCatalog(e){this.catalog=e},setPopCataVisible(e){this.popCataVisible=e},setContentLoading(e){this.contentLoading=e},setReadingBook(e){this.readingBook=e},setConfig(e){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(t=>{this.shelf.find(s=>s.bookUrl==t.bookUrl)===void 0&&this.searchBooks.push(t)})},clearSearchBooks(){this.searchBooks=[]},async saveBookProgress(){return this.bookProgress?j.saveBookProgress(this.bookProgress):Promise.resolve()}}}),Wt=Ae();const Gt={__name:"SourceJson",setup(e){const t=M(),o=J(""),s=async r=>{try{t.changeEditTabSource(JSON.parse(r))}catch{B({message:"粘贴的源格式错误",type:"error"})}};return je(async()=>{let r=t.editTabSource;Object.keys(r).length>0?o.value=JSON.stringify(r,null,4):o.value=""}),(r,n)=>{const l=Z;return a(),w(l,{id:"source-json",modelValue:i(o),"onUpdate:modelValue":n[0]||(n[0]=k=>K(o)?o.value=k:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:"30",onChange:s,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}},Qt=P(Gt,[["__scopeId","data-v-7e91a802"]]);const Xt={__name:"SourceTabTools",setup(e){const t=M(),{currentTab:o}=Y(t),s=J([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(r,n)=>{const l=Qt,k=zt,m=Ft,S=yt,C=fe,v=be;return a(),w(v,{modelValue:i(o),"onUpdate:modelValue":n[0]||(n[0]=x=>K(o)?o.value=x:null)},{default:p(()=>[(a(!0),E(O,null,A(i(s),(x,c)=>(a(),w(C,{key:x[0],name:x[0],label:x[1]},{default:p(()=>[c==0?(a(),w(l,{key:0})):$("",!0),c==1?(a(),w(k,{key:1})):$("",!0),c==2?(a(),w(m,{key:2})):$("",!0),c==3?(a(),w(S,{key:3})):$("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}},Yt=P(Xt,[["__scopeId","data-v-dcce2457"]]);const Zt={class:"menu flex-column-center"},eo={class:"hotkeys-header flex-space-between"},to=["id"],oo={key:0},no={class:"hotkeys-settings flex-column-center"},ro={class:"title"},so={class:"hotkeys-item__content"},io={key:0},lo={key:0},ao={__name:"ToolBar",setup(e){const t=M(),o=()=>{const d=B({message:"加载中……",showClose:!0,duration:0});j.getSources().then(({data:h})=>{h.isSuccess?(t.changeTabName("editList"),t.saveSources(h.data),B({message:`成功拉取${h.data.length}条源`,type:"success"})):B({message:h.errorMsg??"后端错误",type:"error"})}).finally(()=>d.close())},s=()=>{let d=t.sources;if(t.changeTabName("editList"),d.length===0)return B({message:"空空如也",type:"info"});B({message:"正在推送中",type:"info"}),j.saveSources(d).then(({data:h})=>{if(h.isSuccess){let u=h.data;if(Array.isArray(u)){let D="";d.length>u.length&&(D=`
|
||||
推送失败的源将用红色字体标注!`,t.setPushReturnSources(u)),B({message:`批量推送源到「阅读3.0APP」
|
||||
共计: ${d.length} 条
|
||||
@@ -6,4 +6,4 @@ import{o as a,c as w,r as Ue,a as se,b as ie,d as E,e as g,w as p,f as b,u as i,
|
||||
失败: ${d.length-u.length} 条${D}`,type:"success"})}}else B({message:`批量推送源失败!
|
||||
ErrorMsg: ${h.errorMsg}`,type:"error"})})},r=()=>{t.changeTabName("editTab"),t.changeEditTabSource(t.currentSource)},n=()=>{t.changeCurrentSource(t.editTabSource)},l=()=>{t.editHistoryUndo()},k=()=>{t.clearEdit(),B({message:"已清除",type:"success"})},m=()=>{t.clearEdit(),t.clearAllHistory(),B({message:"已清除所有历史记录",type:"success"})},S=()=>{let d=/bookSource/.test(location.href),h=t.currentSource;Jt(h)?j.saveSource(h).then(({data:u})=>{u.isSuccess?(B({message:`源《${d?h.bookSourceName:h.sourceName}》已成功保存到「阅读3.0APP」`,type:"success"}),t.saveCurrentSource()):B({message:`源《${d?h.bookSourceName:h.sourceName}》保存失败!
|
||||
ErrorMsg: ${u.errorMsg}`,type:"error"})}):B({message:"请检查<必填>项是否全部填写",type:"error"})},C=()=>{t.startDebug()},v=J(Array.of({name:"⇈推送源",hotKeys:[],action:s},{name:"⇊拉取源",hotKeys:[],action:o},{name:"⋙生成源",hotKeys:[],action:r},{name:"⋘编辑源",hotKeys:[],action:n},{name:"✗清空表单",hotKeys:[],action:k},{name:"↶撤销操作",hotKeys:[],action:l},{name:"↷重做操作",hotKeys:[],action:m},{name:"⇏调试源",hotKeys:[],action:C},{name:"✓保存源",hotKeys:[],action:S})),x=J(!0),c=J(!1),y=J(-1),V=()=>{c.value||(x.value=!1),c.value=!1};ye(x,d=>{if(!d){H.unbind("*"),q(),T();return}q(),H.unbind(),H("*",h=>{h.preventDefault();let u=H.getPressedKeyString();u.length==1&&u[0]=="esc"||c.value&&y.value>-1&&(v.value[y.value].hotKeys=u)})},{immediate:!0});const f=d=>{c.value=!0,B({message:"按ESC键或者点击空白处结束录入",type:"info"}),v.value[d].hotKeys=[],y.value=d},N=()=>{const d=[];v.value.forEach(({hotKeys:h})=>{d.push(h)}),R(d),x.value=!1},T=()=>{H.filter=()=>!0,v.value.forEach(({hotKeys:d,action:h})=>{d.length!=0&&H(d.join("+"),u=>{u.preventDefault(),h.call(null)})})},R=d=>{localStorage.setItem("legado_web_hotkeys",JSON.stringify(d))};function q(){try{const d=JSON.parse(localStorage.getItem("legado_web_hotkeys"));return!Array.isArray(d)||d.length==0?!1:(v.value.forEach((h,u)=>h.hotKeys=d[u]),!0)}catch{B({message:"快捷键配置错误",type:"error"}),localStorage.removeItem("legado_web_hotkeys")}return!1}return Ke(()=>{q()&&(x.value=!1)}),(d,h)=>{const u=le,D=he,Be=He;return a(),E(O,null,[_("div",Zt,[(a(!0),E(O,null,A(i(v),I=>(a(),w(u,{size:"large",key:I.name,onClick:I.action},{default:p(()=>[b(X(I.name),1)]),_:2},1032,["onClick"]))),128)),g(u,{size:"large",onClick:h[0]||(h[0]=()=>x.value=!0)},{default:p(()=>[b("快捷键")]),_:1})]),g(Be,{modelValue:i(x),"onUpdate:modelValue":h[1]||(h[1]=I=>K(x)?x.value=I:null),"show-close":!1,"before-close":V},{header:p(({titleClass:I,titleId:te})=>[_("div",eo,[_("div",{id:te,class:me(I)},[b(" 快捷键设置 "),i(c)?(a(),E("span",oo,[g(D,null,{default:p(()=>[b(" / 录入中 ")]),_:1})])):$("",!0)],10,to),g(u,{disabled:i(c),onClick:N,icon:i(Me)},{default:p(()=>[b("保存")]),_:1},8,["disabled","icon"])])]),default:p(()=>[_("div",no,[(a(!0),E(O,null,A(i(v),(I,te)=>(a(),E("div",{key:I.name,class:"hotkeys-item flex-space-between"},[_("span",ro,[g(D,null,{default:p(()=>[b(X(I.name),1)]),_:2},1024)]),_("div",so,[(a(!0),E(O,null,A(I.hotKeys,(oe,Ee)=>(a(),E("div",{key:oe},[_("kbd",null,X(oe),1),Ee+1<I.hotKeys.length?(a(),E("span",io,[g(D,null,{default:p(()=>[b("+")]),_:1})])):$("",!0)]))),128)),I.hotKeys.length==0?(a(),E("span",lo,"未设置")):$("",!0)]),g(u,{disabled:i(c),text:"",icon:i(_e),onClick:oe=>f(te)},{default:p(()=>[b("编辑")]),_:2},1032,["disabled","icon","onClick"])]))),128))])]),_:1},8,["modelValue"])],64)}}},co=P(ao,[["__scopeId","data-v-9fd45dad"]]);const uo={__name:"SourceTabForm",props:["config"],setup(e){const t=M(),{currentSource:o}=Y(t);return(s,r)=>{const n=Z,l=Fe,k=qe,m=ze,S=We,C=Ge,v=Qe,x=fe,c=be;return a(),w(c,{id:"source-edit"},{default:p(()=>[(a(!0),E(O,null,A(Object.values(e.config),({name:y,children:V})=>(a(),w(x,{label:y,key:y},{default:p(()=>[g(v,{"label-position":"right","label-width":"auto"},{default:p(()=>[(a(!0),E(O,null,A(V,({type:f,title:N,namespace:T,id:R,array:q,hint:d,required:h})=>(a(),w(C,{label:N,key:N,required:h},{default:p(()=>[f=="String"&&typeof T>"u"?(a(),w(n,{key:0,type:"textarea",modelValue:i(o)[R],"onUpdate:modelValue":u=>i(o)[R]=u,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):$("",!0),f=="String"&&typeof T<"u"?(a(),w(n,{key:1,type:"textarea",modelValue:i(o)[T][R],"onUpdate:modelValue":u=>i(o)[T][R]=u,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):$("",!0),f=="Boolean"?(a(),w(l,{key:2,modelValue:i(o)[R],"onUpdate:modelValue":u=>i(o)[R]=u},null,8,["modelValue","onUpdate:modelValue"])):$("",!0),f=="Number"?(a(),w(k,{key:3,modelValue:i(o)[R],"onUpdate:modelValue":u=>i(o)[R]=u,min:0},null,8,["modelValue","onUpdate:modelValue"])):$("",!0),f=="Array"?(a(),w(S,{key:4,modelValue:i(o)[R],"onUpdate:modelValue":u=>i(o)[R]=u},{default:p(()=>[(a(!0),E(O,null,A(q,(u,D)=>(a(),w(m,{value:D,key:u,label:u},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):$("",!0)]),_:2},1032,["label","required"]))),128))]),_:2},1024)]),_:2},1032,["label"]))),128))]),_:1})}}},po=P(uo,[["__scopeId","data-v-bced2b97"]]),ho={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:"会显示在源列表",required:!0},{title:"源分组",id:"bookSourceGroup",type:"String",hint:"描述源的特征信息"},{title:"源注释",id:
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"}]}};const _o={class:"editor"},mo={__name:"SourceEditor",setup(e){let t;return/bookSource/i.test(location.href)?(t=ho,document.title="书源管理"):(t=go,document.title="订阅源管理"),(o,s)=>{const r=po,n=co,l=Yt;return a(),E("div",_o,[g(r,{class:"left",config:i(t)},null,8,["config"]),g(n),g(l,{class:"right"})])}}},pe=P(mo,[["__scopeId","data-v-5fe2b79d"]]),Ce=[{path:"/bookSource",name:"book-home",component:pe},{path:"/rssSource",name:"rss-home",component:pe}];se({history:ie(),routes:Ce});const xe=se({history:ie(),routes:ke.concat(Ce)});xe.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});Xe(ot).use(Wt).use(xe).mount("#app");ne(()=>import("./config-dddfc601.js"),["./config-dddfc601.js","./vendor-117f3db1.js","./vendor-b73e16d8.css","./config-811f2a0b.css"],import.meta.url);export{j as A,P as _,yo as u};
|
||||
名称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"}]}};const _o={class:"editor"},mo={__name:"SourceEditor",setup(e){let t;return/bookSource/i.test(location.href)?(t=ho,document.title="书源管理"):(t=go,document.title="订阅源管理"),(o,s)=>{const r=po,n=co,l=Yt;return a(),E("div",_o,[g(r,{class:"left",config:i(t)},null,8,["config"]),g(n),g(l,{class:"right"})])}}},pe=P(mo,[["__scopeId","data-v-5fe2b79d"]]),Ce=[{path:"/bookSource",name:"book-home",component:pe},{path:"/rssSource",name:"rss-home",component:pe}];se({history:ie(),routes:Ce});const xe=se({history:ie(),routes:ke.concat(Ce)});xe.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});Xe(ot).use(Wt).use(xe).mount("#app");ne(()=>import("./config-87704387.js"),["./config-87704387.js","./vendor-cfc7c64d.js","./vendor-b73e16d8.css","./config-811f2a0b.css"],import.meta.url);export{j as A,P as _,yo as u};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{u as D,z as L,K as v,a5 as Y,ae as y}from"./vendor-117f3db1.js";import{u as b}from"./index-5b3b591d.js";function k(t){return typeof t=="function"?t():D(t)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const w=()=>{};function H(t,n){function e(...o){return new Promise((a,r)=>{Promise.resolve(t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(a).catch(r)})}return e}function W(t,n=!0,e=!0,o=!1){let a=0,r,i=!0,s=w,l;const f=()=>{r&&(clearTimeout(r),r=void 0,s(),s=w)};return p=>{const c=k(t),g=Date.now()-a,d=()=>l=p();return f(),c<=0?(a=Date.now(),d()):(g>c&&(e||!i)?(a=Date.now(),d()):n&&(l=new Promise((m,h)=>{s=o?h:m,r=setTimeout(()=>{a=Date.now(),i=!0,m(d()),f()},Math.max(0,c-g))})),!e&&!r&&(r=setTimeout(()=>i=!0,c)),i=!1,l)}}function E(t,n=200,e=!1,o=!0,a=!1){return H(W(n,e,o,a),t)}const T=/[YMDHhms]o|\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function $(t,n,e,o){let a=t<12?"AM":"PM";return o&&(a=a.split("").reduce((r,i)=>r+=`${i}.`,"")),e?a.toLowerCase():a}function u(t){const n=["th","st","nd","rd"],e=t%100;return t+(n[(e-20)%10]||n[e]||n[0])}function x(t,n,e={}){var o;const a=t.getFullYear(),r=t.getMonth(),i=t.getDate(),s=t.getHours(),l=t.getMinutes(),f=t.getSeconds(),M=t.getMilliseconds(),p=t.getDay(),c=(o=e.customMeridiem)!=null?o:$,g={Yo:()=>u(a),YY:()=>String(a).slice(-2),YYYY:()=>a,M:()=>r+1,Mo:()=>u(r+1),MM:()=>`${r+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(e.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(e.locales,{month:"long"}),D:()=>String(i),Do:()=>u(i),DD:()=>`${i}`.padStart(2,"0"),H:()=>String(s),Ho:()=>u(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),ho:()=>u(s%12||12),hh:()=>`${s%12||12}`.padStart(2,"0"),m:()=>String(l),mo:()=>u(l),mm:()=>`${l}`.padStart(2,"0"),s:()=>String(f),so:()=>u(f),ss:()=>`${f}`.padStart(2,"0"),SSS:()=>`${M}`.padStart(3,"0"),d:()=>p,dd:()=>t.toLocaleDateString(e.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(e.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(e.locales,{weekday:"long"}),A:()=>c(s,l),AA:()=>c(s,l,!1,!0),a:()=>c(s,l,!0),aa:()=>c(s,l,!0,!0)};return n.replace(T,(d,m)=>{var h,S;return(S=m??((h=g[d])==null?void 0:h.call(g)))!=null?S:d})}const R=t=>/,\s*\{/.test(t)||!(t.startsWith("http")||t.startsWith("data:")||t.startsWith("blob:"));function U(t){return location.origin+"/image?path="+encodeURIComponent(t)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+b().config.readWidth}const z=t=>{let n=new Date().getTime(),e=Math.floor((n-t)/1e3),o="";return e<=30?o="刚刚":e<60?o=e+"秒前":e<3600?o=Math.floor(e/60)+"分钟前":e<86400?o=Math.floor(e/3600)+"小时前":e<2592e3?o=Math.floor(e/86400)+"天前":o=x(new Date(t),"YYYY-MM-DD"),o},A='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="currentColor" d="M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"/></svg>';const C=(t,n,e=A)=>{const o=L(!1);let a=null;const r=()=>o.value=!1,i=()=>o.value=!0;v(o,l=>{if(!l)return a==null?void 0:a.close();a=y.service({target:D(t),spinner:e,text:n,lock:!0,background:"rgba(0, 0, 0, 0)"})});const s=l=>{if(!(l instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return i(),l.finally(r)};return Y(()=>{r()}),{isLoading:o,showLoading:i,closeLoading:r,loadingWrapper:s}};export{E as a,z as d,U as g,R as i,C as u};
|
||||
import{u as D,z as L,K as v,a6 as Y,ae as y}from"./vendor-cfc7c64d.js";import{u as b}from"./index-4e8519b1.js";function k(t){return typeof t=="function"?t():D(t)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const w=()=>{};function H(t,n){function e(...o){return new Promise((a,r)=>{Promise.resolve(t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(a).catch(r)})}return e}function W(t,n=!0,e=!0,o=!1){let a=0,r,i=!0,s=w,l;const f=()=>{r&&(clearTimeout(r),r=void 0,s(),s=w)};return p=>{const c=k(t),g=Date.now()-a,d=()=>l=p();return f(),c<=0?(a=Date.now(),d()):(g>c&&(e||!i)?(a=Date.now(),d()):n&&(l=new Promise((m,h)=>{s=o?h:m,r=setTimeout(()=>{a=Date.now(),i=!0,m(d()),f()},Math.max(0,c-g))})),!e&&!r&&(r=setTimeout(()=>i=!0,c)),i=!1,l)}}function E(t,n=200,e=!1,o=!0,a=!1){return H(W(n,e,o,a),t)}const T=/[YMDHhms]o|\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function $(t,n,e,o){let a=t<12?"AM":"PM";return o&&(a=a.split("").reduce((r,i)=>r+=`${i}.`,"")),e?a.toLowerCase():a}function u(t){const n=["th","st","nd","rd"],e=t%100;return t+(n[(e-20)%10]||n[e]||n[0])}function x(t,n,e={}){var o;const a=t.getFullYear(),r=t.getMonth(),i=t.getDate(),s=t.getHours(),l=t.getMinutes(),f=t.getSeconds(),M=t.getMilliseconds(),p=t.getDay(),c=(o=e.customMeridiem)!=null?o:$,g={Yo:()=>u(a),YY:()=>String(a).slice(-2),YYYY:()=>a,M:()=>r+1,Mo:()=>u(r+1),MM:()=>`${r+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(e.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(e.locales,{month:"long"}),D:()=>String(i),Do:()=>u(i),DD:()=>`${i}`.padStart(2,"0"),H:()=>String(s),Ho:()=>u(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),ho:()=>u(s%12||12),hh:()=>`${s%12||12}`.padStart(2,"0"),m:()=>String(l),mo:()=>u(l),mm:()=>`${l}`.padStart(2,"0"),s:()=>String(f),so:()=>u(f),ss:()=>`${f}`.padStart(2,"0"),SSS:()=>`${M}`.padStart(3,"0"),d:()=>p,dd:()=>t.toLocaleDateString(e.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(e.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(e.locales,{weekday:"long"}),A:()=>c(s,l),AA:()=>c(s,l,!1,!0),a:()=>c(s,l,!0),aa:()=>c(s,l,!0,!0)};return n.replace(T,(d,m)=>{var h,S;return(S=m??((h=g[d])==null?void 0:h.call(g)))!=null?S:d})}const R=t=>/,\s*\{/.test(t)||!(t.startsWith("http")||t.startsWith("data:")||t.startsWith("blob:"));function U(t){return location.origin+"/image?path="+encodeURIComponent(t)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+b().config.readWidth}const z=t=>{let n=new Date().getTime(),e=Math.floor((n-t)/1e3),o="";return e<=30?o="刚刚":e<60?o=e+"秒前":e<3600?o=Math.floor(e/60)+"分钟前":e<86400?o=Math.floor(e/3600)+"小时前":e<2592e3?o=Math.floor(e/86400)+"天前":o=x(new Date(t),"YYYY-MM-DD"),o},A='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="currentColor" d="M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"/></svg>';const C=(t,n,e=A)=>{const o=L(!1);let a=null;const r=()=>o.value=!1,i=()=>o.value=!0;v(o,l=>{if(!l)return a==null?void 0:a.close();a=y.service({target:D(t),spinner:e,text:n,lock:!0,background:"rgba(0, 0, 0, 0)"})});const s=l=>{if(!(l instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return i(),l.finally(r)};return Y(()=>{r()}),{isLoading:o,showLoading:i,closeLoading:r,loadingWrapper:s}};export{E as a,z as d,U as g,R as i,C as u};
|
||||
+1
-1
@@ -46,4 +46,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
||||
* pinia v2.1.7
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let sg;const Ra=e=>sg=e,ig=Symbol();function Ql(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ns;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ns||(ns={}));function k8(){const e=$p(!0),t=e.run(()=>z({}));let n=[],r=[];const o=Zi({install(s){Ra(o),o._a=s,s.provide(ig,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!e1?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const ag=()=>{};function Sp(e,t,n,r=ag){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&iu()&&au(o),o}function eo(e,...t){e.slice().forEach(n=>{n(...t)})}const zR=e=>e();function eu(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];Ql(o)&&Ql(r)&&e.hasOwnProperty(n)&&!Ue(r)&&!Mn(r)?e[n]=eu(o,r):e[n]=r}return e}const VR=Symbol();function HR(e){return!Ql(e)||!e.hasOwnProperty(VR)}const{assign:Qn}=Object;function KR(e){return!!(Ue(e)&&e.effect)}function UR(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=Hr(n.state.value[e]);return Qn(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=Zi(T(()=>{Ra(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=lg(e,u,t,n,r,!0),l}function lg(e,t,n={},r,o,s){let i;const a=Qn({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],h;const m=r.state.value[e];!s&&!m&&(r.state.value[e]={}),z({});let p;function y(w){let I;u=c=!1,typeof w=="function"?(w(r.state.value[e]),I={type:ns.patchFunction,storeId:e,events:h}):(eu(r.state.value[e],w),I={type:ns.patchObject,payload:w,storeId:e,events:h});const N=p=Symbol();De().then(()=>{p===N&&(u=!0)}),c=!0,eo(f,I,r.state.value[e])}const g=s?function(){const{state:I}=n,N=I?I():{};this.$patch(V=>{Qn(V,N)})}:ag;function C(){i.stop(),f=[],d=[],r._s.delete(e)}function _(w,I){return function(){Ra(r);const N=Array.from(arguments),V=[],F=[];function K(j){V.push(j)}function A(j){F.push(j)}eo(d,{args:N,name:w,store:R,after:K,onError:A});let B;try{B=I.apply(this&&this.$id===e?this:R,N)}catch(j){throw eo(F,j),j}return B instanceof Promise?B.then(j=>(eo(V,j),j)).catch(j=>(eo(F,j),Promise.reject(j))):(eo(V,B),B)}}const O={_p:r,$id:e,$onAction:Sp.bind(null,d),$patch:y,$reset:g,$subscribe(w,I={}){const N=Sp(f,w,I.detached,()=>V()),V=i.run(()=>de(()=>r.state.value[e],F=>{(I.flush==="sync"?c:u)&&w({storeId:e,type:ns.direct,events:h},F)},Qn({},l,I)));return N},$dispose:C},R=Et(O);r._s.set(e,R);const E=(r._a&&r._a.runWithContext||zR)(()=>r._e.run(()=>(i=$p()).run(t)));for(const w in E){const I=E[w];if(Ue(I)&&!KR(I)||Mn(I))s||(m&&HR(I)&&(Ue(I)?I.value=m[w]:eu(I,m[w])),r.state.value[e][w]=I);else if(typeof I=="function"){const N=_(w,I);E[w]=N,a.actions[w]=I}}return Qn(R,E),Qn(Ae(R),E),Object.defineProperty(R,"$state",{get:()=>r.state.value[e],set:w=>{y(I=>{Qn(I,w)})}}),r._p.forEach(w=>{Qn(R,i.run(()=>w({store:R,app:r._a,pinia:r,options:a})))}),m&&s&&n.hydrate&&n.hydrate(R.$state,m),u=!0,c=!0,R}function L8(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=Ky();return a=a||(u?Ee(ig,null):null),a&&Ra(a),a=sg,a._s.has(r)||(s?lg(r,t,o,a):UR(r,o,a)),a._s.get(r)}return i.$id=r,i}function F8(e){{e=Ae(e);const t={};for(const n in e){const r=e[n];(Ue(r)||Mn(r))&&(t[n]=Vt(e,n))}return t}}const al=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function ll(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function zo(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.deachEvent&&e.deachEvent("on".concat(t),n)}function ug(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 cg(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 qR(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 Es={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,"-":al?173:189,"=":al?61:187,";":al?59:186,"'":222,"[":219,"]":221,"\\":220},Cn={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},tu={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKLine truncated
|
||||
*/let sg;const Ra=e=>sg=e,ig=Symbol();function Ql(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ns;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ns||(ns={}));function k8(){const e=$p(!0),t=e.run(()=>z({}));let n=[],r=[];const o=Zi({install(s){Ra(o),o._a=s,s.provide(ig,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!e1?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const ag=()=>{};function Sp(e,t,n,r=ag){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&iu()&&au(o),o}function eo(e,...t){e.slice().forEach(n=>{n(...t)})}const zR=e=>e();function eu(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];Ql(o)&&Ql(r)&&e.hasOwnProperty(n)&&!Ue(r)&&!Mn(r)?e[n]=eu(o,r):e[n]=r}return e}const VR=Symbol();function HR(e){return!Ql(e)||!e.hasOwnProperty(VR)}const{assign:Qn}=Object;function KR(e){return!!(Ue(e)&&e.effect)}function UR(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=Hr(n.state.value[e]);return Qn(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=Zi(T(()=>{Ra(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=lg(e,u,t,n,r,!0),l}function lg(e,t,n={},r,o,s){let i;const a=Qn({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],h;const m=r.state.value[e];!s&&!m&&(r.state.value[e]={}),z({});let p;function y(w){let I;u=c=!1,typeof w=="function"?(w(r.state.value[e]),I={type:ns.patchFunction,storeId:e,events:h}):(eu(r.state.value[e],w),I={type:ns.patchObject,payload:w,storeId:e,events:h});const N=p=Symbol();De().then(()=>{p===N&&(u=!0)}),c=!0,eo(f,I,r.state.value[e])}const g=s?function(){const{state:I}=n,N=I?I():{};this.$patch(V=>{Qn(V,N)})}:ag;function C(){i.stop(),f=[],d=[],r._s.delete(e)}function _(w,I){return function(){Ra(r);const N=Array.from(arguments),V=[],F=[];function K(j){V.push(j)}function A(j){F.push(j)}eo(d,{args:N,name:w,store:R,after:K,onError:A});let B;try{B=I.apply(this&&this.$id===e?this:R,N)}catch(j){throw eo(F,j),j}return B instanceof Promise?B.then(j=>(eo(V,j),j)).catch(j=>(eo(F,j),Promise.reject(j))):(eo(V,B),B)}}const O={_p:r,$id:e,$onAction:Sp.bind(null,d),$patch:y,$reset:g,$subscribe(w,I={}){const N=Sp(f,w,I.detached,()=>V()),V=i.run(()=>de(()=>r.state.value[e],F=>{(I.flush==="sync"?c:u)&&w({storeId:e,type:ns.direct,events:h},F)},Qn({},l,I)));return N},$dispose:C},R=Et(O);r._s.set(e,R);const E=(r._a&&r._a.runWithContext||zR)(()=>r._e.run(()=>(i=$p()).run(t)));for(const w in E){const I=E[w];if(Ue(I)&&!KR(I)||Mn(I))s||(m&&HR(I)&&(Ue(I)?I.value=m[w]:eu(I,m[w])),r.state.value[e][w]=I);else if(typeof I=="function"){const N=_(w,I);E[w]=N,a.actions[w]=I}}return Qn(R,E),Qn(Ae(R),E),Object.defineProperty(R,"$state",{get:()=>r.state.value[e],set:w=>{y(I=>{Qn(I,w)})}}),r._p.forEach(w=>{Qn(R,i.run(()=>w({store:R,app:r._a,pinia:r,options:a})))}),m&&s&&n.hydrate&&n.hydrate(R.$state,m),u=!0,c=!0,R}function L8(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=Ky();return a=a||(u?Ee(ig,null):null),a&&Ra(a),a=sg,a._s.has(r)||(s?lg(r,t,o,a):UR(r,o,a)),a._s.get(r)}return i.$id=r,i}function F8(e){{e=Ae(e);const t={};for(const n in e){const r=e[n];(Ue(r)||Mn(r))&&(t[n]=Vt(e,n))}return t}}const al=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function ll(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function zo(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.deachEvent&&e.deachEvent("on".concat(t),n)}function ug(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 cg(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 qR(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 Es={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,"-":al?173:189,"=":al?61:187,";":al?59:186,"'":222,"[":219,"]":221,"\\":220},Cn={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},tu={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKLine 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-5b3b591d.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./assets/vendor-117f3db1.js">
|
||||
<script type="module" crossorigin src="./assets/index-4e8519b1.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./assets/vendor-cfc7c64d.js">
|
||||
<link rel="stylesheet" href="./assets/vendor-b73e16d8.css">
|
||||
<link rel="stylesheet" href="./assets/index-0700b986.css">
|
||||
</head>
|
||||
|
||||
Reference in new issue
Block a user