180 Commits

Author SHA1 Message Date
e60243e50c Redirect to login when logging out 2024-11-01 17:17:06 -04:00
6aa933be09 Refactor profile picture display to account for no profile picture 2024-10-25 22:59:06 -04:00
acf15961cd Fix formatting and styling of profile picture display, as well as display email when logged in as well 2024-10-25 17:01:50 -04:00
2d7b91413b Display username in profile container when logged in 2024-10-18 19:31:20 -04:00
c2ebd8307f Display user profile picture when logged in instead of generic profile icon 2024-10-18 19:30:45 -04:00
2be665c549 Track logged in status and user as local resource instead of signal 2024-10-18 19:26:10 -04:00
f104a14f98 Remove derive Default for User and make user signal Option type instead 2024-10-15 17:26:30 -04:00
f78066d7a8 Display username in profile when logged in 2024-10-15 17:18:41 -04:00
3149f65a97 Detect user logged in and display "logged in" for profile 2024-10-11 17:21:11 -04:00
ab50826d31 Update formatting of profile login buttons and display 2024-10-04 17:44:10 -04:00
b2f138e7e9
Move NoCustomError import to fix warning 2024-10-01 00:17:20 -04:00
33aa285deb
Add upload_picture api endpoint 2024-10-01 00:07:26 -04:00
b9551e5bee Merge pull request 'Implement history' (#98) from 41-implement-history into main
Reviewed-on: LibreTunes/LibreTunes#98
2024-09-29 18:27:08 +00:00
73910a087a
Add playing songs to history 2024-09-29 14:04:51 -04:00
ec76269367
Fix duplicate api module definition 2024-09-28 20:50:25 -04:00
8fd064dffc Merge remote-tracking branch 'origin/main' into 41-implement-history 2024-09-28 20:40:37 -04:00
a83fb9dea5
Add friendships and friend_requests database tables 2024-09-28 20:28:00 -04:00
86f9b6fbb3
Convert Infaliable Result into Option and handle 2024-09-15 21:43:59 -04:00
d66849c6cb
Change target cfg condition to target_env 2024-09-15 20:18:02 -04:00
18cbb0017f
Merge remote-tracking branch 'origin/31-update-songdata-for-fetching-songs-on-frontend-for-playback' into 36-implement-likes-and-dislikes 2024-07-30 22:12:44 -04:00
bab819822d
Remove like/dislike API calls TODO comment 2024-07-30 19:34:52 -04:00
0c54f0aeb8
Remove leftover dislike button logging 2024-07-30 19:34:15 -04:00
afbcc65457
Implement like/dislike using SongData instead of PlayStatus 2024-07-28 22:42:04 -04:00
e5a6e8f44e
Add like_dislike field to SongData 2024-07-28 22:40:52 -04:00
d45f102be7
Remove TryInto<SongData> for Song
These pre-defined conversion traits are meant to be fast, and implementing this conversion that accesses the database goes against this design.
2024-07-28 22:37:17 -04:00
74b34b1e54
Merge remote-tracking branch 'origin/31-update-songdata-for-fetching-songs-on-frontend-for-playback' into 36-implement-likes-and-dislikes 2024-07-24 17:30:05 -04:00
21bb2d127f
Fix unused crate::database import 2024-07-23 23:37:48 -04:00
76631126de
Add Song/SongData conversions 2024-07-23 23:32:26 -04:00
f8bbe319bd
Update SongData for frontend use 2024-07-23 23:31:48 -04:00
ffad799f72
Add function to get song album object 2024-07-23 23:30:15 -04:00
c72d4aee18
Add Arist::display_list function 2024-07-23 22:57:24 -04:00
6202b287f0
Fix music placeholder asset path 2024-07-23 20:51:12 -04:00
6b8c8d41e4
Add music placeholder image 2024-07-21 13:15:55 -04:00
4aa90cdefb
Add API functions for getting/adding history 2024-05-19 16:14:38 -04:00
ee70b1080e
Add various history functions for users 2024-05-19 15:44:09 -04:00
62def56a41
Add model for history entry 2024-05-19 15:43:58 -04:00
0c64865cd9
Add api module 2024-05-19 15:38:40 -04:00
cc11de4f3d
Add get_user auth function 2024-05-19 15:38:40 -04:00
81f0b9310f
Add DB table for song history 2024-05-19 12:44:47 -04:00
fa26ee40ed
Add auth functions for checking admin status 2024-05-19 12:20:50 -04:00
c27ad19499
Prevent arbitrary admin user creation 2024-05-19 10:45:50 -04:00
6ae55d5cfc
Add admin column to users table 2024-05-19 10:45:45 -04:00
7bcb5f8c04 Merge branch '40-reduce-dependencies-and-their-features' into 'main'
Reduce dependencies and their features

Closes #40

See merge request libretunes/libretunes!27
2024-05-18 20:29:27 -04:00
9a462d5ee9
Make async-trait required for backend only 2024-05-18 18:51:59 -04:00
eb4dcd4776
Remove tower_sessions dependency 2024-05-18 18:39:14 -04:00
355c791ea7
Reset form fields after sucessful submission 2024-05-18 18:15:50 -04:00
b0edd2174e
Don't initially show upload error message 2024-05-18 18:10:48 -04:00
3978526231
Merge remote-tracking branch 'origin/main' into 19-implement-file-uploads 2024-05-18 18:10:03 -04:00
0adf294cfc
Display error message when upload song fails 2024-05-18 16:36:37 -04:00
952fb93e1e
Only allow mp3 file upload selections 2024-05-18 16:34:07 -04:00