mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-23 08:46:07 +08:00
35 lines
1,007 B
Plaintext
35 lines
1,007 B
Plaintext
|
FileFrame = require "./file-frame"
|
||
|
FileList = require './file-list'
|
||
|
FileSelectionBar = require './file-selection-bar'
|
||
|
{ComponentRegistry,
|
||
|
WorkspaceStore} = require 'inbox-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
|
||
|
view: FileList
|
||
|
name: 'FileList'
|
||
|
location: WorkspaceStore.Location.FileList
|
||
|
|
||
|
ComponentRegistry.register
|
||
|
view: FileSelectionBar
|
||
|
name: 'FileSelectionBar'
|
||
|
location: WorkspaceStore.Location.FileList.Toolbar
|
||
|
|
||
|
ComponentRegistry.register
|
||
|
name: 'FileFrame'
|
||
|
view: FileFrame
|
||
|
location: WorkspaceStore.Location.File
|
||
|
|
||
|
deactivate: ->
|
||
|
ComponentRegistry.unregister 'FileSelectionBar'
|
||
|
ComponentRegistry.unregister 'FileList'
|
||
|
ComponentRegistry.unregister 'FileFrame'
|