diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c96135448..c16bd517d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ # PM master check, allows approval of any PR -* @mmr6424 +* @maffiemaffie diff --git a/.gitignore b/.gitignore index 3805cb8f4..b3a70b80c 100644 --- a/.gitignore +++ b/.gitignore @@ -89,7 +89,7 @@ yarn-error.log* .vscode # SQL files -*.sql +# *.sql # Generated files **/generated/** \ No newline at end of file diff --git a/client/public/FontAwesome/js/conflict-detection.js b/client/public/FontAwesome/js/conflict-detection.js index eaf93f701..0c0059820 100644 --- a/client/public/FontAwesome/js/conflict-detection.js +++ b/client/public/FontAwesome/js/conflict-detection.js @@ -583,7 +583,6 @@ progressIndicator, } = _ref; return new Promise(function (resolve, reject) { - // eslint-disable-line compat/compat function poll(duration, cumulativeDuration) { setTimeout(function () { const result = fn(); diff --git a/client/public/assets/arrow_dark.png b/client/public/assets/arrow_dark.png deleted file mode 100644 index 7370fdee2..000000000 Binary files a/client/public/assets/arrow_dark.png and /dev/null differ diff --git a/client/public/assets/arrow_dark.svg b/client/public/assets/arrow_dark.svg deleted file mode 100644 index ad52a2124..000000000 --- a/client/public/assets/arrow_dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/arrow_light.png b/client/public/assets/arrow_light.png deleted file mode 100644 index 7f9cba175..000000000 Binary files a/client/public/assets/arrow_light.png and /dev/null differ diff --git a/client/public/assets/arrow_light.svg b/client/public/assets/arrow_light.svg deleted file mode 100644 index 661efe2e7..000000000 --- a/client/public/assets/arrow_light.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/back_dark.svg b/client/public/assets/back_dark.svg deleted file mode 100644 index 89ad1198f..000000000 --- a/client/public/assets/back_dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/client/public/assets/back_light.svg b/client/public/assets/back_light.svg deleted file mode 100644 index 215b1e9d8..000000000 --- a/client/public/assets/back_light.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/client/public/assets/black/add_member.svg b/client/public/assets/black/add_member.svg deleted file mode 100644 index e20bd83d4..000000000 --- a/client/public/assets/black/add_member.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/black/add_tag.svg b/client/public/assets/black/add_tag.svg deleted file mode 100644 index 1717a4b8a..000000000 --- a/client/public/assets/black/add_tag.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/black/bluesky_black.png b/client/public/assets/black/bluesky_black.png deleted file mode 100644 index 73ef024e1..000000000 Binary files a/client/public/assets/black/bluesky_black.png and /dev/null differ diff --git a/client/public/assets/black/compass.svg b/client/public/assets/black/compass.svg deleted file mode 100644 index 836efb225..000000000 --- a/client/public/assets/black/compass.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/client/public/assets/black/discord_black.png b/client/public/assets/black/discord_black.png deleted file mode 100644 index 0e1f0374b..000000000 Binary files a/client/public/assets/black/discord_black.png and /dev/null differ diff --git a/client/public/assets/black/edit.svg b/client/public/assets/black/edit.svg deleted file mode 100644 index 3e8d15d7c..000000000 --- a/client/public/assets/black/edit.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/client/public/assets/black/facebook_black.png b/client/public/assets/black/facebook_black.png deleted file mode 100644 index d00339851..000000000 Binary files a/client/public/assets/black/facebook_black.png and /dev/null differ diff --git a/client/public/assets/black/folder.svg b/client/public/assets/black/folder.svg deleted file mode 100644 index bd6d926b2..000000000 --- a/client/public/assets/black/folder.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/client/public/assets/black/following.png b/client/public/assets/black/following.png deleted file mode 100644 index aef625e40..000000000 Binary files a/client/public/assets/black/following.png and /dev/null differ diff --git a/client/public/assets/black/funfact.svg b/client/public/assets/black/funfact.svg deleted file mode 100644 index d0f55f2a5..000000000 --- a/client/public/assets/black/funfact.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/black/instagram_black.svg b/client/public/assets/black/instagram_black.svg deleted file mode 100644 index d065bd721..000000000 --- a/client/public/assets/black/instagram_black.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/client/public/assets/black/link_black.png b/client/public/assets/black/link_black.png deleted file mode 100644 index 728b62356..000000000 Binary files a/client/public/assets/black/link_black.png and /dev/null differ diff --git a/client/public/assets/black/linkedIn_black.svg b/client/public/assets/black/linkedIn_black.svg deleted file mode 100644 index d66b73aac..000000000 --- a/client/public/assets/black/linkedIn_black.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/client/public/assets/black/location.svg b/client/public/assets/black/location.svg deleted file mode 100644 index 9a6bd6834..000000000 --- a/client/public/assets/black/location.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/black/logout.svg b/client/public/assets/black/logout.svg deleted file mode 100644 index f23135012..000000000 --- a/client/public/assets/black/logout.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/client/public/assets/black/major.svg b/client/public/assets/black/major.svg deleted file mode 100644 index 2b55e4c8f..000000000 --- a/client/public/assets/black/major.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/client/public/assets/black/meet.svg b/client/public/assets/black/meet.svg deleted file mode 100644 index ab8b36c03..000000000 --- a/client/public/assets/black/meet.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/client/public/assets/black/mode.svg b/client/public/assets/black/mode.svg deleted file mode 100644 index 94325db6c..000000000 --- a/client/public/assets/black/mode.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/black/password_hidden.svg b/client/public/assets/black/password_hidden.svg deleted file mode 100644 index f20a9ea48..000000000 --- a/client/public/assets/black/password_hidden.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - diff --git a/client/public/assets/black/password_shown.svg b/client/public/assets/black/password_shown.svg deleted file mode 100644 index 9af38e870..000000000 --- a/client/public/assets/black/password_shown.svg +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - diff --git a/client/public/assets/black/pencil.svg b/client/public/assets/black/pencil.svg deleted file mode 100644 index 431b1561a..000000000 --- a/client/public/assets/black/pencil.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/client/public/assets/black/profile.png b/client/public/assets/black/profile.png deleted file mode 100644 index c97a6a218..000000000 Binary files a/client/public/assets/black/profile.png and /dev/null differ diff --git a/client/public/assets/black/pronouns.svg b/client/public/assets/black/pronouns.svg deleted file mode 100644 index edfe8c918..000000000 --- a/client/public/assets/black/pronouns.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/black/remove_tag.png b/client/public/assets/black/remove_tag.png deleted file mode 100644 index 505477121..000000000 Binary files a/client/public/assets/black/remove_tag.png and /dev/null differ diff --git a/client/public/assets/black/role.svg b/client/public/assets/black/role.svg deleted file mode 100644 index 6cb88d3b5..000000000 --- a/client/public/assets/black/role.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/black/settings.svg b/client/public/assets/black/settings.svg deleted file mode 100644 index fcd6ed249..000000000 --- a/client/public/assets/black/settings.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/client/public/assets/black/steam_black.png b/client/public/assets/black/steam_black.png deleted file mode 100644 index d05007437..000000000 Binary files a/client/public/assets/black/steam_black.png and /dev/null differ diff --git a/client/public/assets/black/tag_check_selected.png b/client/public/assets/black/tag_check_selected.png deleted file mode 100644 index 9ec1a43f5..000000000 Binary files a/client/public/assets/black/tag_check_selected.png and /dev/null differ diff --git a/client/public/assets/black/twitter_blacl.png b/client/public/assets/black/twitter_blacl.png deleted file mode 100644 index 5b53f65ad..000000000 Binary files a/client/public/assets/black/twitter_blacl.png and /dev/null differ diff --git a/client/public/assets/black/upload_file_black.png b/client/public/assets/black/upload_file_black.png deleted file mode 100644 index 6ec798945..000000000 Binary files a/client/public/assets/black/upload_file_black.png and /dev/null differ diff --git a/client/public/assets/black/uploadimg_black.png b/client/public/assets/black/uploadimg_black.png deleted file mode 100644 index 7d3f28eef..000000000 Binary files a/client/public/assets/black/uploadimg_black.png and /dev/null differ diff --git a/client/public/assets/black/youtube_black.png b/client/public/assets/black/youtube_black.png deleted file mode 100644 index 3cedad406..000000000 Binary files a/client/public/assets/black/youtube_black.png and /dev/null differ diff --git a/client/public/assets/create_dark.svg b/client/public/assets/create_dark.svg deleted file mode 100644 index d6acf06ed..000000000 --- a/client/public/assets/create_dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/create_light.svg b/client/public/assets/create_light.svg deleted file mode 100644 index e123dcc81..000000000 --- a/client/public/assets/create_light.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/dropdown_dark.png b/client/public/assets/dropdown_dark.png deleted file mode 100644 index 52031806d..000000000 Binary files a/client/public/assets/dropdown_dark.png and /dev/null differ diff --git a/client/public/assets/dropdown_dark.svg b/client/public/assets/dropdown_dark.svg deleted file mode 100644 index 7d1f3d26e..000000000 --- a/client/public/assets/dropdown_dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/dropdown_light.png b/client/public/assets/dropdown_light.png deleted file mode 100644 index ad2940c55..000000000 Binary files a/client/public/assets/dropdown_light.png and /dev/null differ diff --git a/client/public/assets/dropdown_light.svg b/client/public/assets/dropdown_light.svg deleted file mode 100644 index 59d9f2c80..000000000 --- a/client/public/assets/dropdown_light.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/filters_dark.svg b/client/public/assets/filters_dark.svg deleted file mode 100644 index 6905bb11d..000000000 --- a/client/public/assets/filters_dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/filters_light.svg b/client/public/assets/filters_light.svg deleted file mode 100644 index d17813bdd..000000000 --- a/client/public/assets/filters_light.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/follow_user_dark.svg b/client/public/assets/follow_user_dark.svg deleted file mode 100644 index c42884349..000000000 --- a/client/public/assets/follow_user_dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/follow_user_light.svg b/client/public/assets/follow_user_light.svg deleted file mode 100644 index 335cbb5d2..000000000 --- a/client/public/assets/follow_user_light.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/white/following.png b/client/public/assets/following.png similarity index 100% rename from client/public/assets/white/following.png rename to client/public/assets/following.png diff --git a/client/public/assets/hide_dark.png b/client/public/assets/hide_dark.png deleted file mode 100644 index 8c7ce013e..000000000 Binary files a/client/public/assets/hide_dark.png and /dev/null differ diff --git a/client/public/assets/icons.svg b/client/public/assets/icons.svg new file mode 100644 index 000000000..cd472bf12 --- /dev/null +++ b/client/public/assets/icons.svg @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/client/public/assets/instagram_logo_dark.svg b/client/public/assets/instagram_logo_dark.svg deleted file mode 100644 index 1a097377e..000000000 --- a/client/public/assets/instagram_logo_dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/instagram_logo_light.svg b/client/public/assets/instagram_logo_light.svg deleted file mode 100644 index 6a49ca0bf..000000000 --- a/client/public/assets/instagram_logo_light.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/linkedIn_logo_dark.svg b/client/public/assets/linkedIn_logo_dark.svg deleted file mode 100644 index e6ad06ff6..000000000 --- a/client/public/assets/linkedIn_logo_dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/linkedIn_logo_light.svg b/client/public/assets/linkedIn_logo_light.svg deleted file mode 100644 index 75fe17899..000000000 --- a/client/public/assets/linkedIn_logo_light.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/menu_dark.svg b/client/public/assets/menu_dark.svg deleted file mode 100644 index f7d263573..000000000 --- a/client/public/assets/menu_dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/menu_light.svg b/client/public/assets/menu_light.svg deleted file mode 100644 index 743feb6e8..000000000 --- a/client/public/assets/menu_light.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/open_dark.png b/client/public/assets/open_dark.png deleted file mode 100644 index e9d2d9dd3..000000000 Binary files a/client/public/assets/open_dark.png and /dev/null differ diff --git a/client/public/assets/profile_dark.svg b/client/public/assets/profile_dark.svg deleted file mode 100644 index 3e712ace1..000000000 --- a/client/public/assets/profile_dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/profile_light.svg b/client/public/assets/profile_light.svg deleted file mode 100644 index 84fee4290..000000000 --- a/client/public/assets/profile_light.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/white/upload_image.png b/client/public/assets/upload_image.png similarity index 100% rename from client/public/assets/white/upload_image.png rename to client/public/assets/upload_image.png diff --git a/client/public/assets/white/add_member.svg b/client/public/assets/white/add_member.svg deleted file mode 100644 index 00c4f4184..000000000 --- a/client/public/assets/white/add_member.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/white/bluesky_white.png b/client/public/assets/white/bluesky_white.png deleted file mode 100644 index c7680e3dc..000000000 Binary files a/client/public/assets/white/bluesky_white.png and /dev/null differ diff --git a/client/public/assets/white/compass.svg b/client/public/assets/white/compass.svg deleted file mode 100644 index 78463f15c..000000000 --- a/client/public/assets/white/compass.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/client/public/assets/white/discord_white.png b/client/public/assets/white/discord_white.png deleted file mode 100644 index d79fe88f7..000000000 Binary files a/client/public/assets/white/discord_white.png and /dev/null differ diff --git a/client/public/assets/white/edit.svg b/client/public/assets/white/edit.svg deleted file mode 100644 index f3e01a724..000000000 --- a/client/public/assets/white/edit.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/client/public/assets/white/facebook_white.png b/client/public/assets/white/facebook_white.png deleted file mode 100644 index 006b81a54..000000000 Binary files a/client/public/assets/white/facebook_white.png and /dev/null differ diff --git a/client/public/assets/white/folder.svg b/client/public/assets/white/folder.svg deleted file mode 100644 index ec7a662d8..000000000 --- a/client/public/assets/white/folder.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/client/public/assets/white/funfact.svg b/client/public/assets/white/funfact.svg deleted file mode 100644 index 2ebd80dfe..000000000 --- a/client/public/assets/white/funfact.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/white/instagram_white.svg b/client/public/assets/white/instagram_white.svg deleted file mode 100644 index 7e60ea666..000000000 --- a/client/public/assets/white/instagram_white.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/client/public/assets/white/link_white.png b/client/public/assets/white/link_white.png deleted file mode 100644 index 59669af23..000000000 Binary files a/client/public/assets/white/link_white.png and /dev/null differ diff --git a/client/public/assets/white/linkedIn_white.svg b/client/public/assets/white/linkedIn_white.svg deleted file mode 100644 index 7d677ff24..000000000 --- a/client/public/assets/white/linkedIn_white.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/client/public/assets/white/location.svg b/client/public/assets/white/location.svg deleted file mode 100644 index 2f54a1307..000000000 --- a/client/public/assets/white/location.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/white/logout.svg b/client/public/assets/white/logout.svg deleted file mode 100644 index f75a44437..000000000 --- a/client/public/assets/white/logout.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/client/public/assets/white/major.svg b/client/public/assets/white/major.svg deleted file mode 100644 index d9d10764e..000000000 --- a/client/public/assets/white/major.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/client/public/assets/white/meet.svg b/client/public/assets/white/meet.svg deleted file mode 100644 index 6e1b30e81..000000000 --- a/client/public/assets/white/meet.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/client/public/assets/white/mode.svg b/client/public/assets/white/mode.svg deleted file mode 100644 index 5c025559f..000000000 --- a/client/public/assets/white/mode.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/white/password_hidden.svg b/client/public/assets/white/password_hidden.svg deleted file mode 100644 index c50d024d0..000000000 --- a/client/public/assets/white/password_hidden.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/client/public/assets/white/password_shown.svg b/client/public/assets/white/password_shown.svg deleted file mode 100644 index 89fb57daf..000000000 --- a/client/public/assets/white/password_shown.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/client/public/assets/white/pencil.svg b/client/public/assets/white/pencil.svg deleted file mode 100644 index f5f84071e..000000000 --- a/client/public/assets/white/pencil.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/client/public/assets/white/profile.png b/client/public/assets/white/profile.png deleted file mode 100644 index af1ff4ee7..000000000 Binary files a/client/public/assets/white/profile.png and /dev/null differ diff --git a/client/public/assets/white/pronouns.svg b/client/public/assets/white/pronouns.svg deleted file mode 100644 index d7f0c5a24..000000000 --- a/client/public/assets/white/pronouns.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/white/role.svg b/client/public/assets/white/role.svg deleted file mode 100644 index c33a1cd53..000000000 --- a/client/public/assets/white/role.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/client/public/assets/white/settings.svg b/client/public/assets/white/settings.svg deleted file mode 100644 index 3eb402135..000000000 --- a/client/public/assets/white/settings.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/client/public/assets/white/steam_white.png b/client/public/assets/white/steam_white.png deleted file mode 100644 index a50561669..000000000 Binary files a/client/public/assets/white/steam_white.png and /dev/null differ diff --git a/client/public/assets/white/twitter_white.png b/client/public/assets/white/twitter_white.png deleted file mode 100644 index 24bb1acea..000000000 Binary files a/client/public/assets/white/twitter_white.png and /dev/null differ diff --git a/client/public/assets/white/upload_file_white.png b/client/public/assets/white/upload_file_white.png deleted file mode 100644 index 2c7b00af6..000000000 Binary files a/client/public/assets/white/upload_file_white.png and /dev/null differ diff --git a/client/public/assets/white/uploadimg_white.png b/client/public/assets/white/uploadimg_white.png deleted file mode 100644 index 26ecac14e..000000000 Binary files a/client/public/assets/white/uploadimg_white.png and /dev/null differ diff --git a/client/public/assets/white/view_password.png b/client/public/assets/white/view_password.png deleted file mode 100644 index 303517cd0..000000000 Binary files a/client/public/assets/white/view_password.png and /dev/null differ diff --git a/client/public/assets/white/youtube_white.png b/client/public/assets/white/youtube_white.png deleted file mode 100644 index 939b72fc3..000000000 Binary files a/client/public/assets/white/youtube_white.png and /dev/null differ diff --git a/client/src/App.css b/client/src/App.css index b5ee1a499..0d7c1ee14 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -5,7 +5,7 @@ --header-color: #1a1921; --sidebar-gradient: linear-gradient(180deg, #2c2a3a 30%, #fead81 100%); --hero-gradient: linear-gradient(180deg, #0e0e0e 30%, #2c2a3a 100%); - --modal-gradient: linear-gradient(293deg, #0a0a0a 0%, #2c2a3a 100%); + --modal-gradient: linear-gradient(293deg, var(--modal-gradient-start) 0%, var(--modal-gradient-end) 100%); --main-text: white; --invert-text: black; @@ -23,6 +23,9 @@ --tag-light-green: #e5f0dd; --tag-light-blue: #dff1f8; --tag-light-purple: #e6e6ff; + + --modal-gradient-start: #0a0a0a; + --modal-gradient-end: #2c2a3a; } /*light mode color scheme*/ diff --git a/client/src/api/users.ts b/client/src/api/users.ts index cec5bafd4..8d60ea36f 100644 --- a/client/src/api/users.ts +++ b/client/src/api/users.ts @@ -279,47 +279,47 @@ export const updateUsername = async ( * Updates user visibility, between 0 (private) and 1 (public). just a switch. * @param id - user_id for the user * @returns 400 if error, 200 if valid - */ -export const updateUserVisibility = async ( - id: number -): Promise => { - const url = `/users/${id}`; - const userResponse = await GET(url); - if (userResponse.status !== 200) { - return { - status: 400, - error: "Unable to fetch user data", - }; - } +// */ +// export const updateUserVisibility = async ( +// id: number +// ): Promise => { +// const url = `/users/${id}`; +// const userResponse = await GET(url); +// if (userResponse.status !== 200) { +// return { +// status: 400, +// error: "Unable to fetch user data", +// }; +// } - const vis = userResponse.data.visibility; - let data: { visibility: number }; +// const vis = userResponse.data.visibility; +// let data: { visibility: number }; - if (vis == 1) { - data = { - visibility: 0, - }; - } else if (vis == 0) { - data = { - visibility: 1, - }; - } else { - return { - status: 400, - error: "Invalid visibility error.", - }; - } - const result = await editUser(id, data); - if (result.status === 400) { - console.log("Error editing user."); - return { status: 400, error: "Error editing user." }; - } - return { - status: 200, - error: null, - data: result.data, - }; -}; +// if (vis == 1) { +// data = { +// visibility: 0, +// }; +// } else if (vis == 0) { +// data = { +// visibility: 1, +// }; +// } else { +// return { +// status: 400, +// error: "Invalid visibility error.", +// }; +// } +// const result = await editUser(id, data); +// if (result.status === 400) { +// console.log("Error editing user."); +// return { status: 400, error: "Error editing user." }; +// } +// return { +// status: 200, +// error: null, +// data: result.data, +// }; +// }; /* ACCOUNT INFO/ PASSWORD RESET*/ @@ -569,7 +569,7 @@ export default { updateEmail, updateUsername, //updatePassword, - updateUserVisibility, + // updateUserVisibility, // requestPasswordReset, getUserByUsername, getUserByEmail, diff --git a/client/src/components/DiscoverCarousel.tsx b/client/src/components/DiscoverCarousel.tsx index dfb4d81d6..f3ece5178 100644 --- a/client/src/components/DiscoverCarousel.tsx +++ b/client/src/components/DiscoverCarousel.tsx @@ -1,17 +1,17 @@ import { CarouselButton, CarouselTabs, CarouselContent, Carousel } from "./ImageCarouselNew"; import * as paths from '../constants/routes'; import placeholderThumbnail from '../images/project_temp.png'; +import usePreloadedImage from "../functions/imageLoad"; +import { Project } from "@looking-for-group/shared"; //backend base url for getting images const API_BASE = `http://localhost:8081`; export const DiscoverCarousel = ({ dataList = [] }) => { - // Creates HTML elements from data, passed into the carousel - const carouselContents = dataList.map((project) => { - const projectImg = (project.thumbnail !== null) - ? `${API_BASE}/images/thumbnails/${project.thumbnail}` - : placeholderThumbnail; + const projectImg = usePreloadedImage(`${API_BASE}/images/thumbnails/`, placeholderThumbnail); + // Creates HTML elements from data, passed into the carousel + const carouselContents = dataList.map((project: Project) => { return ( <>
diff --git a/client/src/components/DiscoverFilters.tsx b/client/src/components/DiscoverFilters.tsx index c7c88f364..46a21461f 100644 --- a/client/src/components/DiscoverFilters.tsx +++ b/client/src/components/DiscoverFilters.tsx @@ -87,7 +87,7 @@ export const DiscoverFilters = ({ category, updateItemList }: { category: string } } else if (category === 'projects') { // Pull Project Types and append it to full data - response = await fetch(`/api/datasets/project-types`); + response = await fetch(`/api/datasets/mediums`); const extraData = await response.json(); if (extraData.data !== undefined) { extraData.data.forEach((projectType: Skill) => data.push({ label: projectType.label, type: 'Project Type' })); @@ -332,7 +332,7 @@ export const DiscoverFilters = ({ category, updateItemList }: { category: string {/* Additional filters popup */} - + {/* When page loads, get all necessary tag lists based on page category. @@ -346,11 +346,7 @@ export const DiscoverFilters = ({ category, updateItemList }: { category: string {/* Back button */} - +

{category === 'projects' ? 'Project Filters' : 'People Filters'}

diff --git a/client/src/components/Endorsement.tsx b/client/src/components/Endorsement.tsx index 7feac7a52..bb4a6835b 100644 --- a/client/src/components/Endorsement.tsx +++ b/client/src/components/Endorsement.tsx @@ -1,32 +1,41 @@ -import { projects } from '../constants/fakeData'; // FIXME: use data in db -import { profiles } from '../constants/fakeData'; // FIXME: use data in db import profilePicture from '../images/blue_frog.png'; import { Tags } from './Tags'; +interface Project { + id: number; + name: string; + description?: string; + thumbnail?: string; + tags?: string[]; +} + +interface EndorsementProps { + project: Project; +} + //used on the profile page to show an endorsement -export const Endorsement = ({ endorsement, endorsedID }) => { - const user = profiles[endorsedID]; +export const Endorsement: React.FC = ({ project }) => { return ( -
+
{profiles[endorsement.endorserID].name}

- "{endorsement.endorsement}" -

-

- From {profiles[endorsement.endorserID].name} for work on{' '} - {projects[endorsement.endorseProjectID].name} + {project.name}

- {/*the skills the user is being endorsed for*/} -
- {endorsement.skills.map((skill) => ( - {user.skills[skill].skill} - ))} -
+ {project.description &&

{project.description}

} + {project.tags && project.tags.length > 0 && ( +
+ {/* The tags that go with the project */} + {project.tags.map((tag) => ( + {tag} + ))} +
+ )}
); diff --git a/client/src/components/Header.tsx b/client/src/components/Header.tsx index cafd2c3ce..27faa0413 100644 --- a/client/src/components/Header.tsx +++ b/client/src/components/Header.tsx @@ -20,6 +20,7 @@ import { sendPost } from '../functions/fetch'; import { ThemeIcon } from './ThemeIcon'; import { ThemeContext } from '../contexts/ThemeContext'; import { useLocation } from 'react-router-dom'; // Hook to access the current location +import profilePicture from '../images/blue_frog.png'; //user utils import { getCurrentUsername } from '../api/users.ts'; @@ -117,8 +118,8 @@ export const Header = ({ dataSets, onSearch, hideSearchBar = false }) => { {/* Notififcations not being used rn */} {/* + // If implementing, use SVG sprite sheet instead of hard-coded pngs { src={`${API_BASE}/images/profiles/${profileImg}`} id={'profile-img-icon'} className={'rounded'} + title={'Profile picture'} + // Cannot use usePreloadedImage function because this is in a callback + onLoad={(e) => { + const profileImg = e.target as HTMLImageElement; + profileImg.src = `${API_BASE}/images/profiles/${profileImg}`; + }} + onError={(e) => { + const profileImg = e.target as HTMLImageElement; + profileImg.src = profilePicture; + }} /> ) : ( - + )} + id={'dropdown-arrow'} + width={15} + height={12} + className={'color-fill'} + ariaLabel={'dropdown arrow'}/> {/* These are its elements once opened (unique for logged out/in) */} @@ -158,11 +166,7 @@ export const Header = ({ dataSets, onSearch, hideSearchBar = false }) => { {/* (Blank) Profile Icon */} {' '} {/* LOG IN Button */}
@@ -203,13 +199,18 @@ export const Header = ({ dataSets, onSearch, hideSearchBar = false }) => { src={`${API_BASE}/images/profiles/${profileImg}`} className={'rounded'} alt={'profile'} + // Cannot use usePreloadedImage function because this is in a callback + onLoad={(e) => { + const profileImg = e.target as HTMLImageElement; + profileImg.src = `${API_BASE}/images/profiles/${profileImg}`; + }} + onError={(e) => { + const profileImg = e.target as HTMLImageElement; + profileImg.src = profilePicture; + }} /> ) : ( - + )}
{username} @@ -222,31 +223,19 @@ export const Header = ({ dataSets, onSearch, hideSearchBar = false }) => { {/* Dark/Light Theme Switcher */} {' '} {/* Settings Link */} {/* LOG OUT Button */}
diff --git a/client/src/components/ImageCarousel.tsx b/client/src/components/ImageCarousel.tsx index 1e1e971cc..35c073a28 100644 --- a/client/src/components/ImageCarousel.tsx +++ b/client/src/components/ImageCarousel.tsx @@ -8,7 +8,8 @@ import { ThemeIcon } from './ThemeIcon'; //backend base url for getting images const API_BASE = `http://localhost:8081`; -//To-do: +//TODO: +//IMPORTANT: Remove this component? ImageCarouselNew.tsx is being called and seems to work as intended. //Finish Discover page version of this component //Default list of images to use @@ -104,14 +105,26 @@ export const ImageCarousel = ({ onMouseLeave={() => handleHover(false)} > {dataList.map((image, index) => { - const imageLink = runningServer ? `${API_BASE}/images/projects/${image}` : image; return (
- + {'project { + const projectImg = e.target as HTMLImageElement; + projectImg.src = `${API_BASE}/images/projects/${image}`; + }} + onError={(e) => { + const projectImg = e.target as HTMLImageElement; + projectImg.src = image; + }} + />
); })} @@ -123,11 +136,7 @@ export const ImageCarousel = ({ onClick={() => handleIndexChange(currentIndex - 1)} id="project-image-carousel-left" > - + @@ -172,11 +177,7 @@ export const ImageCarousel = ({ onClick={() => handleIndexChange(currentIndex - 1)} id="discover-carousel-left" > - + diff --git a/client/src/components/ImageCarouselNew.tsx b/client/src/components/ImageCarouselNew.tsx index 2536b9eac..dea32b774 100644 --- a/client/src/components/ImageCarouselNew.tsx +++ b/client/src/components/ImageCarouselNew.tsx @@ -33,11 +33,7 @@ export const CarouselButton = ({ className={`${className} carousel-btn-${direction}`} onClick={() => handleIndexChange(currentIndex + directionNum)} > - + ); }; diff --git a/client/src/components/ImageUploader.tsx b/client/src/components/ImageUploader.tsx index 00191ec91..6877eb690 100644 --- a/client/src/components/ImageUploader.tsx +++ b/client/src/components/ImageUploader.tsx @@ -1,5 +1,3 @@ -import './Styles/general.css'; -import './Styles/imageUploader.css'; import { useEffect, useRef } from 'react'; import { sendPost } from '../functions/fetch'; //Not fixing, is this something to be implemented later? @@ -7,12 +5,27 @@ interface ImageUploaderProps { initialImageUrl?: string; keepImage?: boolean; onFileSelected?: (file: File) => void; + type?: 'profile' | 'project'; } -export const ImageUploader = ({ +// Two instances where uploader is needed: +// 1. Profile image = About tab of Edit Profile +// 2. Project images = Media tab of Edit/Create Project +// Both components have the same logic, just appear different to match intended styles. + +const ProfileImageUploader = (props: ImageUploaderProps) => { + return ; +}; + +const ProjectImageUploader = (props: ImageUploaderProps) => { + return ; +}; + +const ImageUploader = ({ initialImageUrl = '', keepImage = true, onFileSelected = () => {}, + type }: ImageUploaderProps) => { // Ref for reading selected files const inputRef = useRef(null); @@ -38,31 +51,33 @@ export const ImageUploader = ({ return () => input.removeEventListener('change', handleImgChange); }, [keepImage, onFileSelected]); - return ( -