didelity: only wrap JS globals if necessary (via wabac.js 2.9.5)

update to wabac.js 2.9.5
bump to 1.5.5
This commit is contained in:
Ilya Kreymer
2021-10-25 11:04:55 -07:00
parent 10cfe36350
commit 34b03e6b08
8 changed files with 220 additions and 187 deletions
+6 -1
View File
@@ -425,7 +425,12 @@ class CollInfo extends LitElement
</div>` : html`
`}
<div class="column is-4">
<span class="source-text"><p class="minihead">Source</p>${coll.sourceUrl}&nbsp;</span>
<span class="source-text"><p class="minihead">Source</p>
${coll.sourceUrl && (coll.sourceUrl.startsWith("http://") || coll.sourceUrl.startsWith("https://")) ? html`
<a href="${coll.sourceUrl}">${coll.sourceUrl}&nbsp;</a>` : html`
${coll.sourceUrl}&nbsp;`}
</span>
<a @click="${(e) => this.onCopy(e, coll.sourceUrl)}" class="copy"><fa-icon .svg="${fasCopy}"/></a>
${coll.sourceUrl && coll.sourceUrl.startsWith("googledrive://") ? html`
<p><i>(${coll.filename})</i></p>` : ""}
+10
View File
@@ -5,6 +5,8 @@ import { sourceToId, tsToDate, getPageDateTS } from "./pageutils";
import fasBook from "@fortawesome/fontawesome-free/svgs/solid/book.svg";
import fasDownload from "@fortawesome/fontawesome-free/svgs/solid/download.svg";
import farListAlt from "@fortawesome/fontawesome-free/svgs/regular/list-alt.svg";
import farResources from "@fortawesome/fontawesome-free/svgs/solid/puzzle-piece.svg";
import farPages from "@fortawesome/fontawesome-free/svgs/regular/file-image.svg";
@@ -826,6 +828,14 @@ class Coll extends LitElement
</span>
<span>Purge Cache + Full Reload</span>
</a>` : html``}
${!this.editable && this.sourceUrl.startsWith("http://") || this.sourceUrl.startsWith("https://") ? html`
<hr class="dropdown-divider">
<a href="${this.sourceUrl}" role="button" class="dropdown-item" @keyup="${clickOnSpacebarPress}">
<span class="icon is-small">
<fa-icon size="1.0em" class="has-text-grey" aria-hidden="true" .svg="${fasDownload}"></fa-icon>
</span>
<span>Download Archive</span>
</a>` : html``}
${dateStr ? html`
<hr class="dropdown-divider is-hidden-desktop">
<div class="dropdown-item info is-hidden-desktop">