| author | ymh <ymh.work@gmail.com> |
| Thu, 03 Aug 2017 17:33:00 +0200 | |
| changeset 134 | be36eed5e6e0 |
| parent 129 | d48946d164c6 |
| child 168 | ea92f4fe783d |
| permissions | -rw-r--r-- |
|
129
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
1 |
import { combineReducers } from 'redux-immutable'; |
|
12
48ddaa42b810
Draft implementation of sessions.
Alexandre Segura <mex.zktk@gmail.com>
parents:
3
diff
changeset
|
2 |
import { routerReducer } from 'react-router-redux'; |
| 1 | 3 |
|
|
3
3b5d37d84cfe
Some code rename and reorg + basic tests
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
4 |
import notes from './notesReducer'; |
|
62
b2514a9bcd49
migrate to redux-offline + various optimisation
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
5 |
import { sessions } from './sessionsReducer'; |
|
134
be36eed5e6e0
add menu to change current group and create a new group
ymh <ymh.work@gmail.com>
parents:
129
diff
changeset
|
6 |
import { isAuthenticated, currentUser, currentGroup, login, register, token, groups, createGroup, clientId } from './authReducer'; |
|
129
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
7 |
import { autoSubmit, online } from './miscReducer'; |
|
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
8 |
import { isSynchronizing, lastSync } from './syncReducer'; |
|
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
9 |
|
|
3
3b5d37d84cfe
Some code rename and reorg + basic tests
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
10 |
|
| 1 | 11 |
const rootReducer = combineReducers({ |
|
12
48ddaa42b810
Draft implementation of sessions.
Alexandre Segura <mex.zktk@gmail.com>
parents:
3
diff
changeset
|
12 |
sessions, |
|
48ddaa42b810
Draft implementation of sessions.
Alexandre Segura <mex.zktk@gmail.com>
parents:
3
diff
changeset
|
13 |
notes, |
|
44
3b20e2b584fe
Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents:
12
diff
changeset
|
14 |
login, |
|
89
06f609adfbf8
Add registration page.
Alexandre Segura <mex.zktk@gmail.com>
parents:
72
diff
changeset
|
15 |
register, |
|
129
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
16 |
authStatus: combineReducers({ |
|
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
17 |
token, |
|
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
18 |
currentUser, |
|
134
be36eed5e6e0
add menu to change current group and create a new group
ymh <ymh.work@gmail.com>
parents:
129
diff
changeset
|
19 |
currentGroup, |
|
129
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
20 |
isAuthenticated, |
|
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
21 |
clientId, |
|
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
22 |
lastSync |
|
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
23 |
}), |
|
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
24 |
status: combineReducers({ |
|
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
25 |
isSynchronizing, |
|
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
26 |
online |
|
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
27 |
}), |
|
12
48ddaa42b810
Draft implementation of sessions.
Alexandre Segura <mex.zktk@gmail.com>
parents:
3
diff
changeset
|
28 |
router: routerReducer, |
|
100
6fd752d98933
Introduce group creation.
Alexandre Segura <mex.zktk@gmail.com>
parents:
89
diff
changeset
|
29 |
autoSubmit, |
|
6fd752d98933
Introduce group creation.
Alexandre Segura <mex.zktk@gmail.com>
parents:
89
diff
changeset
|
30 |
groups, |
|
107
e6f85e26b08c
Confirm logout when pending requests, try to purge offline.outbox
Alexandre Segura <mex.zktk@gmail.com>
parents:
100
diff
changeset
|
31 |
createGroup, |
| 1 | 32 |
}); |
33 |
||
|
129
d48946d164c6
Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
34 |
|
| 1 | 35 |
export default rootReducer; |