Skip to content

Commit 3ec54ee

Browse files
committed
chore(formatter): update config and format code
1 parent a17e6ec commit 3ec54ee

File tree

5 files changed

+6
-24
lines changed

5 files changed

+6
-24
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"indentStyle": "space",
1616
"indentWidth": 2,
1717
"lineEnding": "lf",
18-
"lineWidth": 250,
18+
"lineWidth": 320,
1919
"attributePosition": "auto",
2020
"ignore": ["**/pnpm-lock.yaml", "**/dist/**", "**/node_modules/**", "**/assets/bundled/**", "*.min.json", "**/.astro/"]
2121
},

prettier.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @type {import("prettier").Config} */
22
export default {
3-
printWidth: 250,
3+
printWidth: 320,
44
semi: true,
55
singleQuote: false,
66
tabWidth: 2,

randomize.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ export function UpdateFaviconRoutes() {
6060
const patterns = [`/assets/media/favicons/${OldName}`, `assets/media/favicons/${OldName}`, `'${OldName}'`, `"${OldName}"`];
6161

6262
for (const pattern of patterns) {
63-
content = content.replace(
64-
new RegExp(pattern.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
65-
pattern.startsWith("/") ? `/assets/media/favicons/${RandomizedName}` : pattern.startsWith("assets") ? `assets/media/favicons/${RandomizedName}` : pattern.startsWith("'") ? `'${RandomizedName}'` : `"${RandomizedName}"`,
66-
);
63+
content = content.replace(new RegExp(pattern.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), pattern.startsWith("/") ? `/assets/media/favicons/${RandomizedName}` : pattern.startsWith("assets") ? `assets/media/favicons/${RandomizedName}` : pattern.startsWith("'") ? `'${RandomizedName}'` : `"${RandomizedName}"`);
6764
}
6865
}
6966

src/components/Dropdown.astro

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,7 @@ const { id, text, menu } = Astro.props;
99
---
1010

1111
<div class="relative">
12-
<button
13-
id={`${id}Button`}
14-
data-dropdown-toggle={id}
15-
data-dropdown-delay="500"
16-
data-dropdown-trigger="hover"
17-
class="mt-2 text-text bg-dropdown focus:outline-none font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center"
18-
type="button"
19-
>
12+
<button id={`${id}Button`} data-dropdown-toggle={id} data-dropdown-delay="500" data-dropdown-trigger="hover" class="mt-2 text-text bg-dropdown focus:outline-none font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center" type="button">
2013
{text}
2114
<svg class="w-2.5 h-2.5 ms-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
2215
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 4 4 4-4"></path>

src/layouts/Main.astro

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,12 @@ const navLinks = [
1212
---
1313

1414
<Layout>
15-
<nav
16-
id="default-nav"
17-
class="flex flex-row justify-between backdrop-blur-xl bg-background-secondary/80 border border-accent/20 w-[98vw] h-20 px-6 rounded-2xl mx-4 mt-4 fixed top-0 z-[99999] shadow-2xl drop-shadow-xl"
18-
style="box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);"
19-
>
15+
<nav id="default-nav" class="flex flex-row justify-between backdrop-blur-xl bg-background-secondary/80 border border-accent/20 w-[98vw] h-20 px-6 rounded-2xl mx-4 mt-4 fixed top-0 z-[99999] shadow-2xl drop-shadow-xl" style="box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);">
2016
<a href="/" class="uppercase flex items-center text-text hover:scale-105 duration-200 text-6xl font-black transition-all hover:text-accent">in</a>
2117
<button id="hamburger" class="text-3xl text-text focus:outline-none hover:text-accent rounded-lg p-2 hover:bg-accent/10">
2218
<Menu class="size-8" />
2319
</button>
24-
<ul
25-
id="nav"
26-
class="mt-2 w-52 flex flex-col absolute top-20 right-0 bg-background-secondary backdrop-blur-xl border border-accent/30 rounded-2xl p-2 transition-all duration-300 shadow-2xl"
27-
style="box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);"
28-
>
20+
<ul id="nav" class="mt-2 w-52 flex flex-col absolute top-20 right-0 bg-background-secondary backdrop-blur-xl border border-accent/30 rounded-2xl p-2 transition-all duration-300 shadow-2xl" style="box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);">
2921
{
3022
navLinks.map((link) => (
3123
<li>

0 commit comments

Comments
 (0)