MOBILE-3833 chore: Clean up initializers

main
Noel De Martin 2021-08-12 14:03:13 +02:00
parent 8a5ccf1d71
commit 3e44a3c174
125 changed files with 137 additions and 255 deletions

View File

@ -44,8 +44,7 @@ const mainMenuRoutes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreContentLinksDelegate.registerHandler(AddonBadgesMyBadgesLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonBadgesBadgeLinkHandler.instance);
CoreUserDelegate.registerHandler(AddonBadgesUserHandler.instance);

View File

@ -51,8 +51,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => async () => {
useValue: () => {
CoreContentLinksDelegate.registerHandler(AddonBlogIndexLinkHandler.instance);
CoreMainMenuDelegate.registerHandler(AddonBlogMainMenuHandler.instance);
CoreUserDelegate.registerHandler(AddonBlogUserHandler.instance);

View File

@ -63,8 +63,7 @@ const mainMenuChildrenRoutes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => async () => {
useValue: async () => {
CoreContentLinksDelegate.registerHandler(AddonCalendarViewLinkHandler.instance);
CoreMainMenuDelegate.registerHandler(AddonCalendarMainMenuHandler.instance);
CoreCronDelegate.register(AddonCalendarSyncCronHandler.instance);

View File

@ -64,8 +64,7 @@ const courseIndexRoutes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => async () => {
useValue: () => {
CoreContentLinksDelegate.registerHandler(AddonCompetencyCompetencyLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonCompetencyPlanLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonCompetencyPlansLinkHandler.instance);

View File

@ -42,8 +42,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => async () => {
useValue: () => {
CoreUserDelegate.registerHandler(AddonCourseCompletionUserHandler.instance);
CoreCourseOptionsDelegate.registerHandler(AddonCourseCompletionCourseOptionHandler.instance);
},

View File

@ -26,8 +26,7 @@ import { AddonFilterActivityNamesHandler } from './services/handlers/activitynam
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterActivityNamesHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterActivityNamesHandler.instance),
},
],
})

View File

@ -26,8 +26,7 @@ import { AddonFilterAlgebraHandler } from './services/handlers/algebra';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterAlgebraHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterAlgebraHandler.instance),
},
],
})

View File

@ -26,8 +26,7 @@ import { AddonFilterCensorHandler } from './services/handlers/censor';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterCensorHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterCensorHandler.instance),
},
],
})

View File

@ -26,8 +26,7 @@ import { AddonFilterDataHandler } from './services/handlers/data';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterDataHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterDataHandler.instance),
},
],
})

View File

@ -26,8 +26,7 @@ import { AddonFilterDisplayH5PHandler } from './services/handlers/displayh5p';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterDisplayH5PHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterDisplayH5PHandler.instance),
},
],
})

View File

@ -26,8 +26,7 @@ import { AddonFilterEmailProtectHandler } from './services/handlers/emailprotect
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterEmailProtectHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterEmailProtectHandler.instance),
},
],
})

View File

@ -26,8 +26,7 @@ import { AddonFilterEmoticonHandler } from './services/handlers/emoticon';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterEmoticonHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterEmoticonHandler.instance),
},
],
})

View File

@ -26,8 +26,7 @@ import { AddonFilterGlossaryHandler } from './services/handlers/glossary';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterGlossaryHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterGlossaryHandler.instance),
},
],
})

View File

@ -26,8 +26,7 @@ import { AddonFilterMathJaxLoaderHandler } from './services/handlers/mathjaxload
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => async () => {
useValue: async () => {
CoreFilterDelegate.registerHandler(AddonFilterMathJaxLoaderHandler.instance);
await AddonFilterMathJaxLoaderHandler.initialize();

View File

@ -26,8 +26,7 @@ import { AddonFilterMediaPluginHandler } from './services/handlers/mediaplugin';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterMediaPluginHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterMediaPluginHandler.instance),
},
],
})

View File

@ -26,8 +26,7 @@ import { AddonFilterMultilangHandler } from './services/handlers/multilang';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterMultilangHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterMultilangHandler.instance),
},
],
})

View File

@ -26,8 +26,7 @@ import { AddonFilterTexHandler } from './services/handlers/tex';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterTexHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterTexHandler.instance),
},
],
})

View File

@ -26,8 +26,7 @@ import { AddonFilterTidyHandler } from './services/handlers/tidy';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterTidyHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterTidyHandler.instance),
},
],
})

View File

@ -26,8 +26,7 @@ import { AddonFilterUrlToLinkHandler } from './services/handlers/urltolink';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => CoreFilterDelegate.registerHandler(AddonFilterUrlToLinkHandler.instance),
useValue: () => CoreFilterDelegate.registerHandler(AddonFilterUrlToLinkHandler.instance),
},
],
})

