agora-appbuilder-core 3.0.12 → 3.0.13
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 +1 -1
- package/template/src/components/GraphQLProvider.tsx +0 -2
- package/template/src/components/Navigation.native.tsx +0 -1
- package/template/src/components/OAuth.electron.tsx +0 -1
- package/template/src/components/OAuth.native.tsx +0 -2
- package/template/src/components/OAuth.tsx +0 -1
- package/template/src/components/StorageContext.tsx +0 -1
- package/template/src/components/StoreToken.tsx +0 -1
- package/template/src/subComponents/recording/useRecording.tsx +0 -2
- package/template/src/subComponents/recording/useRecordingLayoutQuery.tsx +0 -1
package/package.json
CHANGED
|
@@ -39,7 +39,6 @@ const GraphQLProvider = (props: {children: React.ReactNode}) => {
|
|
|
39
39
|
if (storeString) {
|
|
40
40
|
token = JSON.parse(storeString).token;
|
|
41
41
|
}
|
|
42
|
-
console.log('link module token', storeString);
|
|
43
42
|
if (token) {
|
|
44
43
|
return {
|
|
45
44
|
headers: {
|
|
@@ -66,7 +65,6 @@ const GraphQLProvider = (props: {children: React.ReactNode}) => {
|
|
|
66
65
|
// cache: new InMemoryCache(),
|
|
67
66
|
// });
|
|
68
67
|
// }, [authLink, httpLink, store]);
|
|
69
|
-
console.log('GraphQL render triggered', store);
|
|
70
68
|
|
|
71
69
|
return (
|
|
72
70
|
<GraphQLContext.Provider value={{client: client.current}}>
|
|
@@ -36,9 +36,7 @@ const Oauth = () => {
|
|
|
36
36
|
const oAuthUrl = url({platform: 'mobile'})[`${oAuthSystem}Url`];
|
|
37
37
|
if (await InAppBrowser.isAvailable()) {
|
|
38
38
|
const result = await InAppBrowser.openAuth(oAuthUrl, oAuthUrl);
|
|
39
|
-
console.log(JSON.stringify(result));
|
|
40
39
|
if (result.type === 'success') {
|
|
41
|
-
console.log('success', Linking.canOpenURL(result.url));
|
|
42
40
|
history.push(processUrl(result.url));
|
|
43
41
|
}
|
|
44
42
|
} else {
|
|
@@ -57,7 +57,6 @@ export const StorageProvider = (props: {children: React.ReactNode}) => {
|
|
|
57
57
|
setStore(JSON.parse(storeString));
|
|
58
58
|
setReady(true);
|
|
59
59
|
}
|
|
60
|
-
console.log('store hydrated', storeString);
|
|
61
60
|
setReady(true);
|
|
62
61
|
} catch (e) {
|
|
63
62
|
console.error('problem hydrating store', e);
|
|
@@ -27,7 +27,6 @@ const StoreToken = () => {
|
|
|
27
27
|
const [ready, setReady] = useState(false);
|
|
28
28
|
const {token}: {token: string} = useParams();
|
|
29
29
|
const {setStore} = useContext(StorageContext);
|
|
30
|
-
console.log('store token api', token);
|
|
31
30
|
|
|
32
31
|
useMount(() => {
|
|
33
32
|
setStore && setStore((store) => ({...store, token}));
|
|
@@ -147,7 +147,6 @@ const RecordingProvider = (props: RecordingProviderProps) => {
|
|
|
147
147
|
},
|
|
148
148
|
})
|
|
149
149
|
.then((res) => {
|
|
150
|
-
console.log(res.data);
|
|
151
150
|
if (res.data.startRecordingSession === 'success') {
|
|
152
151
|
/**
|
|
153
152
|
* 1. Once the backend sucessfuly starts recording, send message
|
|
@@ -190,7 +189,6 @@ const RecordingProvider = (props: RecordingProviderProps) => {
|
|
|
190
189
|
// If recording is already going on, stop the recording by executing the graphql query.
|
|
191
190
|
stopRecordingQuery({variables: {passphrase: phrase}})
|
|
192
191
|
.then((res) => {
|
|
193
|
-
console.log(res.data);
|
|
194
192
|
if (res.data.stopRecordingSession === 'success') {
|
|
195
193
|
/**
|
|
196
194
|
* 1. Once the backend sucessfuly starts recording, send message
|
|
@@ -47,7 +47,6 @@ function useRecordingLayoutQuery() {
|
|
|
47
47
|
const executeNormalQuery = () => {
|
|
48
48
|
setNormalQuery({variables: {passphrase: phrase}})
|
|
49
49
|
.then((res) => {
|
|
50
|
-
console.log(res.data);
|
|
51
50
|
if (res.data.stopRecordingSession === 'success') {
|
|
52
51
|
// Once the backend sucessfuly stops recording,
|
|
53
52
|
// send a control message to everbody in the channel indicating that cloud recording is now inactive.
|