26 Commits

Author SHA1 Message Date
Jan Bařtipán
54baccd6fc Http: added support for retry with exponentail backoff, UserAccountCommunication::on_active triggered from app instrad of panel to correctly handle situation when multiple app windows opened, ConnectWebView: refactored the login script to prevent using old token 2024-09-03 12:29:09 +02:00
Jan Bařtipán
6a7ac53335 Connect Login Refresh: UserAccountComm: refresh token on wake; WebViewDialog: Connect login retry with exp backoff implemented, added a bit more logging 2024-09-03 12:29:09 +02:00
David Kocik
02ddb36108 Login url with service. Changed code for registering custom url to not check downloader dest.. 2024-08-29 14:56:20 +02:00
David Kocik
2bde97fb11 Keep login dialog opened while opening 3rd vendor in external browser. 2024-08-29 14:56:20 +02:00
David Kocik
3e6b4ba443 Fix of login in internal browser 2024-08-29 14:56:20 +02:00
David Kocik
47d793ffb3 Open login in browser only for external services 2024-08-29 14:56:19 +02:00
Jan Bařtipán
6eca12a1ed Online service configuration can be now changed via env variables, added support for turning webdev tools via command line option 2024-08-09 10:07:47 +02:00
David Kocik
b60fb76a4b Login in config wizard 2024-06-21 14:55:56 +02:00
David Kocik
0abd4a0ae0 missing includes 2024-06-21 14:55:56 +02:00
Martin Šach
01148fc134 Fix includes 2024-06-20 14:53:13 +02:00
David Kocik
a03facbeb4 Revert dev adressess 2024-06-14 14:28:01 +02:00
Jan Bařtipán
850ac19167 WebView and Connect integration: implemented login ceremony via /slicer/login request (and alternative disabled one with fetch function overriding); all stored JWT tokens merged into single secret store record to reduce number of login dialogs appearances when new app is run for first time on Mac. 2024-06-14 14:28:01 +02:00
David Kocik
5601a6e75f WIP polling timer 2024-06-14 14:28:01 +02:00
David Kocik
399d1f1702 refresh token timer 2024-06-14 14:28:01 +02:00
David Kocik
3e1baf0a61 Do not poll printers when window is not active. 2024-05-20 15:35:35 +02:00
David Kocik
65a581a026 Use only uuid from Connect request and get rest of the data from endpoint 2024-05-16 16:19:07 +02:00
David Kocik
5e171ccfe7 Improvement of Printer status polling.
Define polling action that changes when uuid->printer_model map is filled. Also serves to turn off polling.
2024-04-24 14:08:01 +02:00
David Kocik
b05d438fc6 Changes in Connect Printer Status.
First use endpoint PrinterModels to get uuid to model map, than get statuses for uuids from Status endpoint.

Lang code trimmed to 2 chars.
2024-04-24 14:08:00 +02:00
Lukas Matena
a65a70903e Removed unused code and includes 2024-04-12 09:27:35 +02:00
Martin Šach
5fd66d53ad Add missing headers and replace size_t with std::size_t. 2024-04-05 14:53:10 +02:00
David Kocik
9d9110b60a production address and id 2024-03-28 14:52:38 +01:00
David Kocik
d289b11950 User Account avatar extension
(Missing support for jpg in ScalableBitmap)
2024-03-25 12:05:55 +01:00
David Kocik
93df0ce384 Temporary sending session id instead of access key 2024-03-25 12:05:55 +01:00
David Kocik
5f48e61992 Fix of waking up session thread
Polling every 5 seconds
Do not switch printers on Connect webview click
2024-03-25 12:05:55 +01:00
David Kocik
0c7e6cb063 PrusaConnectNew class - new way to upload to Connect
Several bugs in UI fixed
Added Connect user data action, we might need it in future


Missing file in cmake and smaller fixes

new Connect frontend
2024-03-25 12:05:55 +01:00
David Kocik
e9706f4032 Rename source files.
So the files are named as classes from commit 0ba535967bfbf00dbdce0a441105adb98671eb0e
2024-03-25 12:05:55 +01:00