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.
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { ApplicationService } from '@adonisjs/core/types';
|
|
|
|
export default class RuleProvider {
|
|
constructor(protected app: ApplicationService) {}
|
|
|
|
public register() {
|
|
// Register your own bindings
|
|
}
|
|
|
|
public async boot() {
|
|
// IoC container is ready
|
|
// await import("../src/rules/index.js");
|
|
|
|
await import('#start/rules/unique');
|
|
await import('#start/rules/translated_language');
|
|
await import('#start/rules/unique_person');
|
|
// () => import('#start/rules/file_length'),
|
|
// () => import('#start/rules/file_scan'),
|
|
// () => import('#start/rules/allowed_extensions_mimetypes'),
|
|
await import('#start/rules/dependent_array_min_length');
|
|
await import('#start/rules/referenceValidation');
|
|
await import('#start/rules/valid_mimetype');
|
|
await import('#start/rules/array_contains_types');
|
|
await import('#start/rules/orcid');
|
|
}
|
|
|
|
public async ready() {
|
|
// App is ready
|
|
}
|
|
|
|
public async shutdown() {
|
|
// Cleanup, since app is going down
|
|
}
|
|
}
|