65f60ec6b1
Lib: Remove LazyDropdown
...
It was identical to "Dropdown" after removing the non-lazy "Image"
component
2024-12-27 19:44:05 +01:00
bcd8f3dfb5
Lib: Close Team/Driver/Race/Substitution cards when clicking on the image
2024-12-27 19:43:36 +01:00
00a577520c
Lib: Allow to pass an onclick handler for the card image
2024-12-27 19:43:16 +01:00
c286cea7b5
Data/Season: Add remaining "Create" buttons (drivers/races/substitutions)
2024-12-27 19:36:08 +01:00
80d2fe2297
Lib: Load modal meta data required for "create" driver/race/team/substitution cards
2024-12-27 19:35:47 +01:00
56b1606d1a
Data/Season: Fix team dropdown icon dimensions
2024-12-27 19:16:14 +01:00
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
e4a4a15367
Data/Season: Add create team button
2024-12-23 17:32:45 +01:00
77f373d593
Data/Season: Set disable_inputs for component modals
2024-12-23 16:48:03 +01:00
29eb59a983
Lib: Read disable_inputs from modalStore meta for driver-/race-/substitution-/team-card
2024-12-23 16:47:46 +01:00
cd3f8f7f71
Data/Season: Add value formatting functions for substitutions page
2024-12-23 16:15:27 +01:00
3e0f17faf0
Lib: Allow table value formatting function to return promise
2024-12-23 16:15:27 +01:00
835146e38a
Data/Season: Reorder races columns
2024-12-23 16:15:27 +01:00
a4c2461471
Lib: Make race-/substitution-card buttons fill the card width
2024-12-23 16:15:27 +01:00
4cffa0adc9
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:15:27 +01:00
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
392e61ca49
Lib: Make driver-/race-/team- and substitution-card non-lazy
2024-12-23 16:15:27 +01:00
04650f624e
Lib: Add on-click handler prop to table component
2024-12-23 16:15:27 +01:00
b6a645da6c
Lib: Update lazydropdown props name to differentiate from non-lazy dropdown
2024-12-23 16:15:27 +01:00
471163de2f
Lib: Update lazycard props name to differentiate from non-lazy card
2024-12-23 16:15:27 +01:00
31d8bb4908
Skeleton: Register component modals for driver-/team-/race- and substitution-card
2024-12-23 16:15:27 +01:00
a23f12b69f
Lib: Add non-lazy variants for card, image and dropdown
2024-12-23 16:15:27 +01:00
a1fd50a3f6
Skeleton: Reformat
2024-12-23 16:15:27 +01:00
1a95317a74
Lib: Add table component
2024-12-23 16:15:27 +01:00
05e32b5ffb
Lib: Move form stuff into form/ directory
2024-12-23 16:15:27 +01:00
68d9d7e60d
Lib: Move teamcard into cards/ + implement new team schema
2024-12-23 16:15:27 +01:00
b3629fbe95
Lib: Move cards into cards/ directory
2024-12-23 16:15:27 +01:00
49112280de
Lib: Update team database schema (add logo, color)
2024-12-23 16:15:27 +01:00
c954b0f3b0
App: Add onLazyVisible type definition
2024-12-23 16:15:27 +01:00
b1bea37e20
Skeleton: Fix z-indices so the loading indicator is visible
2024-12-23 16:15:27 +01:00
eedc7f9a85
Lib: Comments
2024-12-23 16:15:27 +01:00
b21e4b9b6e
Lib: Fix LazyImage in Dropdown component
2024-12-23 16:15:27 +01:00
bcb5661e06
Lib: Remove debug log
2024-12-23 16:15:27 +01:00
09a53a15a7
Skeleton: Fix data dropdown padding
2024-12-23 16:15:27 +01:00
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
d398ab67e0
Lib: Implement (slightly broken) lazy loading of cards
...
Issues arise when the viewport size changes
2024-12-23 16:15:27 +01:00
df0402a318
Lib: Add comment to lazyload.ts
2024-12-23 16:15:27 +01:00
3cffab193b
Skeleton: Update drawer switch timeout
2024-12-23 16:15:27 +01:00
8bf96e3380
Lib: Update DriverCard to reflect lib changes (lazy loading)
2024-12-23 16:15:27 +01:00
55e849d908
Data/Season: Update tab bar styling
2024-12-23 16:15:27 +01:00
a02a1e7843
Lib: Make lazyimage fade in the image once loaded
2024-12-23 16:15:27 +01:00
f086e360d4
Skeleton: Position the drawer below the navbar + allow toggling between them
2024-12-23 16:15:27 +01:00
bac2d31d73
Data/Season: Reflect lib updates (lazy stuff)
2024-12-23 16:15:27 +01:00
68a56ece32
Lib: Fix bug in image to base64 conversion (now works client+serverside)
2024-12-23 16:15:27 +01:00
4d41401905
Lib: Update lazy components (dropdown + card now lazy)
2024-12-23 16:15:27 +01:00
ecd566b1fa
Lib: Move image fetching out of LazyImage component into lib
2024-12-23 16:15:27 +01:00
83d322f26b
Lib: Add function to fetch image as base64 string
2024-12-23 16:15:27 +01:00
3bd960b187
Skeleton: Enable autocomplete on username inputs
2024-12-23 16:15:27 +01:00
27fc2bce49
Lib: Disable autocomplete on card inputs
2024-12-23 16:15:27 +01:00
57b4253d99
Data/Season: Stream drivers, races and substitutes as promises for data/season page
2024-12-23 16:15:27 +01:00