Procházet zdrojové kódy

feat(conference) drop transcribing label

factor2
Saúl Ibarra Corretgé před 1 rokem
rodič
revize
3074b1741f

+ 0
- 1
config.js Zobrazit soubor

@@ -1429,7 +1429,6 @@ var config = {
1429 1429
     //         'conference-timer',
1430 1430
     //         'participants-count',
1431 1431
     //         'e2ee',
1432
-    //         'transcribing',
1433 1432
     //         'video-quality',
1434 1433
     //         'insecure-room',
1435 1434
     //         'highlight-moment',

+ 1
- 9
react/features/conference/components/native/Labels.tsx Zobrazit soubor

@@ -1,11 +1,10 @@
1 1
 import React, { Component } from 'react';
2 2
 import { TouchableOpacity, View, ViewStyle } from 'react-native';
3 3
 
4
-import TranscribingLabel from '../../../transcribing/components/TranscribingLabel.native';
5 4
 import VideoQualityLabel from '../../../video-quality/components/VideoQualityLabel.native';
6 5
 
7 6
 import InsecureRoomNameLabel from './InsecureRoomNameLabel';
8
-import { LABEL_ID_INSECURE_ROOM_NAME, LABEL_ID_QUALITY, LABEL_ID_TRANSCRIBING, LabelHitSlop } from './constants';
7
+import { LABEL_ID_INSECURE_ROOM_NAME, LABEL_ID_QUALITY, LabelHitSlop } from './constants';
9 8
 import styles from './styles';
10 9
 
11 10
 interface IProps {
@@ -33,13 +32,6 @@ class Labels extends Component<IProps> {
33 32
                 <View
34 33
                     pointerEvents = 'box-none'
35 34
                     style = { styles.indicatorContainer as ViewStyle }>
36
-                    <TouchableOpacity
37
-                        hitSlop = { LabelHitSlop }
38
-                        onPress = {
39
-                            this.props.createOnPress(LABEL_ID_TRANSCRIBING)
40
-                        } >
41
-                        <TranscribingLabel />
42
-                    </TouchableOpacity>
43 35
                     <TouchableOpacity
44 36
                         hitSlop = { LabelHitSlop }
45 37
                         onPress = {

+ 0
- 5
react/features/conference/components/native/constants.ts Zobrazit soubor

@@ -2,7 +2,6 @@ import React from 'react';
2 2
 
3 3
 import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
4 4
 import RecordingExpandedLabel from '../../../recording/components/native/RecordingExpandedLabel';
5
-import TranscribingExpandedLabel from '../../../transcribing/components/TranscribingExpandedLabel.native';
6 5
 import VideoQualityExpandedLabel from '../../../video-quality/components/VideoQualityExpandedLabel.native';
7 6
 
8 7
 import InsecureRoomNameExpandedLabel from './InsecureRoomNameExpandedLabel';
@@ -23,7 +22,6 @@ export const EXPANDED_LABEL_TIMEOUT = 5000;
23 22
 export const LABEL_ID_QUALITY = 'quality';
24 23
 export const LABEL_ID_RECORDING = 'recording';
25 24
 export const LABEL_ID_STREAMING = 'streaming';
26
-export const LABEL_ID_TRANSCRIBING = 'transcribing';
27 25
 export const LABEL_ID_INSECURE_ROOM_NAME = 'insecure-room-name';
28 26
 export const LABEL_ID_RAISED_HANDS_COUNT = 'raised-hands-count';
29 27
 export const LABEL_ID_VISITORS_COUNT = 'visitors-count';
@@ -58,9 +56,6 @@ export const EXPANDED_LABELS: {
58 56
         },
59 57
         alwaysOn: true
60 58
     },
61
-    [LABEL_ID_TRANSCRIBING]: {
62
-        component: TranscribingExpandedLabel
63
-    },
64 59
     [LABEL_ID_INSECURE_ROOM_NAME]: {
65 60
         component: InsecureRoomNameExpandedLabel
66 61
     },

+ 0
- 5
react/features/conference/components/web/ConferenceInfo.tsx Zobrazit soubor

@@ -9,7 +9,6 @@ import HighlightButton from '../../../recording/components/Recording/web/Highlig
9 9
 import RecordingLabel from '../../../recording/components/web/RecordingLabel';
10 10
 import { showToolbox } from '../../../toolbox/actions.web';
11 11
 import { isToolboxVisible } from '../../../toolbox/functions.web';
12
-import TranscribingLabel from '../../../transcribing/components/TranscribingLabel.web';
13 12
 import VideoQualityLabel from '../../../video-quality/components/VideoQualityLabel.web';
14 13
 import VisitorsCountLabel from '../../../visitors/components/web/VisitorsCountLabel';
15 14
 import ConferenceTimer from '../ConferenceTimer';
@@ -83,10 +82,6 @@ const COMPONENTS: Array<{
83 82
         Component: RaisedHandsCountLabel,
84 83
         id: 'raised-hands-count'
85 84
     },
86
-    {
87
-        Component: TranscribingLabel,
88
-        id: 'transcribing'
89
-    },
90 85
     {
91 86
         Component: VideoQualityLabel,
92 87
         id: 'video-quality'

+ 0
- 23
react/features/transcribing/components/TranscribingExpandedLabel.native.tsx Zobrazit soubor

@@ -1,23 +0,0 @@
1
-import { WithTranslation } from 'react-i18next';
2
-
3
-import { translate } from '../../base/i18n/functions';
4
-import ExpandedLabel, { IProps as AbstractProps } from '../../base/label/components/native/ExpandedLabel';
5
-
6
-type Props = AbstractProps & WithTranslation;
7
-
8
-/**
9
- * A react {@code Component} that implements an expanded label as tooltip-like
10
- * component to explain the meaning of the {@code TranscribingLabel}.
11
- */
12
-class TranscribingExpandedLabel extends ExpandedLabel<Props> {
13
-    /**
14
-     * Returns the label specific text of this {@code ExpandedLabel}.
15
-     *
16
-     * @returns {string}
17
-     */
18
-    _getLabel() {
19
-        return this.props.t('transcribing.expandedLabel');
20
-    }
21
-}
22
-
23
-export default translate(TranscribingExpandedLabel);

+ 0
- 0
react/features/transcribing/components/TranscribingExpandedLabel.web.ts Zobrazit soubor


+ 0
- 59
react/features/transcribing/components/TranscribingLabel.native.tsx Zobrazit soubor

@@ -1,59 +0,0 @@
1
-import React, { Component } from 'react';
2
-import { WithTranslation } from 'react-i18next';
3
-import { connect } from 'react-redux';
4
-
5
-import { IReduxState } from '../../app/types';
6
-import { translate } from '../../base/i18n/functions';
7
-import Label from '../../base/label/components/native/Label';
8
-
9
-/**
10
- * The type of the React {@code Component} props of {@link TranscribingLabel}.
11
- */
12
-export interface IProps extends WithTranslation {
13
-
14
-    /**
15
-     * True if the label needs to be rendered, false otherwise.
16
-     */
17
-    _showLabel: boolean;
18
-}
19
-
20
-
21
-/**
22
- * React {@code Component} for displaying a label when a transcriber is in the
23
- * conference.
24
- *
25
- * @augments Component
26
- */
27
-class TranscribingLabel extends Component<IProps> {
28
-
29
-    /**
30
-     * Renders the platform-specific label component.
31
-     *
32
-     * @inheritdoc
33
-     */
34
-    render() {
35
-        if (!this.props._showLabel) {
36
-            return null;
37
-        }
38
-
39
-        return <Label text = { this.props.t('transcribing.tr') } />;
40
-    }
41
-}
42
-
43
-/**
44
- * Maps (parts of) the redux state to the associated props of the
45
- * {@link AbstractTranscribingLabel} {@code Component}.
46
- *
47
- * @param {Object} state - The redux state.
48
- * @private
49
- * @returns {{
50
- *     _showLabel: boolean
51
- * }}
52
- */
53
-export function _mapStateToProps(state: IReduxState) {
54
-    return {
55
-        _showLabel: state['features/transcribing'].isTranscribing
56
-    };
57
-}
58
-
59
-export default translate(connect(_mapStateToProps)(TranscribingLabel));

+ 0
- 28
react/features/transcribing/components/TranscribingLabel.web.tsx Zobrazit soubor

@@ -1,28 +0,0 @@
1
-import React from 'react';
2
-import { useTranslation } from 'react-i18next';
3
-import { useSelector } from 'react-redux';
4
-
5
-import { IReduxState } from '../../app/types';
6
-import Label from '../../base/label/components/web/Label';
7
-import Tooltip from '../../base/tooltip/components/Tooltip';
8
-
9
-const TranscribingLabel = () => {
10
-    const _showLabel = useSelector((state: IReduxState) => state['features/transcribing'].isTranscribing);
11
-    const { t } = useTranslation();
12
-
13
-    if (!_showLabel) {
14
-        return null;
15
-    }
16
-
17
-    return (
18
-        <Tooltip
19
-            content = { t('transcribing.labelToolTip') }
20
-            position = { 'left' }>
21
-            <Label
22
-                className = 'recording-label'
23
-                text = { t('transcribing.tr') } />
24
-        </Tooltip>
25
-    );
26
-};
27
-
28
-export default TranscribingLabel;

Načítá se…
Zrušit
Uložit