2015-09-22 02:36:54 +08:00
|
|
|
_ = require 'underscore-plus'
|
2015-09-25 09:58:53 +08:00
|
|
|
GithubContactCardSection = require "./github-contact-card-section"
|
2015-09-22 02:36:54 +08:00
|
|
|
{ComponentRegistry,
|
|
|
|
WorkspaceStore} = require "nylas-exports"
|
|
|
|
|
|
|
|
module.exports =
|
|
|
|
# Activate is called when the package is loaded. If your package previously
|
|
|
|
# saved state using `serialize` it is provided.
|
|
|
|
#
|
|
|
|
activate: (@state={}) ->
|
|
|
|
# Register our sidebar so that it appears in the Message List sidebar.
|
|
|
|
# This sidebar is to the right of the Message List in both split pane mode
|
|
|
|
# and list mode.
|
2015-09-25 09:58:53 +08:00
|
|
|
ComponentRegistry.register GithubContactCardSection,
|
|
|
|
role: "MessageListSidebar:ContactCard"
|
2015-09-22 02:36:54 +08:00
|
|
|
|
|
|
|
# Serialize is called when your package is about to be unmounted.
|
|
|
|
# You can return a state object that will be passed back to your package
|
|
|
|
# when it is re-activated.
|
|
|
|
#
|
|
|
|
serialize: ->
|
|
|
|
|
|
|
|
# This **optional** method is called when the window is shutting down,
|
|
|
|
# or when your package is being updated or disabled. If your package is
|
|
|
|
# watching any files, holding external resources, providing commands or
|
|
|
|
# subscribing to events, release them here.
|
|
|
|
#
|
|
|
|
deactivate: ->
|
|
|
|
# Unregister our component
|
2015-09-25 09:58:53 +08:00
|
|
|
ComponentRegistry.unregister(GithubContactCardSection)
|