Skip to content

Commit 721090a

Browse files
committed
rerun prettier
1 parent dae7e57 commit 721090a

18 files changed

+134
-123
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ body:
88
id: version
99
attributes:
1010
label: ArchiveWeb.page Version
11-
description: "This can be found on the app home page under \"About\""
11+
description: 'This can be found on the app home page under "About"'
1212
placeholder: "v0.11.3"
1313
validations:
1414
required: true
@@ -20,7 +20,7 @@ body:
2020
"I was trying to archive a page however..."
2121
2222
Please submit any screenshots/videos that can be used to understand how to reproduce the issue. You can attach images by clicking this area to highlight it and then dragging files into the browser window.
23-
23+
2424
If something wasn't captured in the way you expect please include a link to the archived item if possible.
2525
validations:
2626
required: true

.github/ISSUE_TEMPLATE/feature-change.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ body:
2525
label: Requirements
2626
description: |
2727
Intended primarily for use by Webrecorder team, leave blank if unknown.
28-
28+
2929
List the outcomes of the feature being implemented without design or implementation details.
3030
placeholder: |
3131
1. Item metadata should show links to the collections that the item belongs to.
@@ -43,6 +43,6 @@ body:
4343
placeholder: |
4444
- [ ] Mockups:
4545
- [ ] Design:
46-
- [ ] UI:
46+
- [ ] UI:
4747
validations:
4848
required: false

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"dist": "yarn run build && yarn run pack",
7777
"dist-dev": "yarn run build-dev && yarn run pack",
7878
"release": "yarn run build && electron-builder",
79-
"lint": "eslint ./src/ webpack.config.js"
79+
"lint": "eslint ./src/ webpack.config.js",
80+
"format": "prettier --write ./"
8081
},
8182
"build": {
8283
"afterSign": "build/notarize.js",

src/electron/electron-recorder-app.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@ class ElectronRecorderApp extends ElectronReplayApp {
5353

5454
if (method === "OPTIONS") {
5555
statusLine = "HTTP/1.1 200 OK";
56-
responseHeaders["Access-Control-Allow-Headers"] = ["Authorization, Content-Type"];
56+
responseHeaders["Access-Control-Allow-Headers"] = [
57+
"Authorization, Content-Type",
58+
];
5759
responseHeaders["Access-Control-Allow-Methods"] = ["GET, PUT, POST"];
5860
}
5961
responseHeaders["Access-Control-Allow-Origin"] = ["*"];
60-
callback({responseHeaders, statusLine});
62+
callback({ responseHeaders, statusLine });
6163
} else {
62-
callback({responseHeaders});
64+
callback({ responseHeaders });
6365
}
6466
});
6567

@@ -69,12 +71,12 @@ class ElectronRecorderApp extends ElectronReplayApp {
6971
console.log(`will-download: ${origFilename}`);
7072

7173
item.setSavePath(
72-
unusedFilenameSync(path.join(app.getPath("downloads"), origFilename))
74+
unusedFilenameSync(path.join(app.getPath("downloads"), origFilename)),
7375
);
7476

7577
ipcMain.on("dlcancel:" + origFilename, () => {
7678
console.log(
77-
`Canceled download for ${origFilename} to ${item.getSavePath()}`
79+
`Canceled download for ${origFilename} to ${item.getSavePath()}`,
7880
);
7981
item.cancel();
8082
});
@@ -216,7 +218,7 @@ class ElectronRecorderApp extends ElectronReplayApp {
216218
startRec,
217219
// @ts-expect-error - TS7006 - Parameter 'autorun' implicitly has an 'any' type.
218220
autorun,
219-
popupView = null
221+
popupView = null,
220222
) {
221223
const id = recWebContents.id;
222224

@@ -292,7 +294,7 @@ class ElectronRecorderApp extends ElectronReplayApp {
292294
// @ts-expect-error - TS7006 - Parameter 'additionalFeatures' implicitly has an 'any' type.
293295
additionalFeatures,
294296
// @ts-expect-error - TS7006 - Parameter 'referrer' implicitly has an 'any' type.
295-
referrer
297+
referrer,
296298
) => {
297299
event.preventDefault();
298300
event.newGuest = this.createRecordWindow({ url, collId, startRec });
@@ -303,9 +305,9 @@ class ElectronRecorderApp extends ElectronReplayApp {
303305
disposition,
304306
options,
305307
additionalFeatures,
306-
referrer
308+
referrer,
307309
);
308-
}
310+
},
309311
);
310312

