error fix + embedding extensability (#110)

* embed mode: make embedding options more extensible
ui: unify service worker not available errors, show same error in standard/embed mode, including when loaded over http
- more customizations for extended embed, allow hiding 'browse contents' button
- simplify title updates
- make error page / icon more customizable
- autoupdating in editable mode: don't update if previous one didn't finish, make customizable, don't autoupdate at all over >=100 pages

* dependencies: update ruffle to 2022-07-02

* bump to 1.6.1, update CHANGELIST
This commit is contained in:
Ilya Kreymer
2022-07-05 10:48:32 -07:00
committed by GitHub
parent 61d25c2c3d
commit 54fd92c273
17 changed files with 312 additions and 198 deletions
+4 -2
View File
@@ -138,12 +138,14 @@ class WrModal extends LitElement
super();
this.title = "";
this.bgClass = "";
this.noBgClose = false;
}
static get properties() {
return {
title: { type: String },
bgClass: { type: String }
bgClass: { type: String },
noBgClose: { type: Boolean }
};
}
@@ -167,7 +169,7 @@ class WrModal extends LitElement
render() {
return html`
<div class="modal is-active">
<div class="modal-background" @click="${this.onClose}"></div>
<div class="modal-background" @click="${() => !this.noBgClose && this.onClose()}"></div>
<div class="modal-card">
<header class="modal-card-head ${this.bgClass}">
<p class="modal-card-title is-3">${this.title}</p>