mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 05:41:05 +08:00
76bda1dbe4
Summary: - Add initial version of snooze and send later plugins - Tests are missing since this will probably heavily change before we are done with them Test Plan: - TODO Reviewers: drew, bengotow, evan Reviewed By: bengotow, evan Differential Revision: https://phab.nylas.com/D2578
69 lines
2.4 KiB
CoffeeScript
69 lines
2.4 KiB
CoffeeScript
_ = require 'underscore'
|
|
React = require "react"
|
|
{ComponentRegistry, WorkspaceStore} = require "nylas-exports"
|
|
|
|
{DownButton, UpButton, ThreadBulkArchiveButton, ThreadBulkTrashButton,
|
|
ThreadBulkStarButton, ThreadBulkToggleUnreadButton} = require "./thread-buttons"
|
|
{DraftDeleteButton} = require "./draft-buttons"
|
|
ThreadSelectionBar = require './thread-selection-bar'
|
|
ThreadList = require './thread-list'
|
|
|
|
DraftSelectionBar = require './draft-selection-bar'
|
|
DraftList = require './draft-list'
|
|
DraftListSendStatus = require './draft-list-send-status'
|
|
|
|
module.exports =
|
|
activate: (@state={}) ->
|
|
WorkspaceStore.defineSheet 'Drafts', {root: true},
|
|
list: ['RootSidebar', 'DraftList']
|
|
|
|
ComponentRegistry.register ThreadList,
|
|
location: WorkspaceStore.Location.ThreadList
|
|
|
|
ComponentRegistry.register ThreadSelectionBar,
|
|
location: WorkspaceStore.Location.ThreadList.Toolbar
|
|
|
|
ComponentRegistry.register DraftList,
|
|
location: WorkspaceStore.Location.DraftList
|
|
|
|
ComponentRegistry.register DraftSelectionBar,
|
|
location: WorkspaceStore.Location.DraftList.Toolbar
|
|
|
|
ComponentRegistry.register DownButton,
|
|
location: WorkspaceStore.Sheet.Thread.Toolbar.Right
|
|
modes: ['list']
|
|
|
|
ComponentRegistry.register UpButton,
|
|
location: WorkspaceStore.Sheet.Thread.Toolbar.Right
|
|
modes: ['list']
|
|
|
|
ComponentRegistry.register ThreadBulkArchiveButton,
|
|
role: 'thread:BulkAction'
|
|
|
|
ComponentRegistry.register ThreadBulkTrashButton,
|
|
role: 'thread:BulkAction'
|
|
|
|
ComponentRegistry.register ThreadBulkStarButton,
|
|
role: 'thread:BulkAction'
|
|
|
|
ComponentRegistry.register ThreadBulkToggleUnreadButton,
|
|
role: 'thread:BulkAction'
|
|
|
|
ComponentRegistry.register DraftDeleteButton,
|
|
role: 'draft:BulkAction'
|
|
|
|
ComponentRegistry.register DraftListSendStatus,
|
|
role: 'DraftList:DraftStatus'
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister DraftList
|
|
ComponentRegistry.unregister DraftSelectionBar
|
|
ComponentRegistry.unregister ThreadList
|
|
ComponentRegistry.unregister ThreadSelectionBar
|
|
ComponentRegistry.unregister ThreadBulkArchiveButton
|
|
ComponentRegistry.unregister ThreadBulkTrashButton
|
|
ComponentRegistry.unregister ThreadBulkToggleUnreadButton
|
|
ComponentRegistry.unregister DownButton
|
|
ComponentRegistry.unregister UpButton
|
|
ComponentRegistry.unregister DraftDeleteButton
|
|
ComponentRegistry.unregister DraftListSendStatus
|