From 5525caa7664c4fba5726cb630b0e14794a3aefd7 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Tue, 17 Jan 2023 10:41:50 +0100 Subject: [PATCH] implement file receive request with image-thumbnail-preview, share-menu on click additional to download and multiple file support by zipping file(s) to prepare for sending; add status "waiting.." and "preparing..." to UX; lock pointer-input when peer-node busy; tidy-up paste-mode deactivation --- public/index.html | 34 ++-- public/scripts/clipboard.js | 38 ---- public/scripts/network.js | 236 +++++++++++++++++++---- public/scripts/ui.js | 363 +++++++++++++++++++++++++----------- public/scripts/util.js | 79 ++++++++ public/scripts/zip.min.js | 1 + public/service-worker.js | 6 +- public/styles.css | 28 ++- 8 files changed, 581 insertions(+), 204 deletions(-) delete mode 100644 public/scripts/clipboard.js create mode 100644 public/scripts/util.js create mode 100644 public/scripts/zip.min.js diff --git a/public/index.html b/public/index.html index f44bc7b..1f90077 100644 --- a/public/index.html +++ b/public/index.html @@ -131,17 +131,28 @@ -

File Received

-
Filename
-
- -
- - +

Pairdrop

+
+
+
+
+ +
-
- Save - + + + + + + + +

Pairdrop

+
+
+
+
+ +
@@ -272,11 +283,12 @@ + + -