ES6 Plato on Github
Report Home
Summary Display
config/ui/config.js
Maintainability
52.75
Lines of code
55
Difficulty
4.15
Estimated Errors
0.17
Function weight
By Complexity
By SLOC
var UI = { status : { offline : { enabled : false, message : "Sorry, we're down for scheduled maintenance right now." } }, menu : { applicationTittle : "Data Portal" , isSearchVisible : true, isClosedDataVisible : true, isOpenDataVisible : true, isMySelectionVisible : true }, loginForm : { text : "Sign in with your ESRF's user account" }, investigationContainer : { isDatasetListVisible : true }, logbook : { /** Number of logbook events to display per page. EVENTS_PER_PAGE should be lower than EVENTS_PER_DOWNLOAD */ EVENTS_PER_PAGE: 100, /** Maximum number of logbook events downloaded from the server. This enables to store a larger set of events than those required for a single page thus reducing HTTP requests to the server. */ EVENTS_PER_DOWNLOAD: 300, /* the field used to sort events. Most of the time 'creationDate' is used. Possible values: 'creationDate', '_id', 'createdAt', 'updatedAt' */ SORT_EVENTS_BY: '_id', /* the order the events sorted by SORT_EVENTS_BY will be ordered. Possible values: 1 (for ascending order), -1 (for descending order)*/ SORTING_ORDER: -1, /** Tinymce editor minimum height when there is a single editor in the modal */ SINGLE_EDITOR_MIN_HEIGHT: "200px", /** Tinymce editor maximum height when there is a single editor in the modal */ SINGLE_EDITOR_MAX_HEIGHT: "808px", /** Tinymce editor minimum height when there are 2 editors in the modal */ DUAL_EDITOR_MIN_HEIGHT: "270px", /** Tinymce editor maximum height when there are 2 editors in the modal */ DUAL_EDITOR_MAX_HEIGHT: "270px", /* Default tag color used in the logbook when tag color is not set */ DEFAULT_TAG_COLOR: "#a6bded", /* Refresh event list periodically with a time interval defined by AUTOREFRESH_DELAY when new events arrived. * When it is set to false, the event list is not refreshed but the amount of new events which arriived is shown.*/ AUTOREFRESH_EVENTLIST: true, /* Time interval between requests checking whether new events arrived. (in milliseconds) */ AUTOREFRESH_DELAY: 20000, }, footer : { text : "European Synchrotron Radiation Facility" } }; export default UI;