From ac6f9733a5537117c41914df07588540fcf673ad Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Fri, 14 Feb 2025 18:10:52 +0100 Subject: [PATCH] [mirotalksfu] - #194 Keep uploaded virtual background images in IndexedDB --- app/src/Server.js | 2 +- package.json | 4 +- public/css/Room.css | 29 ++++++++++- public/js/Brand.js | 2 +- public/js/Room.js | 108 ++++++++++++++++++++++++++++++++++---- public/js/RoomClient.js | 112 ++++++++++++++++++++++++++++++++++++---- 6 files changed, 232 insertions(+), 25 deletions(-) diff --git a/app/src/Server.js b/app/src/Server.js index d4e2ff81..73cf5e87 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -58,7 +58,7 @@ dev dependencies: { * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.7.36 + * @version 1.7.37 * */ diff --git a/package.json b/package.json index c60c08f7..b834d4e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalksfu", - "version": "1.7.36", + "version": "1.7.37", "description": "WebRTC SFU browser-based video calls", "main": "Server.js", "scripts": { @@ -79,7 +79,7 @@ "mediasoup-client": "3.8.1", "ngrok": "^5.0.0-beta.2", "nodemailer": "^6.10.0", - "openai": "^4.85.0", + "openai": "^4.85.1", "qs": "6.14.0", "sanitize-filename": "^1.6.3", "socket.io": "4.8.1", diff --git a/public/css/Room.css b/public/css/Room.css index d36360e1..ca6a9d5c 100644 --- a/public/css/Room.css +++ b/public/css/Room.css @@ -216,7 +216,7 @@ body { } .image-grid img:hover { - transform: scale(1.1); + opacity: 0.5; box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3); } @@ -242,6 +242,33 @@ body { } } +/*-------------------------------------------------------------- +# Custom image delete icon +--------------------------------------------------------------*/ + +.image-wrapper { + position: relative; + display: inline-block; +} + +.delete-icon { + position: absolute; + right: 3px; + font-size: 12px; + cursor: pointer; + color: #f5f5f5b0; + border-radius: 5px; + padding: 5px; + display: flex; + align-items: center; + justify-content: center; + font-weight: bold; +} +.delete-icon:hover { + background: var(--body-bg); + color: white; +} + /*-------------------------------------------------------------- # Buttons bar --------------------------------------------------------------*/ diff --git a/public/js/Brand.js b/public/js/Brand.js index f81b580e..6c3cf73e 100644 --- a/public/js/Brand.js +++ b/public/js/Brand.js @@ -64,7 +64,7 @@ let BRAND = { }, about: { imageUrl: '../images/mirotalk-logo.gif', - title: 'WebRTC SFU v1.7.36', + title: 'WebRTC SFU v1.7.37', html: `