Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
ref(avatar): Move Avatar and Participant view to base/participants
hristoterezov9ea224412dbd
diff --git a/react/features/conference/components/Avatar.native.js b/react/features/base/participants/components/Avatar.native.jssimilarity index 100%rename from react/features/conference/components/Avatar.native.jsrename to react/features/base/participants/components/Avatar.native.jsdiff --git a/react/features/conference/components/ParticipantView.native.js b/react/features/base/participants/components/ParticipantView.native.jssimilarity index 96%rename from react/features/conference/components/ParticipantView.native.jsrename to react/features/base/participants/components/ParticipantView.native.jsindex e9da6605ea..49835fff7c 100644--- a/react/features/conference/components/ParticipantView.native.js+++ b/react/features/base/participants/components/ParticipantView.native.js@@ -5,12 +5,12 @@ import {MEDIA_TYPE,shouldRenderVideoTrack,VideoTrack-} from '../../base/media';-import { getParticipantById } from '../../base/participants';-import { Container } from '../../base/react';-import { getTrackByMediaTypeAndParticipant } from '../../base/tracks';+} from '../../media';+import { Container } from '../../react';+import { getTrackByMediaTypeAndParticipant } from '../../tracks';import Avatar from './Avatar';+import { getParticipantById } from '../functions';import { styles } from './styles';/**diff --git a/react/features/conference/components/ParticipantView.web.js b/react/features/base/participants/components/ParticipantView.web.jssimilarity index 100%rename from react/features/conference/components/ParticipantView.web.jsrename to react/features/base/participants/components/ParticipantView.web.jsdiff --git a/react/features/base/participants/components/index.js b/react/features/base/participants/components/index.jsnew file mode 100644index 0000000000..59f6ab78b6--- /dev/null+++ b/react/features/base/participants/components/index.js@@ -0,0 +1 @@+export { default as ParticipantView } from './ParticipantView';diff --git a/react/features/base/participants/components/styles.js b/react/features/base/participants/components/styles.jsnew file mode 100644index 0000000000..c2179955b6--- /dev/null+++ b/react/features/base/participants/components/styles.js@@ -0,0 +1,22 @@+import { createStyleSheet } from '../../styles';++/**+ * The style of the avatar and participant view UI (components).+ */+export const styles = createStyleSheet({+ /**+ * Avatar style.+ */+ avatar: {+ flex: 1,+ width: '100%'+ },++ /**+ * ParticipantView style.+ */+ participantView: {+ alignItems: 'stretch',+ flex: 1+ }+});diff --git a/react/features/base/participants/index.js b/react/features/base/participants/index.jsindex 39f1ee456a..0a8f4ad7bb 100644--- a/react/features/base/participants/index.js+++ b/react/features/base/participants/index.js@@ -1,5 +1,6 @@export * from './actions';export * from './actionTypes';+export * from './components';export * from './constants';export * from './functions';diff --git a/react/features/conference/components/index.js b/react/features/conference/components/index.jsindex 33ea1426b2..7ee56f5484 100644--- a/react/features/conference/components/index.js+++ b/react/features/conference/components/index.js@@ -1,2 +1 @@export { default as Conference } from './Conference';-export { default as ParticipantView } from './ParticipantView';diff --git a/react/features/conference/components/styles.js b/react/features/conference/components/styles.jsindex f8bd0d8b1e..3973a78a70 100644--- a/react/features/conference/components/styles.js+++ b/react/features/conference/components/styles.js@@ -8,14 +8,6 @@ import {* The style of the conference UI (component).*/export const styles = createStyleSheet({- /**- * Avatar style.- */- avatar: {- flex: 1,- width: '100%'- },-/*** Conference style.*/@@ -23,13 +15,5 @@ export const styles = createStyleSheet({alignSelf: 'stretch',backgroundColor: ColorPalette.appBackground,flex: 1- }),-- /**- * ParticipantView style- */- participantView: {- alignItems: 'stretch',- flex: 1- }+ })});diff --git a/react/features/film-strip/components/Thumbnail.js b/react/features/film-strip/components/Thumbnail.jsindex 7157774b05..3ba4836adc 100644--- a/react/features/film-strip/components/Thumbnail.js+++ b/react/features/film-strip/components/Thumbnail.js@@ -2,10 +2,13 @@ import React, { Component } from 'react';import { connect } from 'react-redux';import { Audio, MEDIA_TYPE } from '../../base/media';-import { PARTICIPANT_ROLE, pinParticipant } from '../../base/participants';+import {+ PARTICIPANT_ROLE,+ ParticipantView,+ pinParticipant+} from '../../base/participants';import { Container } from '../../base/react';import { getTrackByMediaTypeAndParticipant } from '../../base/tracks';-import { ParticipantView } from '../../conference';import {AudioMutedIndicator,diff --git a/react/features/large-video/components/LargeVideo.js b/react/features/large-video/components/LargeVideo.jsindex 2ff5f4524e..d485dca440 100644--- a/react/features/large-video/components/LargeVideo.js+++ b/react/features/large-video/components/LargeVideo.js@@ -1,7 +1,7 @@import React, { Component } from 'react';import { connect } from 'react-redux';-import { ParticipantView } from '../../conference';+import { ParticipantView } from '../../base/participants';import { styles } from './styles';