agora-appbuilder-core 1.0.7 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/template/agora-rn-uikit/.git/HEAD +1 -0
- package/template/agora-rn-uikit/.git/config +16 -0
- package/template/agora-rn-uikit/.git/description +1 -0
- package/template/agora-rn-uikit/.git/hooks/applypatch-msg.sample +15 -0
- package/template/agora-rn-uikit/.git/hooks/commit-msg.sample +24 -0
- package/template/agora-rn-uikit/.git/hooks/fsmonitor-watchman.sample +173 -0
- package/template/agora-rn-uikit/.git/hooks/post-update.sample +8 -0
- package/template/agora-rn-uikit/.git/hooks/pre-applypatch.sample +14 -0
- package/template/agora-rn-uikit/.git/hooks/pre-commit.sample +49 -0
- package/template/agora-rn-uikit/.git/hooks/pre-merge-commit.sample +13 -0
- package/template/agora-rn-uikit/.git/hooks/pre-push.sample +53 -0
- package/template/agora-rn-uikit/.git/hooks/pre-rebase.sample +169 -0
- package/template/agora-rn-uikit/.git/hooks/pre-receive.sample +24 -0
- package/template/agora-rn-uikit/.git/hooks/prepare-commit-msg.sample +42 -0
- package/template/agora-rn-uikit/.git/hooks/push-to-checkout.sample +78 -0
- package/template/agora-rn-uikit/.git/hooks/update.sample +128 -0
- package/template/agora-rn-uikit/.git/index +0 -0
- package/template/agora-rn-uikit/.git/info/exclude +6 -0
- package/template/agora-rn-uikit/.git/logs/HEAD +3 -0
- package/template/agora-rn-uikit/.git/logs/refs/heads/ab-dev-auto +1 -0
- package/template/agora-rn-uikit/.git/logs/refs/heads/master +1 -0
- package/template/agora-rn-uikit/.git/logs/refs/remotes/origin/HEAD +1 -0
- package/template/agora-rn-uikit/.git/objects/pack/pack-19a65e0782e617d79275088a06e668496d6e2d73.idx +0 -0
- package/template/agora-rn-uikit/.git/objects/pack/pack-19a65e0782e617d79275088a06e668496d6e2d73.pack +0 -0
- package/template/agora-rn-uikit/.git/packed-refs +11 -0
- package/template/agora-rn-uikit/.git/refs/heads/ab-dev-auto +1 -0
- package/template/agora-rn-uikit/.git/refs/heads/master +1 -0
- package/template/agora-rn-uikit/.git/refs/remotes/origin/HEAD +1 -0
- package/template/agora-rn-uikit/.gitignore +63 -0
- package/template/agora-rn-uikit/package-lock.json +7612 -0
- package/template/agora-rn-uikit/src/RTCConfigure.tsx +6 -2
- package/template/package.json +4 -3
- package/template/react-native-toast-message/.gitignore +5 -0
- package/template/react-native-toast-message/.npmignore +5 -0
- package/template/react-native-toast-message/package-lock.json +10553 -0
- package/template/src/.DS_Store +0 -0
- package/template/src/components/Precall.native.tsx +22 -14
- package/template/src/components/Precall.tsx +21 -19
- package/template/src/components/StorageContext.tsx +2 -0
- package/template/src/pages/Authenticate.tsx +5 -4
- package/template/src/pages/Create.tsx +19 -15
- package/template/src/pages/Join.tsx +13 -30
- package/template/src/pages/VideoCall.tsx +70 -52
- package/template/src/subComponents/.DS_Store +0 -0
- package/template/src/subComponents/LogoutButton.tsx +1 -1
- package/template/src/subComponents/ScreenshareButton.tsx +7 -5
- package/template/src/subComponents/SelectOAuth.tsx +25 -12
- package/template/src/utils/hasBrandLogo.tsx +3 -0
- package/template/webpack.commons.js +1 -0
|
@@ -17,56 +17,69 @@ import apple from '../assets/apple.png';
|
|
|
17
17
|
import slack from '../assets/slack.png';
|
|
18
18
|
import microsoft from '../assets/microsoft.png';
|
|
19
19
|
import Logo from './Logo';
|
|
20
|
+
import hasBrandLogo from '../utils/hasBrandLogo';
|
|
20
21
|
|
|
21
22
|
const SelectOAuth = ({onSelectOAuth}) => {
|
|
22
23
|
// Linking.openURL(url);
|
|
23
24
|
const {primaryColor} = useContext(ColorContext);
|
|
24
25
|
return (
|
|
25
26
|
<View style={style.main}>
|
|
26
|
-
<View style={style.nav}>
|
|
27
|
-
<Logo />
|
|
28
|
-
</View>
|
|
27
|
+
<View style={style.nav}>{hasBrandLogo && <Logo />}</View>
|
|
29
28
|
<View style={style.content}>
|
|
30
29
|
<View style={style.leftContent}>
|
|
31
30
|
<Text style={style.heading}>{$config.APP_NAME}</Text>
|
|
32
31
|
<Text style={style.headline}>{$config.LANDING_SUB_HEADING}</Text>
|
|
33
32
|
<View style={style.inputs}>
|
|
34
33
|
<View style={style.oAuthContainer}>
|
|
35
|
-
<Text
|
|
34
|
+
<Text
|
|
35
|
+
style={{
|
|
36
|
+
fontSize: 16,
|
|
37
|
+
fontWeight: '500',
|
|
38
|
+
marginBottom: 20,
|
|
39
|
+
color: $config.PRIMARY_FONT_COLOR,
|
|
40
|
+
}}>
|
|
36
41
|
Login using OAuth
|
|
37
42
|
</Text>
|
|
38
|
-
{$config.ENABLE_GOOGLE_OAUTH ?
|
|
43
|
+
{$config.ENABLE_GOOGLE_OAUTH ? (
|
|
39
44
|
<TouchableOpacity
|
|
40
45
|
style={[style.secondaryBtn, {borderColor: primaryColor}]}
|
|
41
46
|
onPress={() => onSelectOAuth({oAuthSystem: 'google'})}>
|
|
42
47
|
<Image source={google} style={style.logo} />
|
|
43
48
|
<Text style={[style.secondaryBtnText]}>Google</Text>
|
|
44
49
|
</TouchableOpacity>
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
) : (
|
|
51
|
+
<></>
|
|
52
|
+
)}
|
|
53
|
+
{$config.ENABLE_MICROSOFT_OAUTH ? (
|
|
47
54
|
<TouchableOpacity
|
|
48
55
|
style={[style.secondaryBtn, {borderColor: primaryColor}]}
|
|
49
56
|
onPress={() => onSelectOAuth({oAuthSystem: 'microsoft'})}>
|
|
50
57
|
<Image source={microsoft} style={style.logo} />
|
|
51
58
|
<Text style={[style.secondaryBtnText]}>Microsoft</Text>
|
|
52
59
|
</TouchableOpacity>
|
|
53
|
-
|
|
54
|
-
|
|
60
|
+
) : (
|
|
61
|
+
<></>
|
|
62
|
+
)}
|
|
63
|
+
{$config.ENABLE_SLACK_OAUTH ? (
|
|
55
64
|
<TouchableOpacity
|
|
56
65
|
style={[style.secondaryBtn, {borderColor: primaryColor}]}
|
|
57
66
|
onPress={() => onSelectOAuth({oAuthSystem: 'slack'})}>
|
|
58
67
|
<Image source={slack} style={style.logo} />
|
|
59
68
|
<Text style={[style.secondaryBtnText]}>Slack</Text>
|
|
60
69
|
</TouchableOpacity>
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
) : (
|
|
71
|
+
<></>
|
|
72
|
+
)}
|
|
73
|
+
{$config.ENABLE_APPLE_OAUTH ? (
|
|
63
74
|
<TouchableOpacity
|
|
64
75
|
style={[style.secondaryBtn, {borderColor: primaryColor}]}
|
|
65
76
|
onPress={() => onSelectOAuth({oAuthSystem: 'apple'})}>
|
|
66
77
|
<Image source={apple} style={style.logo} />
|
|
67
78
|
<Text style={[style.secondaryBtnText]}>Apple</Text>
|
|
68
79
|
</TouchableOpacity>
|
|
69
|
-
|
|
80
|
+
) : (
|
|
81
|
+
<></>
|
|
82
|
+
)}
|
|
70
83
|
</View>
|
|
71
84
|
</View>
|
|
72
85
|
</View>
|
|
@@ -94,6 +94,7 @@ module.exports = {
|
|
|
94
94
|
plugins: [
|
|
95
95
|
// Adds support for class properties
|
|
96
96
|
['transform-define', configVars],
|
|
97
|
+
'@babel/plugin-proposal-optional-chaining',
|
|
97
98
|
'@babel/plugin-proposal-class-properties',
|
|
98
99
|
isDevelopment && require.resolve('react-refresh/babel'),
|
|
99
100
|
].filter(Boolean),
|