feat: Enhance background job settings UI and functionality
Some checks failed
build.yaml / feat: Enhance background job settings UI and functionality (push) Failing after 0s
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.
This commit is contained in:
parent
6757bdb77c
commit
b5bbe26ec2
27 changed files with 1221 additions and 603 deletions
|
|
@ -4,13 +4,13 @@ import relativeTime from 'dayjs/plugin/relativeTime';
|
|||
import 'dayjs/locale/de';
|
||||
import 'dayjs/locale/en';
|
||||
|
||||
const extendedDayjs = dayjs.extend(relativeTime);
|
||||
dayjs.extend(relativeTime);
|
||||
|
||||
export const setDayjsLocale = (locale: string) => {
|
||||
extendedDayjs.locale(locale);
|
||||
dayjs.locale(locale);
|
||||
};
|
||||
|
||||
// // Set a default locale initially
|
||||
// setDayjsLocale('en');
|
||||
|
||||
export default extendedDayjs;
|
||||
export default dayjs;
|
||||
|
|
@ -160,6 +160,16 @@ export function showError(text: string, options?: ToastOptions): Toast {
|
|||
return showMessage(text, { ...options, type: ToastType.ERROR })
|
||||
}
|
||||
|
||||
/**
|
||||
* Show a toast message with success styling
|
||||
*
|
||||
* @param text Message to be shown in the toast, any HTML is removed by default
|
||||
* @param options
|
||||
*/
|
||||
export function showSuccess(text: string, options?: ToastOptions): Toast {
|
||||
return showMessage(text, { ...options, type: ToastType.SUCCESS });
|
||||
}
|
||||
|
||||
export default {
|
||||
updatableNotification: null,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue