MOBILE-3833 chore: Clean up initializers
parent
8a5ccf1d71
commit
3e44a3c174
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -42,8 +42,7 @@ const routes: Routes = [
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => async () => {
|
||||
useValue: () => {
|
||||
CoreUserDelegate.registerHandler(AddonCourseCompletionUserHandler.instance);
|
||||
CoreCourseOptionsDelegate.registerHandler(AddonCourseCompletionCourseOptionHandler.instance);
|
||||
},
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
@ -39,8 +39,7 @@ const routes: Routes = [
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonMessageOutputDelegate.registerHandler(AddonMessageOutputAirnotifierHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -31,8 +31,7 @@ import { AddonModAssignFeedbackDelegate } from '../../services/feedback-delegate
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModAssignFeedbackDelegate.registerHandler(AddonModAssignFeedbackCommentsHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModAssignFeedbackDelegate } from '../../services/feedback-delegate
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModAssignFeedbackDelegate.registerHandler(AddonModAssignFeedbackEditPdfHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModAssignFeedbackDelegate } from '../../services/feedback-delegate
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModAssignFeedbackDelegate.registerHandler(AddonModAssignFeedbackFileHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -31,8 +31,7 @@ import { CoreCommentsComponentsModule } from '@features/comments/components/comp
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModAssignSubmissionDelegate.registerHandler(AddonModAssignSubmissionCommentsHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModAssignSubmissionDelegate } from '../../services/submission-dele
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModAssignSubmissionDelegate.registerHandler(AddonModAssignSubmissionFileHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -31,8 +31,7 @@ import { AddonModAssignSubmissionDelegate } from '../../services/submission-dele
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModAssignSubmissionDelegate.registerHandler(AddonModAssignSubmissionOnlineTextHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModDataFieldCheckboxHandler } from './services/handler';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldCheckboxHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModDataFieldDateHandler } from './services/handler';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldDateHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModDataFieldFileHandler } from './services/handler';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldFileHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModDataFieldLatlongHandler } from './services/handler';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldLatlongHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModDataFieldMenuHandler } from './services/handler';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldMenuHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModDataFieldMultimenuHandler } from './services/handler';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldMultimenuHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModDataFieldNumberHandler } from './services/handler';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldNumberHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModDataFieldPictureHandler } from './services/handler';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldPictureHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModDataFieldRadiobuttonHandler } from './services/handler';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldRadiobuttonHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModDataFieldTextHandler } from './services/handler';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldTextHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -31,8 +31,7 @@ import { AddonModDataFieldTextareaHandler } from './services/handler';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldTextareaHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModDataFieldUrlHandler } from './services/handler';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModDataFieldsDelegate.registerHandler(AddonModDataFieldUrlHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonModQuizAccessDelayBetweenAttemptsHandler } from './services/handle
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessDelayBetweenAttemptsHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonModQuizAccessIpAddressHandler } from './services/handlers/ipaddres
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessIpAddressHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonModQuizAccessNumAttemptsHandler } from './services/handlers/numatt
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessNumAttemptsHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonModQuizAccessOfflineAttemptsHandler } from './services/handlers/of
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessOfflineAttemptsHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonModQuizAccessOpenCloseDateHandler } from './services/handlers/open
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessOpenCloseDateHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -37,8 +37,7 @@ import { SITE_SCHEMA } from './services/database/password';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessPasswordHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonModQuizAccessSafeBrowserHandler } from './services/handlers/safebr
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessSafeBrowserHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonModQuizAccessSecureWindowHandler } from './services/handlers/secur
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessSecureWindowHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonModQuizAccessTimeLimitHandler } from './services/handlers/timelimi
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonModQuizAccessRuleDelegate.registerHandler(AddonModQuizAccessTimeLimitHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -29,8 +29,7 @@ import { CoreSharedModule } from '@/core/shared.module';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonWorkshopAssessmentStrategyDelegate.registerHandler(
|
||||
AddonModWorkshopAssessmentStrategyAccumulativeHandler.instance,
|
||||
);
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModWorkshopAssessmentStrategyCommentsHandler } from './services/ha
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonWorkshopAssessmentStrategyDelegate.registerHandler(
|
||||
AddonModWorkshopAssessmentStrategyCommentsHandler.instance,
|
||||
);
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModWorkshopAssessmentStrategyNumErrorsHandler } from './services/h
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonWorkshopAssessmentStrategyDelegate.registerHandler(
|
||||
AddonModWorkshopAssessmentStrategyNumErrorsHandler.instance,
|
||||
);
|
||||
|
|
|
@ -29,8 +29,7 @@ import { AddonModWorkshopAssessmentStrategyRubricHandler } from './services/hand
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
AddonWorkshopAssessmentStrategyDelegate.registerHandler(
|
||||
AddonModWorkshopAssessmentStrategyRubricHandler.instance,
|
||||
);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -44,8 +44,7 @@ const routes: Routes = [
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreMainMenuDelegate.registerHandler(AddonPrivateFilesMainMenuHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -23,8 +23,7 @@ import { AddonQbehaviourAdaptiveHandler } from './services/handlers/adaptive';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourAdaptiveHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonQbehaviourAdaptiveNoPenaltyHandler } from './services/handlers/ada
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourAdaptiveNoPenaltyHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonQbehaviourDeferredCBMHandler } from './services/handlers/deferredc
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourDeferredCBMHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -23,8 +23,7 @@ import { AddonQbehaviourDeferredFeedbackHandler } from './services/handlers/defe
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourDeferredFeedbackHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonQbehaviourImmediateCBMHandler } from './services/handlers/immediat
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourImmediateCBMHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonQbehaviourImmediateFeedbackHandler } from './services/handlers/imm
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourImmediateFeedbackHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonQbehaviourInformationItemHandler } from './services/handlers/infor
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourInformationItemHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonQbehaviourInteractiveHandler } from './services/handlers/interacti
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourInteractiveHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonQbehaviourInteractiveCountbackHandler } from './services/handlers/
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourInteractiveCountbackHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonQbehaviourManualGradedHandler } from './services/handlers/manualgr
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionBehaviourDelegate.registerHandler(AddonQbehaviourManualGradedHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonQtypeCalculatedHandler } from './services/handlers/calculated';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeCalculatedHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonQtypeCalculatedMultiHandler } from './services/handlers/calculated
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeCalculatedMultiHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonQtypeCalculatedSimpleHandler } from './services/handlers/calculate
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeCalculatedSimpleHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonQtypeDdImageOrTextHandler } from './services/handlers/ddimageortex
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeDdImageOrTextHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonQtypeDdMarkerHandler } from './services/handlers/ddmarker';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeDdMarkerHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonQtypeDdwtosHandler } from './services/handlers/ddwtos';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeDdwtosHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonQtypeDescriptionHandler } from './services/handlers/description';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeDescriptionHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -32,8 +32,7 @@ import { AddonQtypeEssayComponent } from './component/essay';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeEssayHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonQtypeGapSelectHandler } from './services/handlers/gapselect';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeGapSelectHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonQtypeMatchHandler } from './services/handlers/match';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeMatchHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonQtypeMultiAnswerHandler } from './services/handlers/multianswer';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeMultiAnswerHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -30,8 +30,7 @@ import { AddonQtypeMultichoiceHandler } from './services/handlers/multichoice';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeMultichoiceHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -24,8 +24,7 @@ import { AddonQtypeNumericalHandler } from './services/handlers/numerical';
|
|||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
deps: [],
|
||||
useFactory: () => () => {
|
||||
useValue: () => {
|
||||
CoreQuestionDelegate.registerHandler(AddonQtypeNumericalHandler.instance);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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
Loading…
Reference in New Issue