feat share: Ability to share files using Web Activities

feat pick: Ability to pick files for other apps
This commit is contained in:
Mahdi Dibaiee
2015-09-07 15:18:53 +04:30
parent dea2e7591c
commit 18652ed5dc
15 changed files with 273 additions and 55 deletions

View File

@@ -10,6 +10,7 @@ import settings from './settings';
import selectView from './select-view';
import spinner from './spinner';
import search from './search';
import pick from './pick';
export default function(state = new Immutable.Map(), action) {
console.log('action', action);
@@ -20,6 +21,7 @@ export default function(state = new Immutable.Map(), action) {
search: search(state.get('search'), action),
spinner: spinner(state.get('spinner'), action),
selectView: selectView(state.get('selectView'), action),
pick: pick(state.get('pick'), action),
activeFile: activeFile(state.get('activeFile'), action),
navigation: navigation(state.get('navigation'), action),
settings: settings(state.get('settings'), action),

9
src/js/reducers/pick.js Normal file
View File

@@ -0,0 +1,9 @@
import { PICK } from 'actions/types';
export default function(state = false, action) {
if (action.type === PICK) {
return action.active;
}
return state;
}