mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-22 16:09:14 +08:00
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
import {
|
|
ComponentRegistry,
|
|
ExtensionRegistry,
|
|
} from 'nylas-exports';
|
|
import {HasTutorialTip} from 'nylas-component-kit';
|
|
|
|
import LinkTrackingButton from './link-tracking-button';
|
|
import LinkTrackingComposerExtension from './link-tracking-composer-extension';
|
|
import LinkTrackingMessageExtension from './link-tracking-message-extension';
|
|
|
|
const LinkTrackingButtonWithTutorialTip = HasTutorialTip(LinkTrackingButton, {
|
|
title: "Track links in this email",
|
|
instructions: "When link tracking is turned on, Mailspring will notify you when recipients click links in this email.",
|
|
});
|
|
|
|
export function activate() {
|
|
ComponentRegistry.register(LinkTrackingButtonWithTutorialTip, {
|
|
role: 'Composer:ActionButton',
|
|
});
|
|
|
|
ExtensionRegistry.Composer.register(LinkTrackingComposerExtension);
|
|
|
|
ExtensionRegistry.MessageView.register(LinkTrackingMessageExtension);
|
|
}
|
|
|
|
export function serialize() {}
|
|
|
|
export function deactivate() {
|
|
ComponentRegistry.unregister(LinkTrackingButtonWithTutorialTip);
|
|
ExtensionRegistry.Composer.unregister(LinkTrackingComposerExtension);
|
|
ExtensionRegistry.MessageView.unregister(LinkTrackingMessageExtension);
|
|
}
|