|
|
@ -9,10 +9,8 @@ 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 { appProviderContextType, onLineContext, platformContext } from './context/context' |
|
|
|
import { appProviderContextType, onLineContext, platformContext } from './context/context' |
|
|
|
import { FormattedMessage, IntlProvider } from 'react-intl' |
|
|
|
import { IntlProvider } from 'react-intl' |
|
|
|
import { CustomTooltip } from '@remix-ui/helper' |
|
|
|
|
|
|
|
import { UsageTypes } from './types' |
|
|
|
import { UsageTypes } from './types' |
|
|
|
import { AppState } from './interface' |
|
|
|
|
|
|
|
import { appReducer } from './reducer/app' |
|
|
|
import { appReducer } from './reducer/app' |
|
|
|
import { appInitialState } from './state/app' |
|
|
|
import { appInitialState } from './state/app' |
|
|
|
|
|
|
|
|
|
|
@ -45,7 +43,10 @@ const RemixApp = (props: IRemixAppUi) => { |
|
|
|
const sidePanelRef = useRef(null) |
|
|
|
const sidePanelRef = useRef(null) |
|
|
|
const pinnedPanelRef = useRef(null) |
|
|
|
const pinnedPanelRef = useRef(null) |
|
|
|
|
|
|
|
|
|
|
|
const [appState, appStateDispatch] = useReducer(appReducer, appInitialState) |
|
|
|
const [appState, appStateDispatch] = useReducer(appReducer, { |
|
|
|
|
|
|
|
...appInitialState, |
|
|
|
|
|
|
|
showPopupPanel: !window.localStorage.getItem('did_show_popup_panel') |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
async function activateApp() { |
|
|
|
async function activateApp() { |
|
|
@ -77,6 +78,12 @@ const RemixApp = (props: IRemixAppUi) => { |
|
|
|
} |
|
|
|
} |
|
|
|
}, []) |
|
|
|
}, []) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
|
|
|
if(!appState.showPopupPanel) { |
|
|
|
|
|
|
|
window.localStorage.setItem('did_show_popup_panel', 'true') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
},[appState.showPopupPanel]) |
|
|
|
|
|
|
|
|
|
|
|
function setListeners() { |
|
|
|
function setListeners() { |
|
|
|
props.app.sidePanel.events.on('toggle', () => { |
|
|
|
props.app.sidePanel.events.on('toggle', () => { |
|
|
|
setHideSidePanel((prev) => { |
|
|
|
setHideSidePanel((prev) => { |
|
|
|