Skip to content

Commit c125ec2

Browse files
committed
Fixed pages loading slow while in dev mode (Thanks @Nitix for the solution:
dzeiocom/lucide-astro#28)
1 parent 294a2fb commit c125ec2

File tree

7 files changed

+31
-7
lines changed

7 files changed

+31
-7
lines changed

src/components/AssetCard.astro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ interface Props {
44
}
55
66
import { Image } from "astro:assets";
7-
import { Ban, CircleAlert, UserRoundPlus } from "lucide-astro";
7+
8+
import Ban from "lucide-astro/Ban";
9+
import CircleAlert from "lucide-astro/CircleAlert";
10+
import UserRoundPlus from "lucide-astro/UserRoundPlus";
11+
812
import type { Asset } from "@/lib/assets.ts";
913
1014
const { asset } = Astro.props;

src/layouts/Main.astro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
---
2-
import { AppWindow, Gamepad2, LayoutGrid, Menu, Settings2 } from "lucide-astro";
2+
import AppWindow from "lucide-astro/AppWindow";
3+
import Gamepad2 from "lucide-astro/Gamepad2";
4+
import LayoutGrid from "lucide-astro/LayoutGrid";
5+
import Menu from "lucide-astro/Menu";
6+
import Settings2 from "lucide-astro/Settings2";
7+
38
import Obfuscated from "@/components/Obfuscated.astro";
49
import Layout from "@/layouts/Layout.astro";
510

src/pages/apps.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import fs from "node:fs";
33
import path from "node:path";
4-
import { PlusCircle } from "lucide-astro";
4+
import PlusCircle from "lucide-astro/PlusCircle";
55
import AssetCard from "@/components/AssetCard.astro";
66
import Layout from "@/layouts/Main.astro";
77
import type { Asset } from "@/lib/assets.ts";

src/pages/games.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import fs from "node:fs";
33
import path from "node:path";
4-
import { PlusCircle } from "lucide-astro";
4+
import PlusCircle from "lucide-astro/PlusCircle";
55
import AssetCard from "@/components/AssetCard.astro";
66
import Layout from "@/layouts/Main.astro";
77
import type { Asset } from "@/lib/assets.ts";

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { Search } from "lucide-astro";
2+
import Search from "lucide-astro/Search";
33
import Layout from "@/layouts/Main.astro";
44
---
55

src/pages/settings.astro

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
---
2-
import { ExternalLink, EyeOff, Info, Search, Settings2, Siren, SwatchBook } from "lucide-astro";
2+
import ExternalLink from "lucide-astro/ExternalLink";
3+
import EyeOff from "lucide-astro/EyeOff";
4+
import Info from "lucide-astro/Info";
5+
import Search from "lucide-astro/Search";
6+
import Settings2 from "lucide-astro/Settings2";
7+
import Siren from "lucide-astro/Siren";
8+
import SwatchBook from "lucide-astro/SwatchBook";
9+
310
import ArrowButton from "@/components/ArrowButton.astro";
411
import Dropdown from "@/components/Dropdown.astro";
512
import SettingsCard from "@/components/SettingsCard.astro";

src/pages/tabs.astro

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
---
2-
import { ArrowLeft, ArrowRight, Home, Loader2, Maximize2, Plus, RotateCw, Star } from "lucide-astro";
2+
import ArrowLeft from "lucide-astro/ArrowLeft";
3+
import ArrowRight from "lucide-astro/ArrowRight";
4+
import Home from "lucide-astro/Home";
5+
import Loader2 from "lucide-astro/Loader2";
6+
import Maximize2 from "lucide-astro/Maximize2";
7+
import Plus from "lucide-astro/Plus";
8+
import RotateCw from "lucide-astro/RotateCw";
9+
import Star from "lucide-astro/Star";
10+
311
import Layout from "@/layouts/Layout.astro";
412
---
513

0 commit comments

Comments
 (0)