浏览代码

[RN] rearrange display-name files for later refactor

master
Bettenbuk Zoltan 6 年前
父节点
当前提交
42c85c22a9

+ 1
- 1
react/features/conference/components/native/Conference.js 查看文件

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

+ 0
- 14
react/features/conference/components/native/styles.js 查看文件

@@ -22,20 +22,6 @@ export default createStyleSheet({
22 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 25
     gradient: {
40 26
         position: 'absolute',
41 27
         top: 0,

+ 0
- 0
react/features/display-name/components/DisplayName.native.js 查看文件


+ 3
- 0
react/features/display-name/components/index.native.js 查看文件

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

+ 3
- 0
react/features/display-name/components/index.web.js 查看文件

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

react/features/conference/components/native/DisplayNameLabel.js → react/features/display-name/components/native/DisplayNameLabel.js 查看文件

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

react/features/display-name/components/DisplayNamePrompt.native.js → react/features/display-name/components/native/DisplayNamePrompt.js 查看文件

@@ -1,11 +1,11 @@
1 1
 // @flow
2 2
 
3 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 11
  * Implements a component to render a display name prompt.

+ 4
- 0
react/features/display-name/components/native/index.js 查看文件

@@ -0,0 +1,4 @@
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 查看文件

@@ -0,0 +1,19 @@
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 查看文件

@@ -1,17 +1,17 @@
1 1
 /* @flow */
2 2
 
3 3
 import React, { Component } from 'react';
4
-import { connect } from '../../base/redux';
4
+import { connect } from '../../../base/redux';
5 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 8
 import {
11 9
     getParticipantDisplayName,
12 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 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 查看文件

@@ -1,15 +1,15 @@
1 1
 /* @flow */
2 2
 
3 3
 import React from 'react';
4
-import { connect } from '../../base/redux';
5 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 10
 import AbstractDisplayNamePrompt, {
11 11
     type Props
12
-} from './AbstractDisplayNamePrompt';
12
+} from '../AbstractDisplayNamePrompt';
13 13
 
14 14
 /**
15 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 查看文件

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

+ 2
- 0
react/features/display-name/index.js 查看文件

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

正在加载...
取消
保存