ui: add back support for HAR, WBN loading, remove 'try again' for non-embed (won't work with local files)
This commit is contained in:
+2
-2
@@ -127,11 +127,11 @@ class Chooser extends LitElement
|
|||||||
<p class="control is-expanded">
|
<p class="control is-expanded">
|
||||||
<input class="file-name input" type="text"
|
<input class="file-name input" type="text"
|
||||||
name="filename" id="filename"
|
name="filename" id="filename"
|
||||||
pattern="((file|http|https|s3):\/\/.*\.(warc|warc.gz|zip|wacz))|(googledrive:\/\/.+)"
|
pattern="((file|http|https|s3):\/\/.*\.(warc|warc.gz|zip|wacz|har|wbn))|(googledrive:\/\/.+)"
|
||||||
.value="${this.fileDisplayName}"
|
.value="${this.fileDisplayName}"
|
||||||
@input="${this.onInput}"
|
@input="${this.onInput}"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
placeholder="Enter a URL or click 'Choose File' to select a WARC or WACZ archive source">
|
placeholder="Enter a URL or click 'Choose File' to select a WARC, WACZ, HAR or WBN archive source">
|
||||||
</p>
|
</p>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<button type="submit" class="button is-hidden-mobile is-primary">Load</button>
|
<button type="submit" class="button is-hidden-mobile is-primary">Load</button>
|
||||||
|
|||||||
@@ -228,7 +228,6 @@ You can select a file to upload from the main page by clicking the \'Choose File
|
|||||||
<div>
|
<div>
|
||||||
${this.embed ? html`
|
${this.embed ? html`
|
||||||
<a class="button is-warning" @click=${(e) => window.parent.location.reload()}>Try Again</a>` : html`
|
<a class="button is-warning" @click=${(e) => window.parent.location.reload()}>Try Again</a>` : html`
|
||||||
<a class="button is-warning" @click=${(e) => window.location.reload()}>Try Again</a>
|
|
||||||
<a href="/" class="button is-warning">Back</a>`}
|
<a href="/" class="button is-warning">Back</a>`}
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
|
|||||||
@@ -293,7 +293,7 @@
|
|||||||
|
|
||||||
"@webrecorder/wabac@github:webrecorder/wabac.js":
|
"@webrecorder/wabac@github:webrecorder/wabac.js":
|
||||||
version "2.0.3-dev.0"
|
version "2.0.3-dev.0"
|
||||||
resolved "https://codeload.github.com/webrecorder/wabac.js/tar.gz/6e25c12b6f4d81d0bc9817c8b25dbdb15e6ac553"
|
resolved "https://codeload.github.com/webrecorder/wabac.js/tar.gz/d8dc15d6a385147ef0722a552951bf0edc51402d"
|
||||||
dependencies:
|
dependencies:
|
||||||
brotli "github:foliojs/brotli.js"
|
brotli "github:foliojs/brotli.js"
|
||||||
fast-xml-parser "^3.15.1"
|
fast-xml-parser "^3.15.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user