Skip to content

Commit a11be65

Browse files
committed
ESlint: fix imports
1 parent fa404ff commit a11be65

File tree

2,234 files changed

+29121
-14674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,234 files changed

+29121
-14674
lines changed

src/app/access-control/access-control-routing-paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { URLCombiner } from '../core/url-combiner/url-combiner';
21
import { getAccessControlModuleRoute } from '../app-routing-paths';
2+
import { URLCombiner } from '../core/url-combiner/url-combiner';
33

44
export const GROUP_EDIT_PATH = 'groups';
55

src/app/access-control/access-control-routing.module.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule } from '@angular/router';
3+
4+
import { I18nBreadcrumbResolver } from '../core/breadcrumbs/i18n-breadcrumb.resolver';
5+
import { GroupAdministratorGuard } from '../core/data/feature-authorization/feature-authorization-guard/group-administrator.guard';
6+
import { SiteAdministratorGuard } from '../core/data/feature-authorization/feature-authorization-guard/site-administrator.guard';
7+
import { GROUP_EDIT_PATH } from './access-control-routing-paths';
8+
import { BulkAccessComponent } from './bulk-access/bulk-access.component';
39
import { EPeopleRegistryComponent } from './epeople-registry/epeople-registry.component';
410
import { GroupFormComponent } from './group-registry/group-form/group-form.component';
5-
import { GroupsRegistryComponent } from './group-registry/groups-registry.component';
6-
import { GROUP_EDIT_PATH } from './access-control-routing-paths';
7-
import { I18nBreadcrumbResolver } from '../core/breadcrumbs/i18n-breadcrumb.resolver';
811
import { GroupPageGuard } from './group-registry/group-page.guard';
9-
import {
10-
GroupAdministratorGuard,
11-
} from '../core/data/feature-authorization/feature-authorization-guard/group-administrator.guard';
12-
import {
13-
SiteAdministratorGuard,
14-
} from '../core/data/feature-authorization/feature-authorization-guard/site-administrator.guard';
15-
import { BulkAccessComponent } from './bulk-access/bulk-access.component';
12+
import { GroupsRegistryComponent } from './group-registry/groups-registry.component';
1613

