debian-mirror-gitlab/app/assets/javascripts/analytics/shared/constants.js

14 lines
316 B
JavaScript
Raw Normal View History

2021-09-30 23:02:18 +05:30
import { masks } from 'dateformat';
export const DATE_RANGE_LIMIT = 180;
export const OFFSET_DATE_BY_ONE = 1;
export const PROJECTS_PER_PAGE = 50;
const { isoDate, mediumDate } = masks;
export const dateFormats = {
isoDate,
defaultDate: mediumDate,
defaultDateTime: 'mmm d, yyyy h:MMtt',
2021-11-18 22:05:49 +05:30
month: 'mmmm',
2021-09-30 23:02:18 +05:30
};