From 0c5affd7e51547597dd484cf47972abc6e5a2a75 Mon Sep 17 00:00:00 2001 From: Sparrow Date: Thu, 28 Sep 2023 13:45:11 +0900 Subject: [PATCH] . --- docs/assets/{index-63e95ff3.js => index-2383f305.js} | 2 +- docs/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename docs/assets/{index-63e95ff3.js => index-2383f305.js} (99%) diff --git a/docs/assets/index-63e95ff3.js b/docs/assets/index-2383f305.js similarity index 99% rename from docs/assets/index-63e95ff3.js rename to docs/assets/index-2383f305.js index 943977c..40fcb4e 100644 --- a/docs/assets/index-63e95ff3.js +++ b/docs/assets/index-2383f305.js @@ -169,4 +169,4 @@ From previous: `);return this._state!==null&&(this._stack=e),e}finally{Gc=!1}}}, &.loading{ opacity: 1; } -`;function mC(){me.useState(0);const[e,t]=me.useState(!1),[n,r]=me.useState([]),[i,o]=me.useState(""),[a,s]=me.useState(!1);me.useEffect(()=>{const u=new Kw;fetch("/ebook-list.json.zip").then(p=>p.arrayBuffer()).then(p=>{const h=+localStorage.getItem("size");return $u.count().then(d=>h!==+p.byteLength||d===0?(localStorage.setItem("size",p.byteLength),u.loadAsync(p).then(m=>m.file("ebook-list.json").async("string").then(y=>{const g=JSON.parse(y);return $u.putAll(g).then(_=>!0)}))):!0)}).then(t).catch(p=>{console.error("Error:",p)})},[]);const l=me.useCallback(u=>{const p=(u==null?void 0:u.trim())??"";p!==""&&(s(!0),$u.search(p).then(r).catch(console.error).finally(()=>{s(!1)}))},[]);return $t.jsxs(fC,{children:[$t.jsx(dC,{children:$t.jsx(cC,{fluid:!0,placeholder:"目录搜索...",size:"large",value:i,onChange:u=>o(u.target.value),onKeyUp:u=>u.keyCode===13&&l(i),icon:"search"})}),$t.jsx(hC,{className:n.length>0?"hasMarginTop":"",children:n.map((u,p)=>$t.jsxs("div",{className:"item",children:[$t.jsxs("span",{children:[$t.jsx("span",{className:"name",children:u.name}),$t.jsxs("span",{className:"size",children:[Number(u.size/1024**2).toFixed(2)," MB"]})]}),$t.jsx("a",{href:u.webViewLink,target:"_blank",children:$t.jsx(Bi,{name:"download",color:"grey"})})]},u.id))}),$t.jsx(pC,{className:a?"loading":"",children:"Loading..."})]})}Zu.createRoot(document.getElementById("root")).render($t.jsx(mC,{}))});export default gC(); +`;function mC(){me.useState(0);const[e,t]=me.useState(!1),[n,r]=me.useState([]),[i,o]=me.useState(""),[a,s]=me.useState(!1);me.useEffect(()=>{const u=new Kw;fetch("./ebook-list.json.zip").then(p=>p.arrayBuffer()).then(p=>{const h=+localStorage.getItem("size");return $u.count().then(d=>h!==+p.byteLength||d===0?(localStorage.setItem("size",p.byteLength),u.loadAsync(p).then(m=>m.file("ebook-list.json").async("string").then(y=>{const g=JSON.parse(y);return $u.putAll(g).then(_=>!0)}))):!0)}).then(t).catch(p=>{console.error("Error:",p)})},[]);const l=me.useCallback(u=>{const p=(u==null?void 0:u.trim())??"";p!==""&&(s(!0),$u.search(p).then(r).catch(console.error).finally(()=>{s(!1)}))},[]);return $t.jsxs(fC,{children:[$t.jsx(dC,{children:$t.jsx(cC,{fluid:!0,placeholder:"目录搜索...",size:"large",value:i,onChange:u=>o(u.target.value),onKeyUp:u=>u.keyCode===13&&l(i),icon:"search"})}),$t.jsx(hC,{className:n.length>0?"hasMarginTop":"",children:n.map((u,p)=>$t.jsxs("div",{className:"item",children:[$t.jsxs("span",{children:[$t.jsx("span",{className:"name",children:u.name}),$t.jsxs("span",{className:"size",children:[Number(u.size/1024**2).toFixed(2)," MB"]})]}),$t.jsx("a",{href:u.webViewLink,target:"_blank",children:$t.jsx(Bi,{name:"download",color:"grey"})})]},u.id))}),$t.jsx(pC,{className:a?"loading":"",children:"Loading..."})]})}Zu.createRoot(document.getElementById("root")).render($t.jsx(mC,{}))});export default gC(); diff --git a/docs/index.html b/docs/index.html index c896ef8..770840b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,7 +5,7 @@ 目录搜索 - +