mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-15 10:57:58 +00:00
24 lines
919 B
TypeScript
24 lines
919 B
TypeScript
// Dayjs is missing core functionality without this. It causes issues in setting default value of antd datepicker without.
|
|
import dayjs from 'dayjs';
|
|
import advancedFormat from 'dayjs/plugin/advancedFormat';
|
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
import localeData from 'dayjs/plugin/localeData';
|
|
import weekOfYear from 'dayjs/plugin/weekOfYear';
|
|
import weekYear from 'dayjs/plugin/weekYear';
|
|
import weekday from 'dayjs/plugin/weekday';
|
|
|
|
import * as Browse from '@conf/Browse';
|
|
import * as Global from '@conf/Global';
|
|
import * as Search from '@conf/Search';
|
|
|
|
dayjs.extend(customParseFormat);
|
|
dayjs.extend(advancedFormat);
|
|
dayjs.extend(weekday);
|
|
dayjs.extend(localeData);
|
|
dayjs.extend(weekOfYear);
|
|
dayjs.extend(weekYear);
|
|
|
|
// TODO: A way to populate configs without code changes?
|
|
// TOOD: Entity-oriented configurations?
|
|
export { Browse as BrowseCfg, Global as GlobalCfg, Search as SearchCfg };
|