Commit Graph

292 Commits

Author SHA1 Message Date
schlagmichdoch d8f9532039 Parallelize asset loading 2023-12-15 19:39:26 +01:00
schlagmichdoch e06fa47c96 Implement customizable buttons via env vars (fixes #214) 2023-12-13 17:40:48 +01:00
schlagmichdoch 16921cb855 Merge branch 'master' into translate 2023-12-13 17:33:09 +01:00
schlagmichdoch 9b8d824bfc Enable Catalan translation (fixes #217) 2023-12-13 17:33:02 +01:00
schlagmichdoch 132b2ffa65 Rename deferred style sheet 2023-12-13 17:21:21 +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 da56a7b6bc Merge branch 'next' into translate 2023-12-11 20:10:38 +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 b5535c7ace Make overflowing icons expandable via caret button and fix header btn opacity 2023-12-09 19:13:27 +01:00
schlagmichdoch 78b758b990 Implement the ability to initiate public room creation or device pairing via URL parameter (#207) 2023-12-08 13:57:19 +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
schlagmichdoch 5a2ec9c670 Load initial translation as proper async call instead of using an event 2023-11-23 19:59:29 +01:00
schlagmichdoch d78c138dad Merge branch 'next' into translate 2023-11-23 19:46:02 +01:00
schlagmichdoch e37c31a784 Merge next into fix-send-text-dialog-cut-off 2023-11-23 19:16:29 +01:00
schlagmichdoch f27ecf1541 Remove connection-hash from UI for now 2023-11-23 17:41:42 +01:00
schlagmichdoch 713929d581 Change document title to "PairDrop | Transfer Files Cross-Platform. No Setup, No Signup." 2023-11-23 17:41:42 +01:00
schlagmichdoch e99f841067 Change button and dialog style and add soft gradients to make it more "airy" and give it overall a more modern look; Make dark mode real black; Add overflow shadow to ReceiveText, SendText and EditPairedDevices Dialog 2023-11-23 17:41:16 +01:00
schlagmichdoch f53832ead1 Increase text input font size to 16px to prevent automatic zooming on iOS devices; Remove spellcheck and autocapitalize prevention and change receive text style 2023-11-20 05:27:22 +01:00
Luiz Fernando 1e5bae6c21 add Brazilian Portuguese translate 2023-11-16 15:02:13 -03:00
schlagmichdoch 00e7394740 Reduce Scripts needed on start up to reduce critical requests aka speed up initial loading 2023-11-11 19:56:23 +01:00
schlagmichdoch bdc8a6b111 Only start loading of deferred assets after UI is ready 2023-11-11 19:16:00 +01:00
schlagmichdoch 99332037bf Defer loading of all render-blocking resources until the UI has loaded 2023-11-09 04:45:46 +01:00
schlagmichdoch 778d49e84b prevent config from being cached but preserve offline capability 2023-11-09 01:02:54 +01:00
schlagmichdoch 9a2227c30f Enable Turkish translation 2023-11-09 01:02:52 +01:00
schlagmichdoch cf55117a61 tidy up code and conform use of setAttribute/removeAttribute 2023-11-09 01:02:14 +01:00
schlagmichdoch 55d85ea7fb fix localization of html data attributes 2023-11-09 01:02:14 +01:00
schlagmichdoch 3439e7f6d4 Decrease redundancy by changing the way the websocket fallback is included; Adding new env var SIGNALING_SERVER to host client files but use another server for signaling. 2023-11-09 01:02:03 +01:00
schlagmichdoch d9270a5560 Try to beautify code by adding line breaks 2023-11-09 00:59:55 +01:00
schlagmichdoch c068a2e329 Fix missing async in Notification class; Fix too many arguments for window.open function 2023-11-02 02:57:20 +01:00
schlagmichdoch d388f7e3cd Partly replace `_ =>` with `() =>` globally to conform with Googles JavaScript style guide if no parameters are expected in arrow functions 2023-11-02 02:57:20 +01:00
schlagmichdoch d84c7d1f84 Tidy up Javascript files 2023-11-01 21:56:25 +01:00
schlagmichdoch cb8d6448f5 Delay loading of saved displayName until after the websocket is open to display "Loading…" until then 2023-11-01 21:56:25 +01:00
schlagmichdoch ddeafd1b46 Merge branch 'translate' to add Turkish translation 2023-10-31 08:19:07 +01:00
schlagmichdoch f8e7213501 Enable Turkish translation 2023-10-31 08:18:23 +01:00
schlagmichdoch b4e74c2dd1 fix QR-code background color on light theme 2023-10-24 17:57:21 +02:00
schlagmichdoch 433373bad1 Do not inverse QR-code colors on dark mode to fix readability with some readers and the native camera app on Android (fixes #187) 2023-10-23 19:39:33 +02:00
schlagmichdoch 84986e4eef try the generalized version of a language code before resorting to the default language (es-US -> es) 2023-10-20 19:27:15 +02:00
schlagmichdoch 28c7fcd7a2 fix header not showing on snapdrop-android app 2023-10-20 17:25:15 +02:00
schlagmichdoch 5b2bebcdee fix modes for preload link and fetching request do not match 2023-10-13 23:07:35 +02:00
schlagmichdoch 787cd8dab5 Include header buttons installation and edit-paired-devices to evaluation before fading in header 2023-10-13 18:46:39 +02:00
schlagmichdoch 2131307fc6 Fix offline capability: Cache first -> fetch from network second. From now on, updates are only possible by increasing cacheVersion 2023-10-13 18:46:22 +02:00
schlagmichdoch bb1468fa42 Implement click on QR-code to copy room or pair link (#174) 2023-10-12 13:20:58 +02:00
schlagmichdoch ed2f1b0c61 Speed up initial load while still preventing css layout shift; Tidy up ui.js 2023-10-12 04:27:56 +02:00
schlagmichdoch 684fe7142d Make "Connecting..." toast persistent until connection is established 2023-10-12 03:42:48 +02:00
schlagmichdoch 4e00e5b358 Add notifications-permissions-error to translations 2023-10-12 01:53:31 +02:00
schlagmichdoch cd669b13d9 Fix display name not being editable on some older iOS devices (#163) 2023-10-11 23:31:18 +02:00
schlagmichdoch 38a80d2d34 Revert "fix textarea for sending messages is not editable on some iOS devices (#163)"
This reverts commit 1669fe7d75.
2023-10-11 23:31:18 +02:00
schlagmichdoch f75e6e85b2 Redraw background when language is changed 2023-10-11 23:31:18 +02:00
schlagmichdoch 4854c816a4 Enable Arabic, Dutch, Italian, Japanese and Spanish translations 2023-10-11 18:04:00 +02:00
schlagmichdoch 117a4d3eb9 adjustments to add right-to-left language 2023-10-11 18:04:00 +02:00
schlagmichdoch 1669fe7d75 fix textarea for sending messages is not editable on some iOS devices (#163) 2023-10-09 19:16:21 +02:00
schlagmichdoch 3c1ef57740 prevent Cumulative Layout Shift by fading in elements after initial translation is loaded 2023-10-06 02:57:46 +02:00
schlagmichdoch faa2030f0b
Merge pull request #166 from jimmyGALLAND/fix_dialog_transfert_request_title
fix dialog transfert request title
2023-10-03 23:12:08 +02:00
Jimmy GALLAND d082a885c4 add french translate
Co-authored-by: schlagmichdoch <schlagmichdoch@users.noreply.github.com>
2023-10-01 17:14:39 +02:00
Jimmy GALLAND fd89aca219 fix transfer request dialog title
Co-authored-by: schlagmichdoch <schlagmichdoch@users.noreply.github.com>
2023-10-01 16:56:13 +02:00
schlagmichdoch d7e25dc2d4 Activate Romanian and Indonesian translations 2023-09-22 02:07:45 +02:00
schlagmichdoch 5625bf6f93 Add missing strings form public room dialog to translation files 2023-09-19 00:23:19 +02:00
schlagmichdoch 684e43a352 prevent autofocus of dialog elements on mobile 2023-09-18 22:32:21 +02:00
schlagmichdoch 6c07dc3678 Fix translation and design of base64dialog 2023-09-18 22:03:18 +02:00
schlagmichdoch dbe3381e7d Fix concatenation of translated strings in paste mode 2023-09-18 21:27:56 +02:00
schlagmichdoch 0bae7c84bd Enable German translation 2023-09-18 21:27:48 +02:00
schlagmichdoch 3f1477f24a Fix public room badge not translating correctly when switching languages 2023-09-14 20:23:04 +02:00
schlagmichdoch 3faa173dde Make "Unpair" and "auto-accept" translatable on the Edit Paired Devices Dialog 2023-09-14 18:15:07 +02:00
schlagmichdoch 8d2584fa69 implement temporary public rooms, tidy up index.js, rework UI dialogs and change colors slightly 2023-09-14 15:44:28 +02:00
schlagmichdoch bd7b3c6d28 show warning to user if navigator.clipboard.writeText fails 2023-09-13 18:33:17 +02:00
schlagmichdoch c71bf456e3 fix "and 2 other files" div not cleared properly 2023-09-13 18:33:17 +02:00
schlagmichdoch 02911804cb add default values to Localization.getTranslation function 2023-09-13 18:33:17 +02:00
schlagmichdoch 17afa18d84 add translation selector and fix translation of data-attributes 2023-08-30 14:57:40 +02:00
schlagmichdoch 19f56a8499 enable Norwegian, Russian, and Chinese 2023-08-29 02:33:54 +02:00
schlagmichdoch abc06fcc21 fix translation fallback for sparely translated languages when complete categories are missing 2023-08-29 02:33:12 +02:00
schlagmichdoch c2a746d69c fix html attribute translation 2023-08-29 02:30:01 +02:00
schlagmichdoch d252900055
Merge branch 'translate' into weblate-pairdrop-pairdrop-spa 2023-07-30 17:48:50 +02:00
schlagmichdoch da5038a51a include translations for about buttons and implement translation fallback if used translation is not complete 2023-07-30 17:42:46 +02:00
schlagmichdoch ba46befde4 include translations for about buttons and implement translation fallback if used translation is not complete 2023-07-07 15:17:42 +02:00
schlagmichdoch f50d7438b6 implement localization 2023-07-06 21:34:21 +02:00
schlagmichdoch 3505f161c6 strip 'NO-BREAK SPACE' (U+00A0) of received text as some browsers seem to add them when pasting text 2023-06-01 01:29:00 +02:00
schlagmichdoch d36cd3524c Fix clearBrowserHistory: url should not always be replaced by "/" as PairDrop might not always be hosted at domain root 2023-05-30 02:34:50 +02:00
schlagmichdoch 520b772bc8 fix #112 and differentiate between textContent and innerText 2023-05-26 20:36:12 +02:00
fm-sys 58b7f6bb7c
Add 'files-sent' event 2023-05-26 09:52:17 +02:00
schlagmichdoch df778ba42c Speed up canvas by removing fade-in animation 2023-05-16 19:09:59 +02:00
schlagmichdoch 8a17b82fa4 Fix _textInputEmpty() for Chromium based browsers
Co-authored-by: luckman212 <1992842+luckman212@users.noreply.github.com>
2023-05-16 02:53:56 +02:00
schlagmichdoch 347f9b87c0 fix check whether peer is same browser 2023-05-12 01:16:37 +02:00
schlagmichdoch 2a837eb195 add 'visbilitychange' event support for older browsers 2023-05-10 21:59:45 +02:00