- Updated ezpp API to include user info retrieval and improved error handling. - Introduced new writable stores for current user info and loading states. - Added gamemode enums and utility functions for better gamemode handling. - Refactored global state management to use consistent naming conventions. - Enhanced loading and login components to provide better user feedback. - Updated user settings to include preferred mode and type. - Improved layout and page components for better state management and user experience.
13 lines
233 B
Svelte
13 lines
233 B
Svelte
<script lang="ts">
|
|
import { currentView } from '@/global';
|
|
import { fade } from 'svelte/transition';
|
|
|
|
const View = $derived($currentView);
|
|
</script>
|
|
|
|
{#key View}
|
|
<div in:fade={{ duration: 300 }}>
|
|
<View />
|
|
</div>
|
|
{/key}
|