client/src/constants/actionTypes.js
author ymh <ymh.work@gmail.com>
Mon, 26 Jun 2017 16:05:47 +0200
changeset 88 2a861fed6bde
parent 87 dbcee57de2c6
child 89 06f609adfbf8
permissions -rw-r--r--
Deauthenticate user if refresh was not possible (session expired or total delta reached)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
66
f402435be429 Action types cleaning
ymh <ymh.work@gmail.com>
parents: 53
diff changeset
     1
export const NOOP = 'NOOP';
f402435be429 Action types cleaning
ymh <ymh.work@gmail.com>
parents: 53
diff changeset
     2
12
48ddaa42b810 Draft implementation of sessions.
Alexandre Segura <mex.zktk@gmail.com>
parents: 3
diff changeset
     3
export const ADD_NOTE = 'ADD_NOTE';
79
772b73e31069 Introduce note editing, allow deleting note.
Alexandre Segura <mex.zktk@gmail.com>
parents: 72
diff changeset
     4
export const DELETE_NOTE = 'DELETE_NOTE';
80
b3a02ea6d097 Implement note edition.
Alexandre Segura <mex.zktk@gmail.com>
parents: 79
diff changeset
     5
export const UPDATE_NOTE = 'UPDATE_NOTE';
29
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
     6
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
     7
export const CREATE_SESSION = 'CREATE_SESSION';
12
48ddaa42b810 Draft implementation of sessions.
Alexandre Segura <mex.zktk@gmail.com>
parents: 3
diff changeset
     8
export const UPDATE_SESSION = 'UPDATE_SESSION';
29
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
     9
export const LOAD_SESSIONS = 'LOAD_SESSIONS';
44
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    10
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    11
export const AUTH_LOGIN_SUBMIT = 'AUTH_LOGIN_SUBMIT';
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    12
export const AUTH_LOGIN_REQUEST = 'AUTH_LOGIN_REQUEST';
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    13
export const AUTH_LOGIN_SUCCESS = 'AUTH_LOGIN_SUCCESS';
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    14
export const AUTH_LOGIN_ERROR = 'AUTH_LOGIN_ERROR';
47
64428c7ebc19 Store token & user.
Alexandre Segura <mex.zktk@gmail.com>
parents: 44
diff changeset
    15
export const AUTH_STORE_TOKEN_ASYNC = 'AUTH_STORE_TOKEN_ASYNC';
64428c7ebc19 Store token & user.
Alexandre Segura <mex.zktk@gmail.com>
parents: 44
diff changeset
    16
export const AUTH_STORE_TOKEN = 'AUTH_STORE_TOKEN';
52
96f8a4a59bd9 Implement logout.
Alexandre Segura <mex.zktk@gmail.com>
parents: 47
diff changeset
    17
export const AUTH_LOGOUT = 'AUTH_LOGOUT';
88
2a861fed6bde Deauthenticate user if refresh was not possible (session expired or total delta reached)
ymh <ymh.work@gmail.com>
parents: 87
diff changeset
    18
export const AUTH_DEAUTHENTICATE = 'AUTH_DEAUTHENTICATE';
53
d8588379529e Add settings page.
Alexandre Segura <mex.zktk@gmail.com>
parents: 52
diff changeset
    19
d8588379529e Add settings page.
Alexandre Segura <mex.zktk@gmail.com>
parents: 52
diff changeset
    20
export const USER_UPDATE_SETTINGS_ASYNC = 'USER_UPDATE_SETTINGS_ASYNC';
d8588379529e Add settings page.
Alexandre Segura <mex.zktk@gmail.com>
parents: 52
diff changeset
    21
export const USER_UPDATE_SETTINGS = 'USER_UPDATE_SETTINGS'
72
7634b424f426 Add checkbox to add not on enter key.
Alexandre Segura <mex.zktk@gmail.com>
parents: 66
diff changeset
    22
export const USER_TOGGLE_AUTO_SUBMIT = 'USER_TOGGLE_AUTO_SUBMIT';
87
dbcee57de2c6 Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents: 80
diff changeset
    23
dbcee57de2c6 Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents: 80
diff changeset
    24
export const DATA_FETCH_SUCCESS = 'DATA_FETCH_SUCCESS';
dbcee57de2c6 Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents: 80
diff changeset
    25
export const OFFLINE_CONFIG_INITIALIZED ='OFFLINE_CONFIG_INITIALIZED';