license / docs pass:
- add new docs for loading, exploring, sharing, embedding, and offline usage - add license file / license banner electron app: - for now, don't bundle docs, open in native browser embeds: - support 'embed' option, 'replayonly' or 'full' (default if no url) ui: - display package.json version in info menu package.json: - update scripts to match README - move electron entrypoint into extraMetadata - add scripts for packaging as module README: minor edits
This commit is contained in:
+8
-1
@@ -21,6 +21,7 @@ class Embed extends LitElement
|
||||
this.paramString = null;
|
||||
this.deepLink = false;
|
||||
this.swInited = false;
|
||||
this.embed = null;
|
||||
|
||||
this.doRegister();
|
||||
}
|
||||
@@ -30,6 +31,8 @@ class Embed extends LitElement
|
||||
url: { type: String },
|
||||
ts: { type: String },
|
||||
source: { type: String },
|
||||
view: { type: String },
|
||||
embed: { type: String },
|
||||
|
||||
replayBase: { type: String },
|
||||
swName: { type: String },
|
||||
@@ -101,11 +104,15 @@ class Embed extends LitElement
|
||||
changedProperties.has("ts") ||
|
||||
changedProperties.has("source")) {
|
||||
|
||||
if (this.embed === null) {
|
||||
this.embed = this.url ? "replayonly" : "";
|
||||
}
|
||||
|
||||
this.paramString = new URLSearchParams({
|
||||
source: this.source,
|
||||
customColl: this.coll,
|
||||
config: this.config,
|
||||
embed: "true"
|
||||
embed: this.embed,
|
||||
}).toString();
|
||||
|
||||
this.hashString = new URLSearchParams({
|
||||
|
||||
Reference in New Issue
Block a user