David Kocik
77bb4945f2
Revert "SPE-2567: Login dialog starts with loading page to delete cookies before first request."
...
This reverts commit 338a961bd3d173df5e0f458f489ce79083a31336.
2024-12-13 15:21:27 +01:00
David Kocik
338a961bd3
SPE-2567: Login dialog starts with loading page to delete cookies before first request.
2024-12-07 09:26:29 +01:00
David Kocik
c70cb1ac15
Fix of asserts
2024-11-25 12:19:12 +01:00
David Kocik
3bdaef4910
SPE-2561: Printables Print dialog
...
Fix of opening webview dialog from webview panel
CLOSE_DIALOG connect action
Login on logged out Print request
Register CLOSE_DIALOG callback.
refactoring
2024-11-20 09:43:59 +01:00
David Kocik
85094c5c19
SPE-2515: Improved reload functionality
...
Fix of script message after error with credentials /api key
Reload improvements
additional webview checks
Reload webview on F5 for mac / linux
Rename button
Fix of loading error page
2024-11-11 16:12:50 +01:00
David Kocik
da49e8edfb
SPE-2535: Improvments of Printables events
...
Missing include
Printables event Require login
Improved error page
Prepare opening Printables to Connect upload dialog
debug fix
Another debug fix
prevent reload on load request
Load new url already in on_show
Improved javascript notification
2024-11-11 16:12:50 +01:00
David Kocik
20af632115
SPE-2515: Reload button inside html pages and button in menu
2024-11-11 16:12:49 +01:00
David Kocik
1040332c87
SPE-2468: Printables WebView class
...
read address and download model
Printables as pernament tab
webview debug panel
adding token to request header
Logout to Printables
Correct user-agent
Receiving printables events
Improved refreshing of token to printables
User settings to printables url
merge changes
Changed login to Printables during runtime
Logging in plater fix
2024-11-11 16:12:49 +01:00
David Kocik
891b6a4816
Notification with link to connect
...
hypertext in upload progress notification
load default url if printer page fails
2024-10-02 14:20:12 +02:00
Jan Bartipan
c42efdfef9
ConnectWebViewPanel: fixed login-logout-login issue (removed stub for message handler when calling WebView::RemoveAllUserScripts()), current implementation sends message to C++ runtime to invoke login flow with up-to-date token from C++ runtime
2024-09-11 22:30:29 +02:00
David Kocik
6f3b22de4c
SPE 2450: Delete cookies after login to prevent remembering login info
...
Windows only part
2024-09-05 16:12:04 +02:00
Jan Bartipan
f9164da380
ConnectWebViewPanel: fixed segfault on quit (accessing already deleted plater in on_activate handler), WebView scripts can now use _prusaSlicer.postMessage({action: 'LOG', ...}) to write logs into OS console
2024-09-03 12:29:09 +02:00
David Kocik
2bde97fb11
Keep login dialog opened while opening 3rd vendor in external browser.
2024-08-29 14:56:20 +02:00
Jan Bartipan
f46916681b
PrinterWebViewPanel: proper credentials/sent state clearing
2024-08-09 09:54:35 +02:00
Jan Bařtipán
a4dbe04ff0
PrinterWebViewPanel: clearing API key when setting username/pwd credentials and vice versa to keep consistent state passed to webview authentication delegate
2024-08-09 09:54:35 +02:00
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