- 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.
15 lines
545 B
TypeScript
15 lines
545 B
TypeScript
import { writable } from 'svelte/store';
|
|
import { Config } from './config';
|
|
|
|
export const userSettings = writable<Config>(new Config('user_settings', false));
|
|
|
|
export const customCursor = writable<boolean>(false);
|
|
export const cursorSmoothening = writable<boolean>(false);
|
|
export const cursorSmoothness = writable<number>(180);
|
|
export const reduceAnimations = writable<boolean>(false);
|
|
|
|
export const osuInstallationPath = writable<string>('');
|
|
|
|
export const preferredMode = writable<number>(0);
|
|
export const preferredType = writable<number>(0);
|