Skip to content

Commit 301b294

Browse files
committed
fix: lint
1 parent 630d1fd commit 301b294

File tree

7 files changed

+47
-19
lines changed

7 files changed

+47
-19
lines changed

modules/blox-tailwind/assets/css/components/cover.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
/* Responsive height adjustments for mobile */
1616
@media (max-width: 768px) {
17-
height: 240px !important;
17+
height: 240px;
1818
min-height: 240px;
1919
}
2020
}
@@ -110,7 +110,7 @@
110110
/* Print styles - show cover but optimize */
111111
@media print {
112112
.article-cover {
113-
max-height: 200px !important;
113+
max-height: 200px;
114114
page-break-after: avoid;
115115
}
116116

@@ -125,12 +125,12 @@
125125
.article-cover,
126126
.article-cover *,
127127
.article-cover-icon {
128-
animation: none !important;
129-
transition: none !important;
128+
animation: none;
129+
transition: none;
130130
}
131131

132132
.article-cover.parallax img {
133-
transform: none !important;
133+
transform: none;
134134
}
135135
}
136136

modules/blox-tailwind/assets/css/framework/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@
9898

9999
.prose code:not(:where(pre *))::before,
100100
.prose code:not(:where(pre *))::after {
101-
content: none !important;
101+
content: none;
102102
}
103103
}

modules/blox-tailwind/assets/js/hb-code-copy.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ async function copyCodeToClipboard(button, codeWrapper) {
6161
} catch (err) {
6262
const errorMessage = err instanceof Error ? err.message : "Unknown error";
6363
console.error("Failed to copy:", errorMessage);
64-
button.innerHTML = i18n["copyFailed"] || "Failed";
64+
button.innerHTML = i18n.copyFailed || "Failed";
6565
setTimeout(() => {
66-
button.innerHTML = i18n["copy"];
66+
button.innerHTML = i18n.copy;
6767
}, NOTIFICATION_DURATION);
6868
throw err; // Re-throw for potential error boundary handling
6969
}
@@ -74,12 +74,12 @@ async function copyCodeToClipboard(button, codeWrapper) {
7474
* @param {HTMLElement} copyBtn - The copy button element
7575
*/
7676
function copiedNotification(copyBtn) {
77-
copyBtn.innerHTML = i18n["copied"];
77+
copyBtn.innerHTML = i18n.copied;
7878
copyBtn.disabled = true;
7979
copyBtn.classList.add("copied");
8080

8181
setTimeout(() => {
82-
copyBtn.innerHTML = i18n["copy"];
82+
copyBtn.innerHTML = i18n.copy;
8383
copyBtn.disabled = false;
8484
copyBtn.classList.remove("copied");
8585
}, NOTIFICATION_DURATION);
@@ -92,8 +92,8 @@ function copiedNotification(copyBtn) {
9292
function createCopyButton() {
9393
const copyBtn = document.createElement("button");
9494
copyBtn.classList.add("copy-button");
95-
copyBtn.innerHTML = i18n["copy"];
96-
copyBtn.setAttribute("aria-label", i18n["copyLabel"] || "Copy code to clipboard");
95+
copyBtn.innerHTML = i18n.copy;
96+
copyBtn.setAttribute("aria-label", i18n.copyLabel || "Copy code to clipboard");
9797
copyBtn.setAttribute("type", "button"); // Explicit button type
9898
return copyBtn;
9999
}

modules/blox-tailwind/assets/js/hb-mermaid-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function getCssVar(name) {
22
const value = getComputedStyle(document.documentElement).getPropertyValue(name).trim();
3-
return value ? "rgb(" + value + ")" : null;
3+
return value ? `rgb(${value})` : null;
44
}
55

66
window.mermaid.initialize({

modules/blox-tailwind/assets/js/hb-nav.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
const applyScrollPadding = () => {
44
const header = document.querySelector(".page-header");
55
const position = header.getBoundingClientRect();
6-
document.documentElement.style.scrollPaddingTop = position.height.toString() + "px";
6+
document.documentElement.style.scrollPaddingTop = `${position.height.toString()}px`;
77
const r = document.querySelector(":root");
8-
r.style.setProperty("--navbar-height", position.height.toString() + "px");
8+
r.style.setProperty("--navbar-height", `${position.height.toString()}px`);
99
};
1010

1111
window.addEventListener("DOMContentLoaded", () => {

poetry.lock

Lines changed: 31 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ requests = "^2.31.0"
1313
pyyaml = "^6.0.1"
1414
ruamel-yaml = "^0.18.6"
1515
tomlkit = "^0.12.3"
16+
plotext = "^5.2.8"
1617

1718
[build-system]
1819
requires = ["poetry-core"]

0 commit comments

Comments
 (0)