Mailspring/internal_packages/file-list/lib/main.cjsx
Ben Gotow a3b45cf33a feature(package-management): Package management interface, APM integration
Summary:
Update a few more packages to deactivate properly

Miscelaneous fixes

Initial commit of new settings package

WIP

WIP - can load and unload and install / uninstall

Click to create new boilerplate package, package updating

Test Plan: Run tests

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D1582
2015-06-02 19:04:21 -07:00

30 lines
976 B
CoffeeScript

FileFrame = require "./file-frame"
FileList = require './file-list'
FileSelectionBar = require './file-selection-bar'
{ComponentRegistry,
WorkspaceStore} = require 'nylas-exports'
module.exports =
activate: (@state={}) ->
WorkspaceStore.defineSheet 'Files', {root: true, supportedModes: ['list'], name: 'Files'},
list: ['RootSidebar', 'FileList']
WorkspaceStore.defineSheet 'File', {supportedModes: ['list']},
list: ['File']
ComponentRegistry.register FileList,
location: WorkspaceStore.Location.FileList
ComponentRegistry.register FileSelectionBar,
location: WorkspaceStore.Location.FileList.Toolbar
ComponentRegistry.register FileFrame,
location: WorkspaceStore.Location.File
deactivate: ->
ComponentRegistry.unregister(FileList)
ComponentRegistry.unregister(FileSelectionBar)
ComponentRegistry.unregister(FileFrame)
WorkspaceStore.undefineSheet('Files')
WorkspaceStore.undefineSheet('File')