2016-04-01 06:52:03 +08:00
|
|
|
import Reflux from 'reflux';
|
2015-06-03 10:04:21 +08:00
|
|
|
|
2016-04-01 06:52:03 +08:00
|
|
|
const Actions = Reflux.createActions([
|
2015-06-03 10:04:21 +08:00
|
|
|
'selectTabIndex',
|
2016-04-01 06:52:03 +08:00
|
|
|
'setInstalledSearchValue',
|
2015-06-03 10:04:21 +08:00
|
|
|
'setGlobalSearchValue',
|
|
|
|
|
|
|
|
'disablePackage',
|
|
|
|
'enablePackage',
|
|
|
|
'installPackage',
|
2016-04-01 06:52:03 +08:00
|
|
|
'installNewPackage',
|
2015-06-03 10:04:21 +08:00
|
|
|
'uninstallPackage',
|
|
|
|
'createPackage',
|
|
|
|
'reloadPackage',
|
|
|
|
'showPackage',
|
|
|
|
'updatePackage',
|
|
|
|
|
|
|
|
'refreshFeaturedPackages',
|
|
|
|
'refreshInstalledPackages',
|
2016-04-01 06:52:03 +08:00
|
|
|
]);
|
2015-06-03 10:04:21 +08:00
|
|
|
|
2016-05-07 07:06:16 +08:00
|
|
|
for (const key of Object.keys(Actions)) {
|
|
|
|
Actions[key].sync = true;
|
2016-04-01 06:52:03 +08:00
|
|
|
}
|
2015-06-03 10:04:21 +08:00
|
|
|
|
2016-04-01 06:52:03 +08:00
|
|
|
export default Actions;
|