From a74f6b91d4d8ef85257f7051dcad05671e2b60e1 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Wed, 29 Apr 2026 23:03:10 +0200 Subject: [PATCH] remove dead code and unify patterns Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- bun.lock | 3 - bun.nix | 4 - package.json | 3 +- src/components/BackToTop.astro | 2 +- src/components/BlogCard.astro | 10 +- src/components/Hero.astro | 19 +-- src/components/Navbar.astro | 2 - src/config.ts | 2 +- src/layouts/BlogLayout.astro | 9 +- src/layouts/Layout.astro | 32 +---- src/layouts/ProjectLayout.astro | 229 -------------------------------- src/utils/notes.ts | 13 +- 12 files changed, 16 insertions(+), 312 deletions(-) delete mode 100644 src/layouts/ProjectLayout.astro diff --git a/bun.lock b/bun.lock index 4e3bb59..40e803d 100644 --- a/bun.lock +++ b/bun.lock @@ -14,7 +14,6 @@ "@types/bun": "^1.3.13", "astro": "6.1.9", "daisyui": "^5.5.19", - "lucide-astro": "^0.556.0", "node-html-parser": "^7.1.0", "svelte": "^5.55.5", "tailwindcss": "^4.2.4", @@ -624,8 +623,6 @@ "lru-cache": ["lru-cache@11.2.7", "", {}, "sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA=="], - "lucide-astro": ["lucide-astro@0.556.0", "", { "peerDependencies": { "astro": ">=2.7.1" } }, "sha512-ugMjPb45AMfkLCaduNSbyy5NQEKvB1TxVVMmUS4S6L807PMESnX0Qp+DIKHjbyjJmPXOyLRbrzvR3YikTK7brg=="], - "magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="], "magicast": ["magicast@0.5.2", "", { "dependencies": { "@babel/parser": "^7.29.0", "@babel/types": "^7.29.0", "source-map-js": "^1.2.1" } }, "sha512-E3ZJh4J3S9KfwdjZhe2afj6R9lGIN5Pher1pF39UGrXRqq/VDaGVIGN13BjHd2u8B61hArAGOnso7nBOouW3TQ=="], diff --git a/bun.nix b/bun.nix index 5223b43..eec8c29 100644 --- a/bun.nix +++ b/bun.nix @@ -1273,10 +1273,6 @@ url = "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.7.tgz"; hash = "sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA=="; }; - "lucide-astro@0.556.0" = fetchurl { - url = "https://registry.npmjs.org/lucide-astro/-/lucide-astro-0.556.0.tgz"; - hash = "sha512-ugMjPb45AMfkLCaduNSbyy5NQEKvB1TxVVMmUS4S6L807PMESnX0Qp+DIKHjbyjJmPXOyLRbrzvR3YikTK7brg=="; - }; "magic-string@0.30.21" = fetchurl { url = "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz"; hash = "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="; diff --git a/package.json b/package.json index 24f882b..d9d3bcd 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,7 @@ "@types/bun": "^1.3.13", "astro": "6.1.9", "daisyui": "^5.5.19", - "lucide-astro": "^0.556.0", - "node-html-parser": "^7.1.0", +"node-html-parser": "^7.1.0", "svelte": "^5.55.5", "tailwindcss": "^4.2.4" }, diff --git a/src/components/BackToTop.astro b/src/components/BackToTop.astro index 9e0ecb5..be7934b 100644 --- a/src/components/BackToTop.astro +++ b/src/components/BackToTop.astro @@ -1,5 +1,5 @@ --- -import { ArrowUp } from "lucide-astro"; +import { ArrowUp } from "@lucide/astro"; ---