update: improve project structure and add linting/formatting

- Remove duplicate lucide-svelte package, keep @lucide/svelte
- Move schema from src/lib/server/ to src/lib/db/ for better organization
- Add path aliases to svelte.config.js (, , , , )
- Add ESLint and Prettier configuration with 2-space indentation
- Update all imports to use new schema location and icon package
This commit is contained in:
Rasmus Q
2026-03-15 20:58:55 +00:00
parent 686b43bc18
commit 06c96f4b35
27 changed files with 103 additions and 25 deletions
@@ -3,7 +3,7 @@
import WishlistSection from '$lib/components/dashboard/WishlistSection.svelte';
import { getLocalWishlists, forgetLocalWishlist, toggleLocalFavorite, type LocalWishlist } from '$lib/utils/localWishlists';
import { languageStore } from '$lib/stores/language.svelte';
import { Star } from 'lucide-svelte';
import { Star } from '@lucide/svelte';
import { onMount } from 'svelte';
let {
@@ -3,7 +3,7 @@
import WishlistGrid from '$lib/components/dashboard/WishlistGrid.svelte';
import WishlistCard from '$lib/components/dashboard/WishlistCard.svelte';
import { enhance } from '$app/forms';
import { Star } from 'lucide-svelte';
import { Star } from '@lucide/svelte';
import { languageStore } from '$lib/stores/language.svelte';
import SearchBar from '$lib/components/ui/SearchBar.svelte';
import UnlockButton from '$lib/components/ui/UnlockButton.svelte';
+1 -1
View File
@@ -2,7 +2,7 @@
import { Button } from '$lib/components/ui/button';
import { ThemeToggle } from '$lib/components/ui/theme-toggle';
import { LanguageToggle } from '$lib/components/ui/language-toggle';
import { LayoutDashboard } from 'lucide-svelte';
import { LayoutDashboard } from '@lucide/svelte';
import { languageStore } from '$lib/stores/language.svelte';
let {
+1 -1
View File
@@ -1,5 +1,5 @@
<script lang="ts">
import { X, Pencil } from 'lucide-svelte';
import { X, Pencil } from '@lucide/svelte';
import IconButton from './IconButton.svelte';
let {
+1 -1
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { Button } from '$lib/components/ui/button';
import { Lock, LockOpen } from 'lucide-svelte';
import { Lock, LockOpen } from '@lucide/svelte';
import { languageStore } from '$lib/stores/language.svelte';
let {
@@ -2,7 +2,7 @@
import { languageStore } from '$lib/stores/language.svelte';
import { languages } from '$lib/i18n/translations';
import Dropdown from '$lib/components/ui/Dropdown.svelte';
import { Languages } from 'lucide-svelte';
import { Languages } from '@lucide/svelte';
let { color }: { color?: string | null } = $props();
+1 -1
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import Dropdown from '$lib/components/ui/Dropdown.svelte';
import { Palette } from 'lucide-svelte';
import { Palette } from '@lucide/svelte';
import { AVAILABLE_THEMES } from '$lib/utils/themes';
let {
@@ -1,6 +1,6 @@
<script lang="ts">
import { themeStore } from '$lib/stores/theme.svelte';
import { Sun, Moon, Monitor } from 'lucide-svelte';
import { Sun, Moon, Monitor } from '@lucide/svelte';
import IconButton from '../IconButton.svelte';
let {
@@ -3,11 +3,11 @@
import { Input } from "$lib/components/ui/input";
import { Label } from "$lib/components/ui/label";
import { Textarea } from "$lib/components/ui/textarea";
import { Pencil, Check, X } from "lucide-svelte";
import { Pencil, Check, X } from "@lucide/svelte";
import ColorPicker from "$lib/components/ui/ColorPicker.svelte";
import ThemePicker from "$lib/components/ui/theme-picker.svelte";
import IconButton from "$lib/components/ui/IconButton.svelte";
import type { Wishlist } from "$lib/server/schema";
import type { Wishlist } from "$lib/db/schema";
import { languageStore } from '$lib/stores/language.svelte';
import { getCardStyle } from '$lib/utils/colors';
@@ -1,7 +1,7 @@
<script lang="ts">
import { Card, CardContent } from "$lib/components/ui/card";
import type { Item } from "$lib/server/schema";
import { GripVertical, ExternalLink } from "lucide-svelte";
import type { Item } from "$lib/db/schema";
import { GripVertical, ExternalLink } from "@lucide/svelte";
import { getCardStyle } from '$lib/utils/colors';
import { Button } from "$lib/components/ui/button";
import { languageStore } from '$lib/stores/language.svelte';