Browse Source

[RN] rearrange display-name files for later refactor

master
Bettenbuk Zoltan 6 years ago
parent
commit
42c85c22a9

+ 1
- 1
react/features/conference/components/native/Conference.js View File

17
 import { createDesiredLocalTracks } from '../../../base/tracks';
17
 import { createDesiredLocalTracks } from '../../../base/tracks';
18
 import { ConferenceNotification } from '../../../calendar-sync';
18
 import { ConferenceNotification } from '../../../calendar-sync';
19
 import { Chat } from '../../../chat';
19
 import { Chat } from '../../../chat';
20
+import { DisplayNameLabel } from '../../../display-name/components/native';
20
 import {
21
 import {
21
     FILMSTRIP_SIZE,
22
     FILMSTRIP_SIZE,
22
     Filmstrip,
23
     Filmstrip,
32
     AbstractConference,
33
     AbstractConference,
33
     abstractMapStateToProps
34
     abstractMapStateToProps
34
 } from '../AbstractConference';
35
 } from '../AbstractConference';
35
-import DisplayNameLabel from './DisplayNameLabel';
36
 import Labels from './Labels';
36
 import Labels from './Labels';
37
 import NavigationBar from './NavigationBar';
37
 import NavigationBar from './NavigationBar';
38
 import styles from './styles';
38
 import styles from './styles';

+ 0
- 14
react/features/conference/components/native/styles.js View File

22
         flex: 1
22
         flex: 1
23
     }),
23
     }),
24
 
24
 
25
-    displayNameBackdrop: {
26
-        alignSelf: 'center',
27
-        backgroundColor: 'rgba(28, 32, 37, 0.6)',
28
-        borderRadius: 4,
29
-        margin: 16,
30
-        paddingHorizontal: 16,
31
-        paddingVertical: 4
32
-    },
33
-
34
-    displayNameText: {
35
-        color: ColorPalette.white,
36
-        fontSize: 14
37
-    },
38
-
39
     gradient: {
25
     gradient: {
40
         position: 'absolute',
26
         position: 'absolute',
41
         top: 0,
27
         top: 0,

+ 0
- 0
react/features/display-name/components/DisplayName.native.js View File


+ 3
- 0
react/features/display-name/components/index.native.js View File

1
+// @flow
2
+
3
+export * from './native';

+ 3
- 0
react/features/display-name/components/index.web.js View File

1
+// @flow
2
+
3
+export * from './web';

react/features/conference/components/native/DisplayNameLabel.js → react/features/display-name/components/native/DisplayNameLabel.js View File

9
     shouldRenderParticipantVideo
9
     shouldRenderParticipantVideo
10
 } from '../../../base/participants';
10
 } from '../../../base/participants';
11
 import { connect } from '../../../base/redux';
11
 import { connect } from '../../../base/redux';
12
-
13
 import { shouldDisplayTileView } from '../../../video-layout';
12
 import { shouldDisplayTileView } from '../../../video-layout';
14
 
13
 
15
 import styles from './styles';
14
 import styles from './styles';

react/features/display-name/components/DisplayNamePrompt.native.js → react/features/display-name/components/native/DisplayNamePrompt.js View File

1
 // @flow
1
 // @flow
2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
-import { connect } from '../../base/redux';
4
+import { connect } from '../../../base/redux';
5
 
5
 
6
-import { InputDialog } from '../../base/dialog';
6
+import { InputDialog } from '../../../base/dialog';
7
 
7
 
8
-import AbstractDisplayNamePrompt from './AbstractDisplayNamePrompt';
8
+import AbstractDisplayNamePrompt from '../AbstractDisplayNamePrompt';
9
 
9
 
10
 /**
10
 /**
11
  * Implements a component to render a display name prompt.
11
  * Implements a component to render a display name prompt.

+ 4
- 0
react/features/display-name/components/native/index.js View File

1
+// @flow
2
+
3
+export { default as DisplayNameLabel } from './DisplayNameLabel';
4
+export { default as DisplayNamePrompt } from './DisplayNamePrompt';

+ 19
- 0
react/features/display-name/components/native/styles.js View File

1
+// @flow
2
+
3
+import { ColorPalette } from '../../../base/styles';
4
+
5
+export default {
6
+    displayNameBackdrop: {
7
+        alignSelf: 'center',
8
+        backgroundColor: 'rgba(28, 32, 37, 0.6)',
9
+        borderRadius: 4,
10
+        margin: 16,
11
+        paddingHorizontal: 16,
12
+        paddingVertical: 4
13
+    },
14
+
15
+    displayNameText: {
16
+        color: ColorPalette.white,
17
+        fontSize: 14
18
+    }
19
+};

react/features/display-name/components/DisplayName.web.js → react/features/display-name/components/web/DisplayName.js View File

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
-import { connect } from '../../base/redux';
4
+import { connect } from '../../../base/redux';
5
 import type { Dispatch } from 'redux';
5
 import type { Dispatch } from 'redux';
6
 
6
 
7
-import { appendSuffix } from '../functions';
8
-
9
-import { translate } from '../../base/i18n';
7
+import { translate } from '../../../base/i18n';
10
 import {
8
 import {
11
     getParticipantDisplayName,
9
     getParticipantDisplayName,
12
     getParticipantById
10
     getParticipantById
13
-} from '../../base/participants';
14
-import { updateSettings } from '../../base/settings';
11
+} from '../../../base/participants';
12
+import { updateSettings } from '../../../base/settings';
13
+
14
+import { appendSuffix } from '../../functions';
15
 
15
 
16
 /**
16
 /**
17
  * The type of the React {@code Component} props of {@link DisplayName}.
17
  * The type of the React {@code Component} props of {@link DisplayName}.

react/features/display-name/components/DisplayNamePrompt.web.js → react/features/display-name/components/web/DisplayNamePrompt.js View File

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
 import React from 'react';
3
 import React from 'react';
4
-import { connect } from '../../base/redux';
5
 import { FieldTextStateless as TextField } from '@atlaskit/field-text';
4
 import { FieldTextStateless as TextField } from '@atlaskit/field-text';
6
 
5
 
7
-import { Dialog } from '../../base/dialog';
8
-import { translate } from '../../base/i18n';
6
+import { Dialog } from '../../../base/dialog';
7
+import { translate } from '../../../base/i18n';
8
+import { connect } from '../../../base/redux';
9
 
9
 
10
 import AbstractDisplayNamePrompt, {
10
 import AbstractDisplayNamePrompt, {
11
     type Props
11
     type Props
12
-} from './AbstractDisplayNamePrompt';
12
+} from '../AbstractDisplayNamePrompt';
13
 
13
 
14
 /**
14
 /**
15
  * The type of the React {@code Component} props of {@link DisplayNamePrompt}.
15
  * The type of the React {@code Component} props of {@link DisplayNamePrompt}.

react/features/display-name/components/index.js → react/features/display-name/components/web/index.js View File

1
+// @flow
2
+
1
 export { default as DisplayName } from './DisplayName';
3
 export { default as DisplayName } from './DisplayName';
2
 export { default as DisplayNamePrompt } from './DisplayNamePrompt';
4
 export { default as DisplayNamePrompt } from './DisplayNamePrompt';

+ 2
- 0
react/features/display-name/index.js View File

1
+// @flow
2
+
1
 export * from './actions';
3
 export * from './actions';
2
 export * from './components';
4
 export * from './components';
3
 export * from './functions';
5
 export * from './functions';

Loading…
Cancel
Save