31 Commits

Author SHA1 Message Date
David Kocik
1689918a3e DPIDialog as base class WebViewDialog. 2024-06-26 17:17:51 +02:00
Jan Bařtipán
07dbc5d7f0 WebViewPanel: Javascript init flow error reporting (WIP) 2024-06-21 14:57:16 +02:00
Jan Bařtipán
e6eff5f57f WebViewPanel: JS arrow function rewritten to old function notation 2024-06-21 14:57:16 +02:00
Jan Bařtipán
e70ee320d9 ConnectWebViewPanel: Connect login flow start moved from ctor to on_page_will_load 2024-06-21 14:57:16 +02:00
David Kocik
fd205c937c login logout dialog 2024-06-21 14:55:56 +02:00
David Kocik
b2e80bd5be prototype of inner login dialog 2024-06-21 14:55:56 +02:00
David Kocik
0af38e5507 test of login webview 2024-06-21 14:55:56 +02:00
David Kocik
2e0cb6a9be Do not allow url ouside connect and backbutton back to loading in connect tab. 2024-06-14 14:28:01 +02:00
David Kocik
de6f111eb6 Open url from Connect in external browser 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
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
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
76d7af0b05 Add developer panel and error handling to webview dialog 2024-05-16 16:19:06 +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
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
Martin Šach
b2b852a099 Fix includes. 2024-04-16 14:24:35 +02:00
Lukas Matena
a65a70903e Removed unused code and includes 2024-04-12 09:27:35 +02: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
b21c65de23 Added missed includes 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
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