client/src/constants/actionTypes.js
author ymh <ymh.work@gmail.com>
Tue, 29 Mar 2022 11:23:56 +0200
changeset 211 244a90638e80
parent 199 c78d579f4b55
permissions -rw-r--r--
Added tag 0.2.3 for changeset 3de92ddba2de
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';
124
c77570164050 implement soft delete and indicator that session and notes have been modiied
ymh <ymh.work@gmail.com>
parents: 107
diff changeset
     5
export const DO_DELETE_NOTE = 'DO_DELETE_NOTE';
132
906a6c7c7943 add group to sync + create groups + various component cleaning
ymh <ymh.work@gmail.com>
parents: 130
diff changeset
     6
export const DO_DELETE_ALL_NOTE = 'DO_DELETE_ALL_NOTE';
80
b3a02ea6d097 Implement note edition.
Alexandre Segura <mex.zktk@gmail.com>
parents: 79
diff changeset
     7
export const UPDATE_NOTE = 'UPDATE_NOTE';
129
d48946d164c6 Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents: 124
diff changeset
     8
export const RESET_ACTION_NOTE = 'RESET_ACTION_NOTE';
d48946d164c6 Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents: 124
diff changeset
     9
export const LOAD_NOTE = 'LOAD_NOTE';
29
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
    10
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
    11
export const CREATE_SESSION = 'CREATE_SESSION';
12
48ddaa42b810 Draft implementation of sessions.
Alexandre Segura <mex.zktk@gmail.com>
parents: 3
diff changeset
    12
export const UPDATE_SESSION = 'UPDATE_SESSION';
93
469da13402e2 Allow to delete session.
Alexandre Segura <mex.zktk@gmail.com>
parents: 90
diff changeset
    13
export const DELETE_SESSION = 'DELETE_SESSION';
124
c77570164050 implement soft delete and indicator that session and notes have been modiied
ymh <ymh.work@gmail.com>
parents: 107
diff changeset
    14
export const DO_DELETE_SESSION = 'DO_DELETE_SESSION';
132
906a6c7c7943 add group to sync + create groups + various component cleaning
ymh <ymh.work@gmail.com>
parents: 130
diff changeset
    15
export const DO_DELETE_ALL_SESSION = 'DO_DELETE_ALL_SESSION';
29
4cfeabef7d5e Store data in PouchDB.
Alexandre Segura <mex.zktk@gmail.com>
parents: 12
diff changeset
    16
export const LOAD_SESSIONS = 'LOAD_SESSIONS';
129
d48946d164c6 Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents: 124
diff changeset
    17
export const LOAD_SESSION = 'LOAD_SESSION';
d48946d164c6 Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents: 124
diff changeset
    18
export const RESET_ACTION_SESSION = 'RESET_ACTION_SESSION';
44
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    19
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    20
export const AUTH_LOGIN_SUBMIT = 'AUTH_LOGIN_SUBMIT';
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    21
export const AUTH_LOGIN_REQUEST = 'AUTH_LOGIN_REQUEST';
3b20e2b584fe Introduce authentication through API.
Alexandre Segura <mex.zktk@gmail.com>
parents: 30
diff changeset
    22
export const AUTH_LOGIN_ERROR = 'AUTH_LOGIN_ERROR';
89
06f609adfbf8 Add registration page.
Alexandre Segura <mex.zktk@gmail.com>
parents: 88
diff changeset
    23
06f609adfbf8 Add registration page.
Alexandre Segura <mex.zktk@gmail.com>
parents: 88
diff changeset
    24
export const AUTH_REGISTER_SUBMIT = 'AUTH_REGISTER_SUBMIT';
06f609adfbf8 Add registration page.
Alexandre Segura <mex.zktk@gmail.com>
parents: 88
diff changeset
    25
export const AUTH_REGISTER_REQUEST = 'AUTH_REGISTER_REQUEST';
06f609adfbf8 Add registration page.
Alexandre Segura <mex.zktk@gmail.com>
parents: 88
diff changeset
    26
export const AUTH_REGISTER_ERROR = 'AUTH_REGISTER_ERROR';
06f609adfbf8 Add registration page.
Alexandre Segura <mex.zktk@gmail.com>
parents: 88
diff changeset
    27
199
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 135
diff changeset
    28
export const AUTH_RESET_SUBMIT = 'AUTH_RESET_SUBMIT';
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 135
diff changeset
    29
export const AUTH_RESET_REQUEST = 'AUTH_RESET_REQUEST';
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 135
diff changeset
    30
export const AUTH_RESET_ERROR = 'AUTH_RESET_ERROR';
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 135
diff changeset
    31
90
990f2c928b15 Improve login errors.
Alexandre Segura <mex.zktk@gmail.com>
parents: 89
diff changeset
    32
// Used both by login & register
990f2c928b15 Improve login errors.
Alexandre Segura <mex.zktk@gmail.com>
parents: 89
diff changeset
    33
