|
|
@@ -8,10 +8,10 @@ const MODEL_COMMENT = 'Comment';
|
|
|
|
|
|
// Action
|
|
|
const ACTION_UNSETTLED = 'UNSETTLED';
|
|
|
-const ACTION_REGISTRATION_SUCCESS = 'REGISTRATION_SUCCESS';
|
|
|
-const ACTION_LOGIN_SUCCESS = 'LOGIN_SUCCESS';
|
|
|
-const ACTION_LOGIN_FAILURE = 'LOGIN_FAILURE';
|
|
|
-const ACTION_LOGOUT = 'LOGOUT';
|
|
|
+const ACTION_USER_REGISTRATION_SUCCESS = 'USER_REGISTRATION_SUCCESS';
|
|
|
+const ACTION_USER_LOGIN_SUCCESS = 'USER_LOGIN_SUCCESS';
|
|
|
+const ACTION_USER_LOGIN_FAILURE = 'USER_LOGIN_FAILURE';
|
|
|
+const ACTION_USER_LOGOUT = 'USER_LOGOUT';
|
|
|
const ACTION_USER_PERSONAL_SETTINGS_UPDATE = 'USER_PERSONAL_SETTINGS_UPDATE';
|
|
|
const ACTION_USER_IMAGE_TYPE_UPDATE = 'USER_IMAGE_TYPE_UPDATE';
|
|
|
const ACTION_USER_LDAP_ACCOUNT_ASSOCIATE = 'USER_LDAP_ACCOUNT_ASSOCIATE';
|
|
|
@@ -73,15 +73,15 @@ export const SupportedActionCategory = {
|
|
|
PAGE: 'Page',
|
|
|
COMMENT: 'Comment',
|
|
|
USER: 'User',
|
|
|
- ADMIN: 'Admin'
|
|
|
+ ADMIN: 'Admin',
|
|
|
} as const;
|
|
|
|
|
|
export const SupportedAction = {
|
|
|
ACTION_UNSETTLED,
|
|
|
- ACTION_REGISTRATION_SUCCESS,
|
|
|
- ACTION_LOGIN_SUCCESS,
|
|
|
- ACTION_LOGIN_FAILURE,
|
|
|
- ACTION_LOGOUT,
|
|
|
+ ACTION_USER_REGISTRATION_SUCCESS,
|
|
|
+ ACTION_USER_LOGIN_SUCCESS,
|
|
|
+ ACTION_USER_LOGIN_FAILURE,
|
|
|
+ ACTION_USER_LOGOUT,
|
|
|
ACTION_USER_PERSONAL_SETTINGS_UPDATE,
|
|
|
ACTION_USER_IMAGE_TYPE_UPDATE,
|
|
|
ACTION_USER_LDAP_ACCOUNT_ASSOCIATE,
|
|
|
@@ -151,9 +151,9 @@ export const ActionGroupSize = {
|
|
|
} as const;
|
|
|
|
|
|
export const SmallActionGroup = {
|
|
|
- ACTION_LOGIN_SUCCESS,
|
|
|
- ACTION_LOGIN_FAILURE,
|
|
|
- ACTION_LOGOUT,
|
|
|
+ ACTION_USER_LOGIN_SUCCESS,
|
|
|
+ ACTION_USER_LOGIN_FAILURE,
|
|
|
+ ACTION_USER_LOGOUT,
|
|
|
ACTION_PAGE_CREATE,
|
|
|
ACTION_PAGE_DELETE,
|
|
|
} as const;
|
|
|
@@ -233,7 +233,7 @@ const userRegExp = new RegExp(`^${SupportedActionCategory.USER.toUpperCase()}_`)
|
|
|
const adminRegExp = new RegExp(`^${SupportedActionCategory.ADMIN.toUpperCase()}_`);
|
|
|
|
|
|
export const PageActions = AllSupportedActions.filter(action => action.match(pageRegExp));
|
|
|
-export const CommentActions = AllSupportedActions.filter(action => action.match(commentRegExp));
|
|
|
+export const CommentActions = AllSupportedActions.filter(action => action.match(commentRegExp));
|
|
|
export const UserActions = AllSupportedActions.filter(action => action.match(userRegExp));
|
|
|
export const AdminActions = AllSupportedActions.filter(action => action.match(adminRegExp));
|
|
|
|