2024-03-07 01:28:18 +08:00
|
|
|
import React from 'react';
|
|
|
|
import ConnectionManager from '/imports/ui/components/connection-manager/component';
|
|
|
|
// eslint-disable-next-line react/no-deprecated
|
|
|
|
import { render } from 'react-dom';
|
|
|
|
import SettingsLoader from '/imports/ui/components/settings-loader/component';
|
|
|
|
import ErrorBoundary from '/imports/ui/components/common/error-boundary/component';
|
|
|
|
import { ErrorScreen } from '/imports/ui/components/error-screen/component';
|
|
|
|
import PresenceManager from '/imports/ui/components/join-handler/presenceManager/component';
|
|
|
|
import LoadingScreenHOC from '/imports/ui/components/common/loading-screen/loading-screen-HOC/component';
|
2024-03-23 03:07:49 +08:00
|
|
|
import IntlLoaderContainer from '/imports/startup/client/intlLoader';
|
2024-03-23 03:18:32 +08:00
|
|
|
import LocatedErrorBoundary from '/imports/ui/components/common/error-boundary/located-error-boundary/component';
|
|
|
|
import StartupDataFetch from '/imports/ui/components/connection-manager/startup-data-fetch/component';
|
2024-03-08 21:01:17 +08:00
|
|
|
import UserGrapQlMiniMongoAdapter from '/imports/ui/components/components-data/userGrapQlMiniMongoAdapter/component';
|
2024-03-08 01:20:11 +08:00
|
|
|
import VoiceUserGrapQlMiniMongoAdapter from '/imports/ui/components/components-data/voiceUserGraphQlMiniMongoAdapter/component';
|
2024-03-26 19:57:28 +08:00
|
|
|
import MeetingGrapQlMiniMongoAdapter from '/imports/ui/components/components-data/meetingGrapQlMiniMongoAdapter/component';
|
2024-03-07 01:28:18 +08:00
|
|
|
|
|
|
|
const Main: React.FC = () => {
|
2024-03-26 19:57:28 +08:00
|
|
|
// Meteor.disconnect();
|
2024-03-07 01:28:18 +08:00
|
|
|
return (
|
|
|
|
<StartupDataFetch>
|
|
|
|
<ErrorBoundary Fallback={ErrorScreen}>
|
|
|
|
<LoadingScreenHOC>
|
2024-03-23 03:07:49 +08:00
|
|
|
<IntlLoaderContainer>
|
|
|
|
{/* from there the error messages are located */}
|
|
|
|
<LocatedErrorBoundary Fallback={ErrorScreen}>
|
|
|
|
<ConnectionManager>
|
|
|
|
<PresenceManager>
|
|
|
|
<SettingsLoader />
|
|
|
|
<UserGrapQlMiniMongoAdapter />
|
|
|
|
<VoiceUserGrapQlMiniMongoAdapter />
|
2024-03-26 19:57:28 +08:00
|
|
|
<MeetingGrapQlMiniMongoAdapter />
|
2024-03-23 03:07:49 +08:00
|
|
|
</PresenceManager>
|
|
|
|
</ConnectionManager>
|
|
|
|
</LocatedErrorBoundary>
|
|
|
|
</IntlLoaderContainer>
|
2024-03-07 01:28:18 +08:00
|
|
|
</LoadingScreenHOC>
|
|
|
|
</ErrorBoundary>
|
|
|
|
</StartupDataFetch>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
render(
|
|
|
|
<Main />,
|
|
|
|
document.getElementById('app'),
|
|
|
|
);
|