-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
53 changed files
with
243 additions
and
90 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...ient-Core.package/TCCAuthenticationHandler.class/instance/checkAuthenticationPassword..st
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,4 @@ | ||
library calls | ||
checkAuthenticationPassword: aString | ||
|
||
self core send: (TCCRequest newCheckAuthenticationPassword: aString). |
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
4 changes: 4 additions & 0 deletions
4
...gramClient-Core.package/TCCAuthenticationHandler.class/instance/isAwaitingAuthPassword.st
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,4 @@ | ||
accessing | ||
isAwaitingAuthPassword | ||
|
||
^ self authState = 'authorizationStateWaitPassword' |
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
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCCore.class/instance/checkAuthenticationPassword..st
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,4 @@ | ||
handlers | ||
checkAuthenticationPassword: aString | ||
|
||
self authenticationHandler checkAuthenticationPassword: aString. |
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
4 changes: 4 additions & 0 deletions
4
...elegramClient-Core.package/TCCErrorConstants.class/class/invalidAuthenticationPassword.st
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,4 @@ | ||
messages | ||
invalidAuthenticationPassword | ||
|
||
^ 'The password you entered seems to be invalid.' |
1 change: 1 addition & 0 deletions
1
packages/TelegramClient-Core.package/TCCErrorConstants.class/methodProperties.json
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
6 changes: 6 additions & 0 deletions
6
...ges/TelegramClient-Core.package/TCCRequest.class/class/newCheckAuthenticationPassword..st
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,6 @@ | ||
instance creation | ||
newCheckAuthenticationPassword: aString | ||
|
||
^ TCCRequest | ||
newWithType: 'checkAuthenticationPassword' | ||
from: {'password' -> aString} |
1 change: 1 addition & 0 deletions
1
packages/TelegramClient-Core.package/TCCRequest.class/methodProperties.json
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
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/buttonBack..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/buttonBack.st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...ges/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/buttonBackPressed.st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/buttonCancel..st
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,4 @@ | ||
accessing | ||
buttonCancel: aButton | ||
|
||
buttonCancel := aButton. |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/buttonCancel.st
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,4 @@ | ||
accessing | ||
buttonCancel | ||
|
||
^ buttonCancel |
4 changes: 4 additions & 0 deletions
4
...s/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/buttonCancelPressed.st
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,4 @@ | ||
event handling | ||
buttonCancelPressed | ||
|
||
self showPhoneNumberStep. |
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/buttonVerify..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/buttonVerify.st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/buttonVerifyAuthCode..st
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,4 @@ | ||
accessing | ||
buttonVerifyAuthCode: aButton | ||
|
||
buttonVerifyAuthCode := aButton. |
4 changes: 4 additions & 0 deletions
4
.../TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/buttonVerifyAuthCode.st
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,4 @@ | ||
accessing | ||
buttonVerifyAuthCode | ||
|
||
^ buttonVerifyAuthCode |
2 changes: 1 addition & 1 deletion
2
...dow.class/instance/buttonVerifyPressed.st → ...s/instance/buttonVerifyAuthCodePressed.st
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
event handling | ||
buttonVerifyPressed | ||
buttonVerifyAuthCodePressed | ||
|
||
self core checkAuthenticationCode: self inputField text. |
4 changes: 4 additions & 0 deletions
4
...gramClient-UI.package/TCUAuthenticationWindow.class/instance/buttonVerifyAuthPassword..st
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,4 @@ | ||
accessing | ||
buttonVerifyAuthPassword: aButton | ||
|
||
buttonVerifyAuthPassword := aButton |
4 changes: 4 additions & 0 deletions
4
...egramClient-UI.package/TCUAuthenticationWindow.class/instance/buttonVerifyAuthPassword.st
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,4 @@ | ||
accessing | ||
buttonVerifyAuthPassword | ||
|
||
^ buttonVerifyAuthPassword |
4 changes: 4 additions & 0 deletions
4
...ient-UI.package/TCUAuthenticationWindow.class/instance/buttonVerifyAuthPasswordPressed.st
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,4 @@ | ||
event handling | ||
buttonVerifyAuthPasswordPressed | ||
|
||
self core checkAuthenticationPassword: self passwordField text. |
11 changes: 0 additions & 11 deletions
11
...ages/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/createButtonBack.st
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
...es/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/createButtonCancel.st
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,11 @@ | ||
initialization | ||
createButtonCancel | ||
|
||
self | ||
buttonCancel: (TCUButton new | ||
text: 'Cancel'; | ||
center: self inputField center + ((-100) @ 50); | ||
hide; | ||
on: #mouseDown send: #buttonCancelPressed to: self; | ||
yourself); | ||
addMorph: self buttonCancel. |
11 changes: 0 additions & 11 deletions
11
...es/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/createButtonVerify.st
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
...ramClient-UI.package/TCUAuthenticationWindow.class/instance/createButtonVerifyAuthCode.st
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,11 @@ | ||
initialization | ||
createButtonVerifyAuthCode | ||
|
||
self | ||
buttonVerifyAuthCode: (TCUButton new | ||
text: 'Verify'; | ||
center: self inputField center + (70 @ 50); | ||
on: #mouseDown send: #buttonVerifyAuthCodePressed to: self; | ||
hide; | ||
yourself); | ||
addMorph: self buttonVerifyAuthCode. |
11 changes: 11 additions & 0 deletions
11
...lient-UI.package/TCUAuthenticationWindow.class/instance/createButtonVerifyAuthPassword.st
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,11 @@ | ||
initialization | ||
createButtonVerifyAuthPassword | ||
|
||
self | ||
buttonVerifyAuthPassword: (TCUButton new | ||
text: 'Verify'; | ||
center: self inputField center + (70 @ 50); | ||
on: #mouseDown send: #buttonVerifyAuthPasswordPressed to: self; | ||
hide; | ||
yourself); | ||
addMorph: self buttonVerifyAuthPassword. |
4 changes: 2 additions & 2 deletions
4
...indow.class/instance/createInputField..st → ...Window.class/instance/createInputField.st
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
13 changes: 13 additions & 0 deletions
13
...s/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/createPasswordField.st
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,13 @@ | ||
initialization | ||
createPasswordField | ||
|
||
self | ||
passwordField: (TextMorph new | ||
contentsWrapped: ''; | ||
extent: self class defaultInputWidth @ 50; | ||
borderColor: TCUDefaultValues colorGray; | ||
borderWidth: 1; | ||
center: self instructionLabel center + (0 @ 30); | ||
hide; | ||
yourself); | ||
addMorph: self passwordField. |
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
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/passwordField..st
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,4 @@ | ||
accessing | ||
passwordField: aTextMorph | ||
|
||
passwordField := aTextMorph |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/passwordField.st
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,4 @@ | ||
accessing | ||
passwordField | ||
|
||
^ passwordField |
11 changes: 6 additions & 5 deletions
11
...onWindow.class/instance/showSecondStep.st → ...Window.class/instance/showAuthCodeStep.st
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
drawing | ||
showSecondStep | ||
showAuthCodeStep | ||
|
||
self buttonNext hide. | ||
self buttonBack show. | ||
self buttonVerify show. | ||
|
||
self buttonCancel show. | ||
self buttonVerifyAuthCode show. | ||
self instructionLabel | ||
contents: 'Enter the code your received on your phone'; | ||
center: self center. | ||
|
||
self inputField | ||
contents: ''; | ||
crAction: [self buttonVerifyPressed]. | ||
show; | ||
crAction: [self buttonVerifyAuthCodePressed]. | ||
self errorLabel hide. |
17 changes: 17 additions & 0 deletions
17
.../TelegramClient-UI.package/TCUAuthenticationWindow.class/instance/showAuthPasswordStep.st
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,17 @@ | ||
drawing | ||
showAuthPasswordStep | ||
|
||
self buttonVerifyAuthCode hide. | ||
self buttonCancel show. | ||
self buttonVerifyAuthPassword show. | ||
self inputField hide. | ||
|
||
self instructionLabel | ||
contents: 'Enter your password'; | ||
center: self center. | ||
|
||
self passwordField | ||
contents: ''; | ||
show; | ||
crAction: [self buttonVerifyAuthPasswordPressed]. | ||
self errorLabel hide. |
11 changes: 8 additions & 3 deletions
11
...ionWindow.class/instance/showFirstStep.st → ...dow.class/instance/showPhoneNumberStep.st
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 |
---|---|---|
@@ -1,13 +1,18 @@ | ||
drawing | ||
showFirstStep | ||
|
||
showPhoneNumberStep | ||
|
||
self passwordField hide. | ||
self buttonVerifyAuthPassword hide. | ||
self buttonVerifyAuthCode hide. | ||
self buttonCancel hide. | ||
|
||
self instructionLabel | ||
contents: 'Enter your telephone number: ' asText; | ||
center: self center. | ||
|
||
self buttonVerify hide. | ||
self inputField | ||
show; | ||
contents: '+49'; | ||
crAction: [self buttonNextPressed]. | ||
self buttonNext show. | ||
self instructionLabel show. |
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.