replaywebpage 1.7.3 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -4
- package/src/appmain.js +4 -0
- package/src/embed.js +8 -1
- package/src/loader.js +1 -0
- package/sw.js +13 -13
- package/ui.js +4 -4
- package/assets/chevron-double-down.svg +0 -4
- package/assets/chevron-double-up.svg +0 -4
- package/assets/globe.svg +0 -3
- package/assets/logo.svg +0 -78
- package/assets/main.scss +0 -134
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "replaywebpage",
|
|
3
3
|
"productName": "ReplayWeb.page",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.4",
|
|
5
5
|
"description": "Serverless Web Archive Replay",
|
|
6
6
|
"repository": "https://github.com/webrecorder/replayweb.page",
|
|
7
7
|
"homepage": "https://replayweb.page/",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "AGPL-3.0-or-later",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@fortawesome/fontawesome-free": "^5.15.4",
|
|
12
|
-
"@webrecorder/wabac": "^2.13.
|
|
12
|
+
"@webrecorder/wabac": "^2.13.10",
|
|
13
13
|
"auto-js-ipfs": "^1.5.1",
|
|
14
14
|
"bulma": "^0.9.3",
|
|
15
15
|
"electron-log": "^4.4.1",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"copy-webpack-plugin": "^9.0.1",
|
|
33
33
|
"css-loader": "^6.2.0",
|
|
34
|
-
"electron": "^
|
|
34
|
+
"electron": "^21.3.1",
|
|
35
35
|
"electron-builder": "^23.0.3",
|
|
36
36
|
"electron-notarize": "^1.1.1",
|
|
37
37
|
"eslint": "^8.23.1",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"webpack-dev-server": "^4.2.1"
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
|
-
"/assets",
|
|
51
50
|
"/src",
|
|
52
51
|
"/ruffle",
|
|
53
52
|
"sw.js",
|
package/src/appmain.js
CHANGED
|
@@ -396,6 +396,10 @@ class ReplayWebApp extends LitElement
|
|
|
396
396
|
this.loadInfo.hideOffscreen = true;
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
+
if (this.pageParams.get("loading") === "eager") {
|
|
400
|
+
this.loadInfo.loadEager = true;
|
|
401
|
+
}
|
|
402
|
+
|
|
399
403
|
if (IS_APP && this.sourceUrl.startsWith("file://")) {
|
|
400
404
|
// eslint-disable-next-line no-undef
|
|
401
405
|
const url = new URL(__APP_FILE_SERVE_PREFIX__);
|
package/src/embed.js
CHANGED
|
@@ -42,6 +42,7 @@ class Embed extends LitElement
|
|
|
42
42
|
// deprecated;
|
|
43
43
|
this.noSandbox = null;
|
|
44
44
|
this.logo = rwpLogo;
|
|
45
|
+
this.loading = "";
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
static setDefaultReplayFile(replayfile) {
|
|
@@ -84,7 +85,9 @@ class Embed extends LitElement
|
|
|
84
85
|
|
|
85
86
|
errorMessage: { type: String },
|
|
86
87
|
|
|
87
|
-
requireSubdomainIframe: {type: Boolean}
|
|
88
|
+
requireSubdomainIframe: {type: Boolean},
|
|
89
|
+
|
|
90
|
+
loading: { type: String },
|
|
88
91
|
};
|
|
89
92
|
}
|
|
90
93
|
|
|
@@ -240,6 +243,10 @@ class Embed extends LitElement
|
|
|
240
243
|
params.hideOffscreen = "1";
|
|
241
244
|
}
|
|
242
245
|
|
|
246
|
+
if (this.loading === "eager") {
|
|
247
|
+
params.loading = "eager";
|
|
248
|
+
}
|
|
249
|
+
|
|
243
250
|
this.paramString = new URLSearchParams(params).toString();
|
|
244
251
|
|
|
245
252
|
this.hashString = new URLSearchParams({
|
package/src/loader.js
CHANGED
|
@@ -182,6 +182,7 @@ You can select a file to upload from the main page by clicking the 'Choose File.
|
|
|
182
182
|
|
|
183
183
|
if (this.loadInfo) {
|
|
184
184
|
source.newFullImport = this.loadInfo.newFullImport;
|
|
185
|
+
source.loadEager = this.loadInfo.loadEager;
|
|
185
186
|
source.noCache = this.loadInfo.noCache;
|
|
186
187
|
|
|
187
188
|
if (this.loadInfo.extraConfig) {
|