|
|
@ -8,7 +8,7 @@ import DragBar from './components/dragbar/dragbar' |
|
|
|
import {AppProvider} from './context/provider' |
|
|
|
import {AppProvider} from './context/provider' |
|
|
|
import AppDialogs from './components/modals/dialogs' |
|
|
|
import AppDialogs from './components/modals/dialogs' |
|
|
|
import DialogViewPlugin from './components/modals/dialogViewPlugin' |
|
|
|
import DialogViewPlugin from './components/modals/dialogViewPlugin' |
|
|
|
import { AppContext, appProviderContextType } from './context/context' |
|
|
|
import { appProviderContextType, onLineContext, platformContext } from './context/context' |
|
|
|
import { FormattedMessage, IntlProvider } from 'react-intl' |
|
|
|
import { FormattedMessage, IntlProvider } from 'react-intl' |
|
|
|
import {CustomTooltip} from '@remix-ui/helper' |
|
|
|
import {CustomTooltip} from '@remix-ui/helper' |
|
|
|
import {UsageTypes} from './types' |
|
|
|
import {UsageTypes} from './types' |
|
|
@ -105,10 +105,7 @@ const RemixApp = (props: IRemixAppUi) => { |
|
|
|
showMatamo: props.app.showMatamo, |
|
|
|
showMatamo: props.app.showMatamo, |
|
|
|
appManager: props.app.appManager, |
|
|
|
appManager: props.app.appManager, |
|
|
|
showEnter: props.app.showEnter, |
|
|
|
showEnter: props.app.showEnter, |
|
|
|
modal: props.app.notification, |
|
|
|
modal: props.app.notification |
|
|
|
layout: props.app.layout, |
|
|
|
|
|
|
|
platform: props.app.platform, |
|
|
|
|
|
|
|
online: online |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const handleUserChosenType = async (type) => { |
|
|
|
const handleUserChosenType = async (type) => { |
|
|
@ -151,6 +148,8 @@ const RemixApp = (props: IRemixAppUi) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
//@ts-ignore
|
|
|
|
//@ts-ignore
|
|
|
|
<IntlProvider locale={locale.code} messages={locale.messages}> |
|
|
|
<IntlProvider locale={locale.code} messages={locale.messages}> |
|
|
|
|
|
|
|
<platformContext.Provider value={props.app.platform}> |
|
|
|
|
|
|
|
<onLineContext.Provider value={online}> |
|
|
|
<AppProvider value={value}> |
|
|
|
<AppProvider value={value}> |
|
|
|
<OriginWarning></OriginWarning> |
|
|
|
<OriginWarning></OriginWarning> |
|
|
|
<MatomoDialog hide={!appReady} okFn={() => setShowEnterDialog(true)}></MatomoDialog> |
|
|
|
<MatomoDialog hide={!appReady} okFn={() => setShowEnterDialog(true)}></MatomoDialog> |
|
|
@ -176,7 +175,7 @@ const RemixApp = (props: IRemixAppUi) => { |
|
|
|
setHideStatus={setHideSidePanel} |
|
|
|
setHideStatus={setHideSidePanel} |
|
|
|
></DragBar> |
|
|
|
></DragBar> |
|
|
|
<div id="main-panel" data-id="remixIdeMainPanel" className="mainpanel d-flex"> |
|
|
|
<div id="main-panel" data-id="remixIdeMainPanel" className="mainpanel d-flex"> |
|
|
|
<RemixUIMainPanel Context={AppContext}></RemixUIMainPanel> |
|
|
|
<RemixUIMainPanel layout={props.app.layout}></RemixUIMainPanel> |
|
|
|
<CustomTooltip placement="bottom" tooltipId="overlay-tooltip-all-tabs" tooltipText={<FormattedMessage id="remixApp.scrollToSeeAllTabs" />}> |
|
|
|
<CustomTooltip placement="bottom" tooltipId="overlay-tooltip-all-tabs" tooltipText={<FormattedMessage id="remixApp.scrollToSeeAllTabs" />}> |
|
|
|
<div className="remix-ui-tabs_end remix-bg-opacity position-absolute position-fixed"></div> |
|
|
|
<div className="remix-ui-tabs_end remix-bg-opacity position-absolute position-fixed"></div> |
|
|
|
</CustomTooltip> |
|
|
|
</CustomTooltip> |
|
|
@ -186,6 +185,8 @@ const RemixApp = (props: IRemixAppUi) => { |
|
|
|
<AppDialogs></AppDialogs> |
|
|
|
<AppDialogs></AppDialogs> |
|
|
|
<DialogViewPlugin></DialogViewPlugin> |
|
|
|
<DialogViewPlugin></DialogViewPlugin> |
|
|
|
</AppProvider> |
|
|
|
</AppProvider> |
|
|
|
|
|
|
|
</onLineContext.Provider> |
|
|
|
|
|
|
|
</platformContext.Provider> |
|
|
|
</IntlProvider> |
|
|
|
</IntlProvider> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|