Skip to content

Commit 6a34e00

Browse files
[pre-commit.ci] pre-commit autoupdate (#1665)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-prettier: v2.7.1 → v3.0.0-alpha.0](pre-commit/mirrors-prettier@v2.7.1...v3.0.0-alpha.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e566305 commit 6a34e00

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ repos:
3838
- id: rst-backticks
3939
- id: rst-directive-colons
4040
- repo: https://github.com/pre-commit/mirrors-prettier
41-
rev: v2.7.1
41+
rev: v3.0.0-alpha.0
4242
hooks:
4343
- id: prettier
4444
types_or: [javascript, css]

debug_toolbar/static/debug_toolbar/js/history.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function refreshHistory() {
2525
const formTarget = djDebug.querySelector(".refreshHistory");
2626
const container = document.getElementById("djdtHistoryRequests");
2727
const oldIds = new Set(
28-
pluckData(container.querySelectorAll("tr[data-store-id]"), "storeId")
28+
pluckData(container.querySelectorAll("tr[data-store-id]"), "storeId"),
2929
);
3030

3131
ajaxForm(formTarget)
@@ -44,8 +44,8 @@ function refreshHistory() {
4444
const allIds = new Set(
4545
pluckData(
4646
container.querySelectorAll("tr[data-store-id]"),
47-
"storeId"
48-
)
47+
"storeId",
48+
),
4949
);
5050
const newIds = difference(allIds, oldIds);
5151
const lastRequestId = newIds.values().next().value;
@@ -58,7 +58,7 @@ function refreshHistory() {
5858
.then(function (refreshInfo) {
5959
refreshInfo.newIds.forEach(function (newId) {
6060
const row = container.querySelector(
61-
`tr[data-store-id="${newId}"]`
61+
`tr[data-store-id="${newId}"]`,
6262
);
6363
row.classList.add("flash-new");
6464
});
@@ -74,7 +74,7 @@ function refreshHistory() {
7474

7575
function switchHistory(newStoreId) {
7676
const formTarget = djDebug.querySelector(
77-
".switchHistory[data-store-id='" + newStoreId + "']"
77+
".switchHistory[data-store-id='" + newStoreId + "']",
7878
);
7979
const tbody = formTarget.closest("tbody");
8080

@@ -88,7 +88,7 @@ function switchHistory(newStoreId) {
8888
if (Object.keys(data).length === 0) {
8989
const container = document.getElementById("djdtHistoryRequests");
9090
container.querySelector(
91-
'button[data-store-id="' + newStoreId + '"]'
91+
'button[data-store-id="' + newStoreId + '"]',
9292
).innerHTML = "Switch [EXPIRED]";
9393
}
9494
replaceToolbarState(newStoreId, data);

debug_toolbar/static/debug_toolbar/js/timer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function insertBrowserTiming() {
3333
")</td>";
3434
row.querySelector("rect").setAttribute(
3535
"width",
36-
getCSSWidth(stat, endStat)
36+
getCSSWidth(stat, endStat),
3737
);
3838
} else {
3939
// Render a point in time

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ const djdt = {
3131
this.parentElement.classList.add("djdt-active");
3232

3333
const inner = current.querySelector(
34-
".djDebugPanelContent .djdt-scroll"
34+
".djDebugPanelContent .djdt-scroll",
3535
),
3636
store_id = djDebug.dataset.storeId;
3737
if (store_id && inner.children.length === 0) {
3838
const url = new URL(
3939
djDebug.dataset.renderPanelUrl,
40-
window.location
40+
window.location,
4141
);
4242
url.searchParams.append("store_id", store_id);
4343
url.searchParams.append("panel_id", panelId);
@@ -49,18 +49,18 @@ const djdt = {
4949
djDebug.dispatchEvent(
5050
new CustomEvent("djdt.panel.render", {
5151
detail: { panelId: panelId },
52-
})
52+
}),
5353
);
5454
});
5555
} else {
5656
djDebug.dispatchEvent(
5757
new CustomEvent("djdt.panel.render", {
5858
detail: { panelId: panelId },
59-
})
59+
}),
6060
);
6161
}
6262
}
63-
}
63+
},
6464
);
6565
$$.on(djDebug, "click", ".djDebugClose", function () {
6666
djdt.hide_one_level();
@@ -76,9 +76,9 @@ const djdt = {
7676
{
7777
path: "/",
7878
expires: 10,
79-
}
79+
},
8080
);
81-
}
81+
},
8282
);
8383

8484
// Used by the SQL and template panels
@@ -219,7 +219,7 @@ const djdt = {
219219
// set handle position
220220
const handleTop = Math.min(
221221
localStorage.getItem("djdt.top") || 0,
222-
window.innerHeight - handle.offsetWidth
222+
window.innerHeight - handle.offsetWidth,
223223
);
224224
handle.style.top = handleTop + "px";
225225
},

debug_toolbar/static/debug_toolbar/js/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function ajax(url, init) {
7777
return response.json();
7878
}
7979
return Promise.reject(
80-
new Error(response.status + ": " + response.statusText)
80+
new Error(response.status + ": " + response.statusText),
8181
);
8282
})
8383
.catch(function (error) {

0 commit comments

Comments
 (0)