45 Commits

Author SHA1 Message Date
David Kocik
a03facbeb4 Revert dev adressess 2024-06-14 14:28:01 +02:00
David Kocik
41974d6a8f Revert not sending Access token on REQUEST_CONFIG
RunScript -> RunScriptAsync
2024-06-14 14:28:01 +02:00
David Kocik
c1bff16325 Do not send access token by script and minor changes in WebviewPanel 2024-06-14 14:28:01 +02:00
Jan Bařtipán
7204a0e77b WebView and Connect integration: implemented logout flow via /slicer/logout 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
e553ac5360 Fix of webview dialog closing.
Custom script message handlers.
2024-05-20 13:06:48 +02:00
David Kocik
1264f57f84 Compatible printer check when sending uuid to connect. 2024-05-16 16:19:07 +02:00
David Kocik
535ecf7b34 Passing filename to Connect PrinterPick 2024-05-16 16:19:07 +02:00
David Kocik
5e5f2c493d New request naming 2024-05-16 16:19:07 +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
98ec4e808d Remove script handler on EndModal. 2024-05-16 16:19:07 +02:00
David Kocik
df40aecacc New Connect adresses. 2024-05-16 16:19:07 +02:00
David Kocik
44cf71390b Passing uuid from connect webview to connect printerpick
TODO: More sofisticated logic to pass or not pass uuid
2024-05-16 16:19:06 +02:00
David Kocik
76d7af0b05 Add developer panel and error handling to webview dialog 2024-05-16 16:19:06 +02:00
David Kocik
79a7abeca6 nozzle_diameter changed to printer_variant 2024-05-16 16:19:06 +02:00
David Kocik
cb80309535 Delete leftovers from printer_type implementation. 2024-04-24 15:40:03 +02:00
David Kocik
b402c42e75 Do not show error page when not webview shown. 2024-04-24 14:57:09 +02:00
David Kocik
dbb298e1be Sending only first nozzle diameter. 2024-04-24 14:08:01 +02:00
David Kocik
fd8a580dee WebviewDialog minimal size. 2024-04-24 14:08:01 +02:00
David Kocik
d3d16aa964 Error to Debug log fix. 2024-04-24 14:08:01 +02:00
David Kocik
7bc73be0c9 Runscript only if tab with webview is shown.
Fixes premature script running on sys_color_changed. This can be solved more elegantly.
2024-04-24 14:08:00 +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
David Kocik
a474d36bfb Printer_model when requesting printer filtering in PrinterPick. 2024-04-24 14:01:47 +02:00
David Kocik
58cd6c5a09 Selecting SLA printer on Connect upload 2024-04-24 14:01:46 +02:00
David Kocik
d4a794e42a Show error page in webviewPanel 2024-04-24 14:01:46 +02:00
David Kocik
1d71b5338a Webview loading html page 2024-04-24 14:01:46 +02:00
David Kocik
7b9d9a33a4 Remove static run_script function. 2024-04-24 14:01:45 +02:00
David Kocik
d72794bde8 Remove FakeWebView 2024-04-24 14:01:45 +02:00
Lukas Matena
a65a70903e Removed unused code and includes 2024-04-12 09:27:35 +02:00
Lukas Matena
23d056fc71 Various small changes 2024-04-12 09:27:34 +02:00
David Kocik
9d9110b60a production address and id 2024-03-28 14:52:38 +01:00
Lukas Matena
137340f70f Fixed couple of compiler warnings 2024-03-28 12:04:51 +01:00
David Kocik
4358382db7 Check selected profile in connect by compatible printers vector.
Select printer in plater based on compatible printers vector, if given.
2024-03-25 17:08:02 +01:00
David Kocik
c669ef49aa sys_color_change for webview windows 2024-03-25 12:05:55 +01:00
David Kocik
123a299a9b Improvements in ConnectTab and PrinterPick Dialog
Webview access token sending and compatible printer request.

Printer Pick Dialog UI changes

Connect request_config improvements

Switch printer or send gcode dialog
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
b232894451 Changes in PrusaConnect interface
Prepared handling methods. Inside is WIP.

Handling UPDATE_SELECTED_PRINTER Connect request

ConnectRequestHandler class

Error screen as default
2024-03-25 12:05:55 +01:00
David Kocik
565d89a2e2 Simple error page 2024-03-25 12:05:55 +01:00
David Kocik
218a24c7cf Printer webview tab with apikey injecting (username w password does not work).
Webview developer tools added but hidden in tech.
Fixed adding / removing / loading webview tabs and blinking on add.
Rename tabs and related functions.

Apikey injection from https://github.com/SoftFever/OrcaSlicer. Thank you.

Co-authored-by: SoftFever <softfeverever@gmail.com>
2024-03-25 12:05:55 +01:00
David Kocik
7c1f8f8807 PrusaConnect web app communications
Set Access token.
2024-03-25 12:05:55 +01:00
David Kocik
2309b66e02 Get apikey from printer message and use it for upload.
Several compiler warning fixes

Fix of MacOS SHA256 generator
2024-03-25 12:05:55 +01:00
David Kocik
822b862fce Printers action and webview development
Automatic "Connect printers" action after login

periodic connect printers update

adding and removing connect tab on login

Webview refactor

remove unused code

load url on adding panel

monitor tab

upload to connect button
2024-03-25 12:05:55 +01:00
David Kocik
2276cedc10 WebView prototype
Web View has working panel with Connect webpage with Auth token login.
Webview2 is used on windows. It uses small dll to find its runtime.

WebViewDialog.cpp, WebViewDialog.hpp, WebView.cpp and WebView.hpp were taken from https://github.com/bambulab/BambuStudio and used as protype for future WebView Development. Thank you.

Co-authored-by: cmguo <chunmao.guo@bambulab.com>

Co-authored-by: lane.wei <lane.wei@bambulab.com>
2024-03-25 12:05:55 +01:00