2023-10-16 07:10:43 -04:00
|
|
|
import { FC } from 'react'
|
2023-10-26 04:57:00 -04:00
|
|
|
import { ConnectionProvider } from './connection-context'
|
2023-10-24 10:57:17 -04:00
|
|
|
import { IdeReactProvider } from '@/features/ide-react/context/ide-react-context'
|
2023-10-26 04:57:00 -04:00
|
|
|
import { LayoutProvider } from '@/shared/context/layout-context'
|
|
|
|
import { DetachProvider } from '@/shared/context/detach-context'
|
2023-10-24 10:57:17 -04:00
|
|
|
import { ProjectProvider } from '@/shared/context/project-context'
|
2023-10-26 04:57:00 -04:00
|
|
|
import { ProjectSettingsProvider } from '@/features/editor-left-menu/context/project-settings-context'
|
|
|
|
import { EditorProvider } from '@/shared/context/editor-context'
|
2023-10-24 10:57:17 -04:00
|
|
|
import { UserProvider } from '@/shared/context/user-context'
|
2023-10-26 04:57:00 -04:00
|
|
|
import { EditorManagerProvider } from '@/features/ide-react/context/editor-manager-context'
|
|
|
|
import { FileTreeDataProvider } from '@/shared/context/file-tree-data-context'
|
|
|
|
import { DetachCompileProvider } from '@/shared/context/detach-compile-context'
|
|
|
|
import { ChatProvider } from '@/features/chat/context/chat-context'
|
|
|
|
import { LocalCompileProvider } from '@/shared/context/local-compile-context'
|
|
|
|
import { OnlineUsersProvider } from '@/features/ide-react/context/online-users-context'
|
|
|
|
import { MetadataProvider } from '@/features/ide-react/context/metadata-context'
|
|
|
|
import { ReferencesProvider } from '@/features/ide-react/context/references-context'
|
|
|
|
import { SplitTestProvider } from '@/shared/context/split-test-context'
|
2023-10-27 04:43:50 -04:00
|
|
|
import { ModalsContextProvider } from '@/features/ide-react/context/modals-context'
|
2023-10-26 06:08:48 -04:00
|
|
|
import { FileTreePathProvider } from '@/features/file-tree/contexts/file-tree-path'
|
2023-11-21 09:29:44 -05:00
|
|
|
import { UserSettingsProvider } from '@/shared/context/user-settings-context'
|
2023-11-23 07:03:22 -05:00
|
|
|
import { PermissionsProvider } from '@/features/ide-react/context/permissions-context'
|
2023-12-15 04:19:42 -05:00
|
|
|
import { FileTreeOpenProvider } from '@/features/ide-react/context/file-tree-open-context'
|
|
|
|
import { OutlineProvider } from '@/features/ide-react/context/outline-context'
|
2024-08-21 07:28:21 -04:00
|
|
|
import { SnapshotProvider } from '@/features/ide-react/context/snapshot-context'
|
2023-10-16 07:10:43 -04:00
|
|
|
|
|
|
|
export const ReactContextRoot: FC = ({ children }) => {
|
2023-10-24 10:57:17 -04:00
|
|
|
return (
|
2023-10-26 04:57:00 -04:00
|
|
|
<SplitTestProvider>
|
2023-12-08 04:36:54 -05:00
|
|
|
<ModalsContextProvider>
|
|
|
|
<ConnectionProvider>
|
|
|
|
<IdeReactProvider>
|
|
|
|
<UserProvider>
|
|
|
|
<UserSettingsProvider>
|
|
|
|
<ProjectProvider>
|
2024-08-21 07:28:21 -04:00
|
|
|
<SnapshotProvider>
|
|
|
|
<FileTreeDataProvider>
|
|
|
|
<FileTreePathProvider>
|
|
|
|
<ReferencesProvider>
|
|
|
|
<DetachProvider>
|
|
|
|
<EditorProvider>
|
|
|
|
<PermissionsProvider>
|
|
|
|
<ProjectSettingsProvider>
|
|
|
|
<LayoutProvider>
|
|
|
|
<EditorManagerProvider>
|
|
|
|
<LocalCompileProvider>
|
|
|
|
<DetachCompileProvider>
|
|
|
|
<ChatProvider>
|
|
|
|
<FileTreeOpenProvider>
|
|
|
|
<OnlineUsersProvider>
|
|
|
|
<MetadataProvider>
|
|
|
|
<OutlineProvider>
|
|
|
|
{children}
|
|
|
|
</OutlineProvider>
|
|
|
|
</MetadataProvider>
|
|
|
|
</OnlineUsersProvider>
|
|
|
|
</FileTreeOpenProvider>
|
|
|
|
</ChatProvider>
|
|
|
|
</DetachCompileProvider>
|
|
|
|
</LocalCompileProvider>
|
|
|
|
</EditorManagerProvider>
|
|
|
|
</LayoutProvider>
|
|
|
|
</ProjectSettingsProvider>
|
|
|
|
</PermissionsProvider>
|
|
|
|
</EditorProvider>
|
|
|
|
</DetachProvider>
|
|
|
|
</ReferencesProvider>
|
|
|
|
</FileTreePathProvider>
|
|
|
|
</FileTreeDataProvider>
|
|
|
|
</SnapshotProvider>
|
2023-12-08 04:36:54 -05:00
|
|
|
</ProjectProvider>
|
|
|
|
</UserSettingsProvider>
|
|
|
|
</UserProvider>
|
|
|
|
</IdeReactProvider>
|
|
|
|
</ConnectionProvider>
|
|
|
|
</ModalsContextProvider>
|
2023-10-26 04:57:00 -04:00
|
|
|
</SplitTestProvider>
|
2023-10-24 10:57:17 -04:00
|
|
|
)
|
2023-10-16 07:10:43 -04:00
|
|
|
}
|