206 Commits

Author SHA1 Message Date
slawk0
973ef54393 authorizeUser middleware 2024-11-01 18:24:48 +01:00
slawk0
45ca5a2243 getContactsList api,
contacts are now fetching from api
2024-10-31 21:17:50 +01:00
slawk0
7f2a6d24eb sorting contacts by last active time 2024-10-31 15:36:46 +01:00
slawk0
7953a4ee2c sorting contact to display unreaded firtst 2024-10-31 00:25:02 +01:00
slawk0
efe7559265 added working status indicator 2024-10-31 00:11:12 +01:00
slawk0
69abbcb7b8 removing contact is working 2024-10-29 17:21:12 +01:00
slawk0
fdf9b64349 added deleteContact api 2024-10-28 23:03:47 +01:00
slawk0
dfd93eee51 added filter for invalid characters, initializing contact on click selected contact 2024-10-28 20:17:23 +01:00
slawk0
4d5106dd24 instant adding new contact to list 2024-10-28 15:27:15 +01:00
slawk0
cc13bc0f32 contactsList props 2024-10-27 22:14:35 +01:00
slawk0
73dfeb6e3e added InitializeContact function 2024-10-27 20:01:29 +01:00
slawk0
e92f07433d added InitializeContact function 2024-10-27 11:57:20 +01:00
slawk0
80412296aa added sendContactsList function, fixed socket not working socket after login 2024-10-27 11:25:22 +01:00
slawk0
cb99f174d2 added authorized context 2024-10-26 23:06:32 +02:00
slawk0
21c93d2c18 improved authorization 2024-10-25 23:34:20 +02:00
slawk0
3423994846 added missing files to git, refactor authorization 2024-10-24 21:17:51 +02:00
slawk0
c853256dfe fixed undefined user_id after signup 2024-10-23 22:40:00 +02:00
slawk0
85c086c496 contacts appear on page load 2024-10-22 22:58:18 +02:00
slawk0
c2af7f744e authorization code refactor, added insertContact function 2024-10-22 17:50:32 +02:00
slawk0
7b13996154 added trims to backend 2024-10-21 21:22:16 +02:00
slawk0
6c06d34e5b fixed dropdown menu 2024-10-20 14:39:23 +02:00
slawk0
dfd065adee dropdown menu on user profile 2024-10-19 17:53:34 +02:00
slawk0
f20b020549 code refactor, fixed undefined username from response on /auth/validate api, displays user actual username on UserProfile.tsx 2024-10-19 17:02:08 +02:00
slawk0
53421bc7ca clearing messages on new contact 2024-10-19 13:35:54 +02:00
slawk0
d20f38e454 added autoscroll 2024-10-19 13:03:56 +02:00
slawk0
ba4c07ea30 added filter to prevent display same message multiple times, fixed ui 2024-10-19 12:17:23 +02:00
slawk0
dff81dc1ef added overflow to messages 2024-10-18 16:32:56 +02:00
slawk0
1b24bca201 code refactor added missing async 2024-10-18 15:22:07 +02:00
slawk0
5875162626 removed initializeSocket function, added returns to response 2024-10-17 20:53:15 +02:00
slawk0
8034fdfffb added server site socket authorization, initializeSocket function 2024-10-15 22:01:40 +02:00
slawk0
ea3287a268 timestamp is now generated on client site 2024-10-14 15:55:55 +02:00
slawk0
cfc6ee02c8 Refactor chat message functionality and improve UI components
Removed ChatArea component and added MessagesArea component for handling chat messages. Updated message handling in the server to emit message IDs and adjusted the database query to return these IDs. Renamed ContactInput to ContactForm for better semantic clarity.
2024-10-14 15:41:26 +02:00
slawk0
8b5915b8d3 added contactProfile prop to pass contact username 2024-10-14 11:23:18 +02:00
slawk0
c77c1cfd7e Refactor Chat page to use separate components
Modularize the Chat page by extracting contact input, user profile, and message form into distinct components. This change simplifies the code, enhances readability, and improves maintainability by isolating individual functionality.
2024-10-14 11:15:40 +02:00
slawk0
f7aa6ba713 split code to ChatArea.tsx and ContactProfile.tsx 2024-10-13 23:43:27 +02:00
slawk0
e6f4c58d13 added message and contact input autofocus, getUserId db query, user_id to jwt 2024-10-13 14:12:15 +02:00
slawk0
bd78e7c817 minor changes 2024-10-13 00:12:50 +02:00
slawk0
0b0c162bff sending contact and message 2024-10-12 22:37:25 +02:00
slawk0
8131cc6fb1 added getContact query 2024-10-12 21:20:45 +02:00
slawk0
8414919ae6 added contact db 2024-10-12 00:45:53 +02:00
slawk0
bd89f0762f password validation on server 2024-10-11 15:32:07 +02:00
slawk0
05211fba10 protectedRoutes works? 2024-10-11 14:02:00 +02:00
slawk0
e074823704 creating ProtectedRoutes.tsx 2024-10-10 22:28:45 +02:00
slawk0
387437c71e restricted access to pages 2024-10-05 22:31:30 +02:00
slawk0
58f6ffcfd3 message box 2024-10-05 15:16:56 +02:00
slawk0
75d95e827d getPassword() function, refactor from .send to .json 2024-10-05 14:25:33 +02:00
slawk0
826116e23c added hashing password, creating user uuid and password mismatch check 2024-10-05 13:00:37 +02:00
slawk0
cb90cb3498 added try catches and jwt 2024-10-04 22:13:17 +02:00
slawk0
03892f0371 added changePassword, checkUserExist, insertUser & message functions 2024-10-04 17:37:26 +02:00
slawk0
965623a3d6 code refactor of creating tables 2024-10-01 21:37:51 +02:00