From e42f7d89df65c48f7d4bd00ef903df3856ee644f Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Mon, 6 Jun 2022 08:57:29 +0200 Subject: [PATCH 1/6] [mirotalksfu] - add invite someone btn --- public/css/Room.css | 4 ++++ public/js/Room.js | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/public/css/Room.css b/public/css/Room.css index 901120cd..07118079 100644 --- a/public/css/Room.css +++ b/public/css/Room.css @@ -644,6 +644,10 @@ button:hover { background-color: #0c0b0b; } */ +#inviteParticipants { + margin: 15px 0px 0px 5px; +} + #searchParticipants { margin-top: 15px; width: 100%; diff --git a/public/js/Room.js b/public/js/Room.js index 9a755501..753115d6 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -1534,6 +1534,12 @@ async function getRoomParticipants(refresh = false) { async function getParticipantsTable(peers) { let table = ` +
+ +
Date: Mon, 6 Jun 2022 09:03:24 +0200 Subject: [PATCH 2/6] [mirotalksfu] - fix typo --- public/js/Room.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/Room.js b/public/js/Room.js index 753115d6..af13a782 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -1535,10 +1535,10 @@ async function getRoomParticipants(refresh = false) { async function getParticipantsTable(peers) { let table = `
- +
Date: Mon, 6 Jun 2022 11:21:40 +0200 Subject: [PATCH 3/6] [mirotalksfu] - improve invite btn UI --- public/css/Room.css | 10 +++++++++- public/js/Room.js | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/public/css/Room.css b/public/css/Room.css index 07118079..486a9f6b 100644 --- a/public/css/Room.css +++ b/public/css/Room.css @@ -645,7 +645,15 @@ button:hover { } */ #inviteParticipants { - margin: 15px 0px 0px 5px; + width: 100%; + padding: 10px; + margin: 10px auto 0px auto; + background-color: #191919; + border-radius: 10px; +} +#inviteParticipants:hover { + color: #fff; + transform: scale(1); } #searchParticipants { diff --git a/public/js/Room.js b/public/js/Room.js index af13a782..f0730c99 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -1538,7 +1538,7 @@ async function getParticipantsTable(peers) { + >  Invite Someone
Date: Mon, 6 Jun 2022 14:42:06 +0200 Subject: [PATCH 4/6] [mirotalksfu] - fix drag-and-drop --- public/js/RoomClient.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 1f80c6ba..cae25fd6 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -2038,10 +2038,14 @@ class RoomClient { return; } if (e.dataTransfer.items) { - if (e.dataTransfer.items[0].kind === 'file') { - var file = e.dataTransfer.items[0].getAsFile(); - rc.sendFileInformations(file, peer_id); + let item = e.dataTransfer.items[0].webkitGetAsEntry(); + console.log('Drag and drop', item); + if (item.isDirectory) { + userLog('warning', 'Please drag and drop a single file not a folder.', 'top-end'); + return; } + var file = e.dataTransfer.items[0].getAsFile(); + rc.sendFileInformations(file, peer_id); } else { rc.sendFileInformations(e.dataTransfer.files[0], peer_id); } From 17ec68817f7f48753a01aceef5c8d08193c66196 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Mon, 6 Jun 2022 21:11:36 +0200 Subject: [PATCH 5/6] [mirotalksfu] - fix typo --- public/js/Room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/Room.js b/public/js/Room.js index f0730c99..5abc9180 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -1537,7 +1537,7 @@ async function getParticipantsTable(peers) {
From 31cde8021a7207260747d3dfe0bc57f219c85131 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Tue, 7 Jun 2022 16:07:19 +0200 Subject: [PATCH 6/6] [mirotalksfu] - fix typo --- app/src/Server.js | 7 ++++++- public/view/landing.html | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/Server.js b/app/src/Server.js index 6e3bba56..a4496c01 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -333,7 +333,12 @@ httpsServer.listen(config.listenPort, () => { // #################################################### (async () => { - await createWorkers(); + try { + await createWorkers(); + } catch (err) { + log.error('Create Worker ERR --->', err); + process.exit(1); + } })(); async function createWorkers() { diff --git a/public/view/landing.html b/public/view/landing.html index 725d3b68..4b6ec443 100644 --- a/public/view/landing.html +++ b/public/view/landing.html @@ -78,7 +78,7 @@

- MiroTalk SFU
Free browser based real-time video calls.
+ MiroTalk SFU
Free browser based Real-time video calls.
Simple, Secure, Fast.