View File

@ -39,8 +39,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonMessageOutputDelegate.registerHandler(AddonMessageOutputAirnotifierHandler.instance);
},
},

View File

@ -73,8 +73,7 @@ const preferencesRoutes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
// Register handlers.
CoreMainMenuDelegate.registerHandler(AddonMessagesMainMenuHandler.instance);
CoreCronDelegate.register(AddonMessagesMainMenuHandler.instance);

View File

@ -70,8 +70,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModAssignModuleHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModAssignIndexLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModAssignListLinkHandler.instance);

View File

@ -31,8 +31,7 @@ import { AddonModAssignFeedbackDelegate } from '../../services/feedback-delegate
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModAssignFeedbackDelegate.registerHandler(AddonModAssignFeedbackCommentsHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModAssignFeedbackDelegate } from '../../services/feedback-delegate
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModAssignFeedbackDelegate.registerHandler(AddonModAssignFeedbackEditPdfHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModAssignFeedbackDelegate } from '../../services/feedback-delegate
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModAssignFeedbackDelegate.registerHandler(AddonModAssignFeedbackFileHandler.instance);
},
},

View File

@ -31,8 +31,7 @@ import { CoreCommentsComponentsModule } from '@features/comments/components/comp
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModAssignSubmissionDelegate.registerHandler(AddonModAssignSubmissionCommentsHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModAssignSubmissionDelegate } from '../../services/submission-dele
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModAssignSubmissionDelegate.registerHandler(AddonModAssignSubmissionFileHandler.instance);
},
},

View File

@ -31,8 +31,7 @@ import { AddonModAssignSubmissionDelegate } from '../../services/submission-dele
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModAssignSubmissionDelegate.registerHandler(AddonModAssignSubmissionOnlineTextHandler.instance);
},
},

View File

@ -47,8 +47,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModBookModuleHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModBookIndexLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModBookListLinkHandler.instance);

View File

@ -47,8 +47,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModChatModuleHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModChatIndexLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModChatListLinkHandler.instance);

View File

@ -59,8 +59,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModChoiceModuleHandler.instance);
CoreCourseModulePrefetchDelegate.registerHandler(AddonModChoicePrefetchHandler.instance);
CoreCronDelegate.register(AddonModChoiceSyncCronHandler.instance);

View File

@ -71,8 +71,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModDataModuleHandler.instance);
CoreCourseModulePrefetchDelegate.registerHandler(AddonModDataPrefetchHandler.instance);
CoreCronDelegate.register(AddonModDataSyncCronHandler.instance);

View File

@ -29,8 +29,7 @@ import { AddonModDataFieldCheckboxHandler } from './services/handler';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldCheckboxHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModDataFieldDateHandler } from './services/handler';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldDateHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModDataFieldFileHandler } from './services/handler';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldFileHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModDataFieldLatlongHandler } from './services/handler';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldLatlongHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModDataFieldMenuHandler } from './services/handler';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldMenuHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModDataFieldMultimenuHandler } from './services/handler';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldMultimenuHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModDataFieldNumberHandler } from './services/handler';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldNumberHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModDataFieldPictureHandler } from './services/handler';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldPictureHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModDataFieldRadiobuttonHandler } from './services/handler';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldRadiobuttonHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModDataFieldTextHandler } from './services/handler';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldTextHandler.instance);
},
},

View File

@ -31,8 +31,7 @@ import { AddonModDataFieldTextareaHandler } from './services/handler';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldTextareaHandler.instance);
},
},

View File

@ -29,8 +29,7 @@ import { AddonModDataFieldUrlHandler } from './services/handler';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldUrlHandler.instance);
},
},

View File

@ -67,8 +67,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModFeedbackModuleHandler.instance);
CoreCourseModulePrefetchDelegate.registerHandler(AddonModFeedbackPrefetchHandler.instance);
CoreCronDelegate.register(AddonModFeedbackSyncCronHandler.instance);

View File

@ -49,8 +49,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModFolderModuleHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModFolderIndexLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModFolderListLinkHandler.instance);

View File

@ -104,8 +104,7 @@ const courseContentsRoutes: Routes = conditionalRoutes(
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModGlossaryModuleHandler.instance);
CoreCourseModulePrefetchDelegate.registerHandler(AddonModGlossaryPrefetchHandler.instance);
CoreCronDelegate.register(AddonModGlossarySyncCronHandler.instance);

