Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgraded to svelte 5 and made changes necessary to compile: a) Removing self closing tags that can't be self closing Other issues remain. WIP. * Fixing some compiler issues * Fix allowing more tests to run * Adding playwright to tests in building front end * Most non-svelte 5 specific errors/warnings are removed * Updating TechAvatar to runes * Updating some components Testing passes on frontend * Ran migrator to v5 A few issues to still look at. * Fixed build errors Fixed prettier config for svelte removed legacy prevent default * Prettier run on all code base * Fixing plugin error due to compilation * Fixed TransportTasksDialog * Some fixes * Updated dialogs to * no longer bind show. show/hide is handled by Game.svelte * no longer call GameContext update functions, but instead trigger onOk events that update the game state * dialogs are opened by shared ShowDialogEvent functions bubbled up to Game.svelte * Scanner sort of working * moved waypoint state update logic to GameContext Scanner logic cleaned up a bit. State could maybe be better. * Converted Scanner context into a context object Changed all Props to types instead of interfaces. * updated a few more svelte files * finished scanner elements conversion to svelte5 started on all components with `run(() => ` in them. * removed more `run(() =>` calls Using HTML*Attributes in props where spreading (where possible) Removed more event dispatchers * converted CargoTransferRequest to a type instead of a class. It wasn't reactive when members changed. * making progress on ship designer fixed some tiles * Some fixes to run() * Some fixes to run() * cleaned up optional on* events. fixed highlight issue with ship designer * converted more tables to svelte5 did some typescript magic on tables * Removed all custom dispatchers * No longer hiding engine graph on safari. Svelte 5 fixes it! * Updated FleetWaypointsTile to be all derived state from properties * cleaned up run imports. fixed race editor bindings * cleaned up race bindings a bit * Fixed fleet composition tile to trigger event when the battle plan is changed, not update fleet orders directly * Added Game.svelte event for production queue clear, planet mass driver speed update * Removed state update functions from Fleet tiles. Added local state management for FleetWaypointsTile. Fixed some types around Popups * Updated FleetWaypointsTaskTile to use local state and events * Converted more state update functions into events Updated Research page to use local state * removed preventDefault legacy calls * fixed some issues with plan ui * fixed guest with no user delete issues * fixed wasm update after hosting new game issues * replaced [key:string ]: any; with unknown. Though we should be more explicit about defining types for our ...rest elements * Updated all svg attribute props to use SVGAttributes<SVGElement> * fixed some linting issues * fixed more eslint issues * fixed more linting. Removed SharedTooltip for now * goodbye eslint errors! * made shipdesignspec fuelCapacity optional * renamed some events to camelCase for consistency * fixed a few invalid state equality checks * added back in mistakenly deleted select component * fixed tests, hopefully * fixed playwright typo --------- Co-authored-by: sirgwain <[email protected]>
- Loading branch information