export FileTree, so a plugin can have the code editor's tree
It only lists — opening is the caller's callback — so a panel that wants the editor's file list against its own directory no longer has to draw one. fofos-website is the first: it was rendering its own tree, and the editor's is the one people recognise.
This commit is contained in:
@@ -5,6 +5,9 @@ import { CodeEditorHeader } from './CodeEditorHeader';
|
|||||||
import { panelName } from '../../locales';
|
import { panelName } from '../../locales';
|
||||||
|
|
||||||
export { CodeEditorView } from './CodeEditor';
|
export { CodeEditorView } from './CodeEditor';
|
||||||
|
// The tree on its own, for a panel that wants the editor's file list against its own directory rather
|
||||||
|
// than the whole editor. It only LISTS — opening is the caller's callback.
|
||||||
|
export { FileTree } from './FileTree';
|
||||||
|
|
||||||
export const appRegistryMetas: AppRegistryMeta[] = [
|
export const appRegistryMetas: AppRegistryMeta[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export { SessionList, ChatDetailPanel } from './apps/ChatHistory';
|
|||||||
export type { SelectedSession } from './apps/ChatHistory';
|
export type { SelectedSession } from './apps/ChatHistory';
|
||||||
// The chat URL vocabulary, so the /chat screen, the panels and the server all spell a group the same way.
|
// The chat URL vocabulary, so the /chat screen, the panels and the server all spell a group the same way.
|
||||||
export { chatListPath, chatNewPath, chatSessionPath, cwdFromSplat, GROUP_SEGMENT } from './apps/ChatHistory';
|
export { chatListPath, chatNewPath, chatSessionPath, cwdFromSplat, GROUP_SEGMENT } from './apps/ChatHistory';
|
||||||
export { CodeEditorView } from './apps/CodeEditor';
|
export { CodeEditorView, FileTree } from './apps/CodeEditor';
|
||||||
|
|
||||||
// Same for /system-monitor, where the param is the scope rather than a section.
|
// Same for /system-monitor, where the param is the scope rather than a section.
|
||||||
export { DEFAULT_MONITOR_SCOPE, monitorScopePath, isMonitorScope } from './apps/SystemMonitor/shared';
|
export { DEFAULT_MONITOR_SCOPE, monitorScopePath, isMonitorScope } from './apps/SystemMonitor/shared';
|
||||||
|
|||||||
Reference in New Issue
Block a user