MOBILE-2425 siteplugins: Import addon providers and components

main
Dani Palou 2018-06-01 13:47:02 +02:00
parent 7ef4726bf5
commit 57d65555a4
30 changed files with 302 additions and 141 deletions

View File

@ -20,17 +20,21 @@ import { AddonBadgesBadgeLinkHandler } from './providers/badge-link-handler';
import { CoreContentLinksDelegate } from '@core/contentlinks/providers/delegate'; import { CoreContentLinksDelegate } from '@core/contentlinks/providers/delegate';
import { CoreUserDelegate } from '@core/user/providers/user-delegate'; import { CoreUserDelegate } from '@core/user/providers/user-delegate';
// List of providers (without handlers).
export const ADDON_BADGES_PROVIDERS: any[] = [
AddonBadgesProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
], ],
providers: [ providers: ADDON_BADGES_PROVIDERS.concat([
AddonBadgesProvider,
AddonBadgesUserHandler, AddonBadgesUserHandler,
AddonBadgesMyBadgesLinkHandler, AddonBadgesMyBadgesLinkHandler,
AddonBadgesBadgeLinkHandler AddonBadgesBadgeLinkHandler
] ])
}) })
export class AddonBadgesModule { export class AddonBadgesModule {
constructor(userDelegate: CoreUserDelegate, userHandler: AddonBadgesUserHandler, constructor(userDelegate: CoreUserDelegate, userHandler: AddonBadgesUserHandler,

View File

@ -21,16 +21,20 @@ import { CoreInitDelegate } from '@providers/init';
import { CoreLocalNotificationsProvider } from '@providers/local-notifications'; import { CoreLocalNotificationsProvider } from '@providers/local-notifications';
import { CoreLoginHelperProvider } from '@core/login/providers/helper'; import { CoreLoginHelperProvider } from '@core/login/providers/helper';
// List of providers (without handlers).
export const ADDON_CALENDAR_PROVIDERS: any[] = [
AddonCalendarProvider,
AddonCalendarHelperProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
], ],
providers: [ providers: ADDON_CALENDAR_PROVIDERS.concat([
AddonCalendarProvider,
AddonCalendarHelperProvider,
AddonCalendarMainMenuHandler AddonCalendarMainMenuHandler
] ])
}) })
export class AddonCalendarModule { export class AddonCalendarModule {
constructor(mainMenuDelegate: CoreMainMenuDelegate, calendarHandler: AddonCalendarMainMenuHandler, constructor(mainMenuDelegate: CoreMainMenuDelegate, calendarHandler: AddonCalendarMainMenuHandler,

View File

@ -23,19 +23,23 @@ import { CoreCourseOptionsDelegate } from '@core/course/providers/options-delega
import { CoreMainMenuDelegate } from '@core/mainmenu/providers/delegate'; import { CoreMainMenuDelegate } from '@core/mainmenu/providers/delegate';
import { CoreUserDelegate } from '@core/user/providers/user-delegate'; import { CoreUserDelegate } from '@core/user/providers/user-delegate';
// List of providers (without handlers).
export const ADDON_COMPETENCY_PROVIDERS: any[] = [
AddonCompetencyProvider,
AddonCompetencyHelperProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonCompetencyComponentsModule AddonCompetencyComponentsModule
], ],
providers: [ providers: ADDON_COMPETENCY_PROVIDERS.concat([
AddonCompetencyProvider,
AddonCompetencyHelperProvider,
AddonCompetencyCourseOptionHandler, AddonCompetencyCourseOptionHandler,
AddonCompetencyMainMenuHandler, AddonCompetencyMainMenuHandler,
AddonCompetencyUserHandler AddonCompetencyUserHandler
] ])
}) })
export class AddonCompetencyModule { export class AddonCompetencyModule {
constructor(mainMenuDelegate: CoreMainMenuDelegate, mainMenuHandler: AddonCompetencyMainMenuHandler, constructor(mainMenuDelegate: CoreMainMenuDelegate, mainMenuHandler: AddonCompetencyMainMenuHandler,

View File

@ -18,16 +18,20 @@ import { AddonFilesHelperProvider } from './providers/helper';
import { AddonFilesMainMenuHandler } from './providers/mainmenu-handler'; import { AddonFilesMainMenuHandler } from './providers/mainmenu-handler';
import { CoreMainMenuDelegate } from '@core/mainmenu/providers/delegate'; import { CoreMainMenuDelegate } from '@core/mainmenu/providers/delegate';
// List of providers (without handlers).
export const ADDON_FILES_PROVIDERS: any[] = [
AddonFilesProvider,
AddonFilesHelperProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
], ],
providers: [ providers: ADDON_FILES_PROVIDERS.concat([
AddonFilesProvider,
AddonFilesHelperProvider,
AddonFilesMainMenuHandler AddonFilesMainMenuHandler
] ])
}) })
export class AddonFilesModule { export class AddonFilesModule {
constructor(mainMenuDelegate: CoreMainMenuDelegate, filesHandler: AddonFilesMainMenuHandler) { constructor(mainMenuDelegate: CoreMainMenuDelegate, filesHandler: AddonFilesMainMenuHandler) {

View File

@ -15,13 +15,16 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { AddonMessageOutputDelegate } from './providers/delegate'; import { AddonMessageOutputDelegate } from './providers/delegate';
// List of providers (without handlers).
export const ADDON_MESSAGEOUTPUT_PROVIDERS: any[] = [
AddonMessageOutputDelegate
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
], ],
providers: [ providers: ADDON_MESSAGEOUTPUT_PROVIDERS
AddonMessageOutputDelegate
]
}) })
export class AddonMessageOutputModule {} export class AddonMessageOutputModule {}

View File

