Commit Graph

49 Commits

Author SHA1 Message Date
af372326af Lib: Make race-/substitution-card buttons fill the card width 2024-12-23 15:39:00 +01:00
4e4d24c7c6 Lib: Make driver-/race-/team- and substitution-card non-lazy 2024-12-23 01:19:31 +01:00
32b2ff03de Lib: Add on-click handler prop to table component 2024-12-23 01:19:15 +01:00
4f5e653c47 Lib: Update lazydropdown props name to differentiate from non-lazy dropdown 2024-12-23 01:19:03 +01:00
c28756adae Lib: Update lazycard props name to differentiate from non-lazy card 2024-12-23 01:18:43 +01:00
6994547d13 Lib: Add non-lazy variants for card, image and dropdown 2024-12-23 01:17:09 +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
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
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
ac359d86b8 Lib: Update DriverCard to reflect lib changes (lazy loading) 2024-12-16 18:17:22 +01:00
59ba9a1c88 Lib: Make lazyimage fade in the image once loaded 2024-12-16 17:15:52 +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
98e7219636 Lib: Disable autocomplete on card inputs 2024-12-16 12:42:16 +01:00
272996ff68 Lib: Make LazyImage full width 2024-12-16 02:58:30 +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
c939655a4f Lib: Implement site loading indicator 2024-12-16 02:26:35 +01:00
9db8a946ce Lib: Allow icons in dropdown component list 2024-12-15 22:44:15 +01:00
ee24f0fd99 Add "active" switches on data/season drivers page 2024-12-15 21:44:27 +01:00
38aa6e8326 Lib: Fix wrong label in substitution card 2024-12-15 21:44:02 +01:00
e0bb592021 Lib: Implement substitution card 2024-12-15 20:57:48 +01:00
4d635bd536 Lib: Remove unused event from clear_spring event handler in racecard component 2024-12-15 20:57:31 +01:00
e7ba5607eb Lib: Add action field to dropdown component 2024-12-15 20:57:14 +01:00
20803c5663 Lib: Only pass single "team_select_value" into component except of all of them 2024-12-15 20:56:49 +01:00
ea7eba11d9 Lib: Implement racecard component 2024-12-15 00:54:43 +01:00
439f87fa9d Lib: Fix readonly + required in dropdown component by preventing keypress events 2024-12-14 17:14:27 +01:00
b1f6865ad0 Lib: Implement team and driver cards 2024-12-14 17:13:45 +01:00
23ae4c03e5 Lib: Disable text input in Dropdown component 2024-12-14 15:51:48 +01:00
f3b5dbbeee Lib: Implement dropdown + search/autocomplete components 2024-12-14 03:34:08 +01:00
c4b635b702 Add TS type information 2024-12-13 19:58:11 +01:00
e522785801 Lib: Disable input label text wrapping 2024-12-13 14:46:10 +01:00
a47fad1a4d Lib: Allow to manually enable :hover on Button 2024-12-13 14:46:02 +01:00
70edd0182d Migrate from DaisyUI to SkeletonUI 2024-12-12 23:29:24 +01:00
c0c3e3d792 Components: Add index.ts for easier importing 2024-12-12 04:37:34 +01:00
6d812805ed Components: Add username input 2024-12-12 04:37:22 +01:00
5d375554af Components: Add password input 2024-12-12 04:37:17 +01:00
32667d1baf Components: Add text input 2024-12-12 04:37:11 +01:00
20d66cab5f Components: Add file input 2024-12-12 04:37:02 +01:00
4ab7bde49e Components: Add button 2024-12-12 04:36:54 +01:00