export const AUTH_LOGIN_SUCCESS = 'AUTH_LOGIN_SUCCESS';
990f2c928b15 Improve login errors.
Alexandre Segura <mex.zktk@gmail.com>
parents: 89
diff changeset
    34
129
d48946d164c6 Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents: 124
diff changeset
    35
export const STATUS_ONLINE = 'STATUS_ONLINE';
d48946d164c6 Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents: 124
diff changeset
    36
export const STATUS_OFFLINE = 'STATUS_OFFLINE';
d48946d164c6 Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents: 124
diff changeset
    37
47
64428c7ebc19 Store token & user.
Alexandre Segura <mex.zktk@gmail.com>
parents: 44
diff changeset
    38
export const AUTH_STORE_TOKEN_ASYNC = 'AUTH_STORE_TOKEN_ASYNC';
64428c7ebc19 Store token & user.
Alexandre Segura <mex.zktk@gmail.com>
parents: 44
diff changeset
    39
export const AUTH_STORE_TOKEN = 'AUTH_STORE_TOKEN';
52
96f8a4a59bd9 Implement logout.
Alexandre Segura <mex.zktk@gmail.com>
parents: 47
diff changeset
    40
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
    41
export const AUTH_DEAUTHENTICATE = 'AUTH_DEAUTHENTICATE';
53
d8588379529e Add settings page.
Alexandre Segura <mex.zktk@gmail.com>
parents: 52
diff changeset
    42
100
6fd752d98933 Introduce group creation.
Alexandre Segura <mex.zktk@gmail.com>
parents: 93
diff changeset
    43
export const GROUP_CREATE_ASYNC = 'GROUP_CREATE_ASYNC';
6fd752d98933 Introduce group creation.
Alexandre Segura <mex.zktk@gmail.com>
parents: 93
diff changeset
    44
export const GROUP_CREATE_SUCCESS = 'GROUP_CREATE_SUCCESS';
6fd752d98933 Introduce group creation.
Alexandre Segura <mex.zktk@gmail.com>
parents: 93
diff changeset
    45
export const GROUP_CREATE_ERROR = 'GROUP_CREATE_ERROR';
134
be36eed5e6e0 add menu to change current group and create a new group
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    46
export const GROUP_SET_GROUP = 'GROUP_SET_GROUP';
100
6fd752d98933 Introduce group creation.
Alexandre Segura <mex.zktk@gmail.com>
parents: 93
diff changeset
    47
101
e165aa89ac82 Add group dropdown, update session after group creation.
Alexandre Segura <mex.zktk@gmail.com>
parents: 100
diff changeset
    48
export const GROUP_LOAD_ASYNC = 'GROUP_LOAD_ASYNC';
e165aa89ac82 Add group dropdown, update session after group creation.
Alexandre Segura <mex.zktk@gmail.com>
parents: 100
diff changeset
    49
export const GROUP_LOAD_SUCCESS = 'GROUP_LOAD_SUCCESS';
e165aa89ac82 Add group dropdown, update session after group creation.
Alexandre Segura <mex.zktk@gmail.com>
parents: 100
diff changeset
    50
export const GROUP_LOAD_ERROR = 'GROUP_LOAD_ERROR';
e165aa89ac82 Add group dropdown, update session after group creation.
Alexandre Segura <mex.zktk@gmail.com>
parents: 100
diff changeset
    51
53
d8588379529e Add settings page.
Alexandre Segura <mex.zktk@gmail.com>
parents: 52
diff changeset
    52
export const USER_UPDATE_SETTINGS_ASYNC = 'USER_UPDATE_SETTINGS_ASYNC';
d8588379529e Add settings page.
Alexandre Segura <mex.zktk@gmail.com>
parents: 52
diff changeset
    53
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
    54
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
    55
dbcee57de2c6 Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents: 80
diff changeset
    56
export const DATA_FETCH_SUCCESS = 'DATA_FETCH_SUCCESS';
129
d48946d164c6 Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents: 124
diff changeset
    57
d48946d164c6 Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents: 124
diff changeset
    58
export const SYNC_DO_SYNC = 'SYNC_DO_SYNC';
130
78246db1cbac make synchronization recurent, improve synchronization status display
ymh <ymh.work@gmail.com>
parents: 129
diff changeset
    59
export const SYNC_START_SYNC = 'SYNC_START_SYNC';
129
d48946d164c6 Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents: 124
diff changeset
    60
export const SYNC_END_SYNC = 'SYNC_END_SYNC';
d48946d164c6 Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents: 124
diff changeset
    61
export const SYNC_SET_LAST_SYNC = 'SYNC_SET_LAST_SYNC';
d48946d164c6 Add a first version of synchronisation
ymh <ymh.work@gmail.com>
parents: 124
diff changeset
    62
export const SYNC_RESET_ALL = 'SYNC_RESET_ALL';