ui: switch location bar to plain text field to avoid extra 'x' in chrome

update to wabac.js 2.1.3 - rewriting fixes, fix regression in twitter rewriting
bump version to 1.2.2
This commit is contained in:
Ilya Kreymer
2020-10-29 18:17:55 -07:00
parent 7ff4284868
commit 7c121a0e3a
6 changed files with 2202 additions and 3499 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "replaywebpage", "name": "replaywebpage",
"productName": "ReplayWeb.page", "productName": "ReplayWeb.page",
"version": "1.2.1", "version": "1.2.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/",
+1 -1
View File
@@ -705,7 +705,7 @@ class Coll extends LitElement
</a> </a>
<form @submit="${this.onSubmit}"> <form @submit="${this.onSubmit}">
<div class="control is-expanded ${showFavIcon ? 'has-icons-left' : ''}"> <div class="control is-expanded ${showFavIcon ? 'has-icons-left' : ''}">
<input id="url" class="input" type="search" @keydown="${this.onKeyDown}" @blur="${this.onLostFocus}" .value="${this.url}" placeholder="Enter text to search or a URL to replay"/> <input id="url" class="input" type="text" @keydown="${this.onKeyDown}" @blur="${this.onLostFocus}" .value="${this.url}" placeholder="Enter text to search or a URL to replay"/>
${isReplay ? html`<p id="datetime" class="control is-hidden-mobile">${dateStr}</p>` : html``} ${isReplay ? html`<p id="datetime" class="control is-hidden-mobile">${dateStr}</p>` : html``}
${showFavIcon ? html` ${showFavIcon ? html`
<span class="favicon icon is-small is-left"> <span class="favicon icon is-small is-left">
+6 -2
View File
@@ -56,6 +56,10 @@ class ElectronReplayApp
} }
} }
get mainWindowUrl() {
return "index.html";
}
init() { init() {
// Single instance check // Single instance check
const gotTheLock = app.requestSingleInstanceLock(); const gotTheLock = app.requestSingleInstanceLock();
@@ -337,7 +341,7 @@ class ElectronReplayApp
return {statusCode, start, end}; return {statusCode, start, end};
} }
createMainWindow(argv, startUrl = "index.html") { createMainWindow(argv) {
const sourceString = this.getOpenUrl(argv); const sourceString = this.getOpenUrl(argv);
// Create the browser window. // Create the browser window.
@@ -352,7 +356,7 @@ class ElectronReplayApp
theWindow.maximize(); theWindow.maximize();
}); });
theWindow.loadURL(STATIC_PREFIX + startUrl + sourceString); theWindow.loadURL(STATIC_PREFIX + this.mainWindowUrl + sourceString);
if (process.env.NODE_ENV === "development") { if (process.env.NODE_ENV === "development") {
theWindow.webContents.openDevTools(); theWindow.webContents.openDevTools();
} }
+32 -2492
View File
File diff suppressed because one or more lines are too long
+2160 -1001
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.1" version "2.1.3"
resolved "https://codeload.github.com/webrecorder/wabac.js/tar.gz/75a34f0ef0e68efd8e1c9cfc99aa5968b5d0d3b6" resolved "https://codeload.github.com/webrecorder/wabac.js/tar.gz/e8c17633353f70d56806770f59f8e3ca6cd11ca0"
dependencies: dependencies:
brotli "github:foliojs/brotli.js" brotli "github:foliojs/brotli.js"
fast-xml-parser "^3.15.1" fast-xml-parser "^3.15.1"