Skip to content

Commit

Permalink
src/themes: changes to eager-theme.module.ts
Browse files Browse the repository at this point in the history
Remove SearchModule and FormsModule from eager-theme.module.ts in
all our themes. This chases changes to the upstream dspace theme
from DSpace 7.5.
  • Loading branch information
alanorth committed Aug 27, 2024
1 parent 55a98b8 commit a7f2d4a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 40 deletions.
9 changes: 2 additions & 7 deletions src/themes/alliance/eager-theme.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { SharedModule } from '../../app/shared/shared.module';
import { SearchModule } from '../../app/shared/search/search.module';
import { RootModule } from '../../app/root.module';
import { NavbarModule } from '../../app/navbar/navbar.module';
import { ItemPageModule } from '../../app/item-page/item-page.module';
Expand All @@ -14,8 +12,7 @@ import { DsoPageModule } from '../../app/shared/dso-page/dso-page.module';
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
* This will ensure that decorator gets picked up when the app loads
*/
const ENTRY_COMPONENTS = [
];
const ENTRY_COMPONENTS = [];

const DECLARATIONS = [
...ENTRY_COMPONENTS,
Expand All @@ -25,8 +22,6 @@ const DECLARATIONS = [
imports: [
CommonModule,
SharedModule,
SearchModule,
FormsModule,
RootModule,
NavbarModule,
ResultsBackButtonModule,
Expand All @@ -36,7 +31,7 @@ const DECLARATIONS = [
],
declarations: DECLARATIONS,
providers: [
...ENTRY_COMPONENTS.map((component) => ({ provide: component }))
...ENTRY_COMPONENTS.map((component) => ({provide: component}))
],
})
/**
Expand Down
6 changes: 1 addition & 5 deletions src/themes/cgspace/eager-theme.module.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { SharedModule } from '../../app/shared/shared.module';
import { HomeNewsComponent } from './app/home-page/home-news/home-news.component';
import { NavbarComponent } from './app/navbar/navbar.component';
import { HeaderComponent } from './app/header/header.component';
import { HeaderNavbarWrapperComponent } from './app/header-nav-wrapper/header-navbar-wrapper.component';
import { SearchModule } from '../../app/shared/search/search.module';
import { RootModule } from '../../app/root.module';
import { NavbarModule } from '../../app/navbar/navbar.module';
import { ItemPageModule } from '../../app/item-page/item-page.module';
Expand Down Expand Up @@ -37,8 +35,6 @@ const DECLARATIONS = [
imports: [
CommonModule,
SharedModule,
SearchModule,
FormsModule,
RootModule,
NavbarModule,
ResultsBackButtonModule,
Expand All @@ -48,7 +44,7 @@ const DECLARATIONS = [
],
declarations: DECLARATIONS,
providers: [
...ENTRY_COMPONENTS.map((component) => ({ provide: component }))
...ENTRY_COMPONENTS.map((component) => ({provide: component}))
],
})
/**
Expand Down
9 changes: 2 additions & 7 deletions src/themes/cip/eager-theme.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { SharedModule } from '../../app/shared/shared.module';
import { SearchModule } from '../../app/shared/search/search.module';
import { RootModule } from '../../app/root.module';
import { NavbarModule } from '../../app/navbar/navbar.module';
import { ItemPageModule } from '../../app/item-page/item-page.module';
Expand All @@ -14,8 +12,7 @@ import { DsoPageModule } from '../../app/shared/dso-page/dso-page.module';
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
* This will ensure that decorator gets picked up when the app loads
*/
const ENTRY_COMPONENTS = [
];
const ENTRY_COMPONENTS = [];

const DECLARATIONS = [
...ENTRY_COMPONENTS,
Expand All @@ -25,8 +22,6 @@ const DECLARATIONS = [
imports: [
CommonModule,
SharedModule,
SearchModule,
FormsModule,
RootModule,
NavbarModule,
ResultsBackButtonModule,
Expand All @@ -36,7 +31,7 @@ const DECLARATIONS = [
],
declarations: DECLARATIONS,
providers: [
...ENTRY_COMPONENTS.map((component) => ({ provide: component }))
...ENTRY_COMPONENTS.map((component) => ({provide: component}))
],
})
/**
Expand Down
9 changes: 2 additions & 7 deletions src/themes/iita/eager-theme.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { SharedModule } from '../../app/shared/shared.module';
import { SearchModule } from '../../app/shared/search/search.module';
import { RootModule } from '../../app/root.module';
import { NavbarModule } from '../../app/navbar/navbar.module';
import { ItemPageModule } from '../../app/item-page/item-page.module';
Expand All @@ -14,8 +12,7 @@ import { DsoPageModule } from '../../app/shared/dso-page/dso-page.module';
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
* This will ensure that decorator gets picked up when the app loads
*/
const ENTRY_COMPONENTS = [
];
const ENTRY_COMPONENTS = [];

const DECLARATIONS = [
...ENTRY_COMPONENTS,
Expand All @@ -25,8 +22,6 @@ const DECLARATIONS = [
imports: [
CommonModule,
SharedModule,
SearchModule,
FormsModule,
RootModule,
NavbarModule,
ResultsBackButtonModule,
Expand All @@ -36,7 +31,7 @@ const DECLARATIONS = [
],
declarations: DECLARATIONS,
providers: [
...ENTRY_COMPONENTS.map((component) => ({ provide: component }))
...ENTRY_COMPONENTS.map((component) => ({provide: component}))
],
})
/**
Expand Down
9 changes: 2 additions & 7 deletions src/themes/ilri/eager-theme.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { SharedModule } from '../../app/shared/shared.module';
import { SearchModule } from '../../app/shared/search/search.module';
import { RootModule } from '../../app/root.module';
import { NavbarModule } from '../../app/navbar/navbar.module';
import { ItemPageModule } from '../../app/item-page/item-page.module';
Expand All @@ -14,8 +12,7 @@ import { DsoPageModule } from '../../app/shared/dso-page/dso-page.module';
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
* This will ensure that decorator gets picked up when the app loads
*/
const ENTRY_COMPONENTS = [
];
const ENTRY_COMPONENTS = [];

const DECLARATIONS = [
...ENTRY_COMPONENTS,
Expand All @@ -25,8 +22,6 @@ const DECLARATIONS = [
imports: [
CommonModule,
SharedModule,
SearchModule,
FormsModule,
RootModule,
NavbarModule,
ResultsBackButtonModule,
Expand All @@ -36,7 +31,7 @@ const DECLARATIONS = [
],
declarations: DECLARATIONS,
providers: [
...ENTRY_COMPONENTS.map((component) => ({ provide: component }))
...ENTRY_COMPONENTS.map((component) => ({provide: component}))
],
})
/**
Expand Down
9 changes: 2 additions & 7 deletions src/themes/iwmi/eager-theme.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { SharedModule } from '../../app/shared/shared.module';
import { SearchModule } from '../../app/shared/search/search.module';
import { RootModule } from '../../app/root.module';
import { NavbarModule } from '../../app/navbar/navbar.module';
import { ItemPageModule } from '../../app/item-page/item-page.module';
Expand All @@ -14,8 +12,7 @@ import { DsoPageModule } from '../../app/shared/dso-page/dso-page.module';
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
* This will ensure that decorator gets picked up when the app loads
*/
const ENTRY_COMPONENTS = [
];
const ENTRY_COMPONENTS = [];

const DECLARATIONS = [
...ENTRY_COMPONENTS,
Expand All @@ -25,8 +22,6 @@ const DECLARATIONS = [
imports: [
CommonModule,
SharedModule,
SearchModule,
FormsModule,
RootModule,
NavbarModule,
ResultsBackButtonModule,
Expand All @@ -36,7 +31,7 @@ const DECLARATIONS = [
],
declarations: DECLARATIONS,
providers: [
...ENTRY_COMPONENTS.map((component) => ({ provide: component }))
...ENTRY_COMPONENTS.map((component) => ({provide: component}))
],
})
/**
Expand Down

0 comments on commit a7f2d4a

Please sign in to comment.