26 Commits

Author SHA1 Message Date
David Kocik
bd3c863d87 Pronibit after on show function when switching connect from notification 2025-02-17 15:35:08 +01:00
David Kocik
464a3b8c5e Perform reload on Connect tab when shown. 2025-02-17 15:35:08 +01:00
David Kocik
003b0ad6e4 Prevent renewal of access token into older token 2025-02-17 15:35:08 +01:00
David Kocik
88a08cd212 Do not use bool state behave_as_mater, instead do so only after token refresh event. 2025-02-17 15:35:08 +01:00
David Kocik
7188239a1a Sharing tokens among instances 2025-02-17 15:35:07 +01:00
David Kocik
79afab4467 SPE-2681: Safely close app in webview callback.
+ handle unused event from Printables.
2025-02-14 11:55:25 +01:00
Jan Bařtipán
b5c97738be HTTP: changed retry strategy so the max period is ~4mins and limited to 16 retries 2024-12-13 15:05:56 +01:00
David Kocik
1848bb9396 SPE-2564: FIx of shortcuts on Mac, including cmd+m and cmd+q 2024-12-11 16:09:59 +01:00
David Kocik
189d728b3f SPE-2564: Add javascript listeners only once/
+ keyboard shortcut fix
2024-12-11 16:09:59 +01:00
David Kocik
882e291daa SPE-2564: Use scripts to add listener to read keyboard shortcuts for reloading webview on Mac.
Add listener for hyperlinks in Printables to be opened in external browser.
2024-12-11 16:09:59 +01:00
David Kocik
c8cac7f678 SPE-2575:: Do not allow busy cursor logic in webview on linux
Allow changes of cursor only when panel is shown.
2024-12-02 12:13:59 +01:00
David Kocik
c70cb1ac15 Fix of asserts 2024-11-25 12:19:12 +01:00
David Kocik
7fa9e1c517 Reset our css styles after reloading Printables.
Fixes non-working notifications.
2024-11-20 17:14:39 +01:00
David Kocik
ad621750ea delete old code 2024-11-20 10:23:23 +01:00
David Kocik
0503733694 Fix of sending refreshed token to Connect
Improved timeout logic
2024-11-20 10:09:12 +01:00
David Kocik
5ba8f21c77 SPE-2570: Refresh access token if Printables fire accessTokenExpired event
Add fancy loading overlay during refresh period

missing include
2024-11-20 10:08:49 +01:00
David Kocik
ce5008cc8d SPE SPE-2566: Load loading screen on webview panels first to prevent using webview context before it is initilized
do remove_request_authorization only once
2024-11-20 09:44:00 +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
668d73b2ea SPE-2563: URL-encode and decode filenames to fix wide chars in javascript 2024-11-20 09:43:28 +01:00
David Kocik
ce991e6632 SPE-2551: PrusaConnect_v2 api use 2024-11-11 16:12:50 +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
9f42394629 SPE-2512: Create Webview only when it is being shown
Destroy webview on tab close
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
7ffa854ec2 SPE-2535: Handling Printables events
Fix of loading url and deleting cookies

Handling Printables events: download and slice

Link from notification to Printables tab

Webview download notification

cleanup

No reload button on loading screen
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