From 507ea37f74799784b82b3e9b517656d4ebb5e1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Gr=C3=BCnewald?= <10533763+dhalucario@users.noreply.github.com> Date: Tue, 19 Nov 2024 23:53:44 +0100 Subject: [PATCH] Migrate away from tailwind and move back to stores --- src/app.pcss | 18 --- src/lib/components/AppSettings.svelte | 88 --------------- src/lib/components/BackButton.svelte | 5 +- src/lib/components/Button.svelte | 30 +++++ src/lib/components/Chips.svelte | 58 ++++++++++ src/lib/components/GlobalSearch.svelte | 25 +++-- src/lib/components/Header.svelte | 45 +++++--- src/lib/components/ImageGrid.svelte | 39 ++++--- src/lib/components/LinkButton.svelte | 27 +++++ src/lib/components/PostMedia.svelte | 76 ++++++++++++- src/lib/components/index.js | 16 ++- src/lib/stores.js | 20 +++- src/lib/useSettings.svelte.js | 52 --------- src/routes/+layout.svelte | 60 ++++++++-- src/routes/+page.svelte | 49 +++++++-- src/routes/posts/[post_id]/+page.svelte | 121 +++++++++++---------- src/routes/settings/+page.svelte | 12 -- src/routes/settings/SettingsNav.svelte | 35 ++++++ src/routes/settings/blacklist/+page.svelte | 48 ++++++++ src/routes/settings/main/+page.svelte | 43 ++++++++ 20 files changed, 568 insertions(+), 299 deletions(-) delete mode 100644 src/app.pcss delete mode 100644 src/lib/components/AppSettings.svelte create mode 100644 src/lib/components/Button.svelte create mode 100644 src/lib/components/Chips.svelte create mode 100644 src/lib/components/LinkButton.svelte delete mode 100644 src/lib/useSettings.svelte.js delete mode 100644 src/routes/settings/+page.svelte create mode 100644 src/routes/settings/SettingsNav.svelte create mode 100644 src/routes/settings/blacklist/+page.svelte create mode 100644 src/routes/settings/main/+page.svelte diff --git a/src/app.pcss b/src/app.pcss deleted file mode 100644 index 41b59af..0000000 --- a/src/app.pcss +++ /dev/null @@ -1,18 +0,0 @@ -/* Write your global styles here, in PostCSS syntax */ -@tailwind base; -@tailwind components; -@tailwind utilities; - -* { - box-sizing: border-box; -} - -body { - margin: 0; - padding: 0; -} - -img { - width: 100%; - margin: 0 auto; -} diff --git a/src/lib/components/AppSettings.svelte b/src/lib/components/AppSettings.svelte deleted file mode 100644 index 7ce1332..0000000 --- a/src/lib/components/AppSettings.svelte +++ /dev/null @@ -1,88 +0,0 @@ - -
{post.id} {post.file.ext} {post.rating}
-