MOBILE-3947 chore: Remove unnecessary route module exports

main
Pau Ferrer Ocaña 2024-03-12 15:24:54 +01:00
parent f6b9ce0212
commit 537dc07587
38 changed files with 12 additions and 55 deletions

View File

@ -13,7 +13,7 @@
// limitations under the License.
import { Injector, NgModule } from '@angular/core';
import { RouterModule, ROUTES, Routes } from '@angular/router';
import { ROUTES, Routes } from '@angular/router';
import { CoreSharedModule } from '@/core/shared.module';
import { AddonBlogEntriesPage } from './pages/entries/entries';
@ -48,7 +48,6 @@ function buildRoutes(injector: Injector): Routes {
CoreTagComponentsModule,
CoreMainMenuComponentsModule,
],
exports: [RouterModule],
providers: [
{
provide: ROUTES,

View File

@ -42,7 +42,6 @@ const routes: Routes = [
CoreMainMenuRoutingModule.forChild({ children: routes }),
CoreCourseIndexRoutingModule.forChild({ children: routes }),
],
exports: [CoreMainMenuRoutingModule],
providers: [
{
provide: APP_INITIALIZER,

View File

@ -20,7 +20,7 @@ import { AddonCalendarEventPage } from '@addons/calendar/pages/event/event';
import { AddonCalendarIndexPage } from '@addons/calendar/pages/index';
import { AddonCalendarSettingsPage } from '@addons/calendar/pages/settings/settings';
import { Injector, NgModule } from '@angular/core';
import { RouterModule, ROUTES, Routes } from '@angular/router';
import { ROUTES, Routes } from '@angular/router';
import { CoreEditorComponentsModule } from '@features/editor/components/components.module';
import { CoreMainMenuComponentsModule } from '@features/mainmenu/components/components.module';
@ -70,7 +70,6 @@ function buildRoutes(injector: Injector): Routes {
CoreMainMenuComponentsModule,
CoreEditorComponentsModule,
],
exports: [RouterModule],
declarations: [
AddonCalendarDayPage,
AddonCalendarEditEventPage,

View File

@ -62,7 +62,6 @@ const mainMenuChildrenRoutes: Routes = [
CoreMainMenuRoutingModule.forChild({ children: mainMenuChildrenRoutes }),
AddonCalendarComponentsModule,
],
exports: [CoreMainMenuRoutingModule],
providers: [
{
provide: CORE_SITE_SCHEMAS,

View File

@ -25,7 +25,6 @@ import { AddonCompetencyPushClickHandler } from './services/handlers/push-click'
import { AddonCompetencyUserCompetencyLinkHandler } from './services/handlers/user-competency-link';
import { AddonCompetencyUserHandler } from './services/handlers/user';
import { Routes } from '@angular/router';
import { CoreMainMenuRoutingModule } from '@features/mainmenu/mainmenu-routing.module';
import { CoreMainMenuTabRoutingModule } from '@features/mainmenu/mainmenu-tab-routing.module';
import { CoreCourseIndexRoutingModule } from '@features/course/course-routing.module';
import { COURSE_PAGE_NAME } from '@features/course/course.module';
@ -77,7 +76,6 @@ const courseIndexRoutes: Routes = [
CoreMainMenuTabRoutingModule.forChild(mainMenuChildrenRoutes),
CoreCourseIndexRoutingModule.forChild({ children: courseIndexRoutes }),
],
exports: [CoreMainMenuRoutingModule],
providers: [
{
provide: APP_INITIALIZER,

View File

@ -33,7 +33,6 @@ const routes: Routes = [
CoreCommentsComponentsModule,
CoreTagComponentsModule,
],
exports: [RouterModule],
declarations: [
AddonCourseCompletionReportPage,
],

View File

@ -22,7 +22,7 @@ import { AddonMessagesGroupConversationsPage } from '@addons/messages/pages/grou
import { AddonMessagesSearchPage } from '@addons/messages/pages/search/search';
import { AddonMessagesMainMenuHandlerService } from '@addons/messages/services/handlers/mainmenu';
import { Injector, NgModule } from '@angular/core';
import { Route, RouterModule, ROUTES, Routes } from '@angular/router';
import { Route, ROUTES, Routes } from '@angular/router';
import { CoreMainMenuComponentsModule } from '@features/mainmenu/components/components.module';
import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module';
@ -139,7 +139,6 @@ function buildRoutes(injector: Injector): Routes {
AddonMessagesGroupConversationsPage,
AddonMessagesSearchPage,
],
exports: [RouterModule],
providers: [
{
provide: ROUTES,

View File

@ -33,6 +33,5 @@ const routes: Routes = [
declarations: [
AddonMessagesSettingsPage,
],
exports: [RouterModule],
})
export class AddonMessagesSettingsLazyModule {}

View File

@ -33,7 +33,6 @@ const routes: Routes = [
CoreCommentsComponentsModule,
CoreTagComponentsModule,
],
exports: [RouterModule],
declarations: [
AddonNotesListPage,
],

View File

@ -17,7 +17,7 @@ import { CoreSharedModule } from '@/core/shared.module';
import { AddonNotificationsListPage } from '@addons/notifications/pages/list/list';
import { AddonNotificationsNotificationPage } from '@addons/notifications/pages/notification/notification';
import { Injector, NgModule } from '@angular/core';
import { RouterModule, ROUTES, Routes } from '@angular/router';
import { ROUTES, Routes } from '@angular/router';
import { CoreMainMenuComponentsModule } from '@features/mainmenu/components/components.module';
import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module';
@ -69,7 +69,6 @@ function buildRoutes(injector: Injector): Routes {
AddonNotificationsListPage,
AddonNotificationsNotificationPage,
],
exports: [RouterModule],
providers: [
{
provide: ROUTES,

View File

@ -33,6 +33,5 @@ const routes: Routes = [
declarations: [
AddonNotificationsSettingsPage,
],
exports: [RouterModule],
})
export class AddonNotificationsSettingsLazyModule {}

View File

@ -64,7 +64,6 @@ const preferencesRoutes: Routes = [
CoreMainMenuTabRoutingModule.forChild(routes),
CoreSitePreferencesRoutingModule.forChild(preferencesRoutes),
],
exports: [CoreMainMenuRoutingModule],
providers: [
{
provide: APP_INITIALIZER,

View File

@ -15,7 +15,7 @@
import { CoreSharedModule } from '@/core/shared.module';
import { AddonPrivateFilesIndexPage } from '@addons/privatefiles/pages/index';
import { Injector, NgModule } from '@angular/core';
import { RouterModule, ROUTES, Routes } from '@angular/router';
import { ROUTES, Routes } from '@angular/router';
import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module';
@ -49,7 +49,6 @@ function buildRoutes(injector: Injector): Routes {
declarations: [
AddonPrivateFilesIndexPage,
],
exports: [RouterModule],
providers: [
{
provide: ROUTES,

View File

@ -47,7 +47,6 @@ const routes: Routes = [
CoreMainMenuTabRoutingModule.forChild(routes),
CoreMainMenuRoutingModule.forChild({ children: routes }),
],
exports: [CoreMainMenuRoutingModule],
providers: [
{
provide: APP_INITIALIZER,

View File

@ -18,8 +18,6 @@ import { CoreContentLinksDelegate } from '@features/contentlinks/services/conten
import { AddonReportInsightsActionLinkHandler } from './services/handlers/action-link';
@NgModule({
imports: [],
exports: [],
providers: [
{
provide: APP_INITIALIZER,

View File

@ -35,7 +35,6 @@ const routes: Routes = [
RouterModule.forChild(routes),
CoreSharedModule,
],
exports: [RouterModule],
declarations: [
AddonStorageManagerCoursesStoragePage,
AddonStorageManagerCourseStoragePage,

View File

@ -33,7 +33,6 @@ const routes: Routes = [
CoreMainMenuRoutingModule.forChild({ children: routes }),
CoreSitePreferencesRoutingModule.forChild(routes),
],
exports: [CoreMainMenuRoutingModule],
providers: [
{
provide: APP_INITIALIZER,

View File

@ -226,7 +226,6 @@ export const APP_ROUTES = new InjectionToken('APP_ROUTES');
providers: [
{ provide: ROUTES, multi: true, useFactory: buildAppRoutes, deps: [Injector] },
],
exports: [RouterModule],
})
export class AppRoutingModule {

View File

@ -13,7 +13,7 @@
// limitations under the License.
import { Injector, NgModule } from '@angular/core';
import { RouterModule, ROUTES, Routes } from '@angular/router';
import { ROUTES, Routes } from '@angular/router';
import { CoreCourseComponentsModule } from '@features/course/components/components.module';
import { CoreSharedModule } from '@/core/shared.module';
@ -50,6 +50,5 @@ function buildRoutes(injector: Injector): Routes {
declarations: [
CoreCourseContentsPage,
],
exports: [RouterModule],
})
export class CoreCourseContentsLazyModule {}

View File

@ -14,7 +14,7 @@
import { CoreSharedModule } from '@/core/shared.module';
import { Injector, NgModule } from '@angular/core';
import { RouterModule, ROUTES, Routes } from '@angular/router';
import { ROUTES, Routes } from '@angular/router';
import { CoreCourseComponentsModule } from '@features/course/components/components.module';
import { resolveIndexRoutes } from '@features/course/course-routing.module';
import { CoreCourseSummaryPageModule } from '@features/course/pages/course-summary/course-summary.module';
@ -75,7 +75,6 @@ function buildRoutes(injector: Injector): Routes {
CoreCourseComponentsModule,
CoreCourseSummaryPageModule,
],
exports: [RouterModule],
providers: [
{
provide: ROUTES,

View File

@ -34,6 +34,5 @@ const routes: Routes = [
CoreRemindersComponentsModule,
CoreCourseSummaryPageModule,
],
exports: [RouterModule],
})
export class CoreCourseSummaryLazyModule {}

View File

@ -86,7 +86,6 @@ const courseIndexRoutes: Routes = [
CoreMainMenuTabRoutingModule.forChild(routes),
CoreCourseFormatModule,
],
exports: [CoreCourseIndexRoutingModule],
providers: [
{
provide: CORE_SITE_SCHEMAS,

View File

@ -35,6 +35,5 @@ const routes: Routes = [
declarations: [
CoreCoursesDashboardPage,
],
exports: [RouterModule],
})
export class CoreCoursesDashboardLazyModule {}

View File

@ -14,7 +14,7 @@
import { CoreSharedModule } from '@/core/shared.module';
import { Injector, NgModule } from '@angular/core';
import { RouterModule, ROUTES, Routes } from '@angular/router';
import { ROUTES, Routes } from '@angular/router';
import { CoreCoursesComponentsModule } from '@features/courses/components/components.module';
import { CoreCoursesCategoriesPage } from '@features/courses/pages/categories/categories';
import { CoreCoursesListPage } from '@features/courses/pages/list/list';
@ -70,7 +70,6 @@ function buildRoutes(injector: Injector): Routes {
CoreCoursesCategoriesPage,
CoreCoursesListPage,
],
exports: [RouterModule],
providers: [
{
provide: ROUTES,

View File

@ -38,6 +38,5 @@ const routes: Routes = [
declarations: [
CoreCoursesMyPage,
],
exports: [RouterModule],
})
export class CoreCoursesMyLazyModule {}

View File

@ -78,7 +78,6 @@ const routes: Routes = [
CoreMainMenuRoutingModule.forChild({ children: routes }),
CoreMainMenuTabRoutingModule.forChild(routes),
],
exports: [CoreMainMenuRoutingModule],
providers: [
{
provide: APP_INITIALIZER,

View File

@ -35,6 +35,5 @@ const routes: Routes = [
declarations: [
CoreLoginCredentialsPage,
],
exports: [RouterModule],
})
export class CoreLoginCredentialsLazyModule {}

View File

@ -35,6 +35,5 @@ const routes: Routes = [
declarations: [
CoreLoginReconnectPage,
],
exports: [RouterModule],
})
export class CoreLoginReconnectLazyModule {}

View File

@ -13,7 +13,7 @@
// limitations under the License.
import { Injector, NgModule } from '@angular/core';
import { RouterModule, Routes, ROUTES } from '@angular/router';
import { Routes, ROUTES } from '@angular/router';
import { CoreSharedModule } from '@/core/shared.module';
import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module';
@ -52,8 +52,5 @@ function buildRoutes(injector: Injector): Routes {
declarations: [
CoreMainMenuMorePage,
],
exports: [
RouterModule,
],
})
export class CoreMainMenuMoreLazyModule {}

View File

@ -32,6 +32,5 @@ const routes: Routes = [
declarations: [
CoreMainMenuReloadPage,
],
exports: [RouterModule],
})
export class CoreMainMenuReloadLazyModule {}

View File

@ -15,7 +15,6 @@
import { APP_INITIALIZER, NgModule } from '@angular/core';
import { Routes } from '@angular/router';
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
import { CoreMainMenuRoutingModule } from '@features/mainmenu/mainmenu-routing.module';
import { CoreMainMenuTabRoutingModule } from '@features/mainmenu/mainmenu-tab-routing.module';
import { CoreUserDelegate } from '@features/user/services/user-delegate';
import { CoreReportBuilderLinkHandler } from './services/handlers/reportbuilder-link';
@ -32,7 +31,6 @@ const routes: Routes = [
imports: [
CoreMainMenuTabRoutingModule.forChild(routes),
],
exports: [CoreMainMenuRoutingModule],
providers: [
{
provide: APP_INITIALIZER,

View File

@ -14,7 +14,7 @@
import { CoreSharedModule } from '@/core/shared.module';
import { NgModule, Injector } from '@angular/core';
import { RouterModule, Routes, ROUTES } from '@angular/router';
import { Routes, ROUTES } from '@angular/router';
import { CoreSearchGlobalSearchPage } from './pages/global-search/global-search';
import { CoreSearchComponentsModule } from '@features/search/components/components.module';
import { CoreMainMenuComponentsModule } from '@features/mainmenu/components/components.module';
@ -38,7 +38,6 @@ function buildRoutes(injector: Injector): Routes {
CoreSearchComponentsModule,
CoreMainMenuComponentsModule,
],
exports: [RouterModule],
declarations: [
CoreSearchGlobalSearchPage,
],

View File

@ -13,7 +13,7 @@
// limitations under the License.
import { Injector, NgModule } from '@angular/core';
import { RouterModule, ROUTES, Routes } from '@angular/router';
import { ROUTES, Routes } from '@angular/router';
import { CoreSharedModule } from '@/core/shared.module';
import { conditionalRoutes } from '@/app/app-routing.module';
@ -60,6 +60,5 @@ function buildRoutes(injector: Injector): Routes {
imports: [
CoreSharedModule,
],
exports: [RouterModule],
})
export class CoreettingsSiteLazyModule {}

View File

@ -37,6 +37,5 @@ const routes: Routes = [
declarations: [
CoreSiteHomeIndexPage,
],
exports: [RouterModule],
})
export class CoreSiteHomeLazyModule {}

View File

@ -15,7 +15,7 @@
import { conditionalRoutes } from '@/app/app-routing.module';
import { CoreSharedModule } from '@/core/shared.module';
import { Injector, NgModule } from '@angular/core';
import { Route, RouterModule, ROUTES, Routes } from '@angular/router';
import { Route, ROUTES, Routes } from '@angular/router';
import { CoreMainMenuComponentsModule } from '@features/mainmenu/components/components.module';
import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module';
@ -86,7 +86,6 @@ function buildRoutes(injector: Injector): Routes {
CoreTagSearchPage,
CoreTagIndexAreaPage,
],
exports: [RouterModule],
providers: [
{
provide: ROUTES,

View File

@ -53,7 +53,6 @@ const routes: Routes = [
CoreMainMenuRoutingModule.forChild({ children: routes }),
CoreTagComponentsModule,
],
exports: [CoreMainMenuRoutingModule],
providers: [
{
provide: APP_INITIALIZER,

View File

@ -32,6 +32,5 @@ const routes: Routes = [
declarations: [
CoreUserCompleteProfilePage,
],
exports: [RouterModule],
})
export class CoreUserAppLazyModule {}

View File

@ -33,6 +33,5 @@ const routes: Routes = [
declarations: [
CoreUserProfilePage,
],
exports: [RouterModule],
})
export class CoreUserProfileLazyModule {}