177 Commits

Author SHA1 Message Date
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
03892f0371 added changePassword, checkUserExist, insertUser & message functions 2024-10-04 17:37:26 +02:00
slawk0
71e828b493 added creating tables and many other 2024-10-01 21:02:51 +02:00
slawk0
b7adb17647 added provisional messages page 2024-09-27 22:05:27 +02:00
slawk0
4e1bf18f45 added form validation 2024-09-26 18:33:35 +02:00
slawk0
24ab80244f added form validation, server.js 2024-09-26 17:59:51 +02:00
slawk0
6e103e9aee code refactor and added react-hook-form 2024-09-24 22:28:18 +02:00
slawk0
1421801859 ini 2024-09-24 21:12:41 +02:00