Some checks failed
build.yaml / feat: Enhance background job settings UI and functionality (push) Failing after 0s
- Updated BackgroundJob.vue to improve the display of background job statuses, including missing cross-references and current job mode. - Added auto-refresh functionality for background job status. - Introduced success toast notifications for successful status refreshes. - Modified the XML serialization process in DatasetXmlSerializer for better caching and performance. - Implemented a new RuleProvider for managing custom validation rules. - Improved error handling in routes for loading background job settings. - Enhanced ClamScan configuration with socket support for virus scanning. - Refactored dayjs utility to streamline locale management.
16 lines
No EOL
351 B
TypeScript
16 lines
No EOL
351 B
TypeScript
// src/plugins/dayjs.ts
|
|
import dayjs from 'dayjs';
|
|
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
import 'dayjs/locale/de';
|
|
import 'dayjs/locale/en';
|
|
|
|
dayjs.extend(relativeTime);
|
|
|
|
export const setDayjsLocale = (locale: string) => {
|
|
dayjs.locale(locale);
|
|
};
|
|
|
|
// // Set a default locale initially
|
|
// setDayjsLocale('en');
|
|
|
|
export default dayjs; |