UNTESTED CHANGES to login system
Extracted login logic to independent component Login.tsx Implemented dummy password encryption logic Created LoginContext, login+registration handlers relevant type annots added untested change username function in main App button updated PAPERWORK and README
This commit is contained in:
parent
e85f778774
commit
5ce5f9e4eb
11 changed files with 303 additions and 79 deletions
14
src/consts.ts
Normal file
14
src/consts.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
export const domain = window.location.hostname;
|
||||
export const port = "8080";
|
||||
export const connectionAddress = `ws://${domain}:${port}/ws`;
|
||||
export const endpoints = {
|
||||
destination: "/app/chat",
|
||||
subscription: "/sub/chat",
|
||||
history: "/api/v1/msg/",
|
||||
user: "/api/v1/user",
|
||||
};
|
||||
export const contentTypes = {
|
||||
json: {
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue