mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-15 06:06:35 +08:00
1c37a8b788
Summary: While working on separating send out of the sync loop, I realized sync tasks could use some cleanup to be more consistent with how we implemented syncback tasks. I reorganized and renamed things a little bit. This will also help us move in the direction of the scheduler implementation under which everything is a task. Test Plan: manual Reviewers: evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D3660
16 lines
445 B
JavaScript
16 lines
445 B
JavaScript
/* eslint global-require: 0 */
|
|
import {ComponentRegistry} from 'nylas-exports'
|
|
import {createLogger} from './src/shared/logger'
|
|
|
|
export function activate() {
|
|
global.Logger = createLogger('local-sync')
|
|
require('./src/local-api');
|
|
require('./src/local-sync-worker');
|
|
|
|
const Root = require('./src/local-sync-dashboard/root').default;
|
|
ComponentRegistry.register(Root, {role: 'Developer:LocalSyncUI'});
|
|
}
|
|
|
|
export function deactivate() {
|
|
|
|
}
|