Rearrange recording feature files

This commit is contained in:
Bettenbuk Zoltan 2018-11-19 15:09:09 +01:00 committed by Zoltan Bettenbuk
parent 2b1cb75e40
commit 71edea8aac
40 changed files with 115 additions and 69 deletions

View File

@ -10,8 +10,10 @@ import {
import { getActiveSession } from '../../functions'; import { getActiveSession } from '../../functions';
import StartLiveStreamDialog from './StartLiveStreamDialog'; import {
import StopLiveStreamDialog from './StopLiveStreamDialog'; StartLiveStreamDialog,
StopLiveStreamDialog
} from './_';
/** /**
* The type of the React {@code Component} props of * The type of the React {@code Component} props of

View File

@ -0,0 +1,3 @@
// @flow
export * from './native';

View File

@ -0,0 +1,3 @@
// @flow
export * from './web';

View File

@ -1,3 +1,3 @@
export { default as LiveStreamButton } from './LiveStreamButton'; // @flow
export { default as StartLiveStreamDialog } from './StartLiveStreamDialog';
export { default as StopLiveStreamDialog } from './StopLiveStreamDialog'; export * from './_';

View File

@ -4,7 +4,7 @@ import React, { Component } from 'react';
import { Platform, Text, View } from 'react-native'; import { Platform, Text, View } from 'react-native';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import { import {
GOOGLE_API_STATES, GOOGLE_API_STATES,
@ -12,7 +12,7 @@ import {
googleApi, googleApi,
GoogleSignInButton, GoogleSignInButton,
setGoogleAPIState setGoogleAPIState
} from '../../../google-api'; } from '../../../../google-api';
import styles from './styles'; import styles from './styles';

View File

@ -2,12 +2,12 @@
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import AbstractLiveStreamButton, { import AbstractLiveStreamButton, {
_mapStateToProps, _mapStateToProps,
type Props type Props
} from './AbstractLiveStreamButton'; } from '../AbstractLiveStreamButton';
/** /**
* An implementation of a button for starting and stopping live streaming. * An implementation of a button for starting and stopping live streaming.

View File

@ -4,14 +4,15 @@ import React from 'react';
import { View } from 'react-native'; import { View } from 'react-native';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import { googleApi } from '../../../google-api'; import { googleApi } from '../../../../google-api';
import { setLiveStreamKey } from '../../actions'; import { setLiveStreamKey } from '../../../actions';
import AbstractStartLiveStreamDialog, import AbstractStartLiveStreamDialog,
{ _mapStateToProps, type Props } from './AbstractStartLiveStreamDialog'; { _mapStateToProps, type Props } from '../AbstractStartLiveStreamDialog';
import GoogleSigninForm from './GoogleSigninForm'; import GoogleSigninForm from './GoogleSigninForm';
import StreamKeyForm from './StreamKeyForm'; import StreamKeyForm from './StreamKeyForm';
import StreamKeyPicker from './StreamKeyPicker'; import StreamKeyPicker from './StreamKeyPicker';

View File

@ -3,12 +3,12 @@
import React from 'react'; import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { DialogContent } from '../../../base/dialog'; import { DialogContent } from '../../../../base/dialog';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import AbstractStopLiveStreamDialog, { import AbstractStopLiveStreamDialog, {
_mapStateToProps _mapStateToProps
} from './AbstractStopLiveStreamDialog'; } from '../AbstractStopLiveStreamDialog';
/** /**
* A React Component for confirming the participant wishes to stop the currently * A React Component for confirming the participant wishes to stop the currently

View File

@ -3,11 +3,12 @@
import React from 'react'; import React from 'react';
import { Linking, Text, TextInput, TouchableOpacity, View } from 'react-native'; import { Linking, Text, TextInput, TouchableOpacity, View } from 'react-native';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import AbstractStreamKeyForm, { import AbstractStreamKeyForm, {
type Props type Props
} from './AbstractStreamKeyForm'; } from '../AbstractStreamKeyForm';
import styles from './styles'; import styles from './styles';
/** /**

View File

@ -3,7 +3,7 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Text, TouchableHighlight, View } from 'react-native'; import { Text, TouchableHighlight, View } from 'react-native';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import styles, { ACTIVE_OPACITY, TOUCHABLE_UNDERLAY } from './styles'; import styles, { ACTIVE_OPACITY, TOUCHABLE_UNDERLAY } from './styles';

View File

@ -0,0 +1,5 @@
// @flow
export { default as LiveStreamButton } from './LiveStreamButton';
export { default as StartLiveStreamDialog } from './StartLiveStreamDialog';
export { default as StopLiveStreamDialog } from './StopLiveStreamDialog';

View File

@ -1,6 +1,10 @@
// @flow // @flow
import { BoxModel, ColorPalette, createStyleSheet } from '../../../base/styles'; import {
BoxModel,
ColorPalette,
createStyleSheet
} from '../../../../base/styles';
/** /**
* Opacity of the TouchableHighlight. * Opacity of the TouchableHighlight.

View File

@ -3,13 +3,13 @@
import React from 'react'; import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import { Container, Text } from '../../../base/react'; import { Container, Text } from '../../../../base/react';
import AbstractLiveStreamButton, { import AbstractLiveStreamButton, {
_mapStateToProps as _abstractMapStateToProps, _mapStateToProps as _abstractMapStateToProps,
type Props as AbstractProps type Props as AbstractProps
} from './AbstractLiveStreamButton'; } from '../AbstractLiveStreamButton';
declare var interfaceConfig: Object; declare var interfaceConfig: Object;

View File

@ -4,7 +4,7 @@ import Spinner from '@atlaskit/spinner';
import React from 'react'; import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import { import {
GOOGLE_API_STATES, GOOGLE_API_STATES,
@ -15,12 +15,13 @@ import {
showAccountSelection, showAccountSelection,
signIn, signIn,
updateProfile updateProfile
} from '../../../google-api'; } from '../../../../google-api';
import AbstractStartLiveStreamDialog, { import AbstractStartLiveStreamDialog, {
_mapStateToProps as _abstractMapStateToProps, _mapStateToProps as _abstractMapStateToProps,
type Props as AbstractProps type Props as AbstractProps
} from './AbstractStartLiveStreamDialog'; } from '../AbstractStartLiveStreamDialog';
import StreamKeyPicker from './StreamKeyPicker'; import StreamKeyPicker from './StreamKeyPicker';
import StreamKeyForm from './StreamKeyForm'; import StreamKeyForm from './StreamKeyForm';

View File

@ -2,11 +2,11 @@
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import AbstractStopLiveStreamDialog, { import AbstractStopLiveStreamDialog, {
_mapStateToProps _mapStateToProps
} from './AbstractStopLiveStreamDialog'; } from '../AbstractStopLiveStreamDialog';
/** /**
* A React Component for confirming the participant wishes to stop the currently * A React Component for confirming the participant wishes to stop the currently

View File

@ -3,11 +3,11 @@
import { FieldTextStateless } from '@atlaskit/field-text'; import { FieldTextStateless } from '@atlaskit/field-text';
import React from 'react'; import React from 'react';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import AbstractStreamKeyForm, { import AbstractStreamKeyForm, {
type Props type Props
} from './AbstractStreamKeyForm'; } from '../AbstractStreamKeyForm';
/** /**
* A React Component for entering a key for starting a YouTube live stream. * A React Component for entering a key for starting a YouTube live stream.

View File

@ -7,7 +7,7 @@ import {
} from '@atlaskit/dropdown-menu'; } from '@atlaskit/dropdown-menu';
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
/** /**
* The type of the React {@code Component} props of {@link StreamKeyPicker}. * The type of the React {@code Component} props of {@link StreamKeyPicker}.

View File

@ -0,0 +1,5 @@
// @flow
export { default as LiveStreamButton } from './LiveStreamButton';
export { default as StartLiveStreamDialog } from './StartLiveStreamDialog';
export { default as StopLiveStreamDialog } from './StopLiveStreamDialog';

View File

@ -19,7 +19,7 @@ import {
import { getActiveSession } from '../../functions'; import { getActiveSession } from '../../functions';
import StartRecordingDialog from './StartRecordingDialog'; import StartRecordingDialog from './StartRecordingDialog';
import StopRecordingDialog from './StopRecordingDialog'; import { StopRecordingDialog } from './_';
/** /**
* The type of the React {@code Component} props of * The type of the React {@code Component} props of

View File

@ -0,0 +1,3 @@
// @flow
export * from './native';

View File

@ -0,0 +1,3 @@
// @flow
export * from './web';

View File

@ -1,3 +1,3 @@
export { default as RecordButton } from './RecordButton'; // @flow
export { default as StartRecordingDialog } from './StartRecordingDialog';
export { default as StopRecordingDialog } from './StopRecordingDialog'; export * from './_';

View File

@ -2,12 +2,12 @@
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import AbstractRecordButton, { import AbstractRecordButton, {
_mapStateToProps, _mapStateToProps,
type Props type Props
} from './AbstractRecordButton'; } from '../AbstractRecordButton';
/** /**
* An implementation of a button for starting and stopping recording. * An implementation of a button for starting and stopping recording.

View File

@ -3,13 +3,13 @@
import React from 'react'; import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { DialogContent } from '../../../base/dialog'; import { DialogContent } from '../../../../base/dialog';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import AbstractStopRecordingDialog, { import AbstractStopRecordingDialog, {
type Props, type Props,
_mapStateToProps _mapStateToProps
} from './AbstractStopRecordingDialog'; } from '../AbstractStopRecordingDialog';
/** /**
* React Component for getting confirmation to stop a file recording session in * React Component for getting confirmation to stop a file recording session in

View File

@ -0,0 +1,4 @@
// @flow
export { default as RecordButton } from './RecordButton';
export { default as StopRecordingDialog } from './StopRecordingDialog';

View File

@ -2,12 +2,12 @@
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import AbstractRecordButton, { import AbstractRecordButton, {
_mapStateToProps as _abstractMapStateToProps, _mapStateToProps as _abstractMapStateToProps,
type Props as AbstractProps type Props as AbstractProps
} from './AbstractRecordButton'; } from '../AbstractRecordButton';
declare var interfaceConfig: Object; declare var interfaceConfig: Object;

View File

@ -2,12 +2,12 @@
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { translate } from '../../../base/i18n'; import { translate } from '../../../../base/i18n';
import AbstractStopRecordingDialog, { import AbstractStopRecordingDialog, {
type Props, type Props,
_mapStateToProps _mapStateToProps
} from './AbstractStopRecordingDialog'; } from '../AbstractStopRecordingDialog';
/** /**
* React Component for getting confirmation to stop a file recording session in * React Component for getting confirmation to stop a file recording session in

View File

@ -0,0 +1,4 @@
// @flow
export { default as RecordButton } from './RecordButton';
export { default as StopRecordingDialog } from './StopRecordingDialog';

View File

@ -0,0 +1,3 @@
// @flow
export * from './native';

View File

@ -0,0 +1,3 @@
// @flow
export * from './web';

View File

@ -1,12 +1,5 @@
export { // @flow
LiveStreamButton,
StartLiveStreamDialog, export * from './_';
StopLiveStreamDialog export * from './LiveStream';
} from './LiveStream'; export * from './Recording';
export {
RecordButton,
StartRecordingDialog,
StopRecordingDialog
} from './Recording';
export { default as RecordingLabel } from './RecordingLabel';
export { default as RecordingExpandedLabel } from './RecordingExpandedLabel';

View File

@ -2,14 +2,14 @@
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { translate } from '../../base/i18n'; import { translate } from '../../../base/i18n';
import { JitsiRecordingConstants } from '../../base/lib-jitsi-meet'; import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
import { import {
ExpandedLabel, ExpandedLabel,
type Props as AbstractProps type Props as AbstractProps
} from '../../base/label'; } from '../../../base/label';
import { getSessionStatusToShow } from '../functions'; import { getSessionStatusToShow } from '../../functions';
import { LIVE_LABEL_COLOR, REC_LABEL_COLOR } from './styles'; import { LIVE_LABEL_COLOR, REC_LABEL_COLOR } from './styles';

View File

@ -3,13 +3,14 @@
import React from 'react'; import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { translate } from '../../base/i18n'; import { translate } from '../../../base/i18n';
import { CircularLabel } from '../../base/label'; import { CircularLabel } from '../../../base/label';
import { JitsiRecordingConstants } from '../../base/lib-jitsi-meet'; import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
import AbstractRecordingLabel, { import AbstractRecordingLabel, {
_mapStateToProps _mapStateToProps
} from './AbstractRecordingLabel'; } from '../AbstractRecordingLabel';
import styles from './styles'; import styles from './styles';
/** /**

View File

@ -0,0 +1,4 @@
// @flow
export { default as RecordingExpandedLabel } from './RecordingExpandedLabel';
export { default as RecordingLabel } from './RecordingLabel';

View File

@ -1,6 +1,6 @@
// @flow // @flow
import { ColorPalette, createStyleSheet } from '../../base/styles'; import { ColorPalette, createStyleSheet } from '../../../base/styles';
export const LIVE_LABEL_COLOR = ColorPalette.blue; export const LIVE_LABEL_COLOR = ColorPalette.blue;
export const REC_LABEL_COLOR = ColorPalette.red; export const REC_LABEL_COLOR = ColorPalette.red;

View File

@ -3,13 +3,13 @@
import React from 'react'; import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { CircularLabel } from '../../base/label'; import { CircularLabel } from '../../../base/label';
import { JitsiRecordingConstants } from '../../base/lib-jitsi-meet'; import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
import { translate } from '../../base/i18n'; import { translate } from '../../../base/i18n';
import AbstractRecordingLabel, { import AbstractRecordingLabel, {
_mapStateToProps _mapStateToProps
} from './AbstractRecordingLabel'; } from '../AbstractRecordingLabel';
/** /**
* Implements a React {@link Component} which displays the current state of * Implements a React {@link Component} which displays the current state of

View File

@ -0,0 +1,3 @@
// @flow
export { default as RecordingLabel } from './RecordingLabel';