Commit Graph

125 Commits

Author SHA1 Message Date
53f3452f32 Lib: Allow table value formatting function to return promise 2024-12-23 16:04:21 +01:00
13b3bccc1e Data/Season: Reorder races columns 2024-12-23 16:04:21 +01:00
8a7082e3c6 Lib: Make race-/substitution-card buttons fill the card width 2024-12-23 16:04:21 +01:00
a0d0dbea8c Data/Season: Replace card grid for teams/drivers/races/substitutions with tables
This is loading fast and non-lazy, on row-click the card opens
2024-12-23 16:04:21 +01:00
89ae58bf81 Lib: Remove card aspect ratios
Lazy cards weren't implemented robustly, so use non-lazy cards for now
(maybe find a better solution sometimes)
2024-12-23 16:04:21 +01:00
0be3540f74 Lib: Make driver-/race-/team- and substitution-card non-lazy 2024-12-23 16:04:21 +01:00
e116ea5683 Lib: Add on-click handler prop to table component 2024-12-23 16:04:21 +01:00
600c035366 Lib: Update lazydropdown props name to differentiate from non-lazy dropdown 2024-12-23 16:04:21 +01:00
38f7949985 Lib: Update lazycard props name to differentiate from non-lazy card 2024-12-23 16:04:21 +01:00
7ab9aaaca1 Skeleton: Register component modals for driver-/team-/race- and substitution-card 2024-12-23 16:04:21 +01:00
812de30973 Lib: Add non-lazy variants for card, image and dropdown 2024-12-23 16:04:04 +01:00
a6aee62b2b Skeleton: Reformat 2024-12-23 16:04:04 +01:00
21bc037b8b Lib: Add table component 2024-12-18 15:00:05 +01:00
301750e1a6 Lib: Move form stuff into form/ directory 2024-12-18 14:59:55 +01:00
344b4c0a78 Lib: Move teamcard into cards/ + implement new team schema 2024-12-18 14:59:22 +01:00
769008c98b Lib: Move cards into cards/ directory 2024-12-18 14:59:06 +01:00
4c4deccb00 Update team database schema (add logo, color) 2024-12-18 14:58:28 +01:00
d0e1830145 Add onLazyVisible type definition 2024-12-17 21:23:44 +01:00
c8b2aa8b5a Fix z-indices so the loading indicator is visible 2024-12-17 18:03:16 +01:00
4e822690ed Comments 2024-12-17 17:20:22 +01:00
ef46342384 Lib: Fix LazyImage in Dropdown component 2024-12-16 21:11:52 +01:00
1a51b000ac Lib: Remove debug log 2024-12-16 21:11:37 +01:00
ebfcca559a Fix data dropdown padding 2024-12-16 21:11:08 +01:00
4de9cf9b0b Lib: Remove previous lazy loading approach and replace with static aspect ratios
The element size must be valid before it is loaded, this is a problem
for cards, as they adapt to their content's size.
Previously I tried to load the first card non-lazily and measure its
dimensions for the next cards, but that was not stable on viewport
changes (could have measured the aspect ratio instead...).
Now, all the aspect ratios are just measured and defined manually,
stupid but simple.
2024-12-16 20:06:56 +01:00
fdf08d7b86 Lib: Implement (slightly broken) lazy loading of cards
Issues arise when the viewport size changes
2024-12-16 19:52:46 +01:00
060575ed12 Lib: Add comment to lazyload.ts 2024-12-16 18:17:54 +01:00
9fa0a341a8 Update drawer switch timeout in main layout 2024-12-16 18:17:43 +01:00
ac359d86b8 Lib: Update DriverCard to reflect lib changes (lazy loading) 2024-12-16 18:17:22 +01:00
762b2a0839 Update data/season tab bar styling 2024-12-16 17:34:01 +01:00
59ba9a1c88 Lib: Make lazyimage fade in the image once loaded 2024-12-16 17:15:52 +01:00
6178312fde Position the drawer below the navbar + allow toggling between them 2024-12-16 16:46:26 +01:00
7131aebf86 Update data/season page to reflect lib updates (lazy stuff) 2024-12-16 16:45:58 +01:00
379c58d0c2 Lib: Fix bug in image to base64 conversion (now works client+serverside) 2024-12-16 16:45:11 +01:00
6b87d05de6 Lib: Update lazy components (dropdown + card now lazy) 2024-12-16 16:44:46 +01:00
0b3184ba56 Move image fetching out of LazyImage component into lib 2024-12-16 13:36:01 +01:00
c09237e112 Lib: Add function to fetch image as base64 string 2024-12-16 13:35:45 +01:00
ebb6159b93 Enable autocomplete on username inputs 2024-12-16 12:42:26 +01:00
98e7219636 Lib: Disable autocomplete on card inputs 2024-12-16 12:42:16 +01:00
2bd3aa0417 Stream drivers, races and substitutes as promises for data/season page 2024-12-16 04:03:37 +01:00
5767603e87 Hooks: Log requests 2024-12-16 04:03:05 +01:00
88abbadf48 Env: Add sveltekit node server adapter 2024-12-16 04:02:59 +01:00
272996ff68 Lib: Make LazyImage full width 2024-12-16 02:58:30 +01:00
79c97ce232 Update imports 2024-12-16 02:29:33 +01:00
68eeae18e2 Implement image compression + downsizing for team/driver/race routes 2024-12-16 02:29:27 +01:00
b694a10609 Lib: Dispatch CustomEvent instead of Event for DropdownChange 2024-12-16 02:29:06 +01:00
262ac50356 Lib: Add imgwidth/imgheight to Card component so layout doesn't jump when lazyloading images 2024-12-16 02:28:31 +01:00
fde45eb37c Lib: Update index.ts 2024-12-16 02:27:50 +01:00
c45a24066d Lib: Implement LazyImage component (images will be loaded once visible) 2024-12-16 02:27:45 +01:00
5f16b55593 Lib: Define some constant values in lib/config.ts 2024-12-16 02:27:13 +01:00
ea0320e063 Add site loading indicator to the main layout 2024-12-16 02:26:45 +01:00