mirror of
https://github.com/overleaf/overleaf.git
synced 2025-12-05 01:10:29 +00:00
Add workbench as a separate panel (#29922)
GitOrigin-RevId: de1a168e6081dee94313ba2e2a8952028cf455bb
This commit is contained in:
@@ -999,6 +999,7 @@ module.exports = {
|
||||
sourceEditorToolbarEndButtons: [],
|
||||
rootContextProviders: [],
|
||||
mainEditorLayoutModals: [],
|
||||
mainEditorLayoutPanels: [],
|
||||
langFeedbackLinkingWidgets: [],
|
||||
labsExperiments: [],
|
||||
integrationLinkingWidgets: [],
|
||||
|
||||
@@ -15,6 +15,11 @@ import HistoryContainer from '@/features/ide-react/components/history-container'
|
||||
import { DefaultSynctexControl } from '@/features/pdf-preview/components/detach-synctex-control'
|
||||
import importOverleafModules from '../../../../macros/import-overleaf-module.macro'
|
||||
|
||||
const mainEditorLayoutPanels: Array<{
|
||||
import: { default: ElementType }
|
||||
path: string
|
||||
}> = importOverleafModules('mainEditorLayoutPanels')
|
||||
|
||||
const mainEditorLayoutModalsModules: Array<{
|
||||
import: { default: ElementType }
|
||||
path: string
|
||||
@@ -121,6 +126,11 @@ export default function MainLayout() {
|
||||
</Panel>
|
||||
</PanelGroup>
|
||||
</Panel>
|
||||
{mainEditorLayoutPanels.map(
|
||||
({ import: { default: Component }, path }, i) => {
|
||||
return <Component key={path} order={i + 3} />
|
||||
}
|
||||
)}
|
||||
</PanelGroup>
|
||||
</div>
|
||||
{mainEditorLayoutModalsModules.map(
|
||||
|
||||
Reference in New Issue
Block a user