-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
74 additions
and
2 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,26 @@ | ||
import { IActivityBar, IActivityBarData } from '@/core/activityBar'; | ||
|
||
export class ActivityBarService implements IActivityBar { | ||
public readonly data: IActivityBarData[]; | ||
|
||
constructor(data: IActivityBarData[] = []) { | ||
this.data = data; | ||
} | ||
public onSelect(key: string, item: IActivityBarData) { | ||
} | ||
public onClick(event: React.MouseEvent, item: IActivityBarData) { | ||
|
||
} | ||
public push(data: IActivityBarData) { | ||
this.data.push(data); | ||
} | ||
public remove(index: number) { | ||
this.data.splice(index, 1); | ||
} | ||
public update() { | ||
// this.data. | ||
}; | ||
public get(id: string) { | ||
|
||
} | ||
} |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { IActivityBar } from '@/core/activityBar'; | ||
|
||
export class MoleculeService { | ||
// public sidebar: Sidebar; | ||
// public menuBar: MenuBar; | ||
// public statusBar: StatusBar; | ||
public activityBar: IActivityBar; | ||
// public panel: Panel; | ||
// public editor: Editor; | ||
// public layout: Layout; | ||
// public theme: Theme; | ||
// public iconTheme: IconTheme; | ||
// public settings: Settings; | ||
// public local: Local; | ||
// public shortcutKeys: ShortcutKeys; | ||
|
||
constructor( | ||
// sidebar: Sidebar, | ||
// menuBar: MenuBar, | ||
// statusBar: StatusBar, | ||
activityBar: IActivityBar, | ||
// editor: Editor, | ||
// panel: Panel, | ||
// layout: Layout, | ||
// theme: Theme, | ||
// iconTheme: IconTheme, | ||
// settings: Settings, | ||
// local: Local, | ||
// shortcutKeys: ShortcutKeys, | ||
) { | ||
// this.sidebar = sidebar; | ||
// this.menuBar = menuBar; | ||
// this.statusBar = statusBar; | ||
this.activityBar = activityBar; | ||
// this.panel = panel; | ||
// this.editor = editor; | ||
// this.layout = layout; | ||
// this.theme = theme; | ||
// this.iconTheme = iconTheme; | ||
// this.settings = settings; | ||
// this.local = local; | ||
// this.shortcutKeys = shortcutKeys; | ||
} | ||
}; | ||
|
||
// // TODO |
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