View File

@ -50,8 +50,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModH5PActivityModuleHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModH5PActivityIndexLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModH5PActivityReportLinkHandler.instance);

View File

@ -47,8 +47,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModImscpModuleHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModImscpIndexLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModImscpListLinkHandler.instance);

View File

@ -25,8 +25,7 @@ import { AddonModLabelPrefetchHandler } from './services/handlers/prefetch';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModLabelModuleHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModLabelIndexLinkHandler.instance);
CoreCourseModulePrefetchDelegate.registerHandler(AddonModLabelPrefetchHandler.instance);

View File

@ -65,8 +65,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModLessonModuleHandler.instance);
CoreCourseModulePrefetchDelegate.registerHandler(AddonModLessonPrefetchHandler.instance);
CoreCronDelegate.register(AddonModLessonSyncCronHandler.instance);

View File

@ -44,16 +44,16 @@ const routes: Routes = [
AddonModLtiComponentsModule,
],
providers: [
{ provide: APP_INITIALIZER, multi: true, useValue: () => AddonModLtiHelper.watchPendingCompletions() },
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModLtiModuleHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModLtiIndexLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModLtiListLinkHandler.instance);
CoreCourseModulePrefetchDelegate.registerHandler(AddonModLtiPrefetchHandler.instance);
AddonModLtiHelper.watchPendingCompletions();
},
},
],

View File

@ -49,8 +49,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModPageModuleHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModPageIndexLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModPageListLinkHandler.instance);

View File

@ -24,8 +24,7 @@ import { AddonModQuizAccessDelayBetweenAttemptsHandler } from './services/handle
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessDelayBetweenAttemptsHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonModQuizAccessIpAddressHandler } from './services/handlers/ipaddres
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessIpAddressHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonModQuizAccessNumAttemptsHandler } from './services/handlers/numatt
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessNumAttemptsHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonModQuizAccessOfflineAttemptsHandler } from './services/handlers/of
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessOfflineAttemptsHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonModQuizAccessOpenCloseDateHandler } from './services/handlers/open
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessOpenCloseDateHandler.instance);
},
},

View File

@ -37,8 +37,7 @@ import { SITE_SCHEMA } from './services/database/password';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessPasswordHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonModQuizAccessSafeBrowserHandler } from './services/handlers/safebr
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessSafeBrowserHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonModQuizAccessSecureWindowHandler } from './services/handlers/secur
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessSecureWindowHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonModQuizAccessTimeLimitHandler } from './services/handlers/timelimi
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessTimeLimitHandler.instance);
},
},

View File

@ -69,8 +69,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModQuizModuleHandler.instance);
CoreCourseModulePrefetchDelegate.registerHandler(AddonModQuizPrefetchHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModQuizGradeLinkHandler.instance);

View File

@ -47,8 +47,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModResourceModuleHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModResourceIndexLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModResourceListLinkHandler.instance);

View File

@ -63,8 +63,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModScormModuleHandler.instance);
CoreCourseModulePrefetchDelegate.registerHandler(AddonModScormPrefetchHandler.instance);
CoreCronDelegate.register(AddonModScormSyncCronHandler.instance);

View File

@ -61,8 +61,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModSurveyModuleHandler.instance);
CoreCourseModulePrefetchDelegate.registerHandler(AddonModSurveyPrefetchHandler.instance);
CoreCronDelegate.register(AddonModSurveySyncCronHandler.instance);

View File

@ -47,8 +47,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModUrlModuleHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModUrlIndexLinkHandler.instance);
CoreContentLinksDelegate.registerHandler(AddonModUrlListLinkHandler.instance);

View File

@ -63,8 +63,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModWikiModuleHandler.instance);
CoreCourseModulePrefetchDelegate.registerHandler(AddonModWikiPrefetchHandler.instance);
CoreCronDelegate.register(AddonModWikiSyncCronHandler.instance);

View File

@ -29,8 +29,7 @@ import { CoreSharedModule } from '@/core/shared.module';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonWorkshopAssessmentStrategyDelegate.registerHandler(
AddonModWorkshopAssessmentStrategyAccumulativeHandler.instance,
);

View File

@ -29,8 +29,7 @@ import { AddonModWorkshopAssessmentStrategyCommentsHandler } from './services/ha
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonWorkshopAssessmentStrategyDelegate.registerHandler(
AddonModWorkshopAssessmentStrategyCommentsHandler.instance,
);

View File

@ -29,8 +29,7 @@ import { AddonModWorkshopAssessmentStrategyNumErrorsHandler } from './services/h
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonWorkshopAssessmentStrategyDelegate.registerHandler(
AddonModWorkshopAssessmentStrategyNumErrorsHandler.instance,
);

