3f9843741a
Data/Season: Add value formatting functions for substitutions page
2024-12-23 16:04:21 +01:00
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
c939655a4f
Lib: Implement site loading indicator
2024-12-16 02:26:35 +01:00
00a4019ae5
Compress user avatars in update_profile route
2024-12-15 23:53:23 +01:00
5136946053
Lib: Implement image downscaling + avif conversion helper
2024-12-15 23:53:00 +01:00
65b5a84379
Remove unused imports
2024-12-15 23:52:21 +01:00
1f8945235c
Env: Don't bundle sharp (sharp needs node, so serverside only)
2024-12-15 23:52:07 +01:00
fcf0ad4ad0
Add race results link to layout
2024-12-15 22:45:13 +01:00
af87b5010a
Add driver/team icons to driver/team dropdowns
2024-12-15 22:45:02 +01:00
58b5fa0773
Fix bug in data/season create_driver action (don't ensure "active")
2024-12-15 22:44:43 +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
03c3deb32e
Implement data/season substitutions page
2024-12-15 20:58:00 +01:00
e0bb592021
Lib: Implement substitution card
2024-12-15 20:57:48 +01:00
54adeca546
Lib: Rename field in schema
2024-12-15 20:57:39 +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
46059bcfb5
Implement data/season races page
2024-12-15 00:55:37 +01:00
7b495b21b8
Lib: Allow key exceptions in form_data_clean + implement date format conversion for pocketbase
2024-12-15 00:55:25 +01:00
ea7eba11d9
Lib: Implement racecard component
2024-12-15 00:54:43 +01:00
34a9954e5c
Env: Add date-fns library
2024-12-15 00:11:52 +01:00
6592cf8172
Lib: Fix bug in form_data_clean (mutating while iterating)
2024-12-15 00:11:42 +01:00
ca406503cf
Lib: Add schema definitions for race and substitution
2024-12-15 00:11:23 +01:00
439f87fa9d
Lib: Fix readonly + required in dropdown component by preventing keypress events
2024-12-14 17:14:27 +01:00
9ad1028ac0
Use team/driver card components in data/season
2024-12-14 17:14:00 +01:00
b1f6865ad0
Lib: Implement team and driver cards
2024-12-14 17:13:45 +01:00
cbc5d32c54
Redirect to current page instead of "/" when logging in/out or changing/creating profile
2024-12-14 15:55:17 +01:00
a33a84825e
Hooks: Load template avatar url if user didn't set one
2024-12-14 15:54:21 +01:00
a6c98e42ed
Env: Add sharp for image conversion to avif
2024-12-14 15:53:43 +01:00
cda5ea7af7
Change Locals interface user type to User schema
2024-12-14 15:53:29 +01:00
a1e65c06c0
Display template graphics in data/season (for new driver/team etc.)
2024-12-14 15:52:59 +01:00
c88f26cc57
Load template graphics for data/season
2024-12-14 15:52:43 +01:00
555914b5c1
Lib: Replace get_by_id helper with more general get_by_value (key can be chosen)
2024-12-14 15:52:20 +01:00
833a7fe51b
Lib: Add Graphic and User schemas
2024-12-14 15:51:58 +01:00
23ae4c03e5
Lib: Disable text input in Dropdown component
2024-12-14 15:51:48 +01:00
0fe4e22c4b
Implement create_driver, update_driver and delete_driver routes
2024-12-14 03:35:28 +01:00
e9d1e9a319
Add team select to seasondata drivers page
2024-12-14 03:35:06 +01:00
ff8f375955
Env: Add UUID package
2024-12-14 03:34:39 +01:00
f731a7fce4
Lib: Update type information
2024-12-14 03:34:21 +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
f3a0b53ce6
Manually :hover the button to the current page in navbar
2024-12-13 14:47:03 +01:00
53351519a4
Move /user routes to /profile
2024-12-13 14:46:36 +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
4f342e198a
Env: Update tailwindcss safelist
2024-12-12 23:29:13 +01:00
4d928dc1c0
Env: Replace daisyui with skeletonui
2024-12-12 18:21:06 +01:00
377839ba7a
Env: Update prettier config
2024-12-12 18:20:45 +01:00
ceb9cded9a
Disable "draggable" on links and images
2024-12-12 12:49:49 +01:00
9ccf0422ec
Move seasondata tabs into +layout.svelte
2024-12-12 12:10:56 +01:00
d9c8098fe2
Add stub page for drivers/races routes
2024-12-12 12:10:42 +01:00
e28ba36ab9
Lib: Rename forms.ts to form.ts
2024-12-12 12:09:53 +01:00
8d51f07699
Make "Login" button the default on enter (instead of "Register")
2024-12-12 11:43:36 +01:00
45b740c628
Teams: Implement seasondata/teams page + creation/deletion/updating
2024-12-12 11:43:03 +01:00
77ec3dee21
User: Add login/register/profile form handling
2024-12-12 11:43:03 +01:00
9df154b039
Add stub page for / route
2024-12-12 11:43:03 +01:00
2acc1ec585
Add main page skeleton (navbar)
2024-12-12 11:43:03 +01:00
4d7498cb85
Add request event handler for authentication
2024-12-12 11:43:03 +01:00
4cbba4b1ef
Static: Add favicon + logo
2024-12-12 04:39:27 +01:00
615e79255c
Env: Update devshell commands
2024-12-12 04:39:01 +01:00
036e17b7d5
Env: Update tailwind config + some other plugins
2024-12-12 04:38:52 +01:00
fabdb6a8e8
Add stub pages for some routes
2024-12-12 04:38:32 +01:00
00bbf83cb5
Lib: Add image preview helper
2024-12-12 04:38:00 +01:00
f715959af9
Lib: Add form helpers
2024-12-12 04:37:54 +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