2015-10-04 09:11:29 +08:00
|
|
|
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
|
2015-10-04 14:34:43 +08:00
|
|
|
icon: 'plugins.png'
|
|
|
|
id: 'plugins'
|
2015-10-04 09:11:29 +08:00
|
|
|
name: 'Plugins'
|
|
|
|
section: 'Views'
|
|
|
|
|
|
|
|
WorkspaceStore.addSidebarItem(@sidebarItem)
|
|
|
|
|
|
|
|
ComponentRegistry.register PluginsView,
|
|
|
|
location: WorkspaceStore.Location.Plugins
|
|
|
|
|
|
|
|
deactivate: ->
|
|
|
|
ComponentRegistry.unregister(PluginsView)
|
|
|
|
ComponentRegistry.unregister(PluginsTabsView)
|
|
|
|
WorkspaceStore.undefineSheet('Plugins')
|