View File

@ -29,8 +29,7 @@ import { AddonModWorkshopAssessmentStrategyRubricHandler } from './services/hand
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
AddonWorkshopAssessmentStrategyDelegate.registerHandler(
AddonModWorkshopAssessmentStrategyRubricHandler.instance,
);

View File

@ -65,8 +65,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreCourseModuleDelegate.registerHandler(AddonModWorkshopModuleHandler.instance);
CoreCourseModulePrefetchDelegate.registerHandler(AddonModWorkshopPrefetchHandler.instance);
CoreCronDelegate.register(AddonModWorkshopSyncCronHandler.instance);

View File

@ -58,8 +58,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => async () => {
useValue: () => {
CoreUserDelegate.registerHandler(AddonNotesUserHandler.instance);
CoreCourseOptionsDelegate.registerHandler(AddonNotesCourseOptionHandler.instance);
CoreCronDelegate.register(AddonNotesSyncCronHandler.instance);

View File

@ -58,8 +58,7 @@ const preferencesRoutes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreMainMenuDelegate.registerHandler(AddonNotificationsMainMenuHandler.instance);
CoreCronDelegate.register(AddonNotificationsCronHandler.instance);
CorePushNotificationsDelegate.registerClickHandler(AddonNotificationsPushClickHandler.instance);

View File

@ -44,8 +44,7 @@ const routes: Routes = [
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreMainMenuDelegate.registerHandler(AddonPrivateFilesMainMenuHandler.instance);
},
},

View File

@ -23,8 +23,7 @@ import { AddonQbehaviourAdaptiveHandler } from './services/handlers/adaptive';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourAdaptiveHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonQbehaviourAdaptiveNoPenaltyHandler } from './services/handlers/ada
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourAdaptiveNoPenaltyHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonQbehaviourDeferredCBMHandler } from './services/handlers/deferredc
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourDeferredCBMHandler.instance);
},
},

View File

@ -23,8 +23,7 @@ import { AddonQbehaviourDeferredFeedbackHandler } from './services/handlers/defe
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourDeferredFeedbackHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonQbehaviourImmediateCBMHandler } from './services/handlers/immediat
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourImmediateCBMHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonQbehaviourImmediateFeedbackHandler } from './services/handlers/imm
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourImmediateFeedbackHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonQbehaviourInformationItemHandler } from './services/handlers/infor
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourInformationItemHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonQbehaviourInteractiveHandler } from './services/handlers/interacti
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourInteractiveHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonQbehaviourInteractiveCountbackHandler } from './services/handlers/
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourInteractiveCountbackHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonQbehaviourManualGradedHandler } from './services/handlers/manualgr
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourManualGradedHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonQtypeCalculatedHandler } from './services/handlers/calculated';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeCalculatedHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonQtypeCalculatedMultiHandler } from './services/handlers/calculated
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeCalculatedMultiHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonQtypeCalculatedSimpleHandler } from './services/handlers/calculate
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeCalculatedSimpleHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonQtypeDdImageOrTextHandler } from './services/handlers/ddimageortex
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeDdImageOrTextHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonQtypeDdMarkerHandler } from './services/handlers/ddmarker';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeDdMarkerHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonQtypeDdwtosHandler } from './services/handlers/ddwtos';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeDdwtosHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonQtypeDescriptionHandler } from './services/handlers/description';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeDescriptionHandler.instance);
},
},

View File

@ -32,8 +32,7 @@ import { AddonQtypeEssayComponent } from './component/essay';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeEssayHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonQtypeGapSelectHandler } from './services/handlers/gapselect';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeGapSelectHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonQtypeMatchHandler } from './services/handlers/match';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeMatchHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonQtypeMultiAnswerHandler } from './services/handlers/multianswer';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeMultiAnswerHandler.instance);
},
},

View File

@ -30,8 +30,7 @@ import { AddonQtypeMultichoiceHandler } from './services/handlers/multichoice';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeMultichoiceHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonQtypeNumericalHandler } from './services/handlers/numerical';
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeNumericalHandler.instance);
},
},

View File

@ -24,8 +24,7 @@ import { AddonQtypeRandomSaMatchHandler } from './services/handlers/randomsamatc
{
provide: APP_INITIALIZER,
multi: true,
deps: [],
useFactory: () => () => {
useValue: () => {
CoreQuestionDelegate.registerHandler(AddonQtypeRandomSaMatchHandler.instance);
},
},

Some files were not shown because too many files have changed in this diff Show More