Commit Graph

190 Commits

Author SHA1 Message Date
schlagmichdoch 880e8bd195 Add TURN indicator to PeerUI and add method to RTCPeer to get the connection type of the webrtc connection. If connection type is relay show TURN indicator 2024-02-20 18:04:53 +01:00
schlagmichdoch 5a56251ee3 Tidy up update class methods on PeerUI 2024-02-20 17:50:09 +01:00
schlagmichdoch 3c8848d406 Add STATE_TRANSFER_REQUEST_RECEIVED and close transfer request dialog if requesting peer reloads 2024-02-17 12:27:29 +01:00
schlagmichdoch 0d17ada58b NoSleep: Move evaluation if any peer is still busy to the PeerManager 2024-02-17 12:27:28 +01:00
schlagmichdoch 74bd7dd406 Check if RAM would be exceeded before using navigator.share() 2024-02-17 12:27:28 +01:00
schlagmichdoch c0e5b66d41 Fix share menu error detection on iOS 2024-02-15 18:02:23 +01:00
schlagmichdoch 42bd71a3dc Add error status and check if too many bytes are received 2024-02-15 18:02:23 +01:00
schlagmichdoch 1df8fe258e Tidy up zipper functions 2024-02-15 15:18:25 +01:00
schlagmichdoch 7c6062e1e0 Solve "transfer-complete" and "receive-complete" status detection via css instead of adding a new class 2024-02-13 18:24:08 +01:00
schlagmichdoch 19d33e11d8 Implement fallback to download if navigator.share() fails. Refactor ReceiveFileDialog 2024-02-09 04:11:36 +01:00
schlagmichdoch 40a12b5501 Fix progress animation 2024-02-09 04:11:36 +01:00
schlagmichdoch 5ee8bb871e Move file creation to serviceworker to prevent loading everything into RAM 2024-02-09 04:11:36 +01:00
schlagmichdoch ef3c338dad Activate NoSleep on file transfers instead of on click and deactivate when transfer is finished 2024-02-09 04:11:32 +01:00
schlagmichdoch 6d95f3f4e2 Fix canceling file selector on Windows Edge sometimes blocks UI (#257) 2024-02-09 01:59:30 +01:00
schlagmichdoch c33d49702e Animate progress circle and show complete status in blue for 10s 2024-02-09 01:56:23 +01:00
schlagmichdoch 1d62a9ff49 Add state management to network peers 2024-02-09 01:55:37 +01:00
schlagmichdoch 3dd40e238a Refactor _downloadNotification function 2024-02-09 01:55:37 +01:00
schlagmichdoch 417d5421a6 Refactor _displayFiles function; Only show ReceiveFileDialog if share menu is used OR if automatic download has not worked 2024-02-09 01:55:37 +01:00
schlagmichdoch 6de97e7ff1 Put all log prompts into new Logger class; Only log debugging logs to console if PairDrop is in debug mode; Implement activation of debug mode via URL argument (`?debug=true`) 2024-02-09 01:55:37 +01:00
schlagmichdoch c670b39732 Fix byte size conversion 2024-02-09 01:55:37 +01:00
schlagmichdoch 1d81b744ea Put blop sound into separate function and only play if on desktop 2024-02-05 21:08:10 +01:00
schlagmichdoch c37412cfd3 Fix variable should be static 2024-02-05 21:08:10 +01:00
schlagmichdoch d81c03a560 Prefill room secrets entry with displayName given by server to prevent displayName `undefined` in EditPairedDevices Dialog (fixes #221) 2024-02-05 02:16:25 +01:00
schlagmichdoch f22abca783 Implement new status 'connecting', automatic reconnect on disconnect and auto resume of transfer + sending of queued messages. (fixes #260 and #247) 2024-02-05 02:16:17 +01:00
schlagmichdoch 2e15a018da Fix Error Invalid Group Specifier Name on Safari by removing REGEX lookbehind group construct (fixes #239) 2024-01-12 01:23:14 +01:00
schlagmichdoch d58f380565 Prevent executing _onCopy() when text is selected on receive text dialog 2024-01-03 16:53:09 +01:00
schlagmichdoch 676c68b6e7 Clear text field when closing receive text dialog 2024-01-03 16:52:26 +01:00
schlagmichdoch dd0dc21db5 Fix replacement of sent URLs with actual links (fixes #231) 2024-01-03 16:51:44 +01:00
schlagmichdoch d3a623d352 Refactor for loops to specify imagesOnly to Array.prototype.every() 2023-12-15 21:19:56 +01:00
schlagmichdoch e06fa47c96 Implement customizable buttons via env vars (fixes #214) 2023-12-13 17:40:48 +01:00
schlagmichdoch 037dab1e46 Merge branch 'translate' into next 2023-12-12 19:10:12 +01:00
schlagmichdoch a94ff0845b Blur base64 fallback textarea when hiding the dialog 2023-12-12 14:19:41 +01:00
schlagmichdoch 73759be0a9 Fix thumbnail creation on iOS devices 2023-12-12 14:07:15 +01:00
schlagmichdoch a5cc115fa6 - Fix theme-wrapper size on touch devices
- Make x-instructor shrinkable on small screens
- Evaluate x-Peers overflow when header expand button is clicked
- Refactor padding/margin classnames
2023-12-12 13:39:55 +01:00
schlagmichdoch 770fb8f1af Fix overflowing Brazilian Portuguese button and change style of current language button 2023-12-12 12:30:01 +01:00
schlagmichdoch dcdc9a5269
Merge pull request #208 from schlagmichdoch/enable-multiple-files-cli
Enable sending multiple files via cli
2023-12-11 19:13:49 +01:00
schlagmichdoch 86d1aa3560 Implement thumbnail creation for heic images 2023-12-11 19:00:14 +01:00
schlagmichdoch bf6ac1f02c Refactor .share-panel to .shr-panel because of iOS Safari quirk 2023-12-10 19:41:10 +01:00
schlagmichdoch 2a97a8e5d9 Show placeholder when paired device is removed to prevent removing multiple devices 2023-12-09 19:13:35 +01:00
schlagmichdoch 5f77c785f9 PublicRoomDialog and PairDeviceDialog method names renamed 2023-12-08 13:57:19 +01:00
schlagmichdoch 10b658e2e9 Centralize evaluation of URL parameters to clean up code and remove redundancies, and streamline Base64Dialog class 2023-12-08 13:57:19 +01:00
schlagmichdoch cb86ce0e39 Streamline client initiation by using await/async instead of .then and events 2023-12-08 13:57:19 +01:00
schlagmichdoch 25d6595a8f Use default translation if any placeholder is missing in the translation string 2023-12-08 13:57:19 +01:00
schlagmichdoch 6a599ed318 Replace checkboxes with sliders to conform the style on all platforms 2023-12-08 13:57:19 +01:00
schlagmichdoch f9a32c3e82 Fix QR-code color and make cursor a pointer for QR-codes 2023-12-08 13:57:19 +01:00
schlagmichdoch 69c8b91239 Revert some "airy" changes and rewrite style sheets to make dialogs centered but scrollable on small screens; Brighten public-room-color slightly 2023-12-08 13:57:19 +01:00
schlagmichdoch a8242cecf7 Refactor URL arguments, localStorage and sessionStorage entries, and IndexedDB/PersistentStorage entries to snake_case. 2023-12-08 13:57:19 +01:00
schlagmichdoch da8178d72e !fixup this if working 2023-12-08 13:57:12 +01:00
schlagmichdoch 0c2da78ed2 Refactor "paste mode" to "share mode"; Introduce a small clipboard panel instead of changing the xNoPeer instructions. This also enables the use of the header btns while sharing; Add possibility to change shared text before sending via a dialog; Add a setting that specifies whether that dialog should always be opened when sharing text 2023-12-08 03:48:43 +01:00
schlagmichdoch 62e198b5d3 Remove File Handling API (fixes #190) 2023-11-23 19:59:56 +01:00