extensability: make purge cache configurable

ui: fix date padding for month-day
package: add index.html to npm package
bump to 1.6.2, update CHANGES.md
This commit is contained in:
Ilya Kreymer
2022-07-05 12:24:50 -07:00
parent 54fd92c273
commit f1c5e931c8
6 changed files with 20 additions and 11 deletions
+5
View File
@@ -1,5 +1,10 @@
## CHANGES ## CHANGES
v1.6.2
- Library: additional fixes, make 'purge cache' configurable
- Library: Add index.html to npm bundle
- UI: Fix date padding
v1.6.1 v1.6.1
- Embed/Library: Make embedding more extensable for use as a library (for archiveweb.page extensions) - Embed/Library: Make embedding more extensable for use as a library (for archiveweb.page extensions)
- UI: Unified service worker error messaging for regular and embed mode, show correct error when loaded over http. - UI: Unified service worker error messaging for regular and embed mode, show correct error when loaded over http.
+3 -2
View File
@@ -1,7 +1,7 @@
{ {
"name": "replaywebpage", "name": "replaywebpage",
"productName": "ReplayWeb.page", "productName": "ReplayWeb.page",
"version": "1.6.1", "version": "1.6.2",
"description": "Serverless Web Archive Replay", "description": "Serverless Web Archive Replay",
"repository": "https://github.com/webrecorder/replayweb.page", "repository": "https://github.com/webrecorder/replayweb.page",
"homepage": "https://replayweb.page/", "homepage": "https://replayweb.page/",
@@ -51,7 +51,8 @@
"/ruffle", "/ruffle",
"sw.js", "sw.js",
"ui.js", "ui.js",
"index.js" "index.js",
"index.html"
], ],
"scripts": { "scripts": {
"build": "webpack --mode production", "build": "webpack --mode production",
+3 -2
View File
@@ -1,7 +1,7 @@
{ {
"name": "replaywebpage", "name": "replaywebpage",
"productName": "ReplayWeb.page", "productName": "ReplayWeb.page",
"version": "1.6.1", "version": "1.6.2",
"description": "Serverless Web Archive Replay", "description": "Serverless Web Archive Replay",
"repository": "https://github.com/webrecorder/replayweb.page", "repository": "https://github.com/webrecorder/replayweb.page",
"homepage": "https://replayweb.page/", "homepage": "https://replayweb.page/",
@@ -51,7 +51,8 @@
"/ruffle", "/ruffle",
"sw.js", "sw.js",
"ui.js", "ui.js",
"index.js" "index.js",
"index.html"
], ],
"scripts": { "scripts": {
"build": "webpack --mode production", "build": "webpack --mode production",
+3 -1
View File
@@ -66,6 +66,7 @@ class Coll extends LitElement
this.editable = false; this.editable = false;
this.browsable = true; this.browsable = true;
this.clearable = true;
this.showSidebar = localStorage.getItem("pages:showSidebar") === "1"; this.showSidebar = localStorage.getItem("pages:showSidebar") === "1";
this.splitter = null; this.splitter = null;
@@ -108,6 +109,7 @@ class Coll extends LitElement
embed: { type: String }, embed: { type: String },
editable: { type: Boolean }, editable: { type: Boolean },
browsable: { type: Boolean }, browsable: { type: Boolean },
clearable: { type: Boolean },
isVisible: { type: Boolean }, isVisible: { type: Boolean },
@@ -844,7 +846,7 @@ class Coll extends LitElement
<span>Browse Contents</span> <span>Browse Contents</span>
</a>` : ""} </a>` : ""}
${this.renderExtraToolbar(true)} ${this.renderExtraToolbar(true)}
${!this.editable ? html` ${this.clearable ? html`
<hr class="dropdown-divider is-hidden-desktop"> <hr class="dropdown-divider is-hidden-desktop">
<a href="#" role="button" class="dropdown-item" @click="${this.onPurgeCache}" @keyup="${clickOnSpacebarPress}"> <a href="#" role="button" class="dropdown-item" @click="${this.onPurgeCache}" @keyup="${clickOnSpacebarPress}">
<span class="icon is-small"> <span class="icon is-small">
+1 -1
View File
@@ -71,7 +71,7 @@ function tsToDate(ts) {
} }
if (ts.length < 14) { if (ts.length < 14) {
ts += "00000000000000".substr(ts.length); ts += "00000101000000".substr(ts.length);
} }
const datestr = (ts.substring(0, 4) + "-" + const datestr = (ts.substring(0, 4) + "-" +
+5 -5
View File
File diff suppressed because one or more lines are too long