mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
28 lines
819 B
CoffeeScript
28 lines
819 B
CoffeeScript
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
|
|
icon: 'plugins.png'
|
|
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')
|