Pārlūkot izejas kodu

feat(reactions): Added heart reaction

* Added heart reaction feature

* Edits to preserve alphabetical sorting

* Changed the position of hide self view checkbox

* undid irrelevant changes made

* Fixed CSS issue + tooltip text
factor2
Sam Joe Chalissery 7 mēnešus atpakaļ
vecāks
revīzija
71de1d1e2d
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 2
- 2
css/_reactions-menu.scss Parādīt failu

@@ -1,14 +1,14 @@
1 1
 @use 'sass:math';
2 2
 
3 3
 .reactions-menu {
4
-	width: 280px;
4
+	width: 330px;
5 5
 	background: #242528;
6 6
 	box-shadow: 0px 3px 16px rgba(0, 0, 0, 0.6), 0px 0px 4px 1px rgba(0, 0, 0, 0.25);
7 7
 	border-radius: 6px;
8 8
 	padding: 16px;
9 9
 
10 10
 	&.with-gif {
11
-		width: 328px;
11
+		width: 380px;
12 12
 
13 13
 		.reactions-row .toolbox-button:last-of-type {
14 14
 			top: 3px;

+ 3
- 0
lang/main.json Parādīt failu

@@ -1246,6 +1246,7 @@
1246 1246
             "lobbyButton": "Enable/disable lobby mode",
1247 1247
             "localRecording": "Toggle local recording controls",
1248 1248
             "lockRoom": "Toggle meeting password",
1249
+            "love": "Heart",
1249 1250
             "lowerHand": "Lower your hand",
1250 1251
             "moreActions": "More actions",
1251 1252
             "moreActionsMenu": "More actions menu",
@@ -1335,6 +1336,7 @@
1335 1336
         "lobbyButtonEnable": "Enable lobby mode",
1336 1337
         "login": "Log-in",
1337 1338
         "logout": "Log-out",
1339
+        "love": "Heart",
1338 1340
         "lowerYourHand": "Lower your hand",
1339 1341
         "moreActions": "More actions",
1340 1342
         "moreOptions": "More options",
@@ -1360,6 +1362,7 @@
1360 1362
         "raiseYourHand": "Raise your hand",
1361 1363
         "reactionBoo": "Send boo reaction",
1362 1364
         "reactionClap": "Send clap reaction",
1365
+        "reactionHeart": "Send heart reaction",
1363 1366
         "reactionLaugh": "Send laugh reaction",
1364 1367
         "reactionLike": "Send thumbs up reaction",
1365 1368
         "reactionSilence": "Send silence reaction",

+ 16
- 0
react/features/reactions/constants.ts Parādīt failu

@@ -1,6 +1,7 @@
1 1
 import {
2 2
     BOO_SOUND_FILES,
3 3
     CLAP_SOUND_FILES,
4
+    HEART_SOUND_FILES,
4 5
     LAUGH_SOUND_FILES,
5 6
     LIKE_SOUND_FILES,
6 7
     SILENCE_SOUND_FILES,
@@ -92,6 +93,14 @@ export const SURPRISE_SOUND_ID = `${REACTION_SOUND}_SURPRISE_`;
92 93
  */
93 94
 export const SILENCE_SOUND_ID = `${REACTION_SOUND}_SILENCE_`;
94 95
 
96
+/**
97
+ * The audio ID of the audio element for which the {@link playAudio} action is
98
+ * triggered when a new raise hand event is received.
99
+ *
100
+ * @type {string}
101
+ */
102
+export const HEART_SOUND_ID = `${REACTION_SOUND}_HEART_`;
103
+
95 104
 /**
96 105
  * The audio ID of the audio element for which the {@link playAudio} action is
97 106
  * triggered when a new raise hand event is received.
@@ -167,6 +176,13 @@ export const REACTIONS: IReactions = {
167 176
         shortcutChar: 'S',
168 177
         soundId: SILENCE_SOUND_ID,
169 178
         soundFiles: SILENCE_SOUND_FILES
179
+    },
180
+    love: {
181
+        message: ':heart:',
182
+        emoji: '💖',
183
+        shortcutChar: 'H',
184
+        soundId: HEART_SOUND_ID,
185
+        soundFiles: HEART_SOUND_FILES
170 186
     }
171 187
 };
172 188
 

+ 7
- 0
react/features/reactions/sounds.ts Parādīt failu

@@ -40,6 +40,13 @@ export const SURPRISE_SOUND_FILES = new Array(3).fill('reactions-surprise.mp3');
40 40
  */
41 41
 export const SILENCE_SOUND_FILES = new Array(3).fill('reactions-crickets.mp3');
42 42
 
43
+/**
44
+ * The name of the bundled audio file which will be played for the heart reaction sound.
45
+ *
46
+ * @type {Array<string>}
47
+ */
48
+export const HEART_SOUND_FILES = new Array(3).fill('reactions-love.mp3');
49
+
43 50
 /**
44 51
  * The name of the bundled audio file which will be played for the raise hand sound.
45 52
  *

Binārs
sounds/reactions-love.mp3 Parādīt failu


Binārs
sounds/reactions-love.opus Parādīt failu


Notiek ielāde…
Atcelt
Saglabāt