mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
28 lines
793 B
Text
28 lines
793 B
Text
|
PluginsView = require "./plugins-view"
|
||
|
PluginsTabsView = require "./plugins-tabs-view"
|
||
|
|
||
|
{ComponentRegistry,
|
||
|
WorkspaceStore} = require 'nylas-exports'
|
||
|
|
||
|
module.exports =
|
||
|
|
||
|
activate: (@state={}) ->
|
||
|
WorkspaceStore.defineSheet 'Plugins', {root: true, name: 'Plugins', supportedModes: ['list']},
|
||
|
list: ['RootSidebar', 'Plugins']
|
||
|
|
||
|
@sidebarItem = new WorkspaceStore.SidebarItem
|
||
|
sheet: WorkspaceStore.Sheet.Plugins
|
||
|
id: 'Plugins'
|
||
|
name: 'Plugins'
|
||
|
section: 'Views'
|
||
|
|
||
|
WorkspaceStore.addSidebarItem(@sidebarItem)
|
||
|
|
||
|
ComponentRegistry.register PluginsView,
|
||
|
location: WorkspaceStore.Location.Plugins
|
||
|
|
||
|
deactivate: ->
|
||
|
ComponentRegistry.unregister(PluginsView)
|
||
|
ComponentRegistry.unregister(PluginsTabsView)
|
||
|
WorkspaceStore.undefineSheet('Plugins')
|