feat(archive): ability to archive / extract files in zip format
fix(selectview): clear active files when user taps on select-view button in toolbar resolve #10 resolve #12
This commit is contained in:
15
src/js/actions/compress.js
Normal file
15
src/js/actions/compress.js
Normal file
@ -0,0 +1,15 @@
|
||||
import { COMPRESS, DECOMPRESS } from './types';
|
||||
|
||||
export function compress(file) {
|
||||
return {
|
||||
type: COMPRESS,
|
||||
file
|
||||
}
|
||||
}
|
||||
|
||||
export function decompress(file) {
|
||||
return {
|
||||
type: DECOMPRESS,
|
||||
file
|
||||
}
|
||||
}
|
@ -9,6 +9,9 @@ const TYPES = {
|
||||
REFRESH: Symbol('REFRESH'),
|
||||
SORT: Symbol('SORT'),
|
||||
|
||||
COMPRESS: Symbol('COMPRESS'),
|
||||
DECOMPRESS: Symbol('DECOMPRESS'),
|
||||
|
||||
NEW_FILE: Symbol('NEW_FILE'),
|
||||
CREATE_FILE: Symbol('CREATE_FILE'),
|
||||
SHARE_FILE: Symbol('SHARE_FILE'),
|
||||
|
Reference in New Issue
Block a user