311313
recWebContents.on("destroyed", () => {

src/electron/electron-recorder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class ElectronRecorder extends Recorder {
6767
// @ts-expect-error - TS2339 - Property 'shutdownPromise' does not exist on type 'ElectronRecorder'.
6868
this.shutdownPromise = new Promise(
6969
// @ts-expect-error - TS2339 - Property '_shutdownResolve' does not exist on type 'ElectronRecorder'.
70-
(resolve) => (this._shutdownResolve = resolve)
70+
(resolve) => (this._shutdownResolve = resolve),
7171
);
7272

7373
// @ts-expect-error - TS2339 - Property 'recWC' does not exist on type 'ElectronRecorder'.
@@ -231,7 +231,7 @@ class ElectronRecorder extends Recorder {
231231
responseHeaders: responseHeaders,
232232
body: base64Str,
233233
},
234-
sessions
234+
sessions,
235235
);
236236
} catch (e) {
237237
console.warn(e);

src/electron/rec-window.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@ class RecWindowUI extends LitElement {
167167
}
168168
169169
.overlay-idle {
170-
background-color: #4D7C0F;
170+
background-color: #4d7c0f;
171171
}
172172
173173
.overlay-waiting {
174-
background-color: #C5A802;
174+
background-color: #c5a802;
175175
}
176176
177177
.overlay-auto {
178-
background-color: #0891B2;
178+
background-color: #0891b2;
179179
}
180180
`);
181181
}

src/embed.html

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,27 @@
11
<!doctype html>
22
<html>
3+
<head>
4+
<script src="ui.js"></script>
5+
<style>
6+
html {
7+
width: 100%;
8+
height: 100%;
9+
display: flex;
10+
}
311

4-
<head>
5-
<script src="ui.js"></script>
6-
<style>
7-
html {
8-
width: 100%;
9-
height: 100%;
10-
display: flex;
11-
}
12-
13-
body {
14-
width: 100%;
15-
}
12+
body {
13+
width: 100%;
14+
}
1615

17-
record-web-page {
18-
border: 1px solid black;
19-
display: flex;
20-
height: 100%;
21-
}
22-
</style>
23-
24-
<head>
16+
record-web-page {
17+
border: 1px solid black;
18+
display: flex;
19+
height: 100%;
20+
}
21+
</style>
22+
</head>
2523

2624
<body>
2725
<record-web-page url="https://example.com/"></record-web-page>
2826
</body>
29-
3027
</html>

src/ext/bg.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ chrome.tabs.onCreated.addListener((tab) => {
167167
tab.id,
168168
{ waitForTabUpdate, collId, openUrl, autorun },
169169
// @ts-expect-error - TS2554 - Expected 2 arguments, but got 3.
170-
openUrl
170+
openUrl,
171171
);
172172
}
173173
});
@@ -321,7 +321,7 @@ chrome.runtime.onMessage.addListener(
321321
disableCSPForTab(message.tabId);
322322
break;
323323
}
324-
}
324+
},
325325
);
326326

327327
// ===========================================================================
@@ -344,7 +344,7 @@ async function disableCSPForTab(tabId) {
344344
"Page.setBypassCSP",
345345
{ enabled: true },
346346
// @ts-expect-error - TS7006 - Parameter 'resp' implicitly has an 'any' type.
347-
(resp) => resolve(resp)
347+
(resp) => resolve(resp),
348348
);
349349
});
350350

src/ext/browser-recorder.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BrowserRecorder extends Recorder {
2424
port = null,
2525
openWinMap = null,
2626
autorun = false,
27-
}
27+
},
2828
) {
2929
super();
3030

@@ -129,7 +129,7 @@ class BrowserRecorder extends Recorder {
129129

130130
if (numOtherRecorders > 0) {
131131
console.log(
132-
`closing session, not detaching, ${numOtherRecorders} other recording tab(s) left`
132+
`closing session, not detaching, ${numOtherRecorders} other recording tab(s) left`,
133133
);
134134
return this.sessionClose([]);
135135
} else {
@@ -376,7 +376,7 @@ class BrowserRecorder extends Recorder {
376376
} else {
377377
// @ts-expect-error - TS7005 - Variable 'prr' implicitly has an 'any' type.
378378
prr.reject(
379-
chrome.runtime.lastError ? chrome.runtime.lastError.message : ""
379+
chrome.runtime.lastError ? chrome.runtime.lastError.message : "",
380380
);
381381
}
382382
};
@@ -402,7 +402,7 @@ class BrowserRecorder extends Recorder {
402402
this.debuggee,
403403
method,
404404
params,
405-
sessionId
405+
sessionId,
406406
);
407407
} catch (e) {
408408
console.warn(e);

src/popup.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ class RecPopup extends LitElement {
272272
params.set(
273273
"ts",
274274
// @ts-expect-error - TS2339 - Property 'pageTs' does not exist on type 'RecPopup'.
275-
new Date(this.pageTs).toISOString().replace(/[-:TZ.]/g, "")
275+
new Date(this.pageTs).toISOString().replace(/[-:TZ.]/g, ""),
276276
);
277277
params.set("view", "pages");
278278

@@ -616,7 +616,7 @@ class RecPopup extends LitElement {
616616
class="dropdown-item"
617617
>${coll.title}</a
618618
>
619-
`
619+
`,
620620
)
621621
}
622622
</div>
@@ -884,7 +884,7 @@ class RecPopup extends LitElement {
884884
html` <tr>
885885
<td>${name}</td>
886886
<th>${value}</th>
887-
</tr>`
887+
</tr>`,
888888
)
889889
}`
890890
: ""

0 commit comments

Comments
 (0)