add embed.js for embedding <replay-web-page>!
css tweaks for replay iframe, initial support embed param to hide nav bar various css tweaks for scrolling!
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+289
-209
File diff suppressed because one or more lines are too long
@@ -7,6 +7,10 @@ html.no-overflow {
|
|||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
body {
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
@import "../node_modules/bulma/sass/utilities/_all.sass";
|
@import "../node_modules/bulma/sass/utilities/_all.sass";
|
||||||
@import "../node_modules/bulma/sass/base/_all.sass";
|
@import "../node_modules/bulma/sass/base/_all.sass";
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,92 @@
|
|||||||
|
import { LitElement, html, css } from 'lit-element';
|
||||||
|
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
class EmbedRWP extends LitElement
|
||||||
|
{
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
this.replayBase = "http://localhost:9990/";
|
||||||
|
this.view = "replay";
|
||||||
|
this.ts = "";
|
||||||
|
this.url = "";
|
||||||
|
this.paramString = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
static get properties() {
|
||||||
|
return {
|
||||||
|
url: { type: String },
|
||||||
|
ts: { type: String },
|
||||||
|
source: { type: String },
|
||||||
|
replayBase: { type: String },
|
||||||
|
|
||||||
|
title: { type: String },
|
||||||
|
|
||||||
|
paramString: { type: String },
|
||||||
|
hashString: { type: String }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
firstUpdated() {
|
||||||
|
window.addEventListener("message", (event) => {
|
||||||
|
const iframe = this.renderRoot.querySelector("iframe");
|
||||||
|
|
||||||
|
if (iframe && event.source === iframe.contentWindow) {
|
||||||
|
if (event.data.title) {
|
||||||
|
this.title = event.data.title;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
updated(changedProperties) {
|
||||||
|
if (changedProperties.has("url") ||
|
||||||
|
changedProperties.has("ts") ||
|
||||||
|
changedProperties.has("source")) {
|
||||||
|
|
||||||
|
this.paramString = new URLSearchParams({
|
||||||
|
source: this.source,
|
||||||
|
embed: "true"
|
||||||
|
}).toString();
|
||||||
|
|
||||||
|
this.hashString = new URLSearchParams({
|
||||||
|
url: this.url,
|
||||||
|
ts: this.ts,
|
||||||
|
view: this.view
|
||||||
|
}).toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static get styles() {
|
||||||
|
return css`
|
||||||
|
iframe {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
:host {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return html`
|
||||||
|
${this.paramString && this.hashString ? html`
|
||||||
|
<iframe src="${this.replayBase}?${this.paramString}#${this.hashString}" allow="autoplay; fullscreen"></iframe>
|
||||||
|
` : html``}
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
async function main() {
|
||||||
|
customElements.define("replay-web-page", EmbedRWP);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
main();
|
||||||
+94
-78
@@ -56,6 +56,7 @@ class AppMain extends LitElement
|
|||||||
navMenuShown: { type: Boolean },
|
navMenuShown: { type: Boolean },
|
||||||
showTerms: { type: Boolean },
|
showTerms: { type: Boolean },
|
||||||
sourceLoaded: { type: Boolean },
|
sourceLoaded: { type: Boolean },
|
||||||
|
embed: { type: String },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,12 +69,29 @@ class AppMain extends LitElement
|
|||||||
.has-allcaps {
|
.has-allcaps {
|
||||||
font-variant-caps: all-small-caps;
|
font-variant-caps: all-small-caps;
|
||||||
}
|
}
|
||||||
|
:host {
|
||||||
|
position: fixed;
|
||||||
|
left: 0px;
|
||||||
|
top: 0px;
|
||||||
|
bottom: 0px;
|
||||||
|
right: 0px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
width: 100%;
|
||||||
|
flex-grow: 0;
|
||||||
|
}
|
||||||
|
wr-coll {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return html`
|
return html`
|
||||||
<div class="container" style="display: sticky">
|
${!this.embed ? html`
|
||||||
|
<div class="container">
|
||||||
<nav class="navbar breadcrumbs" role="navigation" aria-label="main navigation">
|
<nav class="navbar breadcrumbs" role="navigation" aria-label="main navigation">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-brand">
|
||||||
<a class="navbar-item has-text-weight-bold is-size-5 has-allcaps " href="/">
|
<a class="navbar-item has-text-weight-bold is-size-5 has-allcaps " href="/">
|
||||||
@@ -91,7 +109,7 @@ class AppMain extends LitElement
|
|||||||
<div class="navbar-start">
|
<div class="navbar-start">
|
||||||
${this.sourceUrl && this.sourceLoaded ?
|
${this.sourceUrl && this.sourceLoaded ?
|
||||||
html`
|
html`
|
||||||
<div class="navbar-item">Current Archive: <b>${this.sourceUrl}</b>
|
<div class="navbar-item">Current Archive: <b>${this.sourceUrl.slice(this.sourceUrl.lastIndexOf('/') + 1)}</b>
|
||||||
</div>` : html``}
|
</div>` : html``}
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-end">
|
<div class="navbar-end">
|
||||||
@@ -101,11 +119,12 @@ class AppMain extends LitElement
|
|||||||
<a href="?terms" @click="${(e) => { e.preventDefault(); this.showTerms = true} }"class="navbar-item">Terms</a>
|
<a href="?terms" @click="${(e) => { e.preventDefault(); this.showTerms = true} }"class="navbar-item">Terms</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>` : ''}
|
||||||
|
|
||||||
${this.sourceUrl ? html`
|
${this.sourceUrl ? html`
|
||||||
<wr-coll .loadInfo="${this.loadInfo}"
|
<wr-coll .loadInfo="${this.loadInfo}"
|
||||||
sourceUrl="${this.sourceUrl}"
|
sourceUrl="${this.sourceUrl}"
|
||||||
|
embed="${this.embed}"
|
||||||
@replay-favicons=${this.onFavIcons}
|
@replay-favicons=${this.onFavIcons}
|
||||||
@coll-loaded=${this.onCollLoaded}></wr-coll>
|
@coll-loaded=${this.onCollLoaded}></wr-coll>
|
||||||
` : html`
|
` : html`
|
||||||
@@ -198,6 +217,7 @@ class AppMain extends LitElement
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.sourceUrl = this.pageParams.get("source") || "";
|
this.sourceUrl = this.pageParams.get("source") || "";
|
||||||
|
this.embed = this.pageParams.get("embed") || "";
|
||||||
|
|
||||||
if (this.pageParams.has("terms")) {
|
if (this.pageParams.has("terms")) {
|
||||||
this.showTerms = true;
|
this.showTerms = true;
|
||||||
@@ -682,6 +702,11 @@ class WrColl extends LitElement
|
|||||||
|
|
||||||
tabData: { type: Object },
|
tabData: { type: Object },
|
||||||
|
|
||||||
|
replayUrl: { type: String },
|
||||||
|
replayTS: { type: String },
|
||||||
|
|
||||||
|
embed: { type: String },
|
||||||
|
|
||||||
//_locationHash: { type: String }
|
//_locationHash: { type: String }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -692,6 +717,10 @@ class WrColl extends LitElement
|
|||||||
}
|
}
|
||||||
|
|
||||||
updated(changedProperties) {
|
updated(changedProperties) {
|
||||||
|
if (changedProperties.has("replayUrl") || changedProperties.has("replayTS")) {
|
||||||
|
this.tabData = {view: "replay", url: this.replayUrl, ts: this.replayTS};
|
||||||
|
}
|
||||||
|
|
||||||
if (changedProperties.has("sourceUrl")) {
|
if (changedProperties.has("sourceUrl")) {
|
||||||
this.doUpdateInfo();
|
this.doUpdateInfo();
|
||||||
}
|
}
|
||||||
@@ -805,9 +834,20 @@ class WrColl extends LitElement
|
|||||||
font-weight: initial;
|
font-weight: initial;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
.bg-light {
|
|
||||||
background-color: #f0fff8";
|
#contents {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wr-replay-page, wr-coll-resources, wr-coll-curated {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -818,7 +858,8 @@ class WrColl extends LitElement
|
|||||||
.coll="${this.coll}" .sourceUrl="${this.sourceUrl}" @coll-loaded=${this.onCollLoaded}></wr-loader>`;
|
.coll="${this.coll}" .sourceUrl="${this.sourceUrl}" @coll-loaded=${this.onCollLoaded}></wr-loader>`;
|
||||||
} else if (this.collInfo) {
|
} else if (this.collInfo) {
|
||||||
return html`
|
return html`
|
||||||
<nav class="panel is-light">
|
<nav id="contents" class="panel is-light">
|
||||||
|
${!this.embed ? html`
|
||||||
<p class="panel-tabs bg-light">
|
<p class="panel-tabs bg-light">
|
||||||
${this.hasCurated ? html`
|
${this.hasCurated ? html`
|
||||||
<a @click="${this.onTabClick}" href="#curated"
|
<a @click="${this.onTabClick}" href="#curated"
|
||||||
@@ -834,7 +875,7 @@ class WrColl extends LitElement
|
|||||||
<a @click="${this.onTabClick}" href="#replay"
|
<a @click="${this.onTabClick}" href="#replay"
|
||||||
class="is-size-6 ${this.tabData.view === 'replay' ? 'is-active' : ''}">
|
class="is-size-6 ${this.tabData.view === 'replay' ? 'is-active' : ''}">
|
||||||
<span class="icon"><fa-icon .svg="${farPlayCircle}"></fa-icon></fa-icon></span>Replay</a>
|
<span class="icon"><fa-icon .svg="${farPlayCircle}"></fa-icon></fa-icon></span>Replay</a>
|
||||||
</p>
|
</p>` : ``}
|
||||||
${this.renderCollTabs()}
|
${this.renderCollTabs()}
|
||||||
</nav>`;
|
</nav>`;
|
||||||
} else {
|
} else {
|
||||||
@@ -860,7 +901,8 @@ class WrColl extends LitElement
|
|||||||
|
|
||||||
${this.tabData.view === 'replay' ? html`
|
${this.tabData.view === 'replay' ? html`
|
||||||
<wr-replay-page .collInfo="${this.collInfo}"
|
<wr-replay-page .collInfo="${this.collInfo}"
|
||||||
.sourceUrl="${this.sourceUrl}"
|
sourceUrl="${this.sourceUrl}"
|
||||||
|
embed="${this.embed}"
|
||||||
url="${this.tabData.url || ""}"
|
url="${this.tabData.url || ""}"
|
||||||
ts="${this.tabData.ts || ""}"
|
ts="${this.tabData.ts || ""}"
|
||||||
@coll-tab-nav="${this.onCollTabNav}" id="replay"
|
@coll-tab-nav="${this.onCollTabNav}" id="replay"
|
||||||
@@ -932,16 +974,20 @@ class WrCuratedPages extends LitElement
|
|||||||
return wrapCss(css`
|
return wrapCss(css`
|
||||||
.columns {
|
.columns {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
max-height: 100%
|
||||||
}
|
}
|
||||||
|
|
||||||
.column {
|
.column {
|
||||||
max-height: calc(100vh - 92px);
|
height: calc(100% - 70px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#content {
|
#content {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
max-height: calc(100vh - 102px);
|
height: calc(100% - 90px);
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.menu-list a.is-active {
|
ul.menu-list a.is-active {
|
||||||
background-color: #55be6f;
|
background-color: #55be6f;
|
||||||
}
|
}
|
||||||
@@ -955,7 +1001,7 @@ class WrCuratedPages extends LitElement
|
|||||||
<div class="menu" style="overflow-y: auto; height: 100%;">
|
<div class="menu" style="overflow-y: auto; height: 100%;">
|
||||||
<ul class="menu-list">
|
<ul class="menu-list">
|
||||||
<li>
|
<li>
|
||||||
<a href="#list-0" class="${!this.currList ? 'is-active' : ''}"
|
<a href="#list-0" data-list="0" class="${!this.currList ? 'is-active' : ''}"
|
||||||
@click=${this.onClickScroll}>${this.collInfo.title}</a>
|
@click=${this.onClickScroll}>${this.collInfo.title}</a>
|
||||||
<ul class="menu-list">${this.collInfo.lists.map(list => html`
|
<ul class="menu-list">${this.collInfo.lists.map(list => html`
|
||||||
<li>
|
<li>
|
||||||
@@ -1262,13 +1308,15 @@ class WrResources extends LitElement
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.main-scroll {
|
.main-scroll {
|
||||||
max-height: calc(100vh - 199px);
|
height: calc(100vh - 220px);
|
||||||
|
flex-grow: 1;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
table {
|
table {
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
tbody > tr {
|
tbody > tr {
|
||||||
display: table;
|
display: table;
|
||||||
@@ -1341,29 +1389,27 @@ class WrResources extends LitElement
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="" style="">
|
<table class="table is-striped is-fullwidth">
|
||||||
<table class="table is-striped is-fullwidth">
|
<thead>
|
||||||
<thead>
|
<tr>
|
||||||
|
<th class="col-url">URL</th>
|
||||||
|
<th class="col-ts">Timestamp</th>
|
||||||
|
<th class="col-mime">Mime</th>
|
||||||
|
<th class="col-status">Status</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody class="main-scroll" @scroll="${this.onScroll}">
|
||||||
|
${this.filteredResults.length ?
|
||||||
|
this.filteredResults.map((result) => html`
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-url">URL</th>
|
<td class="col-url"><a @click="${this.onReplay}" data-url="${result.url}" data-ts="${result.ts}" href="#">${result.url}</a></td>
|
||||||
<th class="col-ts">Timestamp</th>
|
<td class="col-ts">${new Date(result.date).toLocaleString()}</td>
|
||||||
<th class="col-mime">Mime</th>
|
<td class="col-mime">${result.mime}</td>
|
||||||
<th class="col-status">Status</th>
|
<td class="col-status">${result.status}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
`) : html`<div class="section"><i>No Results Found.</i></div>`}
|
||||||
<tbody class="main-scroll" @scroll="${this.onScroll}">
|
</tbody>
|
||||||
${this.filteredResults.length ?
|
</table>
|
||||||
this.filteredResults.map((result) => html`
|
|
||||||
<tr>
|
|
||||||
<td class="col-url"><a @click="${this.onReplay}" data-url="${result.url}" data-ts="${result.ts}" href="#">${result.url}</a></td>
|
|
||||||
<td class="col-ts">${new Date(result.date).toLocaleString()}</td>
|
|
||||||
<td class="col-mime">${result.mime}</td>
|
|
||||||
<td class="col-status">${result.status}</td>
|
|
||||||
</tr>
|
|
||||||
`) : html`<div class="section"><i>No Results Found.</i></div>`}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1412,7 +1458,8 @@ class WrReplayPage extends LitElement
|
|||||||
iframeUrl: { type: String },
|
iframeUrl: { type: String },
|
||||||
isLoading: { type: Boolean },
|
isLoading: { type: Boolean },
|
||||||
|
|
||||||
showAuth: { type: Boolean }
|
showAuth: { type: Boolean },
|
||||||
|
embed: { type: String }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1456,6 +1503,14 @@ class WrReplayPage extends LitElement
|
|||||||
|
|
||||||
this.dispatchEvent(new CustomEvent("coll-tab-nav", {detail: {replaceLoc: true, data}}));
|
this.dispatchEvent(new CustomEvent("coll-tab-nav", {detail: {replaceLoc: true, data}}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.embed && window.parent !== window && changedProperties.has("title")) {
|
||||||
|
window.parent.postMessage({
|
||||||
|
title: this.title,
|
||||||
|
url: this.replayUrl,
|
||||||
|
ts: this.replayTS
|
||||||
|
}, '*');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onReplayMessage(event) {
|
onReplayMessage(event) {
|
||||||
@@ -1511,7 +1566,8 @@ class WrReplayPage extends LitElement
|
|||||||
|
|
||||||
iframe {
|
iframe {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: calc(100vh - 150px);
|
#height: calc(100vh - 150px);
|
||||||
|
height: 100%;
|
||||||
border: 0px;
|
border: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1519,6 +1575,7 @@ class WrReplayPage extends LitElement
|
|||||||
padding: 1em;
|
padding: 1em;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
border-bottom: solid .1rem #97989A;
|
border-bottom: solid .1rem #97989A;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.embed-bar {
|
.embed-bar {
|
||||||
@@ -1556,7 +1613,7 @@ class WrReplayPage extends LitElement
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return html`
|
return html`
|
||||||
${!this.embed ? html`
|
${this.embed !== "replayonly" ? html`
|
||||||
<div class="container replay-bar">
|
<div class="container replay-bar">
|
||||||
<form @submit="${this.onSubmit}">
|
<form @submit="${this.onSubmit}">
|
||||||
<div class="field has-addons">
|
<div class="field has-addons">
|
||||||
@@ -1574,14 +1631,10 @@ class WrReplayPage extends LitElement
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>` : html`
|
</div>` : html`
|
||||||
|
|
||||||
<div class="container embed-bar">
|
|
||||||
<p class="is-size-5">${this.title}</p>
|
|
||||||
</div>
|
|
||||||
`}
|
`}
|
||||||
|
|
||||||
${this.iframeUrl ? html`
|
${this.iframeUrl ? html`
|
||||||
<iframe @message="${this.onReplayMessage}"
|
<iframe @message="${this.onReplayMessage}" allow="autoplay; fullscreen"
|
||||||
src="${this.iframeUrl}"></iframe>
|
src="${this.iframeUrl}"></iframe>
|
||||||
` : ``}
|
` : ``}
|
||||||
|
|
||||||
@@ -1795,42 +1848,6 @@ class WrGdrive extends LitElement
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
|
||||||
class WrCollProxy extends LitElement
|
|
||||||
{
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
this.view = "replay";
|
|
||||||
this.replayTS = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
static get properties() {
|
|
||||||
return {
|
|
||||||
replayUrl: { type: String },
|
|
||||||
replayTS: { type: String },
|
|
||||||
source: { type: String },
|
|
||||||
|
|
||||||
paramString: { type: String }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
firstUpdated() {
|
|
||||||
this.paramString = new URLSearchParams({
|
|
||||||
replayUrl: this.replayUrl,
|
|
||||||
replayTS: this.replayTS,
|
|
||||||
source: this.source,
|
|
||||||
view: this.view
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
|
||||||
return html`
|
|
||||||
<iframe src="http://localhost:9990/?${this.paramString}"></iframe>
|
|
||||||
`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
class WrFaIcon extends LitElement
|
class WrFaIcon extends LitElement
|
||||||
{
|
{
|
||||||
@@ -1905,7 +1922,6 @@ async function main() {
|
|||||||
customElements.define("wr-index", WrIndex);
|
customElements.define("wr-index", WrIndex);
|
||||||
customElements.define("wr-loader", WrLoader);
|
customElements.define("wr-loader", WrLoader);
|
||||||
customElements.define("wr-coll", WrColl);
|
customElements.define("wr-coll", WrColl);
|
||||||
customElements.define("wr-coll-proxy", WrCollProxy);
|
|
||||||
customElements.define("wr-coll-resources", WrResources);
|
customElements.define("wr-coll-resources", WrResources);
|
||||||
customElements.define("wr-coll-curated", WrCuratedPages);
|
customElements.define("wr-coll-curated", WrCuratedPages);
|
||||||
customElements.define("wr-replay-page", WrReplayPage);
|
customElements.define("wr-replay-page", WrReplayPage);
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ module.exports = (env, argv) => {
|
|||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: {
|
entry: {
|
||||||
'frontend': './src/frontend.js',
|
'frontend': './src/frontend.js',
|
||||||
|
'embed': './src/embed.js',
|
||||||
'sw': 'wabac/src/sw.js',
|
'sw': 'wabac/src/sw.js',
|
||||||
'wombat': 'wombat/src/wbWombat.js',
|
'wombat': 'wombat/src/wbWombat.js',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user