feat: Refactor API interactions and enhance user settings management

- 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.
This commit is contained in:
HorizonCode committed 2025-07-03 11:46:50 +02:00
1 parent 892f2cea07
commit 651592c333
13 files changed
+680 -128

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
import { writable } from 'svelte/store';
import type { EZPPUserInfo } from './types';
export const currentUserInfo = writable<EZPPUserInfo | undefined>(undefined);