From d2b05a1b1b907a5e6e7633e5b4196cd6b3ecc6ca Mon Sep 17 00:00:00 2001 From: MotorTruck1221 Date: Sat, 28 Dec 2024 03:25:12 -0700 Subject: [PATCH] Remove the svelte component from InstalledThemes --- .../catalog/InstalledPlugins.svelte | 3 +- src/components/catalog/InstalledThemes.astro | 116 ++++++++++++++++++ src/components/catalog/InstalledThemes.svelte | 67 ---------- src/components/catalog/Parent.svelte | 1 - src/pages/[lang]/settings/appearance.astro | 4 +- tailwind.config.mjs => tailwind.config.ts | 0 6 files changed, 120 insertions(+), 71 deletions(-) create mode 100644 src/components/catalog/InstalledThemes.astro delete mode 100644 src/components/catalog/InstalledThemes.svelte rename tailwind.config.mjs => tailwind.config.ts (100%) diff --git a/src/components/catalog/InstalledPlugins.svelte b/src/components/catalog/InstalledPlugins.svelte index ace6fcc..984f8fa 100644 --- a/src/components/catalog/InstalledPlugins.svelte +++ b/src/components/catalog/InstalledPlugins.svelte @@ -1,4 +1,5 @@ diff --git a/src/components/catalog/InstalledThemes.svelte b/src/components/catalog/InstalledThemes.svelte deleted file mode 100644 index 69bfb7b..0000000 --- a/src/components/catalog/InstalledThemes.svelte +++ /dev/null @@ -1,67 +0,0 @@ - - - {#snippet children(suspend)} -
-
{settings.marketPlaceSettings.changeTheme(true)}}> - Classic Nebula -
-
- Classic Nebula -
-
- {#await suspend(assets) then data} - {#each Object.entries(data) as [key, asset]} - -
-
{settings.marketPlaceSettings.changeTheme(false, asset.payload, asset.background_video, asset.background_image, asset.package_name)}}> - theme -
-
-
{asset.title}
-
-
{settings.marketPlaceSettings.uninstall("theme", asset.package_name); settings.marketPlaceSettings.changeTheme(true); compRef[key].$destroy()}}> - - - -
- - - - - -
-
-
-
- {/each} - {/await} - {/snippet} -
diff --git a/src/components/catalog/Parent.svelte b/src/components/catalog/Parent.svelte index b10e18f..4fa864c 100644 --- a/src/components/catalog/Parent.svelte +++ b/src/components/catalog/Parent.svelte @@ -1,2 +1 @@ - diff --git a/src/pages/[lang]/settings/appearance.astro b/src/pages/[lang]/settings/appearance.astro index 8308302..645dc82 100644 --- a/src/pages/[lang]/settings/appearance.astro +++ b/src/pages/[lang]/settings/appearance.astro @@ -1,5 +1,5 @@ --- -import InstalledThemes from "@components/catalog/InstalledThemes.svelte"; +import InstalledThemes from "@components/catalog/InstalledThemes.astro"; import Layout from "@layouts/Layout.astro"; import SettingsLayout from "@layouts/SettingsLayout.astro"; import SettingsSection from "@layouts/SettingsSection.astro"; @@ -17,7 +17,7 @@ import { MARKETPLACE_ENABLED } from "astro:env/client"; subtitle="Choose a theme so your eyes don't hate us.">