mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 19:13:08 +00:00
96252: Remove unneeded imports from SharedModule
These are no longer required in SharedModule, so we can remove them from main.js
This commit is contained in:
@@ -6,6 +6,7 @@ import { CommunityListPageRoutingModule } from './community-list-page.routing.mo
|
||||
import { CommunityListComponent } from './community-list/community-list.component';
|
||||
import { ThemedCommunityListPageComponent } from './themed-community-list-page.component';
|
||||
import { ThemedCommunityListComponent } from './community-list/themed-community-list.component';
|
||||
import { CdkTreeModule } from '@angular/cdk/tree';
|
||||
|
||||
|
||||
const DECLARATIONS = [
|
||||
@@ -21,13 +22,15 @@ const DECLARATIONS = [
|
||||
imports: [
|
||||
CommonModule,
|
||||
SharedModule,
|
||||
CommunityListPageRoutingModule
|
||||
CommunityListPageRoutingModule,
|
||||
CdkTreeModule,
|
||||
],
|
||||
declarations: [
|
||||
...DECLARATIONS
|
||||
],
|
||||
exports: [
|
||||
...DECLARATIONS,
|
||||
CdkTreeModule,
|
||||
],
|
||||
})
|
||||
export class CommunityListPageModule {
|
||||
|
@@ -37,6 +37,8 @@ import { FormBuilderService } from './builder/form-builder.service';
|
||||
import { DsDynamicTypeBindRelationService } from './builder/ds-dynamic-form-ui/ds-dynamic-type-bind-relation.service';
|
||||
import { FormService } from './form.service';
|
||||
import { NgxMaskModule } from 'ngx-mask';
|
||||
import { NgbDatepickerModule, NgbTimepickerModule } from '@ng-bootstrap/ng-bootstrap';
|
||||
import { CdkTreeModule } from '@angular/cdk/tree';
|
||||
|
||||
const COMPONENTS = [
|
||||
CustomSwitchComponent,
|
||||
@@ -84,6 +86,9 @@ const DIRECTIVES = [
|
||||
TranslateModule,
|
||||
SortablejsModule,
|
||||
NgxMaskModule.forRoot(),
|
||||
NgbDatepickerModule,
|
||||
NgbTimepickerModule,
|
||||
CdkTreeModule,
|
||||
],
|
||||
exports: [
|
||||
...COMPONENTS,
|
||||
|
@@ -31,6 +31,7 @@ import { SearchComponent } from './search.component';
|
||||
import { ThemedSearchComponent } from './themed-search.component';
|
||||
import { ThemedSearchResultsComponent } from './search-results/themed-search-results.component';
|
||||
import { ThemedSearchSettingsComponent } from './search-settings/themed-search-settings.component';
|
||||
import { NouisliderModule } from 'ng2-nouislider';
|
||||
|
||||
const COMPONENTS = [
|
||||
SearchComponent,
|
||||
@@ -91,7 +92,8 @@ export const MODELS = [
|
||||
missingTranslationHandler: { provide: MissingTranslationHandler, useClass: MissingTranslationHelper },
|
||||
useDefaultLang: true
|
||||
}),
|
||||
SharedModule.withEntryComponents()
|
||||
SharedModule.withEntryComponents(),
|
||||
NouisliderModule,
|
||||
],
|
||||
exports: [
|
||||
...COMPONENTS
|
||||
|
@@ -2,21 +2,15 @@ import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { CdkTreeModule } from '@angular/cdk/tree';
|
||||
import { DragDropModule } from '@angular/cdk/drag-drop';
|
||||
|
||||
import { NouisliderModule } from 'ng2-nouislider';
|
||||
import {
|
||||
NgbDatepickerModule,
|
||||
NgbDropdownModule,
|
||||
NgbNavModule,
|
||||
NgbPaginationModule,
|
||||
NgbTimepickerModule,
|
||||
NgbTooltipModule,
|
||||
NgbTypeaheadModule,
|
||||
} from '@ng-bootstrap/ng-bootstrap';
|
||||
import { MissingTranslationHandler, TranslateModule } from '@ngx-translate/core';
|
||||
import { NgxPaginationModule } from 'ngx-pagination';
|
||||
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
||||
import { MomentModule } from 'ngx-moment';
|
||||
import { ConfirmationModalComponent } from './confirmation-modal/confirmation-modal.component';
|
||||
@@ -256,19 +250,14 @@ const MODULES = [
|
||||
FormsModule,
|
||||
InfiniteScrollModule,
|
||||
NgbNavModule,
|
||||
NgbDatepickerModule,
|
||||
NgbTimepickerModule,
|
||||
NgbTypeaheadModule,
|
||||
NgxPaginationModule,
|
||||
NgbPaginationModule,
|
||||
NgbDropdownModule,
|
||||
NgbTooltipModule,
|
||||
ReactiveFormsModule,
|
||||
RouterModule,
|
||||
NouisliderModule,
|
||||
MomentModule,
|
||||
DragDropModule,
|
||||
CdkTreeModule,
|
||||
GoogleRecaptchaModule,
|
||||
MenuModule,
|
||||
];
|
||||
|
@@ -7,7 +7,6 @@ import { NavbarComponent } from './app/navbar/navbar.component';
|
||||
import { SearchNavbarComponent } from './app/search-navbar/search-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 { PublicationComponent } from './app/item-page/simple/item-types/publication/publication.component';
|
||||
@@ -80,8 +79,6 @@ const DECLARATIONS = [
|
||||
imports: [
|
||||
CommonModule,
|
||||
SharedModule,
|
||||
SearchModule,
|
||||
FormsModule,
|
||||
RootModule,
|
||||
NavbarModule,
|
||||
ItemPageModule,
|
||||
|
@@ -29,8 +29,6 @@ const DECLARATIONS = [
|
||||
imports: [
|
||||
CommonModule,
|
||||
SharedModule,
|
||||
SearchModule,
|
||||
FormsModule,
|
||||
RootModule,
|
||||
NavbarModule,
|
||||
],
|
||||
|
Reference in New Issue
Block a user