url search: default to all urls instead of html only filter

wabac.js rewriting improvements: more careful 'this' rewriting in js
bump to 1.2.0-beta.2
This commit is contained in:
Ilya Kreymer
2020-10-22 14:49:20 -07:00
parent 15ee50e793
commit fa6e94bd52
5 changed files with 33 additions and 46 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "replaywebpage", "name": "replaywebpage",
"productName": "ReplayWeb.page", "productName": "ReplayWeb.page",
"version": "1.2.0-beta.1", "version": "1.2.0-beta.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/",
+3 -16
View File
@@ -13,7 +13,7 @@ class URLResources extends LitElement
{ {
static get filters() { static get filters() {
return [ return [
{name: "HTML", filter: ""}, //default {name: "HTML", filter: "text/html,text/xhtml"},
{name: "Images", filter: "image/"}, {name: "Images", filter: "image/"},
{name: "Audio/Video", filter: "audio/,video/"}, {name: "Audio/Video", filter: "audio/,video/"},
{name: "PDF", filter: "application/pdf"}, {name: "PDF", filter: "application/pdf"},
@@ -23,7 +23,7 @@ class URLResources extends LitElement
{name: "Plain Text", filter: "text/plain"}, {name: "Plain Text", filter: "text/plain"},
{name: "JSON", filter: "application/json"}, {name: "JSON", filter: "application/json"},
{name: "DASH/HLS", filter: "application/dash+xml,application/x-mpegURL,application/vnd.apple.mpegurl"}, {name: "DASH/HLS", filter: "application/dash+xml,application/x-mpegURL,application/vnd.apple.mpegurl"},
{name: "All URLs", filter: "all"} {name: "All URLs", filter: ""}
]; ];
} }
@@ -140,20 +140,7 @@ class URLResources extends LitElement
url = "https://" + url; url = "https://" + url;
} }
let mime; const mime = this.currMime;
switch (this.currMime) {
case "all":
mime = "";
break;
case "":
mime = "text/html,text/xhtml";
break;
default:
mime = this.currMime;
}
const params = new URLSearchParams({ const params = new URLSearchParams({
mime, mime,
+15 -15
View File
File diff suppressed because one or more lines are too long
+12 -12
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -292,8 +292,8 @@
"@xtuc/long" "4.2.2" "@xtuc/long" "4.2.2"
"@webrecorder/wabac@github:webrecorder/wabac.js": "@webrecorder/wabac@github:webrecorder/wabac.js":
version "2.1.0-beta.4" version "2.1.0"
resolved "https://codeload.github.com/webrecorder/wabac.js/tar.gz/279b4ae2e091d1bb96d60aa97e41620cf7bb2956" resolved "https://codeload.github.com/webrecorder/wabac.js/tar.gz/3bf657ea00e601255b475c6a47f5dcdacca870c3"
dependencies: dependencies:
brotli "github:foliojs/brotli.js" brotli "github:foliojs/brotli.js"
fast-xml-parser "^3.15.1" fast-xml-parser "^3.15.1"