feat(themes): polish theme editor, updates, and card motion
- Lazy-load the theme editor, workshop, diagnostics, logs, and presence editor. - Check installed themes for newer workshop versions and support updates with backup/restore. - Preserve accordion state for the current editor session and add section icons. - Animate installed and workshop cards on insertion, and fix the duplicate presence idle action.
This commit is contained in:
1 parent
51f5fa3e46
commit
d56ed9d786
16 files changed
+720
-434
No files matched your search
@@ -1,8 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { browser } from '$app/environment';
|
||||
import Logo from '$assets/logo.png';
|
||||
import DiscordPresenceEditor from '$lib/components/presence/DiscordPresenceEditor.svelte';
|
||||
import ThemeEditorWindow from '$lib/components/theme/ThemeEditorWindow.svelte';
|
||||
import ThemeV2Background from '$lib/components/theme/ThemeV2Background.svelte';
|
||||
import * as AlertDialog from '$lib/components/ui/alert-dialog';
|
||||
import AnimatedBg from '$lib/components/ui/animated-bg/AnimatedBg.svelte';
|
||||
@@ -449,9 +447,19 @@
|
||||
/>
|
||||
|
||||
{#if editorWindow}
|
||||
<ThemeEditorWindow />
|
||||
{#await import('$lib/components/theme/ThemeEditorWindow.svelte')}
|
||||
<div class="h-screen w-screen bg-theme-950"></div>
|
||||
{:then editorModule}
|
||||
{@const ThemeEditorWindow = editorModule.default}
|
||||
<ThemeEditorWindow />
|
||||
{/await}
|
||||
{:else if presenceEditorWindow}
|
||||
<DiscordPresenceEditor standalone />
|
||||
{#await import('$lib/components/presence/DiscordPresenceEditor.svelte')}
|
||||
<div class="h-screen w-screen bg-theme-950"></div>
|
||||
{:then presenceModule}
|
||||
{@const DiscordPresenceEditor = presenceModule.default}
|
||||
<DiscordPresenceEditor standalone />
|
||||
{/await}
|
||||
{:else}
|
||||
{#if editorOpen}
|
||||
<div
|
||||
|
||||
Reference in new issue
Block a user