Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit e49bb32

Browse files
committed
ci: dprint fmt && biome check --write
1 parent 2736f16 commit e49bb32

32 files changed

+943
-888
lines changed

netlify.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[build]
2-
publish = "dist"
3-
command = "npm run build"
2+
publish = "dist"
3+
command = "npm run build"
44
[build.processing.html]
5-
pretty_urls = false
5+
pretty_urls = false
66
[[headers]]
7-
for = "/_astro/*"
8-
[headers.values]
9-
Cache-Control = "public, max-age=31536000, immutable"
7+
for = "/_astro/*"
8+
[headers.values]
9+
Cache-Control = "public, max-age=31536000, immutable"

src/components/blog/ListItem.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ const link = APP_BLOG?.post?.isEnabled ? getPermalink(post.permalink, 'post') :
2222
---
2323

2424
<article
25-
class={`max-w-md mx-auto md:max-w-none grid gap-6 md:gap-8 intersect-once intersect-quarter motion-safe:md:opacity-0 motion-safe:md:intersect:animate-fade ${image ? "md:grid-cols-2" : ""}`}
25+
class={`max-w-md mx-auto md:max-w-none grid gap-6 md:gap-8 intersect-once intersect-quarter motion-safe:md:opacity-0 motion-safe:md:intersect:animate-fade ${
26+
image ? "md:grid-cols-2" : ""
27+
}`}
2628
>
2729
{
2830
image && (link ? (

src/components/blog/RelatedPosts.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const relatedPosts = post.tags ? await getRelatedPosts(post, 4) : [];
1919
APP_BLOG.isRelatedPostsEnabled ? (
2020
<BlogHighlightedPosts
2121
classes={{
22-
container:
23-
"pt-0 lg:pt-0 md:pt-0 intersect-once intersect-quarter motion-safe:md:opacity-0 motion-safe:md:intersect:animate-fade",
22+
container:
23+
"pt-0 lg:pt-0 md:pt-0 intersect-once intersect-quarter motion-safe:md:opacity-0 motion-safe:md:intersect:animate-fade",
2424
}}
2525
title="Related Posts"
2626
linkText="View All Posts"

src/components/common/ApplyColorMode.astro

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,34 @@ import { UI } from 'astrowind:config';
66

77
<script is:inline define:vars={{ defaultTheme: UI.theme || "system" }}>
88
function applyTheme(theme) {
9-
if (theme === "dark") {
10-
document.documentElement.classList.add("dark");
11-
} else {
12-
document.documentElement.classList.remove("dark");
13-
}
14-
const matches = document.querySelectorAll(
15-
"[data-aw-toggle-color-scheme] > input",
16-
);
9+
if (theme === "dark") {
10+
document.documentElement.classList.add("dark");
11+
} else {
12+
document.documentElement.classList.remove("dark");
13+
}
14+
const matches = document.querySelectorAll(
15+
"[data-aw-toggle-color-scheme] > input",
16+
);
1717

18-
if (matches && matches.length) {
19-
matches.forEach((elem) => {
20-
elem.checked = theme !== "dark";
21-
});
22-
}
18+
if (matches && matches.length) {
19+
matches.forEach((elem) => {
20+
elem.checked = theme !== "dark";
21+
});
22+
}
2323
}
2424

2525
if (
26-
(defaultTheme && defaultTheme.endsWith(":only")) ||
27-
(!localStorage.theme && defaultTheme !== "system")
26+
(defaultTheme && defaultTheme.endsWith(":only"))
27+
|| (!localStorage.theme && defaultTheme !== "system")
2828
) {
29-
applyTheme(defaultTheme.replace(":only", ""));
29+
applyTheme(defaultTheme.replace(":only", ""));
3030
} else if (
31-
localStorage.theme === "dark" ||
32-
(!("theme" in localStorage) &&
33-
window.matchMedia("(prefers-color-scheme: dark)").matches)
31+
localStorage.theme === "dark"
32+
|| (!("theme" in localStorage)
33+
&& window.matchMedia("(prefers-color-scheme: dark)").matches)
3434
) {
35-
applyTheme("dark");
35+
applyTheme("dark");
3636
} else {
37-
applyTheme("light");
37+
applyTheme("light");
3838
}
3939
</script>

0 commit comments

Comments
 (0)