mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-13 21:24:58 +08:00
45ef25fc02
Summary: Adds new redesigned preferences with horizontal tab bar and refactored code. Converts Preferences, Plugins, and a few components to ES6. Test Plan: Tested locally. Reviewers: evan, bengotow Reviewed By: bengotow Subscribers: juan Differential Revision: https://phab.nylas.com/D2818
28 lines
515 B
JavaScript
28 lines
515 B
JavaScript
import Reflux from 'reflux';
|
|
|
|
const Actions = Reflux.createActions([
|
|
'selectTabIndex',
|
|
'setInstalledSearchValue',
|
|
'setGlobalSearchValue',
|
|
|
|
'disablePackage',
|
|
'enablePackage',
|
|
'installPackage',
|
|
'installNewPackage',
|
|
'uninstallPackage',
|
|
'createPackage',
|
|
'reloadPackage',
|
|
'showPackage',
|
|
'updatePackage',
|
|
|
|
'refreshFeaturedPackages',
|
|
'refreshInstalledPackages',
|
|
]);
|
|
|
|
for (const key in Actions) {
|
|
if (Actions.hasOwnProperty(key)) {
|
|
Actions[key].sync = true;
|
|
}
|
|
}
|
|
|
|
export default Actions;
|