ES6 Plato on Github
Report Home
Summary Display
constants/EventTypes.js
Maintainability
54.58
Lines of code
34
Difficulty
2.55
Estimated Errors
0.28
Function weight
By Complexity
By SLOC
/* Constants mapping the corresponding concepts as they are stored in the DB */ export const ANNOTATION = 'annotation'; export const NOTIFICATION = 'notification'; export const EVENT_CATEGORY_COMMENT = 'comment'; export const LIST_VIEW = 'list'; export const DOC_VIEW = 'doc'; export const NEW_EVENT_VISIBLE = 'newEventExpanded'; export const NEW_EVENT_INVISIBLE = 'newEventCollapsed'; export const SORT_EVENTS_FROM_YOUNGEST = -1; export const SORT_EVENTS_FROM_OLDEST = 1; export const READ_MODE = 'event in basic read mode'; export const EDIT_MODE = 'event in edition mode'; export const BASIC_EVENT_CONTEXT = 'basicEventContext'; export const DETAILED_EVENT_CONTEXT = 'detailedEventContext'; export const NEW_EVENT_CONTEXT = 'newEventContext'; export const EVENT_HISTORY_ORIGINAL_VERSION_CONTEXT = 'eventHistoryOriginalVersionContext'; export const EVENT_HISTORY_LATEST_VERSION_CONTEXT = 'eventHistoryLatestVersionContext'; export const EVENT_HISTORY_MIDDLE_VERSION_CONTEXT = 'eventHistoryNotOriginalAndNotLatestVersionContext'; export const TAG_MANAGER_CONTEXT = 'tagManagerContext'; export const TAG_EDITOR_CONTEXT = 'tagEditorContext'; export const TAG_CREATOR_CONTEXT = 'tagCreatorContext'; export const INFO_MESSAGE_TYPE = 'info'; export const ERROR_MESSAGE_TYPE = 'error'; /* Constants used to manage data reception status. To be Applied to all kind of data. */ export const FETCHED_STATUS = 'dataFetchedSuccessfully'; export const FETCHING_STATUS = 'dataBeingFetched';