From fb2c1f0f1522746143c779107a069c2ea0d7649d Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Thu, 30 Apr 2020 23:32:49 -0700 Subject: [PATCH] use http/blob readers for all loaders, not just ziparchivereader support cdx indexing only for large warcs instead of storing entire warc ziparchive cache zip entries in db, avoid reload of zip on each access fix collections not being cached! --- src/frontend.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/frontend.js b/src/frontend.js index 3e10ec8..e6be076 100644 --- a/src/frontend.js +++ b/src/frontend.js @@ -51,7 +51,7 @@ class AppMain extends LitElement render() { return html` -
+
@@ -485,7 +486,7 @@ class WrColl extends LitElement ${this.collInfo.title} - Size: ${prettyBytes(this.collInfo.size || 0)} + Size: ${prettyBytes(Number(this.collInfo.size || 0))}

${this.hasCurated ? html` @@ -684,7 +685,7 @@ class WrCuratedPages extends LitElement scrollToList(id) { this.currList = Number(id); this.dispatchEvent(new CustomEvent("coll-tab-nav", {detail: {currList: this.currList || undefined}})); - const opts = {behavior: "smooth", block: "start", inline: "nearest"}; + const opts = {behavior: "smooth", block: "nearest", inline: "nearest"}; this.clickTime = new Date().getTime(); this.renderRoot.getElementById("list-" + this.currList).scrollIntoView(opts); } @@ -874,7 +875,7 @@ class WrResources extends LitElement width: 100%; } .main-scroll { - max-height: calc(100vh - 295px); + max-height: calc(100vh - 255px); width: 100vw; } table { @@ -1166,8 +1167,7 @@ class WrFaIcon extends LitElement const styles = {width: this.size, height: this.size}; - return html`${unsafeHTML(this.svg)}`; - //return html`${unsafeSVG(this.svg)}`; + return html`${unsafeSVG(this.svg)}`; } }