@ -37,15 +37,19 @@ import { AddonMessagesSettingsHandler } from './providers/settings-handler';
import { AddonPushNotificationsDelegate } from '@addon/pushnotifications/providers/delegate'; import { AddonPushNotificationsDelegate } from '@addon/pushnotifications/providers/delegate';
import { CoreUtilsProvider } from '@providers/utils/utils'; import { CoreUtilsProvider } from '@providers/utils/utils';
// List of providers (without handlers).
export const ADDON_MESSAGES_PROVIDERS: any[] = [
AddonMessagesProvider,
AddonMessagesOfflineProvider,
AddonMessagesSyncProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
], ],
providers: [ providers: ADDON_MESSAGES_PROVIDERS.concat([
AddonMessagesProvider,
AddonMessagesOfflineProvider,
AddonMessagesSyncProvider,
AddonMessagesMainMenuHandler, AddonMessagesMainMenuHandler,
AddonMessagesSendMessageUserHandler, AddonMessagesSendMessageUserHandler,
AddonMessagesAddContactUserHandler, AddonMessagesAddContactUserHandler,
@ -54,7 +58,7 @@ import { CoreUtilsProvider } from '@providers/utils/utils';
AddonMessagesIndexLinkHandler, AddonMessagesIndexLinkHandler,
AddonMessagesSyncCronHandler, AddonMessagesSyncCronHandler,
AddonMessagesSettingsHandler AddonMessagesSettingsHandler
] ])
}) })
export class AddonMessagesModule { export class AddonMessagesModule {
constructor(mainMenuDelegate: CoreMainMenuDelegate, mainmenuHandler: AddonMessagesMainMenuHandler, constructor(mainMenuDelegate: CoreMainMenuDelegate, mainmenuHandler: AddonMessagesMainMenuHandler,

View File

@ -30,6 +30,16 @@ import { AddonModAssignSyncCronHandler } from './providers/sync-cron-handler';
import { AddonModAssignSubmissionModule } from './submission/submission.module'; import { AddonModAssignSubmissionModule } from './submission/submission.module';
import { AddonModAssignFeedbackModule } from './feedback/feedback.module'; import { AddonModAssignFeedbackModule } from './feedback/feedback.module';
// List of providers (without handlers).
export const ADDON_MOD_ASSIGN_PROVIDERS: any[] = [
AddonModAssignProvider,
AddonModAssignOfflineProvider,
AddonModAssignSyncProvider,
AddonModAssignHelperProvider,
AddonModAssignFeedbackDelegate,
AddonModAssignSubmissionDelegate
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
@ -37,19 +47,13 @@ import { AddonModAssignFeedbackModule } from './feedback/feedback.module';
AddonModAssignSubmissionModule, AddonModAssignSubmissionModule,
AddonModAssignFeedbackModule AddonModAssignFeedbackModule
], ],
providers: [ providers: ADDON_MOD_ASSIGN_PROVIDERS.concat([
AddonModAssignProvider,
AddonModAssignOfflineProvider,
AddonModAssignSyncProvider,
AddonModAssignHelperProvider,
AddonModAssignFeedbackDelegate,
AddonModAssignSubmissionDelegate,
AddonModAssignDefaultFeedbackHandler, AddonModAssignDefaultFeedbackHandler,
AddonModAssignDefaultSubmissionHandler, AddonModAssignDefaultSubmissionHandler,
AddonModAssignModuleHandler, AddonModAssignModuleHandler,
AddonModAssignPrefetchHandler, AddonModAssignPrefetchHandler,
AddonModAssignSyncCronHandler AddonModAssignSyncCronHandler
] ])
}) })
export class AddonModAssignModule { export class AddonModAssignModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModAssignModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModAssignModuleHandler,

View File

@ -22,18 +22,22 @@ import { CoreCourseModuleDelegate } from '@core/course/providers/module-delegate
import { CoreContentLinksDelegate } from '@core/contentlinks/providers/delegate'; import { CoreContentLinksDelegate } from '@core/contentlinks/providers/delegate';
import { CoreCourseModulePrefetchDelegate } from '@core/course/providers/module-prefetch-delegate'; import { CoreCourseModulePrefetchDelegate } from '@core/course/providers/module-prefetch-delegate';
// List of providers (without handlers).
export const ADDON_MOD_BOOK_PROVIDERS: any[] = [
AddonModBookProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModBookComponentsModule AddonModBookComponentsModule
], ],
providers: [ providers: ADDON_MOD_BOOK_PROVIDERS.concat([
AddonModBookProvider,
AddonModBookModuleHandler, AddonModBookModuleHandler,
AddonModBookLinkHandler, AddonModBookLinkHandler,
AddonModBookPrefetchHandler AddonModBookPrefetchHandler
] ])
}) })
export class AddonModBookModule { export class AddonModBookModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModBookModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModBookModuleHandler,

View File

@ -20,17 +20,21 @@ import { AddonModChatProvider } from './providers/chat';
import { AddonModChatLinkHandler } from './providers/link-handler'; import { AddonModChatLinkHandler } from './providers/link-handler';
import { AddonModChatModuleHandler } from './providers/module-handler'; import { AddonModChatModuleHandler } from './providers/module-handler';
// List of providers (without handlers).
export const ADDON_MOD_CHAT_PROVIDERS: any[] = [
AddonModChatProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModChatComponentsModule AddonModChatComponentsModule
], ],
providers: [ providers: ADDON_MOD_CHAT_PROVIDERS.concat([
AddonModChatProvider,
AddonModChatLinkHandler, AddonModChatLinkHandler,
AddonModChatModuleHandler, AddonModChatModuleHandler,
] ])
}) })
export class AddonModChatModule { export class AddonModChatModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModChatModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModChatModuleHandler,

View File

@ -26,21 +26,25 @@ import { AddonModChoiceSyncProvider } from './providers/sync';
import { AddonModChoiceSyncCronHandler } from './providers/sync-cron-handler'; import { AddonModChoiceSyncCronHandler } from './providers/sync-cron-handler';
import { AddonModChoiceOfflineProvider } from './providers/offline'; import { AddonModChoiceOfflineProvider } from './providers/offline';
// List of providers (without handlers).
export const ADDON_MOD_CHOICE_PROVIDERS: any[] = [
AddonModChoiceProvider,
AddonModChoiceSyncProvider,
AddonModChoiceOfflineProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModChoiceComponentsModule AddonModChoiceComponentsModule
], ],
providers: [ providers: ADDON_MOD_CHOICE_PROVIDERS.concat([
AddonModChoiceProvider,
AddonModChoiceModuleHandler, AddonModChoiceModuleHandler,
AddonModChoicePrefetchHandler, AddonModChoicePrefetchHandler,
AddonModChoiceLinkHandler, AddonModChoiceLinkHandler,
AddonModChoiceSyncCronHandler, AddonModChoiceSyncCronHandler
AddonModChoiceSyncProvider, ])
AddonModChoiceOfflineProvider
]
}) })
export class AddonModChoiceModule { export class AddonModChoiceModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModChoiceModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModChoiceModuleHandler,

View File

@ -34,6 +34,15 @@ import { AddonModDataFieldsDelegate } from './providers/fields-delegate';
import { AddonModDataDefaultFieldHandler } from './providers/default-field-handler'; import { AddonModDataDefaultFieldHandler } from './providers/default-field-handler';
import { AddonModDataFieldModule } from './fields/field.module'; import { AddonModDataFieldModule } from './fields/field.module';
// List of providers (without handlers).
export const ADDON_MOD_DATA_PROVIDERS: any[] = [
AddonModDataProvider,
AddonModDataHelperProvider,
AddonModDataSyncProvider,
AddonModDataOfflineProvider,
AddonModDataFieldsDelegate
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
@ -41,22 +50,17 @@ import { AddonModDataFieldModule } from './fields/field.module';
AddonModDataComponentsModule, AddonModDataComponentsModule,
AddonModDataFieldModule AddonModDataFieldModule
], ],
providers: [ providers: ADDON_MOD_DATA_PROVIDERS.concat([
AddonModDataProvider,
AddonModDataModuleHandler, AddonModDataModuleHandler,
AddonModDataPrefetchHandler, AddonModDataPrefetchHandler,
AddonModDataHelperProvider,
AddonModDataLinkHandler, AddonModDataLinkHandler,
AddonModDataApproveLinkHandler, AddonModDataApproveLinkHandler,
AddonModDataDeleteLinkHandler, AddonModDataDeleteLinkHandler,
AddonModDataShowLinkHandler, AddonModDataShowLinkHandler,
AddonModDataEditLinkHandler, AddonModDataEditLinkHandler,
AddonModDataSyncCronHandler, AddonModDataSyncCronHandler,
AddonModDataSyncProvider,
AddonModDataOfflineProvider,
AddonModDataFieldsDelegate,
AddonModDataDefaultFieldHandler AddonModDataDefaultFieldHandler
] ])
}) })
export class AddonModDataModule { export class AddonModDataModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModDataModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModDataModuleHandler,

View File

@ -32,27 +32,31 @@ import { AddonModFeedbackSyncProvider } from './providers/sync';
import { AddonModFeedbackSyncCronHandler } from './providers/sync-cron-handler'; import { AddonModFeedbackSyncCronHandler } from './providers/sync-cron-handler';
import { AddonModFeedbackOfflineProvider } from './providers/offline'; import { AddonModFeedbackOfflineProvider } from './providers/offline';
// List of providers (without handlers).
export const ADDON_MOD_FEEDBACK_PROVIDERS: any[] = [
AddonModFeedbackProvider,
AddonModFeedbackHelperProvider,
AddonModFeedbackSyncProvider,
AddonModFeedbackOfflineProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModFeedbackComponentsModule AddonModFeedbackComponentsModule
], ],
providers: [ providers: ADDON_MOD_FEEDBACK_PROVIDERS.concat([
AddonModFeedbackProvider,
AddonModFeedbackModuleHandler, AddonModFeedbackModuleHandler,
AddonModFeedbackPrefetchHandler, AddonModFeedbackPrefetchHandler,
AddonModFeedbackHelperProvider,
AddonModFeedbackLinkHandler, AddonModFeedbackLinkHandler,
AddonModFeedbackAnalysisLinkHandler, AddonModFeedbackAnalysisLinkHandler,
AddonModFeedbackShowEntriesLinkHandler, AddonModFeedbackShowEntriesLinkHandler,
AddonModFeedbackShowNonRespondentsLinkHandler, AddonModFeedbackShowNonRespondentsLinkHandler,
AddonModFeedbackCompleteLinkHandler, AddonModFeedbackCompleteLinkHandler,
AddonModFeedbackPrintLinkHandler, AddonModFeedbackPrintLinkHandler,
AddonModFeedbackSyncCronHandler, AddonModFeedbackSyncCronHandler
AddonModFeedbackSyncProvider, ])
AddonModFeedbackOfflineProvider
]
}) })
export class AddonModFeedbackModule { export class AddonModFeedbackModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModFeedbackModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModFeedbackModuleHandler,

View File

@ -25,20 +25,24 @@ import { CoreContentLinksDelegate } from '@core/contentlinks/providers/delegate'
import { CoreCourseModulePrefetchDelegate } from '@core/course/providers/module-prefetch-delegate'; import { CoreCourseModulePrefetchDelegate } from '@core/course/providers/module-prefetch-delegate';
import { CorePluginFileDelegate } from '@providers/plugin-file-delegate'; import { CorePluginFileDelegate } from '@providers/plugin-file-delegate';
// List of providers (without handlers).
export const ADDON_MOD_FOLDER_PROVIDERS: any[] = [
AddonModFolderProvider,
AddonModFolderHelperProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModFolderComponentsModule AddonModFolderComponentsModule
], ],
providers: [ providers: ADDON_MOD_FOLDER_PROVIDERS.concat([
AddonModFolderProvider,
AddonModFolderHelperProvider,
AddonModFolderModuleHandler, AddonModFolderModuleHandler,
AddonModFolderPrefetchHandler, AddonModFolderPrefetchHandler,
AddonModFolderLinkHandler, AddonModFolderLinkHandler,
AddonModFolderPluginFileHandler AddonModFolderPluginFileHandler
] ])
}) })
export class AddonModFolderModule { export class AddonModFolderModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModFolderModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModFolderModuleHandler,

View File

@ -28,23 +28,27 @@ import { AddonModForumIndexLinkHandler } from './providers/index-link-handler';
import { AddonModForumDiscussionLinkHandler } from './providers/discussion-link-handler'; import { AddonModForumDiscussionLinkHandler } from './providers/discussion-link-handler';
import { AddonModForumComponentsModule } from './components/components.module'; import { AddonModForumComponentsModule } from './components/components.module';
// List of providers (without handlers).
export const ADDON_MOD_FORUM_PROVIDERS: any[] = [
AddonModForumProvider,
AddonModForumOfflineProvider,
AddonModForumHelperProvider,
AddonModForumSyncProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModForumComponentsModule, AddonModForumComponentsModule,
], ],
providers: [ providers: ADDON_MOD_FORUM_PROVIDERS.concat([
AddonModForumProvider,
AddonModForumOfflineProvider,
AddonModForumHelperProvider,
AddonModForumSyncProvider,
AddonModForumModuleHandler, AddonModForumModuleHandler,
AddonModForumPrefetchHandler, AddonModForumPrefetchHandler,
AddonModForumSyncCronHandler, AddonModForumSyncCronHandler,
AddonModForumIndexLinkHandler, AddonModForumIndexLinkHandler,
AddonModForumDiscussionLinkHandler, AddonModForumDiscussionLinkHandler
] ])
}) })
export class AddonModForumModule { export class AddonModForumModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModForumModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModForumModuleHandler,

View File

@ -28,23 +28,27 @@ import { AddonModGlossaryIndexLinkHandler } from './providers/index-link-handler
import { AddonModGlossaryEntryLinkHandler } from './providers/entry-link-handler'; import { AddonModGlossaryEntryLinkHandler } from './providers/entry-link-handler';
import { AddonModGlossaryComponentsModule } from './components/components.module'; import { AddonModGlossaryComponentsModule } from './components/components.module';
// List of providers (without handlers).
export const ADDON_MOD_GLOSSARY_PROVIDERS: any[] = [
AddonModGlossaryProvider,
AddonModGlossaryOfflineProvider,
AddonModGlossaryHelperProvider,
AddonModGlossarySyncProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModGlossaryComponentsModule, AddonModGlossaryComponentsModule,
], ],
providers: [ providers: ADDON_MOD_GLOSSARY_PROVIDERS.concat([
AddonModGlossaryProvider,
AddonModGlossaryOfflineProvider,
AddonModGlossaryHelperProvider,
AddonModGlossarySyncProvider,
AddonModGlossaryModuleHandler, AddonModGlossaryModuleHandler,
AddonModGlossaryPrefetchHandler, AddonModGlossaryPrefetchHandler,
AddonModGlossarySyncCronHandler, AddonModGlossarySyncCronHandler,
AddonModGlossaryIndexLinkHandler, AddonModGlossaryIndexLinkHandler,
AddonModGlossaryEntryLinkHandler, AddonModGlossaryEntryLinkHandler,
] ])
}) })
export class AddonModGlossaryModule { export class AddonModGlossaryModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModGlossaryModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModGlossaryModuleHandler,

View File

@ -24,19 +24,23 @@ import { CoreCourseModuleDelegate } from '@core/course/providers/module-delegate
import { CoreCourseModulePrefetchDelegate } from '@core/course/providers/module-prefetch-delegate'; import { CoreCourseModulePrefetchDelegate } from '@core/course/providers/module-prefetch-delegate';
import { CorePluginFileDelegate } from '@providers/plugin-file-delegate'; import { CorePluginFileDelegate } from '@providers/plugin-file-delegate';
// List of providers (without handlers).
export const ADDON_MOD_IMSCP_PROVIDERS: any[] = [
AddonModImscpProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModImscpComponentsModule AddonModImscpComponentsModule
], ],
providers: [ providers: ADDON_MOD_IMSCP_PROVIDERS.concat([
AddonModImscpProvider,
AddonModImscpModuleHandler, AddonModImscpModuleHandler,
AddonModImscpPrefetchHandler, AddonModImscpPrefetchHandler,
AddonModImscpLinkHandler, AddonModImscpLinkHandler,
AddonModImscpPluginFileHandler AddonModImscpPluginFileHandler
] ])
}) })
export class AddonModImscpModule { export class AddonModImscpModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModImscpModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModImscpModuleHandler,

View File

@ -29,24 +29,28 @@ import { AddonModLessonIndexLinkHandler } from './providers/index-link-handler';
import { AddonModLessonGradeLinkHandler } from './providers/grade-link-handler'; import { AddonModLessonGradeLinkHandler } from './providers/grade-link-handler';
import { AddonModLessonReportLinkHandler } from './providers/report-link-handler'; import { AddonModLessonReportLinkHandler } from './providers/report-link-handler';
// List of providers (without handlers).
export const ADDON_MOD_LESSON_PROVIDERS: any[] = [
AddonModLessonProvider,
AddonModLessonOfflineProvider,
AddonModLessonSyncProvider,
AddonModLessonHelperProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModLessonComponentsModule AddonModLessonComponentsModule
], ],
providers: [ providers: ADDON_MOD_LESSON_PROVIDERS.concat([
AddonModLessonProvider,
AddonModLessonOfflineProvider,
AddonModLessonSyncProvider,
AddonModLessonHelperProvider,
AddonModLessonModuleHandler, AddonModLessonModuleHandler,
AddonModLessonPrefetchHandler, AddonModLessonPrefetchHandler,
AddonModLessonSyncCronHandler, AddonModLessonSyncCronHandler,
AddonModLessonIndexLinkHandler, AddonModLessonIndexLinkHandler,
AddonModLessonGradeLinkHandler, AddonModLessonGradeLinkHandler,
AddonModLessonReportLinkHandler AddonModLessonReportLinkHandler
] ])
}) })
export class AddonModLessonModule { export class AddonModLessonModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModLessonModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModLessonModuleHandler,

View File

@ -20,17 +20,21 @@ import { AddonModLtiLinkHandler } from './providers/link-handler';
import { CoreContentLinksDelegate } from '@core/contentlinks/providers/delegate'; import { CoreContentLinksDelegate } from '@core/contentlinks/providers/delegate';
import { CoreCourseModuleDelegate } from '@core/course/providers/module-delegate'; import { CoreCourseModuleDelegate } from '@core/course/providers/module-delegate';
// List of providers (without handlers).
export const ADDON_MOD_LTI_PROVIDERS: any[] = [
AddonModLtiProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModLtiComponentsModule AddonModLtiComponentsModule
], ],
providers: [ providers: ADDON_MOD_LTI_PROVIDERS.concat([
AddonModLtiProvider,
AddonModLtiModuleHandler, AddonModLtiModuleHandler,
AddonModLtiLinkHandler, AddonModLtiLinkHandler
] ])
}) })
export class AddonModLtiModule { export class AddonModLtiModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModLtiModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModLtiModuleHandler,

View File

@ -25,20 +25,24 @@ import { CoreCourseModuleDelegate } from '@core/course/providers/module-delegate
import { CoreCourseModulePrefetchDelegate } from '@core/course/providers/module-prefetch-delegate'; import { CoreCourseModulePrefetchDelegate } from '@core/course/providers/module-prefetch-delegate';
import { CorePluginFileDelegate } from '@providers/plugin-file-delegate'; import { CorePluginFileDelegate } from '@providers/plugin-file-delegate';
// List of providers (without handlers).
export const ADDON_MOD_PAGE_PROVIDERS: any[] = [
AddonModPageProvider,
AddonModPageHelperProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModPageComponentsModule AddonModPageComponentsModule
], ],
providers: [ providers: ADDON_MOD_PAGE_PROVIDERS.concat([
AddonModPageProvider,
AddonModPageModuleHandler, AddonModPageModuleHandler,
AddonModPageHelperProvider,
AddonModPagePrefetchHandler, AddonModPagePrefetchHandler,
AddonModPageLinkHandler, AddonModPageLinkHandler,
AddonModPagePluginFileHandler AddonModPagePluginFileHandler
] ])
}) })
export class AddonModPageModule { export class AddonModPageModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModPageModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModPageModuleHandler,

View File

@ -41,6 +41,15 @@ import { AddonModQuizAccessSafeBrowserModule } from './accessrules/safebrowser/s
import { AddonModQuizAccessSecureWindowModule } from './accessrules/securewindow/securewindow.module'; import { AddonModQuizAccessSecureWindowModule } from './accessrules/securewindow/securewindow.module';
import { AddonModQuizAccessTimeLimitModule } from './accessrules/timelimit/timelimit.module'; import { AddonModQuizAccessTimeLimitModule } from './accessrules/timelimit/timelimit.module';
// List of providers (without handlers).
export const ADDON_MOD_QUIZ_PROVIDERS: any[] = [
AddonModQuizAccessRuleDelegate,
AddonModQuizProvider,
AddonModQuizOfflineProvider,
AddonModQuizHelperProvider,
AddonModQuizSyncProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
@ -56,19 +65,14 @@ import { AddonModQuizAccessTimeLimitModule } from './accessrules/timelimit/timel
AddonModQuizAccessSecureWindowModule, AddonModQuizAccessSecureWindowModule,
AddonModQuizAccessTimeLimitModule AddonModQuizAccessTimeLimitModule
], ],
providers: [ providers: ADDON_MOD_QUIZ_PROVIDERS.concat([
AddonModQuizAccessRuleDelegate,
AddonModQuizProvider,
AddonModQuizOfflineProvider,
AddonModQuizHelperProvider,
AddonModQuizSyncProvider,
AddonModQuizModuleHandler, AddonModQuizModuleHandler,
AddonModQuizPrefetchHandler, AddonModQuizPrefetchHandler,
AddonModQuizSyncCronHandler, AddonModQuizSyncCronHandler,
AddonModQuizIndexLinkHandler, AddonModQuizIndexLinkHandler,
AddonModQuizGradeLinkHandler, AddonModQuizGradeLinkHandler,
AddonModQuizReviewLinkHandler AddonModQuizReviewLinkHandler
] ])
}) })
export class AddonModQuizModule { export class AddonModQuizModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModQuizModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModQuizModuleHandler,

View File

@ -25,20 +25,24 @@ import { CoreCourseModuleDelegate } from '@core/course/providers/module-delegate
import { CoreCourseModulePrefetchDelegate } from '@core/course/providers/module-prefetch-delegate'; import { CoreCourseModulePrefetchDelegate } from '@core/course/providers/module-prefetch-delegate';
import { CorePluginFileDelegate } from '@providers/plugin-file-delegate'; import { CorePluginFileDelegate } from '@providers/plugin-file-delegate';
// List of providers (without handlers).
export const ADDON_MOD_RESOURCE_PROVIDERS: any[] = [
AddonModResourceProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModResourceComponentsModule AddonModResourceComponentsModule
], ],
providers: [ providers: ADDON_MOD_RESOURCE_PROVIDERS.concat([
AddonModResourceProvider,
AddonModResourceModuleHandler, AddonModResourceModuleHandler,
AddonModResourceHelperProvider, AddonModResourceHelperProvider,
AddonModResourcePrefetchHandler, AddonModResourcePrefetchHandler,
AddonModResourceLinkHandler, AddonModResourceLinkHandler,
AddonModResourcePluginFileHandler AddonModResourcePluginFileHandler
] ])
}) })
export class AddonModResourceModule { export class AddonModResourceModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModResourceModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModResourceModuleHandler,

View File

@ -28,23 +28,27 @@ import { AddonModScormGradeLinkHandler } from './providers/grade-link-handler';
import { AddonModScormSyncProvider } from './providers/scorm-sync'; import { AddonModScormSyncProvider } from './providers/scorm-sync';
import { AddonModScormComponentsModule } from './components/components.module'; import { AddonModScormComponentsModule } from './components/components.module';
// List of providers (without handlers).
export const ADDON_MOD_SCORM_PROVIDERS: any[] = [
AddonModScormProvider,
AddonModScormOfflineProvider,
AddonModScormHelperProvider,
AddonModScormSyncProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModScormComponentsModule AddonModScormComponentsModule
], ],
providers: [ providers: ADDON_MOD_SCORM_PROVIDERS.concat([
AddonModScormProvider,
AddonModScormOfflineProvider,
AddonModScormHelperProvider,
AddonModScormSyncProvider,
AddonModScormModuleHandler, AddonModScormModuleHandler,
AddonModScormPrefetchHandler, AddonModScormPrefetchHandler,
AddonModScormSyncCronHandler, AddonModScormSyncCronHandler,
AddonModScormIndexLinkHandler, AddonModScormIndexLinkHandler,
AddonModScormGradeLinkHandler AddonModScormGradeLinkHandler
] ])
}) })
export class AddonModScormModule { export class AddonModScormModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModScormModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModScormModuleHandler,

View File

@ -27,22 +27,26 @@ import { AddonModSurveySyncProvider } from './providers/sync';
import { AddonModSurveySyncCronHandler } from './providers/sync-cron-handler'; import { AddonModSurveySyncCronHandler } from './providers/sync-cron-handler';
import { AddonModSurveyOfflineProvider } from './providers/offline'; import { AddonModSurveyOfflineProvider } from './providers/offline';
// List of providers (without handlers).
export const ADDON_MOD_SURVEY_PROVIDERS: any[] = [
AddonModSurveyProvider,
AddonModSurveyHelperProvider,
AddonModSurveySyncProvider,
AddonModSurveyOfflineProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModSurveyComponentsModule AddonModSurveyComponentsModule
], ],
providers: [ providers: ADDON_MOD_SURVEY_PROVIDERS.concat([
AddonModSurveyProvider,
AddonModSurveyModuleHandler, AddonModSurveyModuleHandler,
AddonModSurveyPrefetchHandler, AddonModSurveyPrefetchHandler,
AddonModSurveyHelperProvider,
AddonModSurveyLinkHandler, AddonModSurveyLinkHandler,
AddonModSurveySyncCronHandler, AddonModSurveySyncCronHandler
AddonModSurveySyncProvider, ])
AddonModSurveyOfflineProvider
]
}) })
export class AddonModSurveyModule { export class AddonModSurveyModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModSurveyModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModSurveyModuleHandler,

View File

@ -21,18 +21,22 @@ import { AddonModUrlHelperProvider } from './providers/helper';
import { CoreContentLinksDelegate } from '@core/contentlinks/providers/delegate'; import { CoreContentLinksDelegate } from '@core/contentlinks/providers/delegate';
import { CoreCourseModuleDelegate } from '@core/course/providers/module-delegate'; import { CoreCourseModuleDelegate } from '@core/course/providers/module-delegate';
// List of providers (without handlers).
export const ADDON_MOD_URL_PROVIDERS: any[] = [
AddonModUrlProvider,
AddonModUrlHelperProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModUrlComponentsModule AddonModUrlComponentsModule
], ],
providers: [ providers: ADDON_MOD_URL_PROVIDERS.concat([
AddonModUrlProvider,
AddonModUrlModuleHandler, AddonModUrlModuleHandler,
AddonModUrlHelperProvider,
AddonModUrlLinkHandler AddonModUrlLinkHandler
] ])
}) })
export class AddonModUrlModule { export class AddonModUrlModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModUrlModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModUrlModuleHandler,

View File

@ -29,16 +29,20 @@ import { AddonModWikiPageOrMapLinkHandler } from './providers/page-or-map-link-h
import { AddonModWikiCreateLinkHandler } from './providers/create-link-handler'; import { AddonModWikiCreateLinkHandler } from './providers/create-link-handler';
import { AddonModWikiEditLinkHandler } from './providers/edit-link-handler'; import { AddonModWikiEditLinkHandler } from './providers/edit-link-handler';
// List of providers (without handlers).
export const ADDON_MOD_WIKI_PROVIDERS: any[] = [
AddonModWikiProvider,
AddonModWikiOfflineProvider,
AddonModWikiSyncProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonModWikiComponentsModule AddonModWikiComponentsModule
], ],
providers: [ providers: ADDON_MOD_WIKI_PROVIDERS.concat([
AddonModWikiProvider,
AddonModWikiOfflineProvider,
AddonModWikiSyncProvider,
AddonModWikiModuleHandler, AddonModWikiModuleHandler,
AddonModWikiPrefetchHandler, AddonModWikiPrefetchHandler,
AddonModWikiSyncCronHandler, AddonModWikiSyncCronHandler,
@ -46,7 +50,7 @@ import { AddonModWikiEditLinkHandler } from './providers/edit-link-handler';
AddonModWikiPageOrMapLinkHandler, AddonModWikiPageOrMapLinkHandler,
AddonModWikiCreateLinkHandler, AddonModWikiCreateLinkHandler,
AddonModWikiEditLinkHandler AddonModWikiEditLinkHandler
] ])
}) })
export class AddonModWikiModule { export class AddonModWikiModule {
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModWikiModuleHandler, constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModWikiModuleHandler,

View File

@ -24,20 +24,24 @@ import { CoreCourseOptionsDelegate } from '@core/course/providers/options-delega
import { CoreCronDelegate } from '@providers/cron'; import { CoreCronDelegate } from '@providers/cron';
import { CoreUserDelegate } from '@core/user/providers/user-delegate'; import { CoreUserDelegate } from '@core/user/providers/user-delegate';
// List of providers (without handlers).
export const ADDON_NOTES_PROVIDERS: any[] = [
AddonNotesProvider,
AddonNotesOfflineProvider,
AddonNotesSyncProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
AddonNotesComponentsModule AddonNotesComponentsModule
], ],
providers: [ providers: ADDON_NOTES_PROVIDERS.concat([
AddonNotesProvider,
AddonNotesOfflineProvider,
AddonNotesSyncProvider,
AddonNotesCourseOptionHandler, AddonNotesCourseOptionHandler,
AddonNotesSyncCronHandler, AddonNotesSyncCronHandler,
AddonNotesUserHandler AddonNotesUserHandler
] ])
}) })
export class AddonNotesModule { export class AddonNotesModule {
constructor(courseOptionsDelegate: CoreCourseOptionsDelegate, courseOptionHandler: AddonNotesCourseOptionHandler, constructor(courseOptionsDelegate: CoreCourseOptionsDelegate, courseOptionHandler: AddonNotesCourseOptionHandler,

View File

@ -27,17 +27,21 @@ import { CoreSitesProvider } from '@providers/sites';
import { CoreUtilsProvider } from '@providers/utils/utils'; import { CoreUtilsProvider } from '@providers/utils/utils';
import { AddonPushNotificationsDelegate } from '@addon/pushnotifications/providers/delegate'; import { AddonPushNotificationsDelegate } from '@addon/pushnotifications/providers/delegate';
// List of providers (without handlers).
export const ADDON_NOTIFICATIONS_PROVIDERS: any[] = [
AddonNotificationsProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
], ],
providers: [ providers: ADDON_NOTIFICATIONS_PROVIDERS.concat([
AddonNotificationsProvider,
AddonNotificationsMainMenuHandler, AddonNotificationsMainMenuHandler,
AddonNotificationsSettingsHandler, AddonNotificationsSettingsHandler,
AddonNotificationsCronHandler, AddonNotificationsCronHandler,
] ])
}) })
export class AddonNotificationsModule { export class AddonNotificationsModule {
constructor(mainMenuDelegate: CoreMainMenuDelegate, mainMenuHandler: AddonNotificationsMainMenuHandler, constructor(mainMenuDelegate: CoreMainMenuDelegate, mainMenuHandler: AddonNotificationsMainMenuHandler,

View File

@ -20,15 +20,18 @@ import { CoreEventsProvider } from '@providers/events';
import { CoreLoggerProvider } from '@providers/logger'; import { CoreLoggerProvider } from '@providers/logger';
import { CoreLocalNotificationsProvider } from '@providers/local-notifications'; import { CoreLocalNotificationsProvider } from '@providers/local-notifications';
// List of providers (without handlers).
export const ADDON_PUSHNOTIFICATIONS_PROVIDERS: any[] = [
AddonPushNotificationsProvider,
AddonPushNotificationsDelegate
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
], ],
providers: [ providers: ADDON_PUSHNOTIFICATIONS_PROVIDERS
AddonPushNotificationsProvider,
AddonPushNotificationsDelegate
]
}) })
export class AddonPushNotificationsModule { export class AddonPushNotificationsModule {
constructor(platform: Platform, pushNotificationsProvider: AddonPushNotificationsProvider, eventsProvider: CoreEventsProvider, constructor(platform: Platform, pushNotificationsProvider: AddonPushNotificationsProvider, eventsProvider: CoreEventsProvider,

View File

@ -19,14 +19,17 @@ import { CoreInitDelegate } from '@providers/init';
import { CoreLoggerProvider } from '@providers/logger'; import { CoreLoggerProvider } from '@providers/logger';
import { CoreSitesProvider } from '@providers/sites'; import { CoreSitesProvider } from '@providers/sites';
// List of providers (without handlers).
export const ADDON_REMOTETHEMES_PROVIDERS: any[] = [
AddonRemoteThemesProvider
];
@NgModule({ @NgModule({
declarations: [ declarations: [
], ],
imports: [ imports: [
], ],
providers: [ providers: ADDON_REMOTETHEMES_PROVIDERS
AddonRemoteThemesProvider
]
}) })
export class AddonRemoteThemesModule { export class AddonRemoteThemesModule {
constructor(initDelegate: CoreInitDelegate, remoteThemesProvider: AddonRemoteThemesProvider, eventsProvider: CoreEventsProvider, constructor(initDelegate: CoreInitDelegate, remoteThemesProvider: AddonRemoteThemesProvider, eventsProvider: CoreEventsProvider,

View File

@ -57,7 +57,7 @@ import { CoreContentLinksModuleGradeHandler } from '@core/contentlinks/classes/m
import { CoreContentLinksModuleIndexHandler } from '@core/contentlinks/classes/module-index-handler'; import { CoreContentLinksModuleIndexHandler } from '@core/contentlinks/classes/module-index-handler';
import { CoreCourseModulePrefetchHandlerBase } from '@core/course/classes/module-prefetch-handler'; import { CoreCourseModulePrefetchHandlerBase } from '@core/course/classes/module-prefetch-handler';
// Import all modules that define components, directives and pipes. // Import all core modules that define components, directives and pipes.
import { CoreComponentsModule } from '@components/components.module'; import { CoreComponentsModule } from '@components/components.module';
import { CoreDirectivesModule } from '@directives/directives.module'; import { CoreDirectivesModule } from '@directives/directives.module';
import { CorePipesModule } from '@pipes/pipes.module'; import { CorePipesModule } from '@pipes/pipes.module';
@ -82,6 +82,42 @@ import { CoreSitePluginsQuizAccessRuleComponent } from '@core/siteplugins/compon
import { CoreSitePluginsAssignFeedbackComponent } from '@core/siteplugins/components/assign-feedback/assign-feedback'; import { CoreSitePluginsAssignFeedbackComponent } from '@core/siteplugins/components/assign-feedback/assign-feedback';
import { CoreSitePluginsAssignSubmissionComponent } from '@core/siteplugins/components/assign-submission/assign-submission'; import { CoreSitePluginsAssignSubmissionComponent } from '@core/siteplugins/components/assign-submission/assign-submission';
// Import addon providers. Do not import database module because it causes circular dependencies. @todo workshop
import { ADDON_BADGES_PROVIDERS } from '@addon/badges/badges.module';
import { ADDON_CALENDAR_PROVIDERS } from '@addon/calendar/calendar.module';
import { ADDON_COMPETENCY_PROVIDERS } from '@addon/competency/competency.module';
import { ADDON_FILES_PROVIDERS } from '@addon/files/files.module';
import { ADDON_MESSAGEOUTPUT_PROVIDERS } from '@addon/messageoutput/messageoutput.module';
import { ADDON_MESSAGES_PROVIDERS } from '@addon/messages/messages.module';
import { ADDON_MOD_ASSIGN_PROVIDERS } from '@addon/mod/assign/assign.module';
import { ADDON_MOD_BOOK_PROVIDERS } from '@addon/mod/book/book.module';
import { ADDON_MOD_CHAT_PROVIDERS } from '@addon/mod/chat/chat.module';
import { ADDON_MOD_CHOICE_PROVIDERS } from '@addon/mod/choice/choice.module';
import { ADDON_MOD_FEEDBACK_PROVIDERS } from '@addon/mod/feedback/feedback.module';
import { ADDON_MOD_FOLDER_PROVIDERS } from '@addon/mod/folder/folder.module';
import { ADDON_MOD_FORUM_PROVIDERS } from '@addon/mod/forum/forum.module';
import { ADDON_MOD_GLOSSARY_PROVIDERS } from '@addon/mod/glossary/glossary.module';
import { ADDON_MOD_IMSCP_PROVIDERS } from '@addon/mod/imscp/imscp.module';
import { ADDON_MOD_LESSON_PROVIDERS } from '@addon/mod/lesson/lesson.module';
import { ADDON_MOD_LTI_PROVIDERS } from '@addon/mod/lti/lti.module';
import { ADDON_MOD_PAGE_PROVIDERS } from '@addon/mod/page/page.module';
import { ADDON_MOD_QUIZ_PROVIDERS } from '@addon/mod/quiz/quiz.module';
import { ADDON_MOD_RESOURCE_PROVIDERS } from '@addon/mod/resource/resource.module';
import { ADDON_MOD_SCORM_PROVIDERS } from '@addon/mod/scorm/scorm.module';
import { ADDON_MOD_SURVEY_PROVIDERS } from '@addon/mod/survey/survey.module';
import { ADDON_MOD_URL_PROVIDERS } from '@addon/mod/url/url.module';
import { ADDON_MOD_WIKI_PROVIDERS } from '@addon/mod/wiki/wiki.module';
import { ADDON_NOTES_PROVIDERS } from '@addon/notes/notes.module';
import { ADDON_NOTIFICATIONS_PROVIDERS } from '@addon/notifications/notifications.module';
import { ADDON_PUSHNOTIFICATIONS_PROVIDERS } from '@addon/pushnotifications/pushnotifications.module';
import { ADDON_REMOTETHEMES_PROVIDERS } from '@addon/remotethemes/remotethemes.module';
// Import some addon modules that define components, directives and pipes. Only import the important ones.
import { AddonMessagesComponentsModule } from '@addon/messages/components/components.module';
import { AddonModAssignComponentsModule } from '@addon/mod/assign/components/components.module';
import { AddonModForumComponentsModule } from '@addon/mod/forum/components/components.module';
import { AddonNotificationsComponentsModule } from '@addon/notifications/components/components.module';
/** /**
* Service to provide functionalities regarding compiling dynamic HTML and Javascript. * Service to provide functionalities regarding compiling dynamic HTML and Javascript.
*/ */
@ -100,7 +136,9 @@ export class CoreCompileProvider {
protected IMPORTS = [ protected IMPORTS = [
IonicModule, TranslateModule.forChild(), CoreComponentsModule, CoreDirectivesModule, CorePipesModule, IonicModule, TranslateModule.forChild(), CoreComponentsModule, CoreDirectivesModule, CorePipesModule,
CoreCourseComponentsModule, CoreCoursesComponentsModule, CoreSiteHomeComponentsModule, CoreUserComponentsModule, CoreCourseComponentsModule, CoreCoursesComponentsModule, CoreSiteHomeComponentsModule, CoreUserComponentsModule,
CoreCourseDirectivesModule, CoreSitePluginsDirectivesModule, CoreQuestionComponentsModule CoreCourseDirectivesModule, CoreSitePluginsDirectivesModule, CoreQuestionComponentsModule, AddonMessagesComponentsModule,
AddonModAssignComponentsModule, AddonModForumComponentsModule,
AddonNotificationsComponentsModule
]; ];
constructor(protected injector: Injector, logger: CoreLoggerProvider, protected compiler: Compiler) { constructor(protected injector: Injector, logger: CoreLoggerProvider, protected compiler: Compiler) {
@ -176,7 +214,17 @@ export class CoreCompileProvider {
.concat(CORE_COURSES_PROVIDERS).concat(CORE_FILEUPLOADER_PROVIDERS).concat(CORE_GRADES_PROVIDERS) .concat(CORE_COURSES_PROVIDERS).concat(CORE_FILEUPLOADER_PROVIDERS).concat(CORE_GRADES_PROVIDERS)
.concat(CORE_LOGIN_PROVIDERS).concat(CORE_MAINMENU_PROVIDERS).concat(CORE_SHAREDFILES_PROVIDERS) .concat(CORE_LOGIN_PROVIDERS).concat(CORE_MAINMENU_PROVIDERS).concat(CORE_SHAREDFILES_PROVIDERS)
.concat(CORE_SITEHOME_PROVIDERS).concat([CoreSitePluginsProvider]).concat(CORE_USER_PROVIDERS) .concat(CORE_SITEHOME_PROVIDERS).concat([CoreSitePluginsProvider]).concat(CORE_USER_PROVIDERS)
.concat(CORE_QUESTION_PROVIDERS).concat(IONIC_NATIVE_PROVIDERS).concat(this.OTHER_PROVIDERS).concat(extraProviders); .concat(CORE_QUESTION_PROVIDERS).concat(IONIC_NATIVE_PROVIDERS).concat(this.OTHER_PROVIDERS).concat(extraProviders)
.concat(ADDON_BADGES_PROVIDERS).concat(ADDON_CALENDAR_PROVIDERS).concat(ADDON_COMPETENCY_PROVIDERS)
.concat(ADDON_FILES_PROVIDERS).concat(ADDON_MESSAGEOUTPUT_PROVIDERS).concat(ADDON_MESSAGES_PROVIDERS)
.concat(ADDON_MOD_ASSIGN_PROVIDERS).concat(ADDON_MOD_BOOK_PROVIDERS).concat(ADDON_MOD_CHAT_PROVIDERS)
.concat(ADDON_MOD_CHOICE_PROVIDERS).concat(ADDON_MOD_FEEDBACK_PROVIDERS).concat(ADDON_MOD_FOLDER_PROVIDERS)
.concat(ADDON_MOD_FORUM_PROVIDERS).concat(ADDON_MOD_GLOSSARY_PROVIDERS).concat(ADDON_MOD_IMSCP_PROVIDERS)
.concat(ADDON_MOD_LESSON_PROVIDERS).concat(ADDON_MOD_LTI_PROVIDERS).concat(ADDON_MOD_PAGE_PROVIDERS)
.concat(ADDON_MOD_QUIZ_PROVIDERS).concat(ADDON_MOD_RESOURCE_PROVIDERS).concat(ADDON_MOD_SCORM_PROVIDERS)
.concat(ADDON_MOD_SURVEY_PROVIDERS).concat(ADDON_MOD_URL_PROVIDERS).concat(ADDON_MOD_WIKI_PROVIDERS)
.concat(ADDON_NOTES_PROVIDERS).concat(ADDON_NOTIFICATIONS_PROVIDERS)
.concat(ADDON_PUSHNOTIFICATIONS_PROVIDERS).concat(ADDON_REMOTETHEMES_PROVIDERS);
// We cannot inject anything to this constructor. Use the Injector to inject all the providers into the instance. // We cannot inject anything to this constructor. Use the Injector to inject all the providers into the instance.
for (const i in providers) { for (const i in providers) {