feat setup: Setup Redux, Immutable.js and React

feat FileList: Implement File List + changedir action
This commit is contained in:
Mahdi Dibaiee
2015-08-31 11:19:22 +04:30
parent 86113d017d
commit ee6f5d6ffb
32 changed files with 8558 additions and 1755 deletions

View File

@ -0,0 +1,8 @@
import { CHANGE_DIRECTORY } from 'actions/types';
export default function changedir(dir) {
return {
type: CHANGE_DIRECTORY,
dir
};
}

View File

@ -0,0 +1,8 @@
import { LIST_FILES } from 'actions/types';
export default function listFiles(files) {
return {
type: LIST_FILES,
files
};
}

9
src/js/actions/types.js Normal file
View File

@ -0,0 +1,9 @@
const TYPES = {
CHANGE_DIRECTORY: Symbol(),
LIST_FILES: Symbol(),
SORT: Symbol(),
SEARCH: Symbol(),
REFRESH: Symbol()
};
export default TYPES;