-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Server backend patch (Establish integer value auto convert from …
…String) Fix: Web client Fix: Client code
- Loading branch information
Showing
17 changed files
with
165 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
async function waitOut(ms) | ||
{ | ||
await new Promise(resolve => setTimeout(resolve, 2000)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
const FORM = | ||
{ | ||
FDialog: 0, | ||
FSigin: 1 | ||
}; | ||
|
||
var UI = | ||
{ | ||
forms: [], | ||
activeForm: 0 | ||
}; | ||
|
||
function setSignFormStatus(message) { | ||
let inputMsg = document.getElementById("signStatusBox"); | ||
inputMsg.innerText = message; | ||
} | ||
|
||
async function tea_ui_signin(self) { | ||
let userId = document.getElementById("inputSignin").value; | ||
|
||
setSignFormStatus("Входим..."); | ||
|
||
// Check and validate of the ID | ||
if (/^\d+$/.test(userId) == false) { | ||
setSignFormStatus("Инвалидное поле"); | ||
return false; | ||
} | ||
|
||
self.disabled = true; | ||
|
||
let req = { user_id: userId }; | ||
let responce = await tea_request(req); | ||
|
||
await waitOut(200); | ||
|
||
if (responce.ok) | ||
setSignFormStatus("Вход выполнен"); | ||
else | ||
setSignFormStatus(responce.error); | ||
|
||
self.disabled = false; | ||
} | ||
|
||
function tea_ui_start() { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.