|
|
@ -1,7 +1,7 @@ |
|
|
|
import { extractParentFromKey } from '@remix-ui/helper' |
|
|
|
import { extractParentFromKey } from '@remix-ui/helper' |
|
|
|
import React from 'react' |
|
|
|
import React from 'react' |
|
|
|
import { action } from '../types' |
|
|
|
import { action } from '../types' |
|
|
|
import { displayNotification, displayPopUp, fileAddedSuccess, fileRemovedSuccess, fileRenamedSuccess, folderAddedSuccess, loadLocalhostError, loadLocalhostRequest, loadLocalhostSuccess, removeContextMenuItem, rootFolderChangedSuccess, setContextMenuItem, setMode, setReadOnlyMode } from './payload' |
|
|
|
import { displayNotification, displayPopUp, fileAddedSuccess, fileRemovedSuccess, fileRenamedSuccess, folderAddedSuccess, loadLocalhostError, loadLocalhostRequest, loadLocalhostSuccess, removeContextMenuItem, removeFocus, rootFolderChangedSuccess, setContextMenuItem, setMode, setReadOnlyMode } from './payload' |
|
|
|
import { addInputField, createWorkspace, deleteWorkspace, fetchWorkspaceDirectory, renameWorkspace, switchToWorkspace, uploadFile } from './workspace' |
|
|
|
import { addInputField, createWorkspace, deleteWorkspace, fetchWorkspaceDirectory, renameWorkspace, switchToWorkspace, uploadFile } from './workspace' |
|
|
|
|
|
|
|
|
|
|
|
const LOCALHOST = ' - connect to localhost - ' |
|
|
|
const LOCALHOST = ' - connect to localhost - ' |
|
|
@ -45,6 +45,10 @@ export const listenOnPluginEvents = (filePanelPlugin) => { |
|
|
|
plugin.on('fileManager', 'rootFolderChanged', async (path: string) => { |
|
|
|
plugin.on('fileManager', 'rootFolderChanged', async (path: string) => { |
|
|
|
rootFolderChanged(path) |
|
|
|
rootFolderChanged(path) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin.on('fileManager', 'fileClosed', async (file: string) => { |
|
|
|
|
|
|
|
dispatch(removeFocus(file)) |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export const listenOnProviderEvents = (provider) => (reducerDispatch: React.Dispatch<any>) => { |
|
|
|
export const listenOnProviderEvents = (provider) => (reducerDispatch: React.Dispatch<any>) => { |
|
|
|