ES6 Plato on Github
Report Home
Summary Display
config/gui.config.js
Maintainability
71.36
Lines of code
33
Difficulty
3.00
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
/** * gui.config.js * GUI configuration file */ export function GUI_CONFIG() { return { /** Number of logbook events to display per page. EVENTS_PER_PAGE should be lower than EVENTS_PER_DOWNLOAD */ EVENTS_PER_PAGE: 200, /** 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: 400, /** Default sorting filter for logbook events. The format: { nameOftheMongoDBFieldToSortAgainst : theSortingOrder } Possible values for **sortingOrder**: 1, for an ascending sorting of nameOftheMongoDBFieldToSortAgainst -1, for a descending sorting of nameOftheMongoDBFieldToSortAgainst */ DEFAULT_SORTING_FILTER: { createdAt: -1 }, /** Panel maximum height during logbook event creation */ NEW_EVENT_MAX_HEIGHT: "500px", /* Default tag color used in the logbook when tag color is not set */ DEFAULT_TAG_COLOR: "#a6bded" } }