MOBILE-2163 core: Fix StaticInjectorError in AOT
parent
b494f1da8c
commit
a23654fdb7
|
@ -30,11 +30,12 @@ export const ADDON_BADGES_PROVIDERS: any[] = [
|
|||
],
|
||||
imports: [
|
||||
],
|
||||
providers: ADDON_BADGES_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonBadgesProvider,
|
||||
AddonBadgesUserHandler,
|
||||
AddonBadgesMyBadgesLinkHandler,
|
||||
AddonBadgesBadgeLinkHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonBadgesModule {
|
||||
constructor(userDelegate: CoreUserDelegate, userHandler: AddonBadgesUserHandler,
|
||||
|
|
|
@ -33,9 +33,11 @@ export const ADDON_CALENDAR_PROVIDERS: any[] = [
|
|||
],
|
||||
imports: [
|
||||
],
|
||||
providers: ADDON_CALENDAR_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonCalendarProvider,
|
||||
AddonCalendarHelperProvider,
|
||||
AddonCalendarMainMenuHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonCalendarModule {
|
||||
constructor(mainMenuDelegate: CoreMainMenuDelegate, calendarHandler: AddonCalendarMainMenuHandler,
|
||||
|
|
|
@ -35,11 +35,13 @@ export const ADDON_COMPETENCY_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonCompetencyComponentsModule
|
||||
],
|
||||
providers: ADDON_COMPETENCY_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonCompetencyProvider,
|
||||
AddonCompetencyHelperProvider,
|
||||
AddonCompetencyCourseOptionHandler,
|
||||
AddonCompetencyMainMenuHandler,
|
||||
AddonCompetencyUserHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonCompetencyModule {
|
||||
constructor(mainMenuDelegate: CoreMainMenuDelegate, mainMenuHandler: AddonCompetencyMainMenuHandler,
|
||||
|
|
|
@ -29,9 +29,11 @@ export const ADDON_FILES_PROVIDERS: any[] = [
|
|||
],
|
||||
imports: [
|
||||
],
|
||||
providers: ADDON_FILES_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonFilesProvider,
|
||||
AddonFilesHelperProvider,
|
||||
AddonFilesMainMenuHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonFilesModule {
|
||||
constructor(mainMenuDelegate: CoreMainMenuDelegate, filesHandler: AddonFilesMainMenuHandler) {
|
||||
|
|
|
@ -25,6 +25,8 @@ export const ADDON_MESSAGEOUTPUT_PROVIDERS: any[] = [
|
|||
],
|
||||
imports: [
|
||||
],
|
||||
providers: ADDON_MESSAGEOUTPUT_PROVIDERS
|
||||
providers: [
|
||||
AddonMessageOutputDelegate
|
||||
]
|
||||
})
|
||||
export class AddonMessageOutputModule {}
|
||||
|
|
|
@ -50,7 +50,10 @@ export const ADDON_MESSAGES_PROVIDERS: any[] = [
|
|||
],
|
||||
imports: [
|
||||
],
|
||||
providers: ADDON_MESSAGES_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonMessagesProvider,
|
||||
AddonMessagesOfflineProvider,
|
||||
AddonMessagesSyncProvider,
|
||||
AddonMessagesMainMenuHandler,
|
||||
AddonMessagesSendMessageUserHandler,
|
||||
AddonMessagesAddContactUserHandler,
|
||||
|
@ -59,7 +62,7 @@ export const ADDON_MESSAGES_PROVIDERS: any[] = [
|
|||
AddonMessagesIndexLinkHandler,
|
||||
AddonMessagesSyncCronHandler,
|
||||
AddonMessagesSettingsHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonMessagesModule {
|
||||
constructor(mainMenuDelegate: CoreMainMenuDelegate, mainmenuHandler: AddonMessagesMainMenuHandler,
|
||||
|
|
|
@ -48,13 +48,19 @@ export const ADDON_MOD_ASSIGN_PROVIDERS: any[] = [
|
|||
AddonModAssignSubmissionModule,
|
||||
AddonModAssignFeedbackModule
|
||||
],
|
||||
providers: ADDON_MOD_ASSIGN_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModAssignProvider,
|
||||
AddonModAssignOfflineProvider,
|
||||
AddonModAssignSyncProvider,
|
||||
AddonModAssignHelperProvider,
|
||||
AddonModAssignFeedbackDelegate,
|
||||
AddonModAssignSubmissionDelegate,
|
||||
AddonModAssignDefaultFeedbackHandler,
|
||||
AddonModAssignDefaultSubmissionHandler,
|
||||
AddonModAssignModuleHandler,
|
||||
AddonModAssignPrefetchHandler,
|
||||
AddonModAssignSyncCronHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModAssignModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModAssignModuleHandler,
|
||||
|
|
|
@ -33,11 +33,12 @@ export const ADDON_MOD_BOOK_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModBookComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_BOOK_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModBookProvider,
|
||||
AddonModBookModuleHandler,
|
||||
AddonModBookLinkHandler,
|
||||
AddonModBookPrefetchHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModBookModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModBookModuleHandler,
|
||||
|
|
|
@ -31,10 +31,11 @@ export const ADDON_MOD_CHAT_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModChatComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_CHAT_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModChatProvider,
|
||||
AddonModChatLinkHandler,
|
||||
AddonModChatModuleHandler,
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModChatModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModChatModuleHandler,
|
||||
|
|
|
@ -40,12 +40,15 @@ export const ADDON_MOD_CHOICE_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModChoiceComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_CHOICE_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModChoiceProvider,
|
||||
AddonModChoiceSyncProvider,
|
||||
AddonModChoiceOfflineProvider,
|
||||
AddonModChoiceModuleHandler,
|
||||
AddonModChoicePrefetchHandler,
|
||||
AddonModChoiceLinkHandler,
|
||||
AddonModChoiceSyncCronHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModChoiceModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModChoiceModuleHandler,
|
||||
|
|
|
@ -51,7 +51,12 @@ export const ADDON_MOD_DATA_PROVIDERS: any[] = [
|
|||
AddonModDataComponentsModule,
|
||||
AddonModDataFieldModule
|
||||
],
|
||||
providers: ADDON_MOD_DATA_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModDataProvider,
|
||||
AddonModDataHelperProvider,
|
||||
AddonModDataSyncProvider,
|
||||
AddonModDataOfflineProvider,
|
||||
AddonModDataFieldsDelegate,
|
||||
AddonModDataModuleHandler,
|
||||
AddonModDataPrefetchHandler,
|
||||
AddonModDataLinkHandler,
|
||||
|
@ -61,7 +66,7 @@ export const ADDON_MOD_DATA_PROVIDERS: any[] = [
|
|||
AddonModDataEditLinkHandler,
|
||||
AddonModDataSyncCronHandler,
|
||||
AddonModDataDefaultFieldHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModDataModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModDataModuleHandler,
|
||||
|
|
|
@ -47,7 +47,11 @@ export const ADDON_MOD_FEEDBACK_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModFeedbackComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_FEEDBACK_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModFeedbackProvider,
|
||||
AddonModFeedbackHelperProvider,
|
||||
AddonModFeedbackSyncProvider,
|
||||
AddonModFeedbackOfflineProvider,
|
||||
AddonModFeedbackModuleHandler,
|
||||
AddonModFeedbackPrefetchHandler,
|
||||
AddonModFeedbackLinkHandler,
|
||||
|
@ -57,7 +61,7 @@ export const ADDON_MOD_FEEDBACK_PROVIDERS: any[] = [
|
|||
AddonModFeedbackCompleteLinkHandler,
|
||||
AddonModFeedbackPrintLinkHandler,
|
||||
AddonModFeedbackSyncCronHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModFeedbackModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModFeedbackModuleHandler,
|
||||
|
|
|
@ -37,12 +37,14 @@ export const ADDON_MOD_FOLDER_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModFolderComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_FOLDER_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModFolderProvider,
|
||||
AddonModFolderHelperProvider,
|
||||
AddonModFolderModuleHandler,
|
||||
AddonModFolderPrefetchHandler,
|
||||
AddonModFolderLinkHandler,
|
||||
AddonModFolderPluginFileHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModFolderModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModFolderModuleHandler,
|
||||
|
|
|
@ -43,13 +43,17 @@ export const ADDON_MOD_FORUM_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModForumComponentsModule,
|
||||
],
|
||||
providers: ADDON_MOD_FORUM_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModForumProvider,
|
||||
AddonModForumOfflineProvider,
|
||||
AddonModForumHelperProvider,
|
||||
AddonModForumSyncProvider,
|
||||
AddonModForumModuleHandler,
|
||||
AddonModForumPrefetchHandler,
|
||||
AddonModForumSyncCronHandler,
|
||||
AddonModForumIndexLinkHandler,
|
||||
AddonModForumDiscussionLinkHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModForumModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModForumModuleHandler,
|
||||
|
|
|
@ -43,13 +43,17 @@ export const ADDON_MOD_GLOSSARY_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModGlossaryComponentsModule,
|
||||
],
|
||||
providers: ADDON_MOD_GLOSSARY_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModGlossaryProvider,
|
||||
AddonModGlossaryOfflineProvider,
|
||||
AddonModGlossaryHelperProvider,
|
||||
AddonModGlossarySyncProvider,
|
||||
AddonModGlossaryModuleHandler,
|
||||
AddonModGlossaryPrefetchHandler,
|
||||
AddonModGlossarySyncCronHandler,
|
||||
AddonModGlossaryIndexLinkHandler,
|
||||
AddonModGlossaryEntryLinkHandler,
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModGlossaryModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModGlossaryModuleHandler,
|
||||
|
|
|
@ -35,12 +35,13 @@ export const ADDON_MOD_IMSCP_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModImscpComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_IMSCP_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModImscpProvider,
|
||||
AddonModImscpModuleHandler,
|
||||
AddonModImscpPrefetchHandler,
|
||||
AddonModImscpLinkHandler,
|
||||
AddonModImscpPluginFileHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModImscpModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModImscpModuleHandler,
|
||||
|
|
|
@ -44,14 +44,18 @@ export const ADDON_MOD_LESSON_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModLessonComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_LESSON_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModLessonProvider,
|
||||
AddonModLessonOfflineProvider,
|
||||
AddonModLessonSyncProvider,
|
||||
AddonModLessonHelperProvider,
|
||||
AddonModLessonModuleHandler,
|
||||
AddonModLessonPrefetchHandler,
|
||||
AddonModLessonSyncCronHandler,
|
||||
AddonModLessonIndexLinkHandler,
|
||||
AddonModLessonGradeLinkHandler,
|
||||
AddonModLessonReportLinkHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModLessonModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModLessonModuleHandler,
|
||||
|
|
|
@ -776,7 +776,6 @@ export class AddonModLessonProvider {
|
|||
useRegExp = pageData.page.qoption;
|
||||
let expectedAnswer = answer.answer,
|
||||
isMatch = false,
|
||||
markIt = false,
|
||||
ignoreCase;
|
||||
|
||||
if (useRegExp) {
|
||||
|
@ -826,7 +825,6 @@ export class AddonModLessonProvider {
|
|||
// 2- Check for code for marking wrong strings (coded by initial '++').
|
||||
case '++':
|
||||
expectedAnswer = expectedAnswer.substr(2);
|
||||
markIt = true;
|
||||
|
||||
// Check for one or several matches.
|
||||
const matches = studentAnswer.match(new RegExp(expectedAnswer, 'g' + ignoreCase));
|
||||
|
|
|
@ -31,10 +31,11 @@ export const ADDON_MOD_LTI_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModLtiComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_LTI_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModLtiProvider,
|
||||
AddonModLtiModuleHandler,
|
||||
AddonModLtiLinkHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModLtiModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModLtiModuleHandler,
|
||||
|
|
|
@ -37,12 +37,14 @@ export const ADDON_MOD_PAGE_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModPageComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_PAGE_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModPageProvider,
|
||||
AddonModPageHelperProvider,
|
||||
AddonModPageModuleHandler,
|
||||
AddonModPagePrefetchHandler,
|
||||
AddonModPageLinkHandler,
|
||||
AddonModPagePluginFileHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModPageModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModPageModuleHandler,
|
||||
|
|
|
@ -66,14 +66,19 @@ export const ADDON_MOD_QUIZ_PROVIDERS: any[] = [
|
|||
AddonModQuizAccessSecureWindowModule,
|
||||
AddonModQuizAccessTimeLimitModule
|
||||
],
|
||||
providers: ADDON_MOD_QUIZ_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModQuizAccessRuleDelegate,
|
||||
AddonModQuizProvider,
|
||||
AddonModQuizOfflineProvider,
|
||||
AddonModQuizHelperProvider,
|
||||
AddonModQuizSyncProvider,
|
||||
AddonModQuizModuleHandler,
|
||||
AddonModQuizPrefetchHandler,
|
||||
AddonModQuizSyncCronHandler,
|
||||
AddonModQuizIndexLinkHandler,
|
||||
AddonModQuizGradeLinkHandler,
|
||||
AddonModQuizReviewLinkHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModQuizModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModQuizModuleHandler,
|
||||
|
|
|
@ -36,13 +36,14 @@ export const ADDON_MOD_RESOURCE_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModResourceComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_RESOURCE_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModResourceProvider,
|
||||
AddonModResourceModuleHandler,
|
||||
AddonModResourceHelperProvider,
|
||||
AddonModResourcePrefetchHandler,
|
||||
AddonModResourceLinkHandler,
|
||||
AddonModResourcePluginFileHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModResourceModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModResourceModuleHandler,
|
||||
|
|
|
@ -43,13 +43,17 @@ export const ADDON_MOD_SCORM_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModScormComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_SCORM_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModScormProvider,
|
||||
AddonModScormOfflineProvider,
|
||||
AddonModScormHelperProvider,
|
||||
AddonModScormSyncProvider,
|
||||
AddonModScormModuleHandler,
|
||||
AddonModScormPrefetchHandler,
|
||||
AddonModScormSyncCronHandler,
|
||||
AddonModScormIndexLinkHandler,
|
||||
AddonModScormGradeLinkHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModScormModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModScormModuleHandler,
|
||||
|
|
|
@ -42,12 +42,16 @@ export const ADDON_MOD_SURVEY_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModSurveyComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_SURVEY_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModSurveyProvider,
|
||||
AddonModSurveyHelperProvider,
|
||||
AddonModSurveySyncProvider,
|
||||
AddonModSurveyOfflineProvider,
|
||||
AddonModSurveyModuleHandler,
|
||||
AddonModSurveyPrefetchHandler,
|
||||
AddonModSurveyLinkHandler,
|
||||
AddonModSurveySyncCronHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModSurveyModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModSurveyModuleHandler,
|
||||
|
|
|
@ -33,10 +33,12 @@ export const ADDON_MOD_URL_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModUrlComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_URL_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModUrlProvider,
|
||||
AddonModUrlHelperProvider,
|
||||
AddonModUrlModuleHandler,
|
||||
AddonModUrlLinkHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModUrlModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModUrlModuleHandler,
|
||||
|
|
|
@ -43,7 +43,10 @@ export const ADDON_MOD_WIKI_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonModWikiComponentsModule
|
||||
],
|
||||
providers: ADDON_MOD_WIKI_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonModWikiProvider,
|
||||
AddonModWikiOfflineProvider,
|
||||
AddonModWikiSyncProvider,
|
||||
AddonModWikiModuleHandler,
|
||||
AddonModWikiPrefetchHandler,
|
||||
AddonModWikiSyncCronHandler,
|
||||
|
@ -51,7 +54,7 @@ export const ADDON_MOD_WIKI_PROVIDERS: any[] = [
|
|||
AddonModWikiPageOrMapLinkHandler,
|
||||
AddonModWikiCreateLinkHandler,
|
||||
AddonModWikiEditLinkHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonModWikiModule {
|
||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModWikiModuleHandler,
|
||||
|
|
|
@ -38,11 +38,14 @@ export const ADDON_NOTES_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
AddonNotesComponentsModule
|
||||
],
|
||||
providers: ADDON_NOTES_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonNotesProvider,
|
||||
AddonNotesOfflineProvider,
|
||||
AddonNotesSyncProvider,
|
||||
AddonNotesCourseOptionHandler,
|
||||
AddonNotesSyncCronHandler,
|
||||
AddonNotesUserHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonNotesModule {
|
||||
constructor(courseOptionsDelegate: CoreCourseOptionsDelegate, courseOptionHandler: AddonNotesCourseOptionHandler,
|
||||
|
|
|
@ -37,11 +37,12 @@ export const ADDON_NOTIFICATIONS_PROVIDERS: any[] = [
|
|||
],
|
||||
imports: [
|
||||
],
|
||||
providers: ADDON_NOTIFICATIONS_PROVIDERS.concat([
|
||||
providers: [
|
||||
AddonNotificationsProvider,
|
||||
AddonNotificationsMainMenuHandler,
|
||||
AddonNotificationsSettingsHandler,
|
||||
AddonNotificationsCronHandler,
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AddonNotificationsModule {
|
||||
constructor(mainMenuDelegate: CoreMainMenuDelegate, mainMenuHandler: AddonNotificationsMainMenuHandler,
|
||||
|
|
|
@ -32,7 +32,10 @@ export const ADDON_PUSHNOTIFICATIONS_PROVIDERS: any[] = [
|
|||
],
|
||||
imports: [
|
||||
],
|
||||
providers: ADDON_PUSHNOTIFICATIONS_PROVIDERS
|
||||
providers: [
|
||||
AddonPushNotificationsProvider,
|
||||
AddonPushNotificationsDelegate
|
||||
]
|
||||
})
|
||||
export class AddonPushNotificationsModule {
|
||||
constructor(platform: Platform, pushNotificationsProvider: AddonPushNotificationsProvider, eventsProvider: CoreEventsProvider,
|
||||
|
|
|
@ -29,7 +29,9 @@ export const ADDON_REMOTETHEMES_PROVIDERS: any[] = [
|
|||
],
|
||||
imports: [
|
||||
],
|
||||
providers: ADDON_REMOTETHEMES_PROVIDERS
|
||||
providers: [
|
||||
AddonRemoteThemesProvider
|
||||
]
|
||||
})
|
||||
export class AddonRemoteThemesModule {
|
||||
constructor(initDelegate: CoreInitDelegate, remoteThemesProvider: AddonRemoteThemesProvider, eventsProvider: CoreEventsProvider,
|
||||
|
|
|
@ -217,13 +217,39 @@ export const CORE_PROVIDERS: any[] = [
|
|||
entryComponents: [
|
||||
MoodleMobileApp
|
||||
],
|
||||
providers: CORE_PROVIDERS.concat([
|
||||
providers: [
|
||||
CoreLoggerProvider,
|
||||
CoreDbProvider,
|
||||
CoreAppProvider,
|
||||
CoreConfigProvider,
|
||||
CoreLangProvider,
|
||||
CoreTextUtilsProvider,
|
||||
CoreDomUtilsProvider,
|
||||
CoreTimeUtilsProvider,
|
||||
CoreUrlUtilsProvider,
|
||||
CoreUtilsProvider,
|
||||
CoreMimetypeUtilsProvider,
|
||||
CoreInitDelegate,
|
||||
CoreFileProvider,
|
||||
CoreWSProvider,
|
||||
CoreEventsProvider,
|
||||
CoreSitesFactoryProvider,
|
||||
CoreSitesProvider,
|
||||
CoreLocalNotificationsProvider,
|
||||
CoreGroupsProvider,
|
||||
CoreCronDelegate,
|
||||
CoreFileSessionProvider,
|
||||
CoreFilepoolProvider,
|
||||
CoreUpdateManagerProvider,
|
||||
CorePluginFileDelegate,
|
||||
CoreSyncProvider,
|
||||
CoreFileHelperProvider,
|
||||
{
|
||||
provide: HTTP_INTERCEPTORS,
|
||||
useClass: CoreInterceptor,
|
||||
multi: true,
|
||||
}
|
||||
])
|
||||
]
|
||||
})
|
||||
export class AppModule {
|
||||
constructor(platform: Platform, initDelegate: CoreInitDelegate, updateManager: CoreUpdateManagerProvider,
|
||||
|
|
|
@ -44,10 +44,16 @@ export const CORE_COURSE_PROVIDERS: any[] = [
|
|||
CoreCourseFormatWeeksModule,
|
||||
CoreCourseFormatSocialModule
|
||||
],
|
||||
providers: CORE_COURSE_PROVIDERS.concat([
|
||||
providers: [
|
||||
CoreCourseProvider,
|
||||
CoreCourseHelperProvider,
|
||||
CoreCourseFormatDelegate,
|
||||
CoreCourseModuleDelegate,
|
||||
CoreCourseModulePrefetchDelegate,
|
||||
CoreCourseOptionsDelegate,
|
||||
CoreCourseFormatDefaultHandler,
|
||||
CoreCourseModuleDefaultHandler
|
||||
]),
|
||||
],
|
||||
exports: []
|
||||
})
|
||||
export class CoreCourseModule {}
|
||||
|
|
|
@ -32,12 +32,14 @@ export const CORE_COURSES_PROVIDERS: any[] = [
|
|||
declarations: [],
|
||||
imports: [
|
||||
],
|
||||
providers: CORE_COURSES_PROVIDERS.concat([
|
||||
providers: [
|
||||
CoreCoursesProvider,
|
||||
CoreCoursesMyOverviewProvider,
|
||||
CoreCoursesMainMenuHandler,
|
||||
CoreCoursesCourseLinkHandler,
|
||||
CoreCoursesIndexLinkHandler,
|
||||
CoreCoursesMyOverviewLinkHandler
|
||||
]),
|
||||
],
|
||||
exports: []
|
||||
})
|
||||
export class CoreCoursesModule {
|
||||
|
|
|
@ -62,9 +62,12 @@ import { CoreInitDelegate } from '@providers/init';
|
|||
|
||||
// List of Ionic Native providers.
|
||||
export const IONIC_NATIVE_PROVIDERS = [
|
||||
Badge,
|
||||
Camera,
|
||||
Clipboard,
|
||||
Device,
|
||||
File,
|
||||
FileOpener,
|
||||
FileTransfer,
|
||||
Globalization,
|
||||
InAppBrowser,
|
||||
|
@ -72,9 +75,11 @@ export const IONIC_NATIVE_PROVIDERS = [
|
|||
LocalNotifications,
|
||||
MediaCapture,
|
||||
Network,
|
||||
Push,
|
||||
SplashScreen,
|
||||
StatusBar,
|
||||
SQLite,
|
||||
WebIntent,
|
||||
Zip
|
||||
];
|
||||
|
||||
|
|
|
@ -34,13 +34,16 @@ export const CORE_FILEUPLOADER_PROVIDERS: any[] = [
|
|||
],
|
||||
imports: [
|
||||
],
|
||||
providers: CORE_FILEUPLOADER_PROVIDERS.concat([
|
||||
providers: [
|
||||
CoreFileUploaderProvider,
|
||||
CoreFileUploaderHelperProvider,
|
||||
CoreFileUploaderDelegate,
|
||||
CoreFileUploaderAlbumHandler,
|
||||
CoreFileUploaderAudioHandler,
|
||||
CoreFileUploaderCameraHandler,
|
||||
CoreFileUploaderFileHandler,
|
||||
CoreFileUploaderVideoHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class CoreFileUploaderModule {
|
||||
constructor(delegate: CoreFileUploaderDelegate, albumHandler: CoreFileUploaderAlbumHandler,
|
||||
|
|
|
@ -41,13 +41,15 @@ export const CORE_GRADES_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
CoreGradesComponentsModule
|
||||
],
|
||||
providers: CORE_GRADES_PROVIDERS.concat([
|
||||
providers: [
|
||||
CoreGradesProvider,
|
||||
CoreGradesHelperProvider,
|
||||
CoreGradesMainMenuHandler,
|
||||
CoreGradesCourseOptionHandler,
|
||||
CoreGradesUserLinkHandler,
|
||||
CoreGradesOverviewLinkHandler,
|
||||
CoreGradesUserHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class CoreGradesModule {
|
||||
constructor(mainMenuDelegate: CoreMainMenuDelegate, gradesMenuHandler: CoreGradesMainMenuHandler,
|
||||
|
|
|
@ -32,10 +32,14 @@ export const CORE_QUESTION_PROVIDERS: any[] = [
|
|||
declarations: [],
|
||||
imports: [
|
||||
],
|
||||
providers: CORE_QUESTION_PROVIDERS.concat([
|
||||
providers: [
|
||||
CoreQuestionProvider,
|
||||
CoreQuestionDelegate,
|
||||
CoreQuestionBehaviourDelegate,
|
||||
CoreQuestionHelperProvider,
|
||||
CoreQuestionDefaultHandler,
|
||||
CoreQuestionBehaviourDefaultHandler
|
||||
]),
|
||||
],
|
||||
exports: []
|
||||
})
|
||||
export class CoreQuestionModule {}
|
||||
|
|
|
@ -30,9 +30,11 @@ export const CORE_SHAREDFILES_PROVIDERS: any[] = [
|
|||
],
|
||||
imports: [
|
||||
],
|
||||
providers: CORE_SHAREDFILES_PROVIDERS.concat([
|
||||
providers: [
|
||||
CoreSharedFilesProvider,
|
||||
CoreSharedFilesHelperProvider,
|
||||
CoreSharedFilesUploadHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class CoreSharedFilesModule {
|
||||
constructor(platform: Platform, delegate: CoreFileUploaderDelegate, handler: CoreSharedFilesUploadHandler,
|
||||
|
|
|
@ -28,10 +28,11 @@ export const CORE_SITEHOME_PROVIDERS: any[] = [
|
|||
declarations: [],
|
||||
imports: [
|
||||
],
|
||||
providers: CORE_SITEHOME_PROVIDERS.concat([
|
||||
providers: [
|
||||
CoreSiteHomeProvider,
|
||||
CoreSiteHomeMainMenuHandler,
|
||||
CoreSiteHomeIndexLinkHandler
|
||||
]),
|
||||
],
|
||||
exports: []
|
||||
})
|
||||
export class CoreSiteHomeModule {
|
||||
|
|
|
@ -41,12 +41,16 @@ export const CORE_USER_PROVIDERS: any[] = [
|
|||
imports: [
|
||||
CoreUserComponentsModule
|
||||
],
|
||||
providers: CORE_USER_PROVIDERS.concat([
|
||||
providers: [
|
||||
CoreUserDelegate,
|
||||
CoreUserProfileFieldDelegate,
|
||||
CoreUserProvider,
|
||||
CoreUserHelperProvider,
|
||||
CoreUserProfileMailHandler,
|
||||
CoreUserProfileLinkHandler,
|
||||
CoreUserParticipantsCourseOptionHandler,
|
||||
CoreUserParticipantsLinkHandler
|
||||
])
|
||||
]
|
||||
})
|
||||
export class CoreUserModule {
|
||||
constructor(userDelegate: CoreUserDelegate, userProfileMailHandler: CoreUserProfileMailHandler,
|
||||
|
|
Loading…
Reference in New Issue