1714
@NgModule({
1815
imports: [

src/app/access-control/access-control.module.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
import { CommonModule } from '@angular/common';
22
import { NgModule } from '@angular/core';
3+
import { AbstractControl } from '@angular/forms';
34
import { RouterModule } from '@angular/router';
5+
import { NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap';
6+
import {
7+
DYNAMIC_ERROR_MESSAGES_MATCHER,
8+
DynamicErrorMessagesMatcher,
9+
} from '@ng-dynamic-forms/core';
10+
11+
import { AccessControlFormModule } from '../shared/access-control-form-container/access-control-form.module';
12+
import { FormModule } from '../shared/form/form.module';
13+
import { SearchModule } from '../shared/search/search.module';
414
import { SharedModule } from '../shared/shared.module';
515
import { AccessControlRoutingModule } from './access-control-routing.module';
16+
import { BulkAccessBrowseComponent } from './bulk-access/browse/bulk-access-browse.component';
17+
import { BulkAccessComponent } from './bulk-access/bulk-access.component';
18+
import { BulkAccessSettingsComponent } from './bulk-access/settings/bulk-access-settings.component';
619
import { EPeopleRegistryComponent } from './epeople-registry/epeople-registry.component';
720
import { EPersonFormComponent } from './epeople-registry/eperson-form/eperson-form.component';
821
import { GroupFormComponent } from './group-registry/group-form/group-form.component';
922
import { MembersListComponent } from './group-registry/group-form/members-list/members-list.component';
1023
import { SubgroupsListComponent } from './group-registry/group-form/subgroup-list/subgroups-list.component';
1124
import { GroupsRegistryComponent } from './group-registry/groups-registry.component';
12-
import { FormModule } from '../shared/form/form.module';
13-
import { DYNAMIC_ERROR_MESSAGES_MATCHER, DynamicErrorMessagesMatcher } from '@ng-dynamic-forms/core';
14-
import { AbstractControl } from '@angular/forms';
15-
import { BulkAccessComponent } from './bulk-access/bulk-access.component';
16-
import { NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap';
17-
import { BulkAccessBrowseComponent } from './bulk-access/browse/bulk-access-browse.component';
18-
import { BulkAccessSettingsComponent } from './bulk-access/settings/bulk-access-settings.component';
19-
import { SearchModule } from '../shared/search/search.module';
20-
import { AccessControlFormModule } from '../shared/access-control-form-container/access-control-form.module';
2125

2226
/**
2327
* Condition for displaying error messages on email form field

src/app/access-control/bulk-access/browse/bulk-access-browse.component.spec.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
21
import { NO_ERRORS_SCHEMA } from '@angular/core';
3-
4-
import { of } from 'rxjs';
5-
import { NgbAccordionModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
2+
import {
3+
ComponentFixture,
4+
TestBed,
5+
waitForAsync,
6+
} from '@angular/core/testing';
7+
import {
8+
NgbAccordionModule,
9+
NgbNavModule,
10+
} from '@ng-bootstrap/ng-bootstrap';
611
import { TranslateModule } from '@ngx-translate/core';
12+
import { of } from 'rxjs';
713

8-
import { BulkAccessBrowseComponent } from './bulk-access-browse.component';
14+
import { buildPaginatedList } from '../../../core/data/paginated-list.model';
15+
import { PageInfo } from '../../../core/shared/page-info.model';
916
import { SelectableListService } from '../../../shared/object-list/selectable-list/selectable-list.service';
1017
import { SelectableObject } from '../../../shared/object-list/selectable-list/selectable-list.service.spec';
11-
import { PageInfo } from '../../../core/shared/page-info.model';
12-
import { buildPaginatedList } from '../../../core/data/paginated-list.model';
1318
import { createSuccessfulRemoteDataObject } from '../../../shared/remote-data.utils';
19+
import { BulkAccessBrowseComponent } from './bulk-access-browse.component';
1420

1521
describe('BulkAccessBrowseComponent', () => {
1622
let component: BulkAccessBrowseComponent;

src/app/access-control/bulk-access/browse/bulk-access-browse.component.ts

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
1-
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
2-
3-
import { BehaviorSubject, Subscription } from 'rxjs';
4-
import { distinctUntilChanged, map } from 'rxjs/operators';
5-
6-
import { SEARCH_CONFIG_SERVICE } from '../../../my-dspace-page/my-dspace-page.component';
7-
import { SearchConfigurationService } from '../../../core/shared/search/search-configuration.service';
8-
import { SelectableListService } from '../../../shared/object-list/selectable-list/selectable-list.service';
9-
import { SelectableListState } from '../../../shared/object-list/selectable-list/selectable-list.reducer';
1+
import {
2+
Component,
3+
Input,
4+
OnDestroy,
5+
OnInit,
6+
} from '@angular/core';
7+
import {
8+
BehaviorSubject,
9+
Subscription,
10+
} from 'rxjs';
11+
import {
12+
distinctUntilChanged,
13+
map,
14+
} from 'rxjs/operators';
15+
16+
import {
17+
buildPaginatedList,
18+
PaginatedList,
19+
} from '../../../core/data/paginated-list.model';
1020
import { RemoteData } from '../../../core/data/remote-data';
11-
import { buildPaginatedList, PaginatedList } from '../../../core/data/paginated-list.model';
12-
import { ListableObject } from '../../../shared/object-collection/shared/listable-object.model';
13-
import { createSuccessfulRemoteDataObject } from '../../../shared/remote-data.utils';
1421
import { PageInfo } from '../../../core/shared/page-info.model';
15-
import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model';
22+
import { SearchConfigurationService } from '../../../core/shared/search/search-configuration.service';
23+
import { SEARCH_CONFIG_SERVICE } from '../../../my-dspace-page/my-dspace-page.component';
1624
import { hasValue } from '../../../shared/empty.util';
25+
import { ListableObject } from '../../../shared/object-collection/shared/listable-object.model';
26+
import { SelectableListState } from '../../../shared/object-list/selectable-list/selectable-list.reducer';
27+
import { SelectableListService } from '../../../shared/object-list/selectable-list/selectable-list.service';
28+
import { PaginationComponentOptions } from '../../../shared/pagination/pagination-component-options.model';
29+
import { createSuccessfulRemoteDataObject } from '../../../shared/remote-data.utils';
1730

1831
@Component({
1932
selector: 'ds-bulk-access-browse',

src/app/access-control/bulk-access/bulk-access.component.spec.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
import { ComponentFixture, TestBed } from '@angular/core/testing';
21
import { NO_ERRORS_SCHEMA } from '@angular/core';
3-
2+
import {
3+
ComponentFixture,
4+
TestBed,
5+
} from '@angular/core/testing';
6+
import { RouterTestingModule } from '@angular/router/testing';
47
import { TranslateModule } from '@ngx-translate/core';
58
import { of } from 'rxjs';
69

7-
import { BulkAccessComponent } from './bulk-access.component';
10+
import { Process } from '../../process-page/processes/process.model';
811
import { BulkAccessControlService } from '../../shared/access-control-form-container/bulk-access-control.service';
9-
import { SelectableListService } from '../../shared/object-list/selectable-list/selectable-list.service';
12+
import { NotificationsService } from '../../shared/notifications/notifications.service';
1013
import { SelectableListState } from '../../shared/object-list/selectable-list/selectable-list.reducer';
14+
import { SelectableListService } from '../../shared/object-list/selectable-list/selectable-list.service';
1115
import { createSuccessfulRemoteDataObject$ } from '../../shared/remote-data.utils';
12-
import { Process } from '../../process-page/processes/process.model';
13-
import { RouterTestingModule } from '@angular/router/testing';
14-
import { NotificationsService } from '../../shared/notifications/notifications.service';
1516
import { NotificationsServiceStub } from '../../shared/testing/notifications-service.stub';
17+
import { BulkAccessComponent } from './bulk-access.component';
1618

1719
describe('BulkAccessComponent', () => {
1820
let component: BulkAccessComponent;

src/app/access-control/bulk-access/bulk-access.component.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
import { Component, OnInit, ViewChild } from '@angular/core';
1+
import {
2+
Component,
3+
OnInit,
4+
ViewChild,
5+
} from '@angular/core';
6+
import {
7+
BehaviorSubject,
8+
Subscription,
9+
} from 'rxjs';
10+
import {
11+
distinctUntilChanged,
12+
map,
13+
} from 'rxjs/operators';
214

3-
import { BehaviorSubject, Subscription } from 'rxjs';
4-
import { distinctUntilChanged, map } from 'rxjs/operators';
5-
6-
import { BulkAccessSettingsComponent } from './settings/bulk-access-settings.component';
715
import { BulkAccessControlService } from '../../shared/access-control-form-container/bulk-access-control.service';
816
import { SelectableListState } from '../../shared/object-list/selectable-list/selectable-list.reducer';
917
import { SelectableListService } from '../../shared/object-list/selectable-list/selectable-list.service';
18+
import { BulkAccessSettingsComponent } from './settings/bulk-access-settings.component';
1019

1120
@Component({
1221
selector: 'ds-bulk-access',

src/app/access-control/bulk-access/settings/bulk-access-settings.component.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
import { ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { NO_ERRORS_SCHEMA } from '@angular/core';
2+
import {
3+
ComponentFixture,
4+
TestBed,
5+
} from '@angular/core/testing';
26
import { NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap';
37
import { TranslateModule } from '@ngx-translate/core';
8+
49
import { BulkAccessSettingsComponent } from './bulk-access-settings.component';
5-
import { NO_ERRORS_SCHEMA } from '@angular/core';
610

711
describe('BulkAccessSettingsComponent', () => {
812
let component: BulkAccessSettingsComponent;

src/app/access-control/bulk-access/settings/bulk-access-settings.component.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import { Component, ViewChild } from '@angular/core';
21
import {
3-
AccessControlFormContainerComponent,
4-
} from '../../../shared/access-control-form-container/access-control-form-container.component';
2+
Component,
3+
ViewChild,
4+
} from '@angular/core';
5+
6+
import { AccessControlFormContainerComponent } from '../../../shared/access-control-form-container/access-control-form-container.component';
57

68
@Component({
79
selector: 'ds-bulk-access-settings',

src/app/access-control/epeople-registry/epeople-registry.actions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable max-classes-per-file */
22
import { Action } from '@ngrx/store';
3+
34
import { EPerson } from '../../core/eperson/models/eperson.model';
45
import { type } from '../../shared/ngrx/type';
56

0 commit comments

Comments
 (0)