christoph
80d2fe2297
Lib: Load modal meta data required for "create" driver/race/team/substitution cards
2024-12-27 19:35:47 +01:00
christoph
2d2fd9f622
Lib: Remove non-lazy image
...
We need the width/height anyways to determine the max size, so don't
bother with non-lazy stuff
2024-12-27 19:16:02 +01:00
christoph
e4a4a15367
Data/Season: Add create team button
2024-12-23 17:32:45 +01:00
christoph
29eb59a983
Lib: Read disable_inputs from modalStore meta for driver-/race-/substitution-/team-card
2024-12-23 16:47:46 +01:00
christoph
3e0f17faf0
Lib: Allow table value formatting function to return promise
2024-12-23 16:15:27 +01:00
christoph
a4c2461471
Lib: Make race-/substitution-card buttons fill the card width
2024-12-23 16:15:27 +01:00
christoph
bb108bf6f3
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:15:27 +01:00
christoph
392e61ca49
Lib: Make driver-/race-/team- and substitution-card non-lazy
2024-12-23 16:15:27 +01:00
christoph
04650f624e
Lib: Add on-click handler prop to table component
2024-12-23 16:15:27 +01:00
christoph
b6a645da6c
Lib: Update lazydropdown props name to differentiate from non-lazy dropdown
2024-12-23 16:15:27 +01:00
christoph
471163de2f
Lib: Update lazycard props name to differentiate from non-lazy card
2024-12-23 16:15:27 +01:00
christoph
a23f12b69f
Lib: Add non-lazy variants for card, image and dropdown
2024-12-23 16:15:27 +01:00
christoph
1a95317a74
Lib: Add table component
2024-12-23 16:15:27 +01:00
christoph
05e32b5ffb
Lib: Move form stuff into form/ directory
2024-12-23 16:15:27 +01:00
christoph
68d9d7e60d
Lib: Move teamcard into cards/ + implement new team schema
2024-12-23 16:15:27 +01:00
christoph
b3629fbe95
Lib: Move cards into cards/ directory
2024-12-23 16:15:27 +01:00
christoph
49112280de
Lib: Update team database schema (add logo, color)
2024-12-23 16:15:27 +01:00
christoph
b1bea37e20
Skeleton: Fix z-indices so the loading indicator is visible
2024-12-23 16:15:27 +01:00
christoph
eedc7f9a85
Lib: Comments
2024-12-23 16:15:27 +01:00
christoph
b21e4b9b6e
Lib: Fix LazyImage in Dropdown component
2024-12-23 16:15:27 +01:00
christoph
bcb5661e06
Lib: Remove debug log
2024-12-23 16:15:27 +01:00
christoph
f0c568b982
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-23 16:15:27 +01:00
christoph
d398ab67e0
Lib: Implement (slightly broken) lazy loading of cards
...
Issues arise when the viewport size changes
2024-12-23 16:15:27 +01:00
christoph
df0402a318
Lib: Add comment to lazyload.ts
2024-12-23 16:15:27 +01:00
christoph
8bf96e3380
Lib: Update DriverCard to reflect lib changes (lazy loading)
2024-12-23 16:15:27 +01:00
christoph
a02a1e7843
Lib: Make lazyimage fade in the image once loaded
2024-12-23 16:15:27 +01:00
christoph
68a56ece32
Lib: Fix bug in image to base64 conversion (now works client+serverside)
2024-12-23 16:15:27 +01:00
christoph
4d41401905
Lib: Update lazy components (dropdown + card now lazy)
2024-12-23 16:15:27 +01:00
christoph
ecd566b1fa
Lib: Move image fetching out of LazyImage component into lib
2024-12-23 16:15:27 +01:00
christoph
83d322f26b
Lib: Add function to fetch image as base64 string
2024-12-23 16:15:27 +01:00
christoph
27fc2bce49
Lib: Disable autocomplete on card inputs
2024-12-23 16:15:27 +01:00
christoph
5bfb670347
Lib: Make LazyImage full width
2024-12-23 16:15:27 +01:00
christoph
c1f9c6aa12
Lib: Dispatch CustomEvent instead of Event for DropdownChange
2024-12-23 16:15:27 +01:00
christoph
72154656fb
Lib: Add imgwidth/imgheight to Card component so layout doesn't jump when lazyloading images
2024-12-23 16:15:27 +01:00
christoph
0d25f23818
Lib: Update index.ts
2024-12-23 16:15:27 +01:00
christoph
14516133de
Lib: Implement LazyImage component (images will be loaded once visible)
2024-12-23 16:15:27 +01:00
christoph
57cae4d400
Lib: Define some constant values in lib/config.ts
2024-12-23 16:15:27 +01:00
christoph
66183d0600
Lib: Implement site loading indicator
2024-12-23 16:15:27 +01:00
christoph
ef96cd1e2c
Lib: Implement image downscaling + avif conversion helper
2024-12-23 16:15:27 +01:00
christoph
6d93ca7dab
Lib: Allow icons in dropdown component list
2024-12-23 16:15:27 +01:00
christoph
2989e8a2ed
Data/Season: Add "active" switches on drivers page
2024-12-23 16:15:27 +01:00
christoph
4003cb5645
Lib: Fix wrong label in substitution card
2024-12-23 16:15:27 +01:00
christoph
dbd423dfd3
Lib: Implement substitution card
2024-12-23 16:15:27 +01:00
christoph
69e9ca1400
Lib: Rename field in schema
2024-12-23 16:15:27 +01:00
christoph
0ed6e24852
Lib: Remove unused event from clear_spring event handler in racecard component
2024-12-23 16:15:27 +01:00
christoph
0baaf51e53
Lib: Add action field to dropdown component
2024-12-23 16:15:27 +01:00
christoph
7648886ca4
Lib: Only pass single "team_select_value" into component except of all of them
2024-12-23 16:15:27 +01:00
christoph
ef6554f2c5
Lib: Allow key exceptions in form_data_clean + implement date format conversion for pocketbase
2024-12-23 16:15:27 +01:00
christoph
f11b516088
Lib: Implement racecard component
2024-12-23 16:15:27 +01:00
christoph
3b6c45e86e
Lib: Fix bug in form_data_clean (mutating while iterating)
2024-12-23 16:15:27 +01:00