[Enhancement] Apply immutable js. (#49)

This commit is contained in:
Qolzam
2018-04-04 10:33:15 +07:00
parent b94d2a0124
commit 9cd2672395
98 changed files with 1294 additions and 1633 deletions

View File

@@ -1,3 +1,4 @@
import { Map, fromJS, List } from 'immutable'
/**
* Global state
*
@@ -15,13 +16,10 @@ export class GlobalState {
* }}
* @memberof IGlobalState
*/
progress: {
percent: number
visible: boolean
} = {
progress = Map({
percent: 0,
visible: false
}
})
/**
* If loading is enabled {true} or not false
@@ -122,7 +120,7 @@ export class GlobalState {
* @type {*}
* @memberof IGlobalState
*/
temp: any = {
caller: []
}
temp: any = Map({
caller: List()
})
}