Some checks failed
Create issues from TODOs / todos (push) Failing after 3s
Close inactive issues / close-issues (push) Has been cancelled
Deploy GitHub Pages / deploy-preview (push) Has been cancelled
CI / ⚙️ Variables Setup (push) Has been cancelled
CI / ⚙️ Test Guard (push) Has been cancelled
CI / 🚀 Notify external services - draft (push) Has been cancelled
CI / 📦 Build Packages (push) Has been cancelled
CI / 📦 Meteor Build (coverage) (push) Has been cancelled
CI / 📦 Meteor Build (production) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], fips) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Publish Docker Images (ghcr.io) (push) Has been cancelled
CI / 📦 Track Image Sizes (push) Has been cancelled
CI / 🔎 Code Check - Action Lint (push) Has been cancelled
CI / 🔎 Code Check (push) Has been cancelled
CI / 🔨 Test Storybook (push) Has been cancelled
CI / 🔨 Test Unit (push) Has been cancelled
CI / 🔨 Test API (CE) (push) Has been cancelled
CI / 🔨 Test API Livechat (CE) (push) Has been cancelled
CI / 🔨 Test UI (CE) (push) Has been cancelled
CI / 🔨 Test API (EE) (push) Has been cancelled
CI / 🔨 Test API Livechat (EE) (push) Has been cancelled
CI / 🔨 Test API Apps (deno-runtime - EE) (push) Has been cancelled
CI / 🔨 Test UI (EE) (push) Has been cancelled
CI / 🔨 Test API (FIPS) (push) Has been cancelled
CI / 🔨 Test API Livechat (FIPS) (push) Has been cancelled
CI / 🔨 Test UI (FIPS) (push) Has been cancelled
CI / 🔨 Test Federation Matrix (push) Has been cancelled
CI / 📊 Report Coverage (push) Has been cancelled
CI / ✅ Tests Done (push) Has been cancelled
CI / 🚀 Publish build assets (push) Has been cancelled
CI / 🚀 Publish Docker Images (DockerHub) (push) Has been cancelled
CI / 🚀 Notify external services (push) Has been cancelled
CI / Update Version Durability (push) Has been cancelled
Release / Release (push) Has been cancelled
Auto-close duplicate issues / auto-close-duplicates (push) Failing after 1s
Code scanning - action / CodeQL-Build (push) Failing after 2s
99 lines
4.0 KiB
TypeScript
99 lines
4.0 KiB
TypeScript
import { useEffect, Suspense, useSyncExternalStore } from 'react';
|
|
|
|
import DocumentTitleWrapper from './DocumentTitleWrapper';
|
|
import PageLoading from './PageLoading';
|
|
import { useAppleOAuth } from './hooks/customOAuth/useAppleOAuth';
|
|
import { useCustomOAuth } from './hooks/customOAuth/useCustomOAuth';
|
|
import { useDolphinOAuth } from './hooks/customOAuth/useDolphinOAuth';
|
|
import { useDrupalOAuth } from './hooks/customOAuth/useDrupalOAuth';
|
|
import { useGitHubEnterpriseOAuth } from './hooks/customOAuth/useGitHubEnterpriseOAuth';
|
|
import { useGitLabOAuth } from './hooks/customOAuth/useGitLabOAuth';
|
|
import { useGithubOAuth } from './hooks/customOAuth/useGithubOAuth';
|
|
import { useNextcloudOAuth } from './hooks/customOAuth/useNextcloudOAuth';
|
|
import { useWordPressOAuth } from './hooks/customOAuth/useWordPressOAuth';
|
|
import { useAnalytics } from './hooks/useAnalytics';
|
|
import { useAnalyticsEventTracking } from './hooks/useAnalyticsEventTracking';
|
|
import { useAutoupdate } from './hooks/useAutoupdate';
|
|
import { useCodeHighlight } from './hooks/useCodeHighlight';
|
|
import { useCorsSSLConfig } from './hooks/useCorsSSLConfig';
|
|
import { useDesktopFavicon } from './hooks/useDesktopFavicon';
|
|
import { useDesktopTitle } from './hooks/useDesktopTitle';
|
|
import { useDesktopUserRoles } from './hooks/useDesktopUserRoles';
|
|
import { useEscapeKeyStroke } from './hooks/useEscapeKeyStroke';
|
|
import { useGoogleTagManager } from './hooks/useGoogleTagManager';
|
|
import { useIframeCommands } from './hooks/useIframeCommands';
|
|
import { useIframeLoginListener } from './hooks/useIframeLoginListener';
|
|
import { useKeyboardShortcutsHotkey } from './hooks/useKeyboardShortcutsHotkey';
|
|
import { useLivechatEnterprise } from './hooks/useLivechatEnterprise';
|
|
import { useLoadMissedMessages } from './hooks/useLoadMissedMessages';
|
|
import { useLoadRoomForAllowedAnonymousRead } from './hooks/useLoadRoomForAllowedAnonymousRead';
|
|
import { useLoginOtherClients } from './hooks/useLoginOtherClients';
|
|
import { useLoginViaQuery } from './hooks/useLoginViaQuery';
|
|
import { useMessageLinkClicks } from './hooks/useMessageLinkClicks';
|
|
import { useNativeEmoji } from './hooks/useNativeEmoji';
|
|
import { useNotificationPermission } from './hooks/useNotificationPermission';
|
|
import { useOAuthLogin } from './hooks/useOAuthLogin';
|
|
import { useOAuthPopupCommands } from './hooks/useOAuthPopupCommands';
|
|
import { useRedirectToSetupWizard } from './hooks/useRedirectToSetupWizard';
|
|
import { useSettingsOnLoadSiteUrl } from './hooks/useSettingsOnLoadSiteUrl';
|
|
import { useShareSessionWithOtherClients } from './hooks/useShareSessionWithOtherClients';
|
|
import { useStartupEvent } from './hooks/useStartupEvent';
|
|
import { appLayout } from '../../lib/appLayout';
|
|
|
|
const AppLayout = () => {
|
|
useEffect(() => {
|
|
document.body.classList.add('color-primary-font-color', 'rcx-content--main');
|
|
|
|
return () => {
|
|
document.body.classList.remove('color-primary-font-color', 'rcx-content--main');
|
|
};
|
|
}, []);
|
|
|
|
useIframeLoginListener();
|
|
useMessageLinkClicks();
|
|
useGoogleTagManager();
|
|
useAnalytics();
|
|
useEscapeKeyStroke();
|
|
useKeyboardShortcutsHotkey();
|
|
useAnalyticsEventTracking();
|
|
useLoadRoomForAllowedAnonymousRead();
|
|
useNotificationPermission();
|
|
useNativeEmoji();
|
|
useRedirectToSetupWizard();
|
|
useSettingsOnLoadSiteUrl();
|
|
useLivechatEnterprise();
|
|
useNextcloudOAuth();
|
|
useGitLabOAuth();
|
|
useGithubOAuth();
|
|
useGitHubEnterpriseOAuth();
|
|
useDrupalOAuth();
|
|
useDolphinOAuth();
|
|
useAppleOAuth();
|
|
useWordPressOAuth();
|
|
useCustomOAuth();
|
|
useCorsSSLConfig();
|
|
useAutoupdate();
|
|
useCodeHighlight();
|
|
useLoginViaQuery();
|
|
useLoginOtherClients();
|
|
useOAuthLogin();
|
|
useOAuthPopupCommands();
|
|
useShareSessionWithOtherClients();
|
|
useLoadMissedMessages();
|
|
useDesktopFavicon();
|
|
useDesktopTitle();
|
|
useDesktopUserRoles();
|
|
useStartupEvent();
|
|
useIframeCommands();
|
|
|
|
const layout = useSyncExternalStore(appLayout.subscribe, appLayout.getSnapshot);
|
|
|
|
return (
|
|
<Suspense fallback={<PageLoading />}>
|
|
<DocumentTitleWrapper>{layout}</DocumentTitleWrapper>
|
|
</Suspense>
|
|
);
|
|
};
|
|
|
|
export default AppLayout;
|