From d7d47722527bcf5bdff7668f695d7e9be7975264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 5 Mar 2024 14:35:55 +0100 Subject: [PATCH] MOBILE-3947 blocks: Remove unnecessary imports and exports from blocks --- .../block/activitymodules/activitymodules.module.ts | 8 -------- .../block/activitymodules/components/components.module.ts | 3 --- .../block/activityresults/activityresults.module.ts | 8 -------- .../block/activityresults/components/components.module.ts | 3 --- src/addons/block/badges/badges.module.ts | 8 -------- src/addons/block/badges/components/components.module.ts | 3 --- src/addons/block/blogmenu/blogmenu.module.ts | 8 -------- src/addons/block/blogmenu/components/components.module.ts | 3 --- src/addons/block/blogrecent/blogrecent.module.ts | 8 -------- .../block/blogrecent/components/components.module.ts | 3 --- src/addons/block/blogtags/blogtags.module.ts | 8 -------- src/addons/block/blogtags/components/components.module.ts | 3 --- src/addons/block/calendarmonth/calendarmonth.module.ts | 6 ------ .../block/calendarupcoming/calendarupcoming.module.ts | 6 ------ src/addons/block/comments/comments.module.ts | 6 ------ .../block/completionstatus/completionstatus.module.ts | 6 ------ src/addons/block/courselist/courselist.module.ts | 6 ------ src/addons/block/globalsearch/globalsearch.module.ts | 8 -------- src/addons/block/glossaryrandom/glossaryrandom.module.ts | 6 ------ src/addons/block/learningplans/learningplans.module.ts | 8 -------- .../block/myoverview/components/components.module.ts | 3 --- src/addons/block/myoverview/myoverview.module.ts | 8 -------- .../block/newsitems/components/components.module.ts | 3 --- src/addons/block/newsitems/newsitems.module.ts | 8 -------- .../block/onlineusers/components/components.module.ts | 3 --- src/addons/block/onlineusers/onlineusers.module.ts | 8 -------- src/addons/block/privatefiles/privatefiles.module.ts | 6 ------ .../block/recentactivity/components/components.module.ts | 3 --- src/addons/block/recentactivity/recentactivity.module.ts | 8 -------- .../components/components.module.ts | 3 --- .../recentlyaccessedcourses.module.ts | 6 ------ .../recentlyaccesseditems/components/components.module.ts | 3 --- .../recentlyaccesseditems/recentlyaccesseditems.module.ts | 6 ------ .../block/rssclient/components/components.module.ts | 3 --- src/addons/block/rssclient/rssclient.module.ts | 8 -------- src/addons/block/searchforums/searchforums.module.ts | 8 -------- src/addons/block/selfcompletion/selfcompletion.module.ts | 6 ------ .../block/sitemainmenu/components/components.module.ts | 3 --- src/addons/block/sitemainmenu/sitemainmenu.module.ts | 6 ------ .../block/starredcourses/components/components.module.ts | 3 --- src/addons/block/starredcourses/starredcourses.module.ts | 8 -------- src/addons/block/tags/components/components.module.ts | 3 --- src/addons/block/tags/tags.module.ts | 8 -------- src/addons/block/timeline/components/components.module.ts | 4 ---- src/addons/block/timeline/timeline.module.ts | 8 -------- 45 files changed, 254 deletions(-) diff --git a/src/addons/block/activitymodules/activitymodules.module.ts b/src/addons/block/activitymodules/activitymodules.module.ts index a9f7a7faa..1268bf6b0 100644 --- a/src/addons/block/activitymodules/activitymodules.module.ts +++ b/src/addons/block/activitymodules/activitymodules.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockActivityModulesHandler } from './services/block-handler'; -import { AddonBlockActivityModulesComponentsModule } from './components/components.module'; @NgModule({ - imports: [ - IonicModule, - AddonBlockActivityModulesComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/activitymodules/components/components.module.ts b/src/addons/block/activitymodules/components/components.module.ts index e01f255d0..5f9ba9269 100644 --- a/src/addons/block/activitymodules/components/components.module.ts +++ b/src/addons/block/activitymodules/components/components.module.ts @@ -25,8 +25,5 @@ import { AddonBlockActivityModulesComponent } from './activitymodules/activitymo imports: [ CoreSharedModule, ], - exports: [ - AddonBlockActivityModulesComponent, - ], }) export class AddonBlockActivityModulesComponentsModule {} diff --git a/src/addons/block/activityresults/activityresults.module.ts b/src/addons/block/activityresults/activityresults.module.ts index 66b745514..cbab687f8 100644 --- a/src/addons/block/activityresults/activityresults.module.ts +++ b/src/addons/block/activityresults/activityresults.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockActivityResultsHandler } from './services/block-handler'; -import { AddonBlockActivityResultsComponentsModule } from './components/components.module'; @NgModule({ - imports: [ - IonicModule, - AddonBlockActivityResultsComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/activityresults/components/components.module.ts b/src/addons/block/activityresults/components/components.module.ts index a19585ca9..d088bd579 100644 --- a/src/addons/block/activityresults/components/components.module.ts +++ b/src/addons/block/activityresults/components/components.module.ts @@ -24,8 +24,5 @@ import { AddonBlockActivityResultsComponent } from './activityresults/activityre imports: [ CoreSharedModule, ], - exports: [ - AddonBlockActivityResultsComponent, - ], }) export class AddonBlockActivityResultsComponentsModule {} diff --git a/src/addons/block/badges/badges.module.ts b/src/addons/block/badges/badges.module.ts index 0c221fa10..6a89caa96 100644 --- a/src/addons/block/badges/badges.module.ts +++ b/src/addons/block/badges/badges.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockBadgesHandler } from './services/block-handler'; -import { AddonBlockBadgesComponentsModule } from './components/components.module'; @NgModule({ - imports: [ - IonicModule, - AddonBlockBadgesComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/badges/components/components.module.ts b/src/addons/block/badges/components/components.module.ts index 3e1b91d7a..0db4364c0 100644 --- a/src/addons/block/badges/components/components.module.ts +++ b/src/addons/block/badges/components/components.module.ts @@ -24,8 +24,5 @@ import { AddonBlockBadgesComponent } from './badges/badges'; imports: [ CoreSharedModule, ], - exports: [ - AddonBlockBadgesComponent, - ], }) export class AddonBlockBadgesComponentsModule {} diff --git a/src/addons/block/blogmenu/blogmenu.module.ts b/src/addons/block/blogmenu/blogmenu.module.ts index ba8442c9f..f4d464d32 100644 --- a/src/addons/block/blogmenu/blogmenu.module.ts +++ b/src/addons/block/blogmenu/blogmenu.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockBlogMenuHandler } from './services/block-handler'; -import { AddonBlockBlogMenuComponentsModule } from './components/components.module'; @NgModule({ - imports: [ - IonicModule, - AddonBlockBlogMenuComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/blogmenu/components/components.module.ts b/src/addons/block/blogmenu/components/components.module.ts index 7119d9c29..f2f48abe3 100644 --- a/src/addons/block/blogmenu/components/components.module.ts +++ b/src/addons/block/blogmenu/components/components.module.ts @@ -24,8 +24,5 @@ import { AddonBlockBlogMenuComponent } from './blogmenu/blogmenu'; imports: [ CoreSharedModule, ], - exports: [ - AddonBlockBlogMenuComponent, - ], }) export class AddonBlockBlogMenuComponentsModule {} diff --git a/src/addons/block/blogrecent/blogrecent.module.ts b/src/addons/block/blogrecent/blogrecent.module.ts index f870ccac2..a9d636306 100644 --- a/src/addons/block/blogrecent/blogrecent.module.ts +++ b/src/addons/block/blogrecent/blogrecent.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockBlogRecentHandler } from './services/block-handler'; -import { AddonBlockBlogRecentComponentsModule } from './components/components.module'; @NgModule({ - imports: [ - IonicModule, - AddonBlockBlogRecentComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/blogrecent/components/components.module.ts b/src/addons/block/blogrecent/components/components.module.ts index f38a8dfa5..e961e8dde 100644 --- a/src/addons/block/blogrecent/components/components.module.ts +++ b/src/addons/block/blogrecent/components/components.module.ts @@ -24,8 +24,5 @@ import { AddonBlockBlogRecentComponent } from './blogrecent/blogrecent'; imports: [ CoreSharedModule, ], - exports: [ - AddonBlockBlogRecentComponent, - ], }) export class AddonBlockBlogRecentComponentsModule {} diff --git a/src/addons/block/blogtags/blogtags.module.ts b/src/addons/block/blogtags/blogtags.module.ts index 11236ff57..3a7f9069d 100644 --- a/src/addons/block/blogtags/blogtags.module.ts +++ b/src/addons/block/blogtags/blogtags.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockBlogTagsHandler } from './services/block-handler'; -import { AddonBlockBlogTagsComponentsModule } from './components/components.module'; @NgModule({ - imports: [ - IonicModule, - AddonBlockBlogTagsComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/blogtags/components/components.module.ts b/src/addons/block/blogtags/components/components.module.ts index 4b8d24e88..f63845b81 100644 --- a/src/addons/block/blogtags/components/components.module.ts +++ b/src/addons/block/blogtags/components/components.module.ts @@ -24,8 +24,5 @@ import { AddonBlockBlogTagsComponent } from './blogtags/blogtags'; imports: [ CoreSharedModule, ], - exports: [ - AddonBlockBlogTagsComponent, - ], }) export class AddonBlockBlogTagsComponentsModule {} diff --git a/src/addons/block/calendarmonth/calendarmonth.module.ts b/src/addons/block/calendarmonth/calendarmonth.module.ts index 34cf9c783..3040049ea 100644 --- a/src/addons/block/calendarmonth/calendarmonth.module.ts +++ b/src/addons/block/calendarmonth/calendarmonth.module.ts @@ -13,16 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockCalendarMonthHandler } from './services/block-handler'; @NgModule({ - imports: [ - IonicModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/calendarupcoming/calendarupcoming.module.ts b/src/addons/block/calendarupcoming/calendarupcoming.module.ts index 92e5d1017..8181d8724 100644 --- a/src/addons/block/calendarupcoming/calendarupcoming.module.ts +++ b/src/addons/block/calendarupcoming/calendarupcoming.module.ts @@ -13,16 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockCalendarUpcomingHandler } from './services/block-handler'; @NgModule({ - imports: [ - IonicModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/comments/comments.module.ts b/src/addons/block/comments/comments.module.ts index 7f15120bc..45eef8eab 100644 --- a/src/addons/block/comments/comments.module.ts +++ b/src/addons/block/comments/comments.module.ts @@ -13,16 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockCommentsHandler } from './services/block-handler'; @NgModule({ - imports: [ - IonicModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/completionstatus/completionstatus.module.ts b/src/addons/block/completionstatus/completionstatus.module.ts index 63f278c79..866a7755b 100644 --- a/src/addons/block/completionstatus/completionstatus.module.ts +++ b/src/addons/block/completionstatus/completionstatus.module.ts @@ -13,16 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockCompletionStatusHandler } from './services/block-handler'; @NgModule({ - imports: [ - IonicModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/courselist/courselist.module.ts b/src/addons/block/courselist/courselist.module.ts index e8ae2b06e..e8a0a877e 100644 --- a/src/addons/block/courselist/courselist.module.ts +++ b/src/addons/block/courselist/courselist.module.ts @@ -13,16 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockCourseListHandler } from './services/block-handler'; @NgModule({ - imports: [ - IonicModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/globalsearch/globalsearch.module.ts b/src/addons/block/globalsearch/globalsearch.module.ts index 3861622ec..b83946df5 100644 --- a/src/addons/block/globalsearch/globalsearch.module.ts +++ b/src/addons/block/globalsearch/globalsearch.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockGlobalSearchHandler } from './services/block-handler'; -import { CoreBlockComponentsModule } from '@features/block/components/components.module'; @NgModule({ - imports: [ - IonicModule, - CoreBlockComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/glossaryrandom/glossaryrandom.module.ts b/src/addons/block/glossaryrandom/glossaryrandom.module.ts index c08c28f20..6de006d02 100644 --- a/src/addons/block/glossaryrandom/glossaryrandom.module.ts +++ b/src/addons/block/glossaryrandom/glossaryrandom.module.ts @@ -13,16 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockGlossaryRandomHandler } from './services/block-handler'; @NgModule({ - imports: [ - IonicModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/learningplans/learningplans.module.ts b/src/addons/block/learningplans/learningplans.module.ts index f461b1dec..3ef15ab3c 100644 --- a/src/addons/block/learningplans/learningplans.module.ts +++ b/src/addons/block/learningplans/learningplans.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockLearningPlansHandler } from './services/block-handler'; -import { CoreBlockComponentsModule } from '@features/block/components/components.module'; @NgModule({ - imports: [ - IonicModule, - CoreBlockComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/myoverview/components/components.module.ts b/src/addons/block/myoverview/components/components.module.ts index c1829bd61..7bfa03f39 100644 --- a/src/addons/block/myoverview/components/components.module.ts +++ b/src/addons/block/myoverview/components/components.module.ts @@ -26,8 +26,5 @@ import { AddonBlockMyOverviewComponent } from './myoverview/myoverview'; CoreSharedModule, CoreCoursesComponentsModule, ], - exports: [ - AddonBlockMyOverviewComponent, - ], }) export class AddonBlockMyOverviewComponentsModule {} diff --git a/src/addons/block/myoverview/myoverview.module.ts b/src/addons/block/myoverview/myoverview.module.ts index b168d1b69..1fcb9ed59 100644 --- a/src/addons/block/myoverview/myoverview.module.ts +++ b/src/addons/block/myoverview/myoverview.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; -import { AddonBlockMyOverviewComponentsModule } from './components/components.module'; import { AddonBlockMyOverviewHandler } from './services/block-handler'; @NgModule({ - imports: [ - IonicModule, - AddonBlockMyOverviewComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/newsitems/components/components.module.ts b/src/addons/block/newsitems/components/components.module.ts index d4a440bec..1a4db480b 100644 --- a/src/addons/block/newsitems/components/components.module.ts +++ b/src/addons/block/newsitems/components/components.module.ts @@ -24,8 +24,5 @@ import { AddonBlockNewsItemsComponent } from './newsitems/newsitems'; imports: [ CoreSharedModule, ], - exports: [ - AddonBlockNewsItemsComponent, - ], }) export class AddonBlockNewsItemsComponentsModule {} diff --git a/src/addons/block/newsitems/newsitems.module.ts b/src/addons/block/newsitems/newsitems.module.ts index b7822c552..3cd22bb69 100644 --- a/src/addons/block/newsitems/newsitems.module.ts +++ b/src/addons/block/newsitems/newsitems.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockNewsItemsHandler } from './services/block-handler'; -import { AddonBlockNewsItemsComponentsModule } from './components/components.module'; @NgModule({ - imports: [ - IonicModule, - AddonBlockNewsItemsComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/onlineusers/components/components.module.ts b/src/addons/block/onlineusers/components/components.module.ts index b5444458e..92d9a5861 100644 --- a/src/addons/block/onlineusers/components/components.module.ts +++ b/src/addons/block/onlineusers/components/components.module.ts @@ -24,8 +24,5 @@ import { AddonBlockOnlineUsersComponent } from './onlineusers/onlineusers'; imports: [ CoreSharedModule, ], - exports: [ - AddonBlockOnlineUsersComponent, - ], }) export class AddonBlockOnlineUsersComponentsModule {} diff --git a/src/addons/block/onlineusers/onlineusers.module.ts b/src/addons/block/onlineusers/onlineusers.module.ts index 9cfb819dc..0fd540158 100644 --- a/src/addons/block/onlineusers/onlineusers.module.ts +++ b/src/addons/block/onlineusers/onlineusers.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockOnlineUsersHandler } from './services/block-handler'; -import { AddonBlockOnlineUsersComponentsModule } from './components/components.module'; @NgModule({ - imports: [ - IonicModule, - AddonBlockOnlineUsersComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/privatefiles/privatefiles.module.ts b/src/addons/block/privatefiles/privatefiles.module.ts index 55d4316ac..0eafcea75 100644 --- a/src/addons/block/privatefiles/privatefiles.module.ts +++ b/src/addons/block/privatefiles/privatefiles.module.ts @@ -13,16 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockPrivateFilesHandler } from './services/block-handler'; @NgModule({ - imports: [ - IonicModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/recentactivity/components/components.module.ts b/src/addons/block/recentactivity/components/components.module.ts index fb854c0ae..fb37f28c0 100644 --- a/src/addons/block/recentactivity/components/components.module.ts +++ b/src/addons/block/recentactivity/components/components.module.ts @@ -24,8 +24,5 @@ import { AddonBlockRecentActivityComponent } from './recentactivity/recentactivi imports: [ CoreSharedModule, ], - exports: [ - AddonBlockRecentActivityComponent, - ], }) export class AddonBlockRecentActivityComponentsModule {} diff --git a/src/addons/block/recentactivity/recentactivity.module.ts b/src/addons/block/recentactivity/recentactivity.module.ts index e461c2e01..4bc6895fc 100644 --- a/src/addons/block/recentactivity/recentactivity.module.ts +++ b/src/addons/block/recentactivity/recentactivity.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockRecentActivityHandler } from './services/block-handler'; -import { AddonBlockRecentActivityComponentsModule } from './components/components.module'; @NgModule({ - imports: [ - IonicModule, - AddonBlockRecentActivityComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/recentlyaccessedcourses/components/components.module.ts b/src/addons/block/recentlyaccessedcourses/components/components.module.ts index 875fdc377..f2476ec05 100644 --- a/src/addons/block/recentlyaccessedcourses/components/components.module.ts +++ b/src/addons/block/recentlyaccessedcourses/components/components.module.ts @@ -27,8 +27,5 @@ import { AddonBlockRecentlyAccessedCoursesComponent } from './recentlyaccessedco CoreSharedModule, CoreCoursesComponentsModule, ], - exports: [ - AddonBlockRecentlyAccessedCoursesComponent, - ], }) export class AddonBlockRecentlyAccessedCoursesComponentsModule {} diff --git a/src/addons/block/recentlyaccessedcourses/recentlyaccessedcourses.module.ts b/src/addons/block/recentlyaccessedcourses/recentlyaccessedcourses.module.ts index fa26dc333..7717d6e72 100644 --- a/src/addons/block/recentlyaccessedcourses/recentlyaccessedcourses.module.ts +++ b/src/addons/block/recentlyaccessedcourses/recentlyaccessedcourses.module.ts @@ -13,16 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { CoreSharedModule } from '@/core/shared.module'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; -import { AddonBlockRecentlyAccessedCoursesComponentsModule } from './components/components.module'; import { AddonBlockRecentlyAccessedCoursesHandler } from './services/block-handler'; @NgModule({ - imports: [ - CoreSharedModule, - AddonBlockRecentlyAccessedCoursesComponentsModule, - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/recentlyaccesseditems/components/components.module.ts b/src/addons/block/recentlyaccesseditems/components/components.module.ts index 486b86055..d61f5726e 100644 --- a/src/addons/block/recentlyaccesseditems/components/components.module.ts +++ b/src/addons/block/recentlyaccesseditems/components/components.module.ts @@ -27,8 +27,5 @@ import { AddonBlockRecentlyAccessedItemsComponent } from './recentlyaccesseditem CoreSharedModule, CoreCoursesComponentsModule, ], - exports: [ - AddonBlockRecentlyAccessedItemsComponent, - ], }) export class AddonBlockRecentlyAccessedItemsComponentsModule {} diff --git a/src/addons/block/recentlyaccesseditems/recentlyaccesseditems.module.ts b/src/addons/block/recentlyaccesseditems/recentlyaccesseditems.module.ts index 0ab91b252..44e3b190a 100644 --- a/src/addons/block/recentlyaccesseditems/recentlyaccesseditems.module.ts +++ b/src/addons/block/recentlyaccesseditems/recentlyaccesseditems.module.ts @@ -13,16 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { CoreSharedModule } from '@/core/shared.module'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; -import { AddonBlockRecentlyAccessedItemsComponentsModule } from './components/components.module'; import { AddonBlockRecentlyAccessedItemsHandler } from './services/block-handler'; @NgModule({ - imports: [ - CoreSharedModule, - AddonBlockRecentlyAccessedItemsComponentsModule, - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/rssclient/components/components.module.ts b/src/addons/block/rssclient/components/components.module.ts index f0781fccd..3482a995b 100644 --- a/src/addons/block/rssclient/components/components.module.ts +++ b/src/addons/block/rssclient/components/components.module.ts @@ -24,8 +24,5 @@ import { AddonBlockRssClientComponent } from './rssclient/rssclient'; imports: [ CoreSharedModule, ], - exports: [ - AddonBlockRssClientComponent, - ], }) export class AddonBlockRssClientComponentsModule {} diff --git a/src/addons/block/rssclient/rssclient.module.ts b/src/addons/block/rssclient/rssclient.module.ts index 72bcc39e8..56b151891 100644 --- a/src/addons/block/rssclient/rssclient.module.ts +++ b/src/addons/block/rssclient/rssclient.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockRssClientHandler } from './services/block-handler'; -import { AddonBlockRssClientComponentsModule } from './components/components.module'; @NgModule({ - imports: [ - IonicModule, - AddonBlockRssClientComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/searchforums/searchforums.module.ts b/src/addons/block/searchforums/searchforums.module.ts index d2299d28b..e8970341d 100644 --- a/src/addons/block/searchforums/searchforums.module.ts +++ b/src/addons/block/searchforums/searchforums.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockSearchForumsHandler } from './services/block-handler'; -import { CoreBlockComponentsModule } from '@features/block/components/components.module'; @NgModule({ - imports: [ - IonicModule, - CoreBlockComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/selfcompletion/selfcompletion.module.ts b/src/addons/block/selfcompletion/selfcompletion.module.ts index 42fb3ce44..9ae401796 100644 --- a/src/addons/block/selfcompletion/selfcompletion.module.ts +++ b/src/addons/block/selfcompletion/selfcompletion.module.ts @@ -13,16 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockSelfCompletionHandler } from './services/block-handler'; @NgModule({ - imports: [ - IonicModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/sitemainmenu/components/components.module.ts b/src/addons/block/sitemainmenu/components/components.module.ts index f3b670ae4..6b3371beb 100644 --- a/src/addons/block/sitemainmenu/components/components.module.ts +++ b/src/addons/block/sitemainmenu/components/components.module.ts @@ -27,8 +27,5 @@ import { AddonBlockSiteMainMenuComponent } from './sitemainmenu/sitemainmenu'; CoreSharedModule, CoreCourseComponentsModule, ], - exports: [ - AddonBlockSiteMainMenuComponent, - ], }) export class AddonBlockSiteMainMenuComponentsModule {} diff --git a/src/addons/block/sitemainmenu/sitemainmenu.module.ts b/src/addons/block/sitemainmenu/sitemainmenu.module.ts index cf01b58e2..322eacbb8 100644 --- a/src/addons/block/sitemainmenu/sitemainmenu.module.ts +++ b/src/addons/block/sitemainmenu/sitemainmenu.module.ts @@ -13,16 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { CoreSharedModule } from '@/core/shared.module'; -import { AddonBlockSiteMainMenuComponentsModule } from './components/components.module'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockSiteMainMenuHandler } from './services/block-handler'; @NgModule({ - imports: [ - CoreSharedModule, - AddonBlockSiteMainMenuComponentsModule, - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/starredcourses/components/components.module.ts b/src/addons/block/starredcourses/components/components.module.ts index ea8ca89b3..143335439 100644 --- a/src/addons/block/starredcourses/components/components.module.ts +++ b/src/addons/block/starredcourses/components/components.module.ts @@ -27,8 +27,5 @@ import { AddonBlockStarredCoursesComponent } from './starredcourses/starredcours CoreSharedModule, CoreCoursesComponentsModule, ], - exports: [ - AddonBlockStarredCoursesComponent, - ], }) export class AddonBlockStarredCoursesComponentsModule {} diff --git a/src/addons/block/starredcourses/starredcourses.module.ts b/src/addons/block/starredcourses/starredcourses.module.ts index e88ff3b4b..a4611498a 100644 --- a/src/addons/block/starredcourses/starredcourses.module.ts +++ b/src/addons/block/starredcourses/starredcourses.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; -import { AddonBlockStarredCoursesComponentsModule } from './components/components.module'; import { AddonBlockStarredCoursesHandler } from './services/block-handler'; @NgModule({ - imports: [ - IonicModule, - AddonBlockStarredCoursesComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/tags/components/components.module.ts b/src/addons/block/tags/components/components.module.ts index 966f87551..74384dffe 100644 --- a/src/addons/block/tags/components/components.module.ts +++ b/src/addons/block/tags/components/components.module.ts @@ -24,8 +24,5 @@ import { AddonBlockTagsComponent } from './tags/tags'; imports: [ CoreSharedModule, ], - exports: [ - AddonBlockTagsComponent, - ], }) export class AddonBlockTagsComponentsModule {} diff --git a/src/addons/block/tags/tags.module.ts b/src/addons/block/tags/tags.module.ts index e088c245c..7a3bb4567 100644 --- a/src/addons/block/tags/tags.module.ts +++ b/src/addons/block/tags/tags.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockTagsHandler } from './services/block-handler'; -import { AddonBlockTagsComponentsModule } from './components/components.module'; @NgModule({ - imports: [ - IonicModule, - AddonBlockTagsComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/block/timeline/components/components.module.ts b/src/addons/block/timeline/components/components.module.ts index 00c06106d..6a951de0a 100644 --- a/src/addons/block/timeline/components/components.module.ts +++ b/src/addons/block/timeline/components/components.module.ts @@ -29,9 +29,5 @@ import { CoreSearchComponentsModule } from '@features/search/components/componen CoreSharedModule, CoreSearchComponentsModule, ], - exports: [ - AddonBlockTimelineComponent, - AddonBlockTimelineEventsComponent, - ], }) export class AddonBlockTimelineComponentsModule {} diff --git a/src/addons/block/timeline/timeline.module.ts b/src/addons/block/timeline/timeline.module.ts index 62cd2d20e..ed84d3438 100644 --- a/src/addons/block/timeline/timeline.module.ts +++ b/src/addons/block/timeline/timeline.module.ts @@ -13,18 +13,10 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; -import { AddonBlockTimelineComponentsModule } from './components/components.module'; import { AddonBlockTimelineHandler } from './services/block-handler'; @NgModule({ - imports: [ - IonicModule, - AddonBlockTimelineComponentsModule, - TranslateModule.forChild(), - ], providers: [ { provide: APP_INITIALIZER,