mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-14 03:59:02 +08:00
27 lines
1.3 KiB
JavaScript
27 lines
1.3 KiB
JavaScript
/* eslint no-unused-vars:0 */
|
|
|
|
import {ComponentRegistry, WorkspaceStore} from 'nylas-exports';
|
|
import ActivitySidebar from "./sidebar/activity-sidebar";
|
|
import NotificationStore from './notifications-store';
|
|
import ConnectionStatusHeader from './headers/connection-status-header';
|
|
import AccountErrorHeader from './headers/account-error-header';
|
|
import NotificationsHeader from "./headers/notifications-header";
|
|
import TrialRemainingBlock from "./sidebar/trial-remaining-block";
|
|
|
|
export function activate() {
|
|
ComponentRegistry.register(ActivitySidebar, {location: WorkspaceStore.Location.RootSidebar});
|
|
ComponentRegistry.register(NotificationsHeader, {location: WorkspaceStore.Sheet.Global.Header});
|
|
ComponentRegistry.register(ConnectionStatusHeader, {location: WorkspaceStore.Sheet.Global.Header});
|
|
ComponentRegistry.register(AccountErrorHeader, {location: WorkspaceStore.Sheet.Threads.Header});
|
|
ComponentRegistry.register(TrialRemainingBlock, {location: WorkspaceStore.Location.RootSidebar});
|
|
}
|
|
|
|
export function serialize() {}
|
|
|
|
export function deactivate() {
|
|
ComponentRegistry.unregister(ActivitySidebar);
|
|
ComponentRegistry.unregister(NotificationsHeader);
|
|
ComponentRegistry.unregister(ConnectionStatusHeader);
|
|
ComponentRegistry.unregister(AccountErrorHeader);
|
|
ComponentRegistry.unregister(TrialRemainingBlock);
|
|
}
|