forked from DTStack/molecule
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: exporting controllers instances from controller/index.ts
Extracting the view controller instances into a common file. re DTStack#52
- Loading branch information
Showing
6 changed files
with
25 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { container } from 'tsyringe'; | ||
import { ActivityBarController } from './activityBar'; | ||
import { EditorController } from './editor'; | ||
import { ExplorerController } from './explorer/explorer'; | ||
import { FolderTreeController } from './explorer/folderTree'; | ||
import { MenuBarController } from './menuBar'; | ||
import { PanelController } from './panel'; | ||
import { SettingsController } from './settings'; | ||
import { SidebarController } from './sidebar'; | ||
import { StatusBarController } from './statusBar'; | ||
|
||
export const activityBarController = container.resolve(ActivityBarController); | ||
export const editorController = container.resolve(EditorController); | ||
export const menuBarController = container.resolve(MenuBarController); | ||
export const panelController = container.resolve(PanelController); | ||
export const sidebarController = container.resolve(SidebarController); | ||
export const explorerController = container.resolve(ExplorerController); | ||
export const statusBarController = container.resolve(StatusBarController); | ||
export const settingsController = container.resolve(SettingsController); | ||
export const folderTreeController = container.resolve(FolderTreeController); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
import { connect, panelService } from 'mo'; | ||
import { PanelController } from 'mo/controller/panel'; | ||
import { container } from 'tsyringe'; | ||
import { panelController } from 'mo/controller'; | ||
import Panel from './panel'; | ||
|
||
const panelController = container.resolve(PanelController); | ||
|
||
const PanelView = connect(panelService, Panel, panelController); | ||
|
||
export { PanelView }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters