From 858a0f4a6321be5f38c86ecee71ab63eac7d845c Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Tue, 16 Feb 2021 13:10:44 +0100 Subject: [PATCH] MOBILE-3320: Move common modules to shared module --- src/addons/badges/badges-lazy.module.ts | 6 ------ .../components/components.module.ts | 8 -------- .../components/components.module.ts | 8 -------- .../block/badges/components/components.module.ts | 8 -------- .../blogmenu/components/components.module.ts | 8 -------- .../blogrecent/components/components.module.ts | 8 -------- .../blogtags/components/components.module.ts | 8 -------- .../myoverview/components/components.module.ts | 8 -------- .../newsitems/components/components.module.ts | 8 -------- .../onlineusers/components/components.module.ts | 8 -------- .../components/components.module.ts | 8 -------- .../components/components.module.ts | 6 ------ .../recentlyaccessedcourses.module.ts | 4 ---- .../components/components.module.ts | 6 ------ .../recentlyaccesseditems.module.ts | 4 ---- .../rssclient/components/components.module.ts | 8 -------- .../sitemainmenu/components/components.module.ts | 6 ------ .../block/sitemainmenu/sitemainmenu.module.ts | 4 ---- .../components/components.module.ts | 6 ------ .../block/tags/components/components.module.ts | 8 -------- .../timeline/components/components.module.ts | 8 -------- .../calendar/components/components.module.ts | 8 -------- src/addons/calendar/pages/day/day.module.ts | 6 ------ .../pages/edit-event/edit-event.module.ts | 9 --------- src/addons/calendar/pages/event/event.module.ts | 8 -------- src/addons/calendar/pages/index/index.module.ts | 6 ------ src/addons/calendar/pages/list/list.module.ts | 6 ------ .../calendar/pages/settings/settings.module.ts | 15 ++------------- .../airnotifier/pages/devices/devices.module.ts | 8 -------- .../messages/components/components.module.ts | 6 ------ .../messages/pages/contacts-35/contacts.module.ts | 6 ------ .../messages/pages/contacts/contacts.module.ts | 6 ------ .../pages/discussion/discussion.module.ts | 7 ------- .../pages/discussions-35/discussions.module.ts | 6 ------ .../group-conversations.module.ts | 6 ------ src/addons/messages/pages/search/search.module.ts | 6 ------ .../messages/pages/settings/settings.module.ts | 8 -------- .../mod/book/components/components.module.ts | 8 -------- src/addons/mod/book/pages/index/index.module.ts | 6 ------ .../mod/lesson/components/components.module.ts | 8 -------- src/addons/mod/lesson/pages/index/index.module.ts | 6 ------ .../mod/lesson/pages/player/player.module.ts | 9 --------- .../pages/user-retake/user-retake.module.ts | 8 -------- .../mod/page/components/components.module.ts | 8 -------- src/addons/mod/page/pages/index/index.module.ts | 6 ------ .../notifications/pages/list/list.module.ts | 6 ------ .../pages/settings/settings.module.ts | 8 -------- .../privatefiles/pages/index/index.module.ts | 8 -------- .../userprofilefield/checkbox/checkbox.module.ts | 9 --------- .../userprofilefield/datetime/datetime.module.ts | 9 --------- src/addons/userprofilefield/menu/menu.module.ts | 9 --------- src/addons/userprofilefield/text/text.module.ts | 9 --------- .../userprofilefield/textarea/textarea.module.ts | 9 --------- src/core/components/components.module.ts | 2 +- .../block/components/components.module.ts | 6 ------ .../pages/choose-site/choose-site.module.ts | 6 ------ .../course/components/components.module.ts | 6 ------ .../course/pages/contents/contents.module.ts | 6 ------ .../features/course/pages/index/index.module.ts | 6 ------ .../pages/list-mod-type/list-mod-type.module.ts | 6 ------ .../unsupported-module.module.ts | 6 ------ .../courses/components/components.module.ts | 8 -------- .../available-courses/available-courses.module.ts | 6 ------ .../courses/pages/categories/categories.module.ts | 6 ------ .../pages/course-preview/course-preview.module.ts | 6 ------ .../courses/pages/dashboard/dashboard.module.ts | 6 ------ .../courses/pages/my-courses/my-courses.module.ts | 8 -------- .../courses/pages/search/search.module.ts | 6 ------ .../editor/components/components.module.ts | 6 ------ .../emulator/components/components.module.ts | 6 ------ src/core/features/grades/grades-lazy.module.ts | 6 ------ .../features/grades/pages/course/course.module.ts | 6 ------ .../features/h5p/components/components.module.ts | 6 ------ src/core/features/login/login-lazy.module.ts | 6 ------ .../change-password/change-password.module.ts | 6 ------ .../login/pages/credentials/credentials.module.ts | 9 --------- .../pages/email-signup/email-signup.module.ts | 9 --------- .../forgotten-password.module.ts | 9 --------- .../login/pages/reconnect/reconnect.module.ts | 9 --------- .../login/pages/site-policy/site-policy.module.ts | 6 ------ src/core/features/login/pages/site/site.module.ts | 9 --------- .../features/login/pages/sites/sites.module.ts | 6 ------ .../features/mainmenu/mainmenu-lazy.module.ts | 6 ------ .../features/mainmenu/pages/home/home.module.ts | 6 ------ .../features/mainmenu/pages/more/more.module.ts | 6 ------ .../search/components/components.module.ts | 8 -------- .../features/settings/pages/about/about.module.ts | 6 ------ .../pages/deviceinfo/deviceinfo.module.ts | 6 ------ .../settings/pages/general/general.module.ts | 8 -------- .../settings/pages/licenses/licenses.module.ts | 6 ------ .../features/settings/pages/site/site.module.ts | 6 ------ .../pages/space-usage/space-usage.module.ts | 6 ------ .../synchronization/synchronization.module.ts | 8 -------- .../features/settings/settings-lazy.module.ts | 6 ------ .../features/sitehome/pages/index/index.module.ts | 6 ------ .../features/tag/components/components.module.ts | 6 ------ .../pages/index-area/index-area.page.module.ts | 6 ------ .../features/tag/pages/index/index.page.module.ts | 6 ------ .../tag/pages/search/search.page.module.ts | 8 -------- .../features/user/components/components.module.ts | 6 ------ .../features/user/pages/about/about.module.ts | 6 ------ .../features/user/pages/profile/profile.module.ts | 6 ------ src/core/features/user/user-course-lazy.module.ts | 6 ------ .../viewer/components/components.module.ts | 6 ------ src/core/shared.module.ts | 12 ++++++++++++ 105 files changed, 15 insertions(+), 715 deletions(-) diff --git a/src/addons/badges/badges-lazy.module.ts b/src/addons/badges/badges-lazy.module.ts index 2245f6fdb..d37f29cf1 100644 --- a/src/addons/badges/badges-lazy.module.ts +++ b/src/addons/badges/badges-lazy.module.ts @@ -12,11 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { TranslateModule } from '@ngx-translate/core'; import { conditionalRoutes } from '@/app/app-routing.module'; import { CoreScreen } from '@services/screen'; @@ -58,9 +55,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/addons/block/activitymodules/components/components.module.ts b/src/addons/block/activitymodules/components/components.module.ts index 3449dbce6..a577d4b36 100644 --- a/src/addons/block/activitymodules/components/components.module.ts +++ b/src/addons/block/activitymodules/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; @@ -27,10 +23,6 @@ import { AddonBlockActivityModulesComponent } from './activitymodules/activitymo AddonBlockActivityModulesComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/addons/block/activityresults/components/components.module.ts b/src/addons/block/activityresults/components/components.module.ts index 0278e68f8..e1af3e1cf 100644 --- a/src/addons/block/activityresults/components/components.module.ts +++ b/src/addons/block/activityresults/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonBlockActivityResultsComponent } from './activityresults/activityresults'; @@ -26,10 +22,6 @@ import { AddonBlockActivityResultsComponent } from './activityresults/activityre AddonBlockActivityResultsComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/addons/block/badges/components/components.module.ts b/src/addons/block/badges/components/components.module.ts index db379c8aa..54da4005f 100644 --- a/src/addons/block/badges/components/components.module.ts +++ b/src/addons/block/badges/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonBlockBadgesComponent } from './badges/badges'; @@ -26,10 +22,6 @@ import { AddonBlockBadgesComponent } from './badges/badges'; AddonBlockBadgesComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/addons/block/blogmenu/components/components.module.ts b/src/addons/block/blogmenu/components/components.module.ts index 1429e23ca..5c96416a2 100644 --- a/src/addons/block/blogmenu/components/components.module.ts +++ b/src/addons/block/blogmenu/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonBlockBlogMenuComponent } from './blogmenu/blogmenu'; @@ -26,10 +22,6 @@ import { AddonBlockBlogMenuComponent } from './blogmenu/blogmenu'; AddonBlockBlogMenuComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/addons/block/blogrecent/components/components.module.ts b/src/addons/block/blogrecent/components/components.module.ts index 5e0d74f9c..41b7919f0 100644 --- a/src/addons/block/blogrecent/components/components.module.ts +++ b/src/addons/block/blogrecent/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonBlockBlogRecentComponent } from './blogrecent/blogrecent'; @@ -26,10 +22,6 @@ import { AddonBlockBlogRecentComponent } from './blogrecent/blogrecent'; AddonBlockBlogRecentComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/addons/block/blogtags/components/components.module.ts b/src/addons/block/blogtags/components/components.module.ts index d7d3f6a90..a835e4508 100644 --- a/src/addons/block/blogtags/components/components.module.ts +++ b/src/addons/block/blogtags/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonBlockBlogTagsComponent } from './blogtags/blogtags'; @@ -26,10 +22,6 @@ import { AddonBlockBlogTagsComponent } from './blogtags/blogtags'; AddonBlockBlogTagsComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/addons/block/myoverview/components/components.module.ts b/src/addons/block/myoverview/components/components.module.ts index d6f88d30f..8c19b4938 100644 --- a/src/addons/block/myoverview/components/components.module.ts +++ b/src/addons/block/myoverview/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCoursesComponentsModule } from '@features/courses/components/components.module'; @@ -27,10 +23,6 @@ import { AddonBlockMyOverviewComponent } from './myoverview/myoverview'; AddonBlockMyOverviewComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, CoreCoursesComponentsModule, ], diff --git a/src/addons/block/newsitems/components/components.module.ts b/src/addons/block/newsitems/components/components.module.ts index 0622e150d..144f40d34 100644 --- a/src/addons/block/newsitems/components/components.module.ts +++ b/src/addons/block/newsitems/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonBlockNewsItemsComponent } from './newsitems/newsitems'; @@ -26,10 +22,6 @@ import { AddonBlockNewsItemsComponent } from './newsitems/newsitems'; AddonBlockNewsItemsComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/addons/block/onlineusers/components/components.module.ts b/src/addons/block/onlineusers/components/components.module.ts index fdeb6a210..834002cfb 100644 --- a/src/addons/block/onlineusers/components/components.module.ts +++ b/src/addons/block/onlineusers/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonBlockOnlineUsersComponent } from './onlineusers/onlineusers'; @@ -26,10 +22,6 @@ import { AddonBlockOnlineUsersComponent } from './onlineusers/onlineusers'; AddonBlockOnlineUsersComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/addons/block/recentactivity/components/components.module.ts b/src/addons/block/recentactivity/components/components.module.ts index 354e0ffff..1ebc2eb98 100644 --- a/src/addons/block/recentactivity/components/components.module.ts +++ b/src/addons/block/recentactivity/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonBlockRecentActivityComponent } from './recentactivity/recentactivity'; @@ -26,10 +22,6 @@ import { AddonBlockRecentActivityComponent } from './recentactivity/recentactivi AddonBlockRecentActivityComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/addons/block/recentlyaccessedcourses/components/components.module.ts b/src/addons/block/recentlyaccessedcourses/components/components.module.ts index 9326c73e5..cd7380a6a 100644 --- a/src/addons/block/recentlyaccessedcourses/components/components.module.ts +++ b/src/addons/block/recentlyaccessedcourses/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCoursesComponentsModule } from '@features/courses/components/components.module'; @@ -27,9 +24,6 @@ import { AddonBlockRecentlyAccessedCoursesComponent } from './recentlyaccessedco AddonBlockRecentlyAccessedCoursesComponent, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreCoursesComponentsModule, ], diff --git a/src/addons/block/recentlyaccessedcourses/recentlyaccessedcourses.module.ts b/src/addons/block/recentlyaccessedcourses/recentlyaccessedcourses.module.ts index ae2ac0928..7e305ed8f 100644 --- a/src/addons/block/recentlyaccessedcourses/recentlyaccessedcourses.module.ts +++ b/src/addons/block/recentlyaccessedcourses/recentlyaccessedcourses.module.ts @@ -13,8 +13,6 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockRecentlyAccessedCoursesComponentsModule } from './components/components.module'; @@ -22,10 +20,8 @@ import { AddonBlockRecentlyAccessedCoursesHandler } from './services/block-handl @NgModule({ imports: [ - IonicModule, CoreSharedModule, AddonBlockRecentlyAccessedCoursesComponentsModule, - TranslateModule.forChild(), ], providers: [ { diff --git a/src/addons/block/recentlyaccesseditems/components/components.module.ts b/src/addons/block/recentlyaccesseditems/components/components.module.ts index 9aa9ce8a5..3ce06b4f6 100644 --- a/src/addons/block/recentlyaccesseditems/components/components.module.ts +++ b/src/addons/block/recentlyaccesseditems/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCoursesComponentsModule } from '@features/courses/components/components.module'; @@ -27,9 +24,6 @@ import { AddonBlockRecentlyAccessedItemsComponent } from './recentlyaccesseditem AddonBlockRecentlyAccessedItemsComponent, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreCoursesComponentsModule, ], diff --git a/src/addons/block/recentlyaccesseditems/recentlyaccesseditems.module.ts b/src/addons/block/recentlyaccesseditems/recentlyaccesseditems.module.ts index a25826da9..57359e0bc 100644 --- a/src/addons/block/recentlyaccesseditems/recentlyaccesseditems.module.ts +++ b/src/addons/block/recentlyaccesseditems/recentlyaccesseditems.module.ts @@ -13,8 +13,6 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; import { AddonBlockRecentlyAccessedItemsComponentsModule } from './components/components.module'; @@ -22,10 +20,8 @@ import { AddonBlockRecentlyAccessedItemsHandler } from './services/block-handler @NgModule({ imports: [ - IonicModule, CoreSharedModule, AddonBlockRecentlyAccessedItemsComponentsModule, - TranslateModule.forChild(), ], providers: [ { diff --git a/src/addons/block/rssclient/components/components.module.ts b/src/addons/block/rssclient/components/components.module.ts index 20087cf54..f10d2ec45 100644 --- a/src/addons/block/rssclient/components/components.module.ts +++ b/src/addons/block/rssclient/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonBlockRssClientComponent } from './rssclient/rssclient'; @@ -26,10 +22,6 @@ import { AddonBlockRssClientComponent } from './rssclient/rssclient'; AddonBlockRssClientComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/addons/block/sitemainmenu/components/components.module.ts b/src/addons/block/sitemainmenu/components/components.module.ts index 81ebe3f25..213738cec 100644 --- a/src/addons/block/sitemainmenu/components/components.module.ts +++ b/src/addons/block/sitemainmenu/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCourseComponentsModule } from '@features/course/components/components.module'; @@ -28,9 +25,6 @@ import { AddonBlockSiteMainMenuComponent } from './sitemainmenu/sitemainmenu'; AddonBlockSiteMainMenuComponent, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreCourseComponentsModule, ], diff --git a/src/addons/block/sitemainmenu/sitemainmenu.module.ts b/src/addons/block/sitemainmenu/sitemainmenu.module.ts index a5b2d4e77..80abc29da 100644 --- a/src/addons/block/sitemainmenu/sitemainmenu.module.ts +++ b/src/addons/block/sitemainmenu/sitemainmenu.module.ts @@ -13,8 +13,6 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonBlockSiteMainMenuComponentsModule } from './components/components.module'; import { CoreBlockDelegate } from '@features/block/services/block-delegate'; @@ -22,10 +20,8 @@ import { AddonBlockSiteMainMenuHandler } from './services/block-handler'; @NgModule({ imports: [ - IonicModule, CoreSharedModule, AddonBlockSiteMainMenuComponentsModule, - TranslateModule.forChild(), ], providers: [ { diff --git a/src/addons/block/starredcourses/components/components.module.ts b/src/addons/block/starredcourses/components/components.module.ts index 3265a6dee..1ecd70b44 100644 --- a/src/addons/block/starredcourses/components/components.module.ts +++ b/src/addons/block/starredcourses/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCoursesComponentsModule } from '@features/courses/components/components.module'; @@ -27,9 +24,6 @@ import { AddonBlockStarredCoursesComponent } from './starredcourses/starredcours AddonBlockStarredCoursesComponent, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreCoursesComponentsModule, ], diff --git a/src/addons/block/tags/components/components.module.ts b/src/addons/block/tags/components/components.module.ts index bd2774f82..3e605feae 100644 --- a/src/addons/block/tags/components/components.module.ts +++ b/src/addons/block/tags/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonBlockTagsComponent } from './tags/tags'; @@ -26,10 +22,6 @@ import { AddonBlockTagsComponent } from './tags/tags'; AddonBlockTagsComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/addons/block/timeline/components/components.module.ts b/src/addons/block/timeline/components/components.module.ts index d2f4620cd..3f7e58788 100644 --- a/src/addons/block/timeline/components/components.module.ts +++ b/src/addons/block/timeline/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; -import { FormsModule } from '@angular/forms'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCoursesComponentsModule } from '@features/courses/components/components.module'; @@ -31,10 +27,6 @@ import { AddonBlockTimelineEventsComponent } from './events/events'; AddonBlockTimelineEventsComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, CoreCoursesComponentsModule, CoreCourseComponentsModule, diff --git a/src/addons/calendar/components/components.module.ts b/src/addons/calendar/components/components.module.ts index 078687589..16a88884b 100644 --- a/src/addons/calendar/components/components.module.ts +++ b/src/addons/calendar/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; @@ -31,10 +27,6 @@ import { AddonCalendarFilterPopoverComponent } from './filter/filter'; AddonCalendarFilterPopoverComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], providers: [ diff --git a/src/addons/calendar/pages/day/day.module.ts b/src/addons/calendar/pages/day/day.module.ts index b260cdb57..2b197adc2 100644 --- a/src/addons/calendar/pages/day/day.module.ts +++ b/src/addons/calendar/pages/day/day.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonCalendarComponentsModule } from '../../components/components.module'; @@ -33,9 +30,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, AddonCalendarComponentsModule, ], diff --git a/src/addons/calendar/pages/edit-event/edit-event.module.ts b/src/addons/calendar/pages/edit-event/edit-event.module.ts index f08fef737..c9c865932 100644 --- a/src/addons/calendar/pages/edit-event/edit-event.module.ts +++ b/src/addons/calendar/pages/edit-event/edit-event.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreEditorComponentsModule } from '@features/editor/components/components.module'; @@ -34,11 +30,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - FormsModule, - ReactiveFormsModule, - TranslateModule.forChild(), CoreSharedModule, CoreEditorComponentsModule, ], diff --git a/src/addons/calendar/pages/event/event.module.ts b/src/addons/calendar/pages/event/event.module.ts index 565382336..56f1225ac 100644 --- a/src/addons/calendar/pages/event/event.module.ts +++ b/src/addons/calendar/pages/event/event.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonCalendarComponentsModule } from '../../components/components.module'; @@ -34,10 +30,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, AddonCalendarComponentsModule, ], diff --git a/src/addons/calendar/pages/index/index.module.ts b/src/addons/calendar/pages/index/index.module.ts index 077ed990e..be80e63e6 100644 --- a/src/addons/calendar/pages/index/index.module.ts +++ b/src/addons/calendar/pages/index/index.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonCalendarComponentsModule } from '../../components/components.module'; @@ -33,9 +30,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, AddonCalendarComponentsModule, ], diff --git a/src/addons/calendar/pages/list/list.module.ts b/src/addons/calendar/pages/list/list.module.ts index a8653f719..291795211 100644 --- a/src/addons/calendar/pages/list/list.module.ts +++ b/src/addons/calendar/pages/list/list.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; import { AddonCalendarEventRoute, AddonCalendarEditRoute } from '@addons/calendar/calendar-lazy.module'; import { conditionalRoutes } from '@/app/app-routing.module'; import { CoreScreen } from '@services/screen'; @@ -54,9 +51,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/addons/calendar/pages/settings/settings.module.ts b/src/addons/calendar/pages/settings/settings.module.ts index 019570fdf..cafb774d0 100644 --- a/src/addons/calendar/pages/settings/settings.module.ts +++ b/src/addons/calendar/pages/settings/settings.module.ts @@ -14,16 +14,10 @@ import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; - -import { CoreDirectivesModule } from '@directives/directives.module'; -import { CorePipesModule } from '@pipes/pipes.module'; import { AddonCalendarSettingsPage } from './settings'; +import { CoreSharedModule } from '@/core/shared.module'; const routes: Routes = [ { @@ -35,12 +29,7 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), - CoreDirectivesModule, - CorePipesModule, + CoreSharedModule, ], declarations: [ AddonCalendarSettingsPage, diff --git a/src/addons/messageoutput/airnotifier/pages/devices/devices.module.ts b/src/addons/messageoutput/airnotifier/pages/devices/devices.module.ts index 1d1926d88..c191264ae 100644 --- a/src/addons/messageoutput/airnotifier/pages/devices/devices.module.ts +++ b/src/addons/messageoutput/airnotifier/pages/devices/devices.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { FormsModule } from '@angular/forms'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonMessageOutputAirnotifierDevicesPage } from './devices'; @@ -32,10 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/addons/messages/components/components.module.ts b/src/addons/messages/components/components.module.ts index ec68cc07b..dbb803c95 100644 --- a/src/addons/messages/components/components.module.ts +++ b/src/addons/messages/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; @@ -27,9 +24,6 @@ import { AddonMessagesConversationInfoComponent } from './conversation-info/conv AddonMessagesConversationInfoComponent, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], entryComponents: [ diff --git a/src/addons/messages/pages/contacts-35/contacts.module.ts b/src/addons/messages/pages/contacts-35/contacts.module.ts index de85dcb1d..e93802059 100644 --- a/src/addons/messages/pages/contacts-35/contacts.module.ts +++ b/src/addons/messages/pages/contacts-35/contacts.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; import { conditionalRoutes } from '@/app/app-routing.module'; import { AddonMessagesDiscussionRoute } from '@addons/messages/messages-lazy.module'; import { CoreScreen } from '@services/screen'; @@ -52,9 +49,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreSearchComponentsModule, ], diff --git a/src/addons/messages/pages/contacts/contacts.module.ts b/src/addons/messages/pages/contacts/contacts.module.ts index 33dee8bfd..d20c0ae79 100644 --- a/src/addons/messages/pages/contacts/contacts.module.ts +++ b/src/addons/messages/pages/contacts/contacts.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; import { conditionalRoutes } from '@/app/app-routing.module'; import { AddonMessagesDiscussionRoute } from '@addons/messages/messages-lazy.module'; import { CoreScreen } from '@services/screen'; @@ -52,9 +49,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/addons/messages/pages/discussion/discussion.module.ts b/src/addons/messages/pages/discussion/discussion.module.ts index 5147cdb35..d247c53b2 100644 --- a/src/addons/messages/pages/discussion/discussion.module.ts +++ b/src/addons/messages/pages/discussion/discussion.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; import { CoreSharedModule } from '@/core/shared.module'; @@ -33,9 +30,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, AddonMessagesComponentsModule, ], @@ -45,4 +39,3 @@ const routes: Routes = [ exports: [RouterModule], }) export class AddonMessagesDiscussionPageModule {} - diff --git a/src/addons/messages/pages/discussions-35/discussions.module.ts b/src/addons/messages/pages/discussions-35/discussions.module.ts index 7b0329662..425fd5620 100644 --- a/src/addons/messages/pages/discussions-35/discussions.module.ts +++ b/src/addons/messages/pages/discussions-35/discussions.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; import { CoreScreen } from '@services/screen'; import { conditionalRoutes } from '@/app/app-routing.module'; import { AddonMessagesDiscussionRoute } from '@addons/messages/messages-lazy.module'; @@ -52,9 +49,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreSearchComponentsModule, ], diff --git a/src/addons/messages/pages/group-conversations/group-conversations.module.ts b/src/addons/messages/pages/group-conversations/group-conversations.module.ts index 87b9da1c9..5ce6c6439 100644 --- a/src/addons/messages/pages/group-conversations/group-conversations.module.ts +++ b/src/addons/messages/pages/group-conversations/group-conversations.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; import { conditionalRoutes } from '@/app/app-routing.module'; import { AddonMessagesDiscussionRoute } from '@addons/messages/messages-lazy.module'; import { CoreScreen } from '@services/screen'; @@ -51,9 +48,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/addons/messages/pages/search/search.module.ts b/src/addons/messages/pages/search/search.module.ts index e9eb63e61..050f2c995 100644 --- a/src/addons/messages/pages/search/search.module.ts +++ b/src/addons/messages/pages/search/search.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; import { CoreScreen } from '@services/screen'; import { conditionalRoutes } from '@/app/app-routing.module'; import { AddonMessagesDiscussionRoute } from '@addons/messages/messages-lazy.module'; @@ -52,9 +49,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreSearchComponentsModule, ], diff --git a/src/addons/messages/pages/settings/settings.module.ts b/src/addons/messages/pages/settings/settings.module.ts index ef42c4058..560ee1bf9 100644 --- a/src/addons/messages/pages/settings/settings.module.ts +++ b/src/addons/messages/pages/settings/settings.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; import { CoreSharedModule } from '@/core/shared.module'; @@ -33,10 +29,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/addons/mod/book/components/components.module.ts b/src/addons/mod/book/components/components.module.ts index 4d59d249d..0254605d5 100644 --- a/src/addons/mod/book/components/components.module.ts +++ b/src/addons/mod/book/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCourseComponentsModule } from '@features/course/components/components.module'; @@ -31,10 +27,6 @@ import { AddonModBookTocComponent } from './toc/toc'; AddonModBookTocComponent, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), - FormsModule, CoreSharedModule, CoreCourseComponentsModule, CoreTagComponentsModule, diff --git a/src/addons/mod/book/pages/index/index.module.ts b/src/addons/mod/book/pages/index/index.module.ts index cc22a2160..98761d47d 100644 --- a/src/addons/mod/book/pages/index/index.module.ts +++ b/src/addons/mod/book/pages/index/index.module.ts @@ -14,9 +14,6 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonModBookComponentsModule } from '../../components/components.module'; @@ -32,9 +29,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, AddonModBookComponentsModule, ], diff --git a/src/addons/mod/lesson/components/components.module.ts b/src/addons/mod/lesson/components/components.module.ts index 0bdd0735f..1db1ad2f5 100644 --- a/src/addons/mod/lesson/components/components.module.ts +++ b/src/addons/mod/lesson/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCourseComponentsModule } from '@features/course/components/components.module'; @@ -31,10 +27,6 @@ import { AddonModLessonPasswordModalComponent } from './password-modal/password- AddonModLessonPasswordModalComponent, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), - FormsModule, CoreSharedModule, CoreCourseComponentsModule, ], diff --git a/src/addons/mod/lesson/pages/index/index.module.ts b/src/addons/mod/lesson/pages/index/index.module.ts index ab65bd8f2..bc55210c6 100644 --- a/src/addons/mod/lesson/pages/index/index.module.ts +++ b/src/addons/mod/lesson/pages/index/index.module.ts @@ -14,9 +14,6 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonModLessonComponentsModule } from '../../components/components.module'; @@ -32,9 +29,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, AddonModLessonComponentsModule, ], diff --git a/src/addons/mod/lesson/pages/player/player.module.ts b/src/addons/mod/lesson/pages/player/player.module.ts index 4a04f1b0d..926fd8ac9 100644 --- a/src/addons/mod/lesson/pages/player/player.module.ts +++ b/src/addons/mod/lesson/pages/player/player.module.ts @@ -14,10 +14,6 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonModLessonPlayerPage } from './player'; @@ -35,11 +31,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), - FormsModule, - ReactiveFormsModule, CoreSharedModule, CoreEditorComponentsModule, ], diff --git a/src/addons/mod/lesson/pages/user-retake/user-retake.module.ts b/src/addons/mod/lesson/pages/user-retake/user-retake.module.ts index 68e773092..0f2fe481e 100644 --- a/src/addons/mod/lesson/pages/user-retake/user-retake.module.ts +++ b/src/addons/mod/lesson/pages/user-retake/user-retake.module.ts @@ -14,10 +14,6 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonModLessonUserRetakePage } from './user-retake'; @@ -32,10 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), - FormsModule, CoreSharedModule, ], declarations: [ diff --git a/src/addons/mod/page/components/components.module.ts b/src/addons/mod/page/components/components.module.ts index c5755973b..2cbb45185 100644 --- a/src/addons/mod/page/components/components.module.ts +++ b/src/addons/mod/page/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCourseComponentsModule } from '@features/course/components/components.module'; @@ -28,10 +24,6 @@ import { AddonModPageIndexComponent } from './index/index'; AddonModPageIndexComponent, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), - FormsModule, CoreSharedModule, CoreCourseComponentsModule, ], diff --git a/src/addons/mod/page/pages/index/index.module.ts b/src/addons/mod/page/pages/index/index.module.ts index 3e1036c51..2d2d9262e 100644 --- a/src/addons/mod/page/pages/index/index.module.ts +++ b/src/addons/mod/page/pages/index/index.module.ts @@ -14,9 +14,6 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonModPageComponentsModule } from '../../components/components.module'; @@ -32,9 +29,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, AddonModPageComponentsModule, ], diff --git a/src/addons/notifications/pages/list/list.module.ts b/src/addons/notifications/pages/list/list.module.ts index 284696909..5a4f6144d 100644 --- a/src/addons/notifications/pages/list/list.module.ts +++ b/src/addons/notifications/pages/list/list.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonNotificationsComponentsModule } from '../../components/components.module'; @@ -32,9 +29,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, AddonNotificationsComponentsModule, ], diff --git a/src/addons/notifications/pages/settings/settings.module.ts b/src/addons/notifications/pages/settings/settings.module.ts index f01846203..4116d6068 100644 --- a/src/addons/notifications/pages/settings/settings.module.ts +++ b/src/addons/notifications/pages/settings/settings.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonNotificationsSettingsPage } from './settings'; @@ -32,10 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - FormsModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/addons/privatefiles/pages/index/index.module.ts b/src/addons/privatefiles/pages/index/index.module.ts index 5f35fd906..5bdc20d57 100644 --- a/src/addons/privatefiles/pages/index/index.module.ts +++ b/src/addons/privatefiles/pages/index/index.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonPrivateFilesIndexPage } from '.'; @@ -32,10 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/addons/userprofilefield/checkbox/checkbox.module.ts b/src/addons/userprofilefield/checkbox/checkbox.module.ts index 37083eded..8163a783a 100644 --- a/src/addons/userprofilefield/checkbox/checkbox.module.ts +++ b/src/addons/userprofilefield/checkbox/checkbox.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { AddonUserProfileFieldCheckboxHandler } from './services/handlers/checkbox'; import { CoreUserProfileFieldDelegate } from '@features/user/services/user-profile-field-delegate'; @@ -28,11 +24,6 @@ import { CoreSharedModule } from '@/core/shared.module'; AddonUserProfileFieldCheckboxComponent, ], imports: [ - CommonModule, - IonicModule.forRoot(), - TranslateModule.forChild(), - FormsModule, - ReactiveFormsModule, CoreSharedModule, ], providers: [ diff --git a/src/addons/userprofilefield/datetime/datetime.module.ts b/src/addons/userprofilefield/datetime/datetime.module.ts index 31b638042..43172b26a 100644 --- a/src/addons/userprofilefield/datetime/datetime.module.ts +++ b/src/addons/userprofilefield/datetime/datetime.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { AddonUserProfileFieldDatetimeHandler } from './services/handlers/datetime'; import { CoreUserProfileFieldDelegate } from '@features/user/services/user-profile-field-delegate'; @@ -28,11 +24,6 @@ import { CoreSharedModule } from '@/core/shared.module'; AddonUserProfileFieldDatetimeComponent, ], imports: [ - CommonModule, - IonicModule.forRoot(), - TranslateModule.forChild(), - FormsModule, - ReactiveFormsModule, CoreSharedModule, ], providers: [ diff --git a/src/addons/userprofilefield/menu/menu.module.ts b/src/addons/userprofilefield/menu/menu.module.ts index 54430b13c..694c80c64 100644 --- a/src/addons/userprofilefield/menu/menu.module.ts +++ b/src/addons/userprofilefield/menu/menu.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { AddonUserProfileFieldMenuHandler } from './services/handlers/menu'; import { CoreUserProfileFieldDelegate } from '@features/user/services/user-profile-field-delegate'; @@ -28,11 +24,6 @@ import { CoreSharedModule } from '@/core/shared.module'; AddonUserProfileFieldMenuComponent, ], imports: [ - CommonModule, - IonicModule.forRoot(), - TranslateModule.forChild(), - FormsModule, - ReactiveFormsModule, CoreSharedModule, ], providers: [ diff --git a/src/addons/userprofilefield/text/text.module.ts b/src/addons/userprofilefield/text/text.module.ts index 48d7faabe..30d0541ed 100644 --- a/src/addons/userprofilefield/text/text.module.ts +++ b/src/addons/userprofilefield/text/text.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { AddonUserProfileFieldTextHandler } from './services/handlers/text'; import { CoreUserProfileFieldDelegate } from '@features/user/services/user-profile-field-delegate'; @@ -28,11 +24,6 @@ import { CoreSharedModule } from '@/core/shared.module'; AddonUserProfileFieldTextComponent, ], imports: [ - CommonModule, - IonicModule.forRoot(), - TranslateModule.forChild(), - FormsModule, - ReactiveFormsModule, CoreSharedModule, ], providers: [ diff --git a/src/addons/userprofilefield/textarea/textarea.module.ts b/src/addons/userprofilefield/textarea/textarea.module.ts index a417f7b55..f4d7004c5 100644 --- a/src/addons/userprofilefield/textarea/textarea.module.ts +++ b/src/addons/userprofilefield/textarea/textarea.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { APP_INITIALIZER, NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { AddonUserProfileFieldTextareaHandler } from './services/handlers/textarea'; import { CoreUserProfileFieldDelegate } from '@features/user/services/user-profile-field-delegate'; @@ -29,11 +25,6 @@ import { CoreEditorComponentsModule } from '@features/editor/components/componen AddonUserProfileFieldTextareaComponent, ], imports: [ - CommonModule, - IonicModule.forRoot(), - TranslateModule.forChild(), - FormsModule, - ReactiveFormsModule, CoreSharedModule, CoreEditorComponentsModule, ], diff --git a/src/core/components/components.module.ts b/src/core/components/components.module.ts index 0d676ac5e..02fc1268d 100644 --- a/src/core/components/components.module.ts +++ b/src/core/components/components.module.ts @@ -87,7 +87,7 @@ import { CoreLocalFileComponent } from './local-file/local-file'; ], imports: [ CommonModule, - IonicModule.forRoot(), + IonicModule, FormsModule, TranslateModule.forChild(), CoreDirectivesModule, diff --git a/src/core/features/block/components/components.module.ts b/src/core/features/block/components/components.module.ts index 261667ffa..7f8dea3da 100644 --- a/src/core/features/block/components/components.module.ts +++ b/src/core/features/block/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreBlockComponent } from './block/block'; import { CoreBlockOnlyTitleComponent } from './only-title-block/only-title-block'; import { CoreBlockPreRenderedComponent } from './pre-rendered-block/pre-rendered-block'; @@ -30,9 +27,6 @@ import { CoreSharedModule } from '@/core/shared.module'; CoreBlockCourseBlocksComponent, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/core/features/contentlinks/pages/choose-site/choose-site.module.ts b/src/core/features/contentlinks/pages/choose-site/choose-site.module.ts index 090742124..2587d8af5 100644 --- a/src/core/features/contentlinks/pages/choose-site/choose-site.module.ts +++ b/src/core/features/contentlinks/pages/choose-site/choose-site.module.ts @@ -14,9 +14,6 @@ import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; import { CoreSharedModule } from '@/core/shared.module'; @@ -35,9 +32,6 @@ const routes: Routes = [ ], imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], }) diff --git a/src/core/features/course/components/components.module.ts b/src/core/features/course/components/components.module.ts index 866296a27..e8fa6f23d 100644 --- a/src/core/features/course/components/components.module.ts +++ b/src/core/features/course/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreBlockComponentsModule } from '@features/block/components/components.module'; @@ -39,9 +36,6 @@ import { CoreCourseUnsupportedModuleComponent } from './unsupported-module/unsup ], imports: [ CoreBlockComponentsModule, - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/core/features/course/pages/contents/contents.module.ts b/src/core/features/course/pages/contents/contents.module.ts index 0c386db0e..698eaeca7 100644 --- a/src/core/features/course/pages/contents/contents.module.ts +++ b/src/core/features/course/pages/contents/contents.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCourseContentsPage } from './contents'; @@ -32,9 +29,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreCourseComponentsModule, ], diff --git a/src/core/features/course/pages/index/index.module.ts b/src/core/features/course/pages/index/index.module.ts index b21a450c2..5cdcf4b04 100644 --- a/src/core/features/course/pages/index/index.module.ts +++ b/src/core/features/course/pages/index/index.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { Injector, NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, ROUTES, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { resolveModuleRoutes } from '@/app/app-routing.module'; import { CoreSharedModule } from '@/core/shared.module'; @@ -41,9 +38,6 @@ function buildRoutes(injector: Injector): Routes { { provide: ROUTES, multi: true, useFactory: buildRoutes, deps: [Injector] }, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/core/features/course/pages/list-mod-type/list-mod-type.module.ts b/src/core/features/course/pages/list-mod-type/list-mod-type.module.ts index 8efce4a18..5070cacda 100644 --- a/src/core/features/course/pages/list-mod-type/list-mod-type.module.ts +++ b/src/core/features/course/pages/list-mod-type/list-mod-type.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCourseListModTypePage } from './list-mod-type'; @@ -35,9 +32,6 @@ const routes: Routes = [ ], imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreCourseComponentsModule, ], diff --git a/src/core/features/course/pages/unsupported-module/unsupported-module.module.ts b/src/core/features/course/pages/unsupported-module/unsupported-module.module.ts index 6a5c9cfdd..82a9e5afd 100644 --- a/src/core/features/course/pages/unsupported-module/unsupported-module.module.ts +++ b/src/core/features/course/pages/unsupported-module/unsupported-module.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCourseUnsupportedModulePage } from './unsupported-module'; @@ -32,9 +29,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreCourseComponentsModule, ], diff --git a/src/core/features/courses/components/components.module.ts b/src/core/features/courses/components/components.module.ts index 83fa47b8f..64a2cc9fa 100644 --- a/src/core/features/courses/components/components.module.ts +++ b/src/core/features/courses/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; -import { FormsModule } from '@angular/forms'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCoursesCourseListItemComponent } from './course-list-item/course-list-item'; @@ -32,10 +28,6 @@ import { CoreCoursesSelfEnrolPasswordComponent } from './self-enrol-password/sel CoreCoursesSelfEnrolPasswordComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/core/features/courses/pages/available-courses/available-courses.module.ts b/src/core/features/courses/pages/available-courses/available-courses.module.ts index 604374b35..333ded1d1 100644 --- a/src/core/features/courses/pages/available-courses/available-courses.module.ts +++ b/src/core/features/courses/pages/available-courses/available-courses.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCoursesComponentsModule } from '../../components/components.module'; @@ -34,9 +31,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreCoursesComponentsModule, ], diff --git a/src/core/features/courses/pages/categories/categories.module.ts b/src/core/features/courses/pages/categories/categories.module.ts index 38561da93..c5f016916 100644 --- a/src/core/features/courses/pages/categories/categories.module.ts +++ b/src/core/features/courses/pages/categories/categories.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCoursesComponentsModule } from '../../components/components.module'; @@ -34,9 +31,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreCoursesComponentsModule, ], diff --git a/src/core/features/courses/pages/course-preview/course-preview.module.ts b/src/core/features/courses/pages/course-preview/course-preview.module.ts index d91a92516..d8e0a8879 100644 --- a/src/core/features/courses/pages/course-preview/course-preview.module.ts +++ b/src/core/features/courses/pages/course-preview/course-preview.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCoursesCoursePreviewPage } from './course-preview'; @@ -32,9 +29,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreCoursesComponentsModule, ], diff --git a/src/core/features/courses/pages/dashboard/dashboard.module.ts b/src/core/features/courses/pages/dashboard/dashboard.module.ts index 6ed3f27e1..aafe02070 100644 --- a/src/core/features/courses/pages/dashboard/dashboard.module.ts +++ b/src/core/features/courses/pages/dashboard/dashboard.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreBlockComponentsModule } from '@features/block/components/components.module'; @@ -33,9 +30,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreBlockComponentsModule, ], diff --git a/src/core/features/courses/pages/my-courses/my-courses.module.ts b/src/core/features/courses/pages/my-courses/my-courses.module.ts index 631d6ec86..d07c58ced 100644 --- a/src/core/features/courses/pages/my-courses/my-courses.module.ts +++ b/src/core/features/courses/pages/my-courses/my-courses.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; -import { FormsModule } from '@angular/forms'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCoursesMyCoursesPage } from './my-courses'; @@ -33,10 +29,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - FormsModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreCoursesComponentsModule, ], diff --git a/src/core/features/courses/pages/search/search.module.ts b/src/core/features/courses/pages/search/search.module.ts index fdcb74580..497e6f4d1 100644 --- a/src/core/features/courses/pages/search/search.module.ts +++ b/src/core/features/courses/pages/search/search.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreCoursesComponentsModule } from '../../components/components.module'; @@ -34,9 +31,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreCoursesComponentsModule, CoreSearchComponentsModule, diff --git a/src/core/features/editor/components/components.module.ts b/src/core/features/editor/components/components.module.ts index 01dfd5469..f657a39ef 100644 --- a/src/core/features/editor/components/components.module.ts +++ b/src/core/features/editor/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreEditorRichTextEditorComponent } from './rich-text-editor/rich-text-editor'; import { CoreSharedModule } from '@/core/shared.module'; @@ -25,9 +22,6 @@ import { CoreSharedModule } from '@/core/shared.module'; CoreEditorRichTextEditorComponent, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], providers: [ diff --git a/src/core/features/emulator/components/components.module.ts b/src/core/features/emulator/components/components.module.ts index c655fcd74..dfa054487 100644 --- a/src/core/features/emulator/components/components.module.ts +++ b/src/core/features/emulator/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreEmulatorCaptureMediaComponent } from './capture-media/capture-media'; @@ -25,9 +22,6 @@ import { CoreEmulatorCaptureMediaComponent } from './capture-media/capture-media CoreEmulatorCaptureMediaComponent, ], imports: [ - CommonModule, - IonicModule.forRoot(), - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/core/features/grades/grades-lazy.module.ts b/src/core/features/grades/grades-lazy.module.ts index 5a4ac60e5..e6b90626e 100644 --- a/src/core/features/grades/grades-lazy.module.ts +++ b/src/core/features/grades/grades-lazy.module.ts @@ -12,11 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { TranslateModule } from '@ngx-translate/core'; import { conditionalRoutes } from '@/app/app-routing.module'; import { CoreScreen } from '@services/screen'; @@ -73,9 +70,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreGradesCoursePageModule, ], diff --git a/src/core/features/grades/pages/course/course.module.ts b/src/core/features/grades/pages/course/course.module.ts index d098cd9c8..356010f2a 100644 --- a/src/core/features/grades/pages/course/course.module.ts +++ b/src/core/features/grades/pages/course/course.module.ts @@ -12,10 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; import { NgModule } from '@angular/core'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; @@ -23,9 +20,6 @@ import { CoreGradesCoursePage } from './course.page'; @NgModule({ imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/core/features/h5p/components/components.module.ts b/src/core/features/h5p/components/components.module.ts index be4ec55f8..509b92edb 100644 --- a/src/core/features/h5p/components/components.module.ts +++ b/src/core/features/h5p/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreH5PPlayerComponent } from './h5p-player/h5p-player'; @@ -27,10 +24,7 @@ import { CoreH5PIframeComponent } from './h5p-iframe/h5p-iframe'; CoreH5PIframeComponent, ], imports: [ - CommonModule, - IonicModule, CoreSharedModule, - TranslateModule.forChild(), ], providers: [ ], diff --git a/src/core/features/login/login-lazy.module.ts b/src/core/features/login/login-lazy.module.ts index 35dd0e501..bab14255b 100644 --- a/src/core/features/login/login-lazy.module.ts +++ b/src/core/features/login/login-lazy.module.ts @@ -14,9 +14,6 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreLoginSiteHelpComponent } from './components/site-help/site-help'; @@ -69,9 +66,6 @@ const routes: Routes = [ @NgModule({ imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, RouterModule.forChild(routes), ], diff --git a/src/core/features/login/pages/change-password/change-password.module.ts b/src/core/features/login/pages/change-password/change-password.module.ts index 5d81313fd..d10ce6e20 100644 --- a/src/core/features/login/pages/change-password/change-password.module.ts +++ b/src/core/features/login/pages/change-password/change-password.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreLoginChangePasswordPage } from './change-password'; @@ -31,9 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/core/features/login/pages/credentials/credentials.module.ts b/src/core/features/login/pages/credentials/credentials.module.ts index 0a77cc9fd..83e6013dc 100644 --- a/src/core/features/login/pages/credentials/credentials.module.ts +++ b/src/core/features/login/pages/credentials/credentials.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreLoginCredentialsPage } from './credentials'; @@ -32,11 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), - FormsModule, - ReactiveFormsModule, CoreSharedModule, ], declarations: [ diff --git a/src/core/features/login/pages/email-signup/email-signup.module.ts b/src/core/features/login/pages/email-signup/email-signup.module.ts index 3ea6bc521..886991e3d 100644 --- a/src/core/features/login/pages/email-signup/email-signup.module.ts +++ b/src/core/features/login/pages/email-signup/email-signup.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreUserComponentsModule } from '@features/user/components/components.module'; @@ -34,11 +30,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), - FormsModule, - ReactiveFormsModule, CoreSharedModule, CoreUserComponentsModule, ], diff --git a/src/core/features/login/pages/forgotten-password/forgotten-password.module.ts b/src/core/features/login/pages/forgotten-password/forgotten-password.module.ts index 4570064dc..eca47959e 100644 --- a/src/core/features/login/pages/forgotten-password/forgotten-password.module.ts +++ b/src/core/features/login/pages/forgotten-password/forgotten-password.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreLoginForgottenPasswordPage } from './forgotten-password'; @@ -32,11 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), - FormsModule, - ReactiveFormsModule, CoreSharedModule, ], declarations: [ diff --git a/src/core/features/login/pages/reconnect/reconnect.module.ts b/src/core/features/login/pages/reconnect/reconnect.module.ts index 40d964dc1..47f284ca7 100644 --- a/src/core/features/login/pages/reconnect/reconnect.module.ts +++ b/src/core/features/login/pages/reconnect/reconnect.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreLoginReconnectPage } from './reconnect'; @@ -32,11 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), - FormsModule, - ReactiveFormsModule, CoreSharedModule, ], declarations: [ diff --git a/src/core/features/login/pages/site-policy/site-policy.module.ts b/src/core/features/login/pages/site-policy/site-policy.module.ts index 07e675296..d0e6d7440 100644 --- a/src/core/features/login/pages/site-policy/site-policy.module.ts +++ b/src/core/features/login/pages/site-policy/site-policy.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreLoginSitePolicyPage } from './site-policy'; @@ -31,9 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/core/features/login/pages/site/site.module.ts b/src/core/features/login/pages/site/site.module.ts index 36d1c4999..ea16add88 100644 --- a/src/core/features/login/pages/site/site.module.ts +++ b/src/core/features/login/pages/site/site.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreLoginSitePage } from './site'; @@ -32,11 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), - FormsModule, - ReactiveFormsModule, CoreSharedModule, ], declarations: [ diff --git a/src/core/features/login/pages/sites/sites.module.ts b/src/core/features/login/pages/sites/sites.module.ts index f95a68134..587010ee7 100644 --- a/src/core/features/login/pages/sites/sites.module.ts +++ b/src/core/features/login/pages/sites/sites.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreLoginSitesPage } from './sites'; @@ -31,9 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/core/features/mainmenu/mainmenu-lazy.module.ts b/src/core/features/mainmenu/mainmenu-lazy.module.ts index 16a1171a1..ff9c67189 100644 --- a/src/core/features/mainmenu/mainmenu-lazy.module.ts +++ b/src/core/features/mainmenu/mainmenu-lazy.module.ts @@ -12,11 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { CommonModule } from '@angular/common'; import { Injector, NgModule } from '@angular/core'; import { ROUTES, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { resolveModuleRoutes } from '@/app/app-routing.module'; @@ -56,9 +53,6 @@ function buildRoutes(injector: Injector): Routes { @NgModule({ imports: [ - CommonModule, - IonicModule, - TranslateModule, CoreSharedModule, ], declarations: [ diff --git a/src/core/features/mainmenu/pages/home/home.module.ts b/src/core/features/mainmenu/pages/home/home.module.ts index ac5ab6b19..2160d8709 100644 --- a/src/core/features/mainmenu/pages/home/home.module.ts +++ b/src/core/features/mainmenu/pages/home/home.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { Injector, NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, ROUTES, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { resolveModuleRoutes } from '@/app/app-routing.module'; import { CoreSharedModule } from '@/core/shared.module'; @@ -40,9 +37,6 @@ function buildRoutes(injector: Injector): Routes { @NgModule({ imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], providers: [ diff --git a/src/core/features/mainmenu/pages/more/more.module.ts b/src/core/features/mainmenu/pages/more/more.module.ts index 03acaf749..48cd31b3b 100644 --- a/src/core/features/mainmenu/pages/more/more.module.ts +++ b/src/core/features/mainmenu/pages/more/more.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { Injector, NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, ROUTES } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreMainMenuMorePage } from './more'; @@ -24,9 +21,6 @@ import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.modu @NgModule({ imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], providers: [ diff --git a/src/core/features/search/components/components.module.ts b/src/core/features/search/components/components.module.ts index 498e2e359..56ec2bc08 100644 --- a/src/core/features/search/components/components.module.ts +++ b/src/core/features/search/components/components.module.ts @@ -13,10 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { FormsModule } from '@angular/forms'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreSearchBoxComponent } from './search-box/search-box'; @@ -27,10 +23,6 @@ import { CoreSearchBoxComponent } from './search-box/search-box'; CoreSearchBoxComponent, ], imports: [ - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/core/features/settings/pages/about/about.module.ts b/src/core/features/settings/pages/about/about.module.ts index cd58152b3..8debf902f 100644 --- a/src/core/features/settings/pages/about/about.module.ts +++ b/src/core/features/settings/pages/about/about.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreSettingsAboutPage } from './about'; @@ -31,9 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/core/features/settings/pages/deviceinfo/deviceinfo.module.ts b/src/core/features/settings/pages/deviceinfo/deviceinfo.module.ts index 011669519..d2cecabe2 100644 --- a/src/core/features/settings/pages/deviceinfo/deviceinfo.module.ts +++ b/src/core/features/settings/pages/deviceinfo/deviceinfo.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreSettingsDeviceInfoPage } from './deviceinfo'; @@ -31,9 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/core/features/settings/pages/general/general.module.ts b/src/core/features/settings/pages/general/general.module.ts index 568ed194b..cc5f52c17 100644 --- a/src/core/features/settings/pages/general/general.module.ts +++ b/src/core/features/settings/pages/general/general.module.ts @@ -13,11 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; -import { FormsModule } from '@angular/forms'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreSettingsGeneralPage } from './general'; @@ -32,10 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/core/features/settings/pages/licenses/licenses.module.ts b/src/core/features/settings/pages/licenses/licenses.module.ts index 668db6008..441262afe 100644 --- a/src/core/features/settings/pages/licenses/licenses.module.ts +++ b/src/core/features/settings/pages/licenses/licenses.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreSettingsLicensesPage } from './licenses'; @@ -31,9 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/core/features/settings/pages/site/site.module.ts b/src/core/features/settings/pages/site/site.module.ts index cde02bba8..0e6c8a1b2 100644 --- a/src/core/features/settings/pages/site/site.module.ts +++ b/src/core/features/settings/pages/site/site.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreSitePreferencesPage } from './site'; @@ -34,9 +31,6 @@ const routes: Routes = [ ], imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], }) diff --git a/src/core/features/settings/pages/space-usage/space-usage.module.ts b/src/core/features/settings/pages/space-usage/space-usage.module.ts index 4db70ccd8..1f5dead54 100644 --- a/src/core/features/settings/pages/space-usage/space-usage.module.ts +++ b/src/core/features/settings/pages/space-usage/space-usage.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreSettingsSpaceUsagePage } from './space-usage'; @@ -31,9 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/core/features/settings/pages/synchronization/synchronization.module.ts b/src/core/features/settings/pages/synchronization/synchronization.module.ts index 0cadd1822..8a6f3d901 100644 --- a/src/core/features/settings/pages/synchronization/synchronization.module.ts +++ b/src/core/features/settings/pages/synchronization/synchronization.module.ts @@ -14,14 +14,10 @@ import { NgModule } from '@angular/core'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreSettingsSynchronizationPage } from './synchronization'; -import { FormsModule } from '@angular/forms'; const routes: Routes = [ { @@ -33,10 +29,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/core/features/settings/settings-lazy.module.ts b/src/core/features/settings/settings-lazy.module.ts index b29c962dc..1a8f6d517 100644 --- a/src/core/features/settings/settings-lazy.module.ts +++ b/src/core/features/settings/settings-lazy.module.ts @@ -12,11 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { TranslateModule } from '@ngx-translate/core'; import { conditionalRoutes } from '@/app/app-routing.module'; import { CoreSharedModule } from '@/core/shared.module'; @@ -85,9 +82,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule, CoreSharedModule, ], declarations: [ diff --git a/src/core/features/sitehome/pages/index/index.module.ts b/src/core/features/sitehome/pages/index/index.module.ts index a6a93449d..f1046ba5e 100644 --- a/src/core/features/sitehome/pages/index/index.module.ts +++ b/src/core/features/sitehome/pages/index/index.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreBlockComponentsModule } from '@/core/features/block/components/components.module'; @@ -34,9 +31,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreBlockComponentsModule, CoreCourseComponentsModule, diff --git a/src/core/features/tag/components/components.module.ts b/src/core/features/tag/components/components.module.ts index 9f3aa671e..2d9f500e9 100644 --- a/src/core/features/tag/components/components.module.ts +++ b/src/core/features/tag/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreTagFeedComponent } from './feed/feed'; import { CoreSharedModule } from '@/core/shared.module'; @@ -27,9 +24,6 @@ import { CoreTagListComponent } from './list/list'; CoreTagListComponent, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], providers: [ diff --git a/src/core/features/tag/pages/index-area/index-area.page.module.ts b/src/core/features/tag/pages/index-area/index-area.page.module.ts index 5bc977a9b..d049b5da5 100644 --- a/src/core/features/tag/pages/index-area/index-area.page.module.ts +++ b/src/core/features/tag/pages/index-area/index-area.page.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { CommonModule } from '@angular/common'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreTagIndexAreaPage } from './index-area.page'; @@ -34,9 +31,6 @@ const routes: Routes = [ ], imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [RouterModule], diff --git a/src/core/features/tag/pages/index/index.page.module.ts b/src/core/features/tag/pages/index/index.page.module.ts index e11ccd89c..74d88d961 100644 --- a/src/core/features/tag/pages/index/index.page.module.ts +++ b/src/core/features/tag/pages/index/index.page.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; import { conditionalRoutes } from '@/app/app-routing.module'; import { CoreTagIndexAreaRoute } from '@features/tag/tag-lazy.module'; @@ -53,9 +50,6 @@ const routes: Routes = [ ], imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], exports: [RouterModule], diff --git a/src/core/features/tag/pages/search/search.page.module.ts b/src/core/features/tag/pages/search/search.page.module.ts index 87511074e..3da4821d2 100644 --- a/src/core/features/tag/pages/search/search.page.module.ts +++ b/src/core/features/tag/pages/search/search.page.module.ts @@ -13,16 +13,12 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreSearchComponentsModule } from '@features/search/components/components.module'; import { CoreTagSearchPage } from './search.page'; -import { FormsModule } from '@angular/forms'; const routes: Routes = [ { @@ -36,10 +32,6 @@ const routes: Routes = [ ], imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - FormsModule, - TranslateModule.forChild(), CoreSharedModule, CoreSearchComponentsModule, ], diff --git a/src/core/features/user/components/components.module.ts b/src/core/features/user/components/components.module.ts index 2b4d53afe..eb21938b2 100644 --- a/src/core/features/user/components/components.module.ts +++ b/src/core/features/user/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreUserProfileFieldComponent } from './user-profile-field/user-profile-field'; @@ -27,9 +24,6 @@ import { CoreUserTagAreaComponent } from './tag-area/tag-area'; CoreUserTagAreaComponent, ], imports: [ - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], providers: [ diff --git a/src/core/features/user/pages/about/about.module.ts b/src/core/features/user/pages/about/about.module.ts index 98b7c73a4..a40c76fc6 100644 --- a/src/core/features/user/pages/about/about.module.ts +++ b/src/core/features/user/pages/about/about.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreUserComponentsModule } from '@features/user/components/components.module'; @@ -33,9 +30,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreUserComponentsModule, ], diff --git a/src/core/features/user/pages/profile/profile.module.ts b/src/core/features/user/pages/profile/profile.module.ts index c408e3b0f..4a8aad735 100644 --- a/src/core/features/user/pages/profile/profile.module.ts +++ b/src/core/features/user/pages/profile/profile.module.ts @@ -13,10 +13,7 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreUserProfilePage } from './profile.page'; @@ -31,9 +28,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, ], declarations: [ diff --git a/src/core/features/user/user-course-lazy.module.ts b/src/core/features/user/user-course-lazy.module.ts index 03ebf37f0..7602ecacd 100644 --- a/src/core/features/user/user-course-lazy.module.ts +++ b/src/core/features/user/user-course-lazy.module.ts @@ -12,11 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreSearchComponentsModule } from '@features/search/components/components.module'; @@ -39,9 +36,6 @@ const routes: Routes = [ @NgModule({ imports: [ RouterModule.forChild(routes), - CommonModule, - IonicModule, - TranslateModule.forChild(), CoreSharedModule, CoreSearchComponentsModule, ], diff --git a/src/core/features/viewer/components/components.module.ts b/src/core/features/viewer/components/components.module.ts index 6403e090c..5b1af2909 100644 --- a/src/core/features/viewer/components/components.module.ts +++ b/src/core/features/viewer/components/components.module.ts @@ -13,9 +13,6 @@ // limitations under the License. import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { IonicModule } from '@ionic/angular'; -import { TranslateModule } from '@ngx-translate/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreViewerTextComponent } from './text/text'; @@ -25,9 +22,6 @@ import { CoreViewerTextComponent } from './text/text'; CoreViewerTextComponent, ], imports: [ - CommonModule, - IonicModule.forRoot(), - TranslateModule.forChild(), CoreSharedModule, ], exports: [ diff --git a/src/core/shared.module.ts b/src/core/shared.module.ts index ab2842e22..d317897e6 100644 --- a/src/core/shared.module.ts +++ b/src/core/shared.module.ts @@ -16,12 +16,24 @@ import { NgModule } from '@angular/core'; import { CoreComponentsModule } from '@components/components.module'; import { CoreDirectivesModule } from '@directives/directives.module'; import { CorePipesModule } from '@pipes/pipes.module'; +import { FormsModule, ReactiveFormsModule } from '@angular/forms'; +import { TranslateModule } from '@ngx-translate/core'; +import { CommonModule } from '@angular/common'; +import { IonicModule } from '@ionic/angular'; @NgModule({ + imports: [ + TranslateModule.forChild(), + ], exports: [ + CommonModule, CoreComponentsModule, CoreDirectivesModule, CorePipesModule, + FormsModule, + IonicModule, + ReactiveFormsModule, + TranslateModule, ], }) export class CoreSharedModule {}