...
This commit is contained in:
parent
819bcfac15
commit
820737bc69
11 changed files with 42 additions and 53774 deletions
|
|
@ -1,33 +0,0 @@
|
|||
```python
|
||||
extends Control
|
||||
|
||||
@onready var http_request: HTTPRequest = $btn_login/HTTPRequest
|
||||
@onready var te_result: TextEdit = $te_result
|
||||
|
||||
var url = "http://godotweb.local/api/login"
|
||||
|
||||
func _on_btn_login_button_up() -> void:
|
||||
var headers = ["Content-Type: application/json"]
|
||||
var data_to_send = {
|
||||
"email" : $le_user.text,
|
||||
"password" : $le_password.text
|
||||
}
|
||||
var json:String = JSON.stringify(data_to_send)
|
||||
|
||||
http_request.request(url, headers, HTTPClient.Method.METHOD_POST, json)
|
||||
|
||||
func _on_http_request_request_completed(result: int, response_code: int, headers: PackedStringArray, body: PackedByteArray) -> void:
|
||||
if response_code != 201:
|
||||
print("Login error.")
|
||||
return
|
||||
|
||||
var data = JSON.parse_string(body.get_string_from_utf8())
|
||||
print(data)
|
||||
|
||||
if data.status == false:
|
||||
te_result.text = "Login refused"
|
||||
else:
|
||||
var token:String = data.data.token
|
||||
te_result.text = "token: " + token
|
||||
|
||||
```
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
|
||||
|
||||
| Urlaub | Kostenart | Betrag | Anteil Torsten | Anteil Verena |
|
||||
| -------------------------- | ------------------------------------- | ------------------ | ------------------ | ------------------ |
|
||||
| Oberstdorf 29.06. - 04.07. | Zimmer | 1100 | =c2/2 | =c2/2 |
|
||||
| Oberstdorf 29.06. - 04.07. | Bahnticket | 50 | 50 | |
|
||||
| Italien Nebensaison | Platzmiete Mose Nebensaison reduziert | =15*25 | =c3/2 | =c3/2 |
|
||||
| Italien Nebensaison | Depot Miete | 500 | =c4/2 | =c4/2 |
|
||||
| Italien Nebensaison | Vignetten+Maut | 100 | =c5/2 | =c5/2 |
|
||||
| Italien Nebensaison | Fahrräder | 1000 | 1000 | |
|
||||
| SUMME | | =c2+c3+c4+c5+c6+c7 | =d2+d3+d4+d5+d6+d7 | =e2+e3+e4+e5+e6+e7 |
|
||||
|
||||
+ Schützenfest Anzug + Geschenk
|
||||
+
|
||||
Loading…
Add table
Add a link
Reference in a new issue