mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
ESLint: fix indentation
This commit is contained in:
@@ -248,7 +248,7 @@ import { ThemedPageErrorComponent } from './page-error/themed-page-error.compone
|
|||||||
initialNavigation: 'enabledBlocking',
|
initialNavigation: 'enabledBlocking',
|
||||||
preloadingStrategy: NoPreloading,
|
preloadingStrategy: NoPreloading,
|
||||||
onSameUrlNavigation: 'reload',
|
onSameUrlNavigation: 'reload',
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
exports: [RouterModule],
|
exports: [RouterModule],
|
||||||
})
|
})
|
||||||
|
@@ -11,7 +11,7 @@ import { getFirstCompletedRemoteData } from '../core/shared/operators';
|
|||||||
* The self links defined in this list are expected to be requested somewhere in the near future
|
* The self links defined in this list are expected to be requested somewhere in the near future
|
||||||
* Requesting them as embeds will limit the number of requests
|
* Requesting them as embeds will limit the number of requests
|
||||||
*/
|
*/
|
||||||
export const BITSTREAM_PAGE_LINKS_TO_FOLLOW: FollowLinkConfig<Bitstream>[] = [
|
export const BITSTREAM_PAGE_LINKS_TO_FOLLOW: FollowLinkConfig<Bitstream>[] = [
|
||||||
followLink('bundle', {}, followLink('primaryBitstream'), followLink('item')),
|
followLink('bundle', {}, followLink('primaryBitstream'), followLink('item')),
|
||||||
followLink('format')
|
followLink('format')
|
||||||
];
|
];
|
||||||
|
@@ -64,7 +64,7 @@ import { CollectionAccessControlComponent } from './collection-access-control/co
|
|||||||
component: CollectionAccessControlComponent,
|
component: CollectionAccessControlComponent,
|
||||||
data: { title: 'collection.edit.tabs.access-control.title', showBreadcrumbs: true }
|
data: { title: 'collection.edit.tabs.access-control.title', showBreadcrumbs: true }
|
||||||
},
|
},
|
||||||
/* {
|
/* {
|
||||||
path: 'authorizations',
|
path: 'authorizations',
|
||||||
component: CollectionAuthorizationsComponent,
|
component: CollectionAuthorizationsComponent,
|
||||||
data: { title: 'collection.edit.tabs.authorizations.title', showBreadcrumbs: true }
|
data: { title: 'collection.edit.tabs.authorizations.title', showBreadcrumbs: true }
|
||||||
|
@@ -65,7 +65,7 @@ export const link = <T extends HALResource>(
|
|||||||
resourceType: ResourceType,
|
resourceType: ResourceType,
|
||||||
isList = false,
|
isList = false,
|
||||||
linkName?: keyof T['_links'],
|
linkName?: keyof T['_links'],
|
||||||
) => {
|
) => {
|
||||||
return (target: T, propertyName: string) => {
|
return (target: T, propertyName: string) => {
|
||||||
let targetMap = linkMap.get(target.constructor);
|
let targetMap = linkMap.get(target.constructor);
|
||||||
|
|
||||||
|
@@ -80,7 +80,7 @@ export class LocaleService {
|
|||||||
mergeMap(([isAuthenticated, isLoaded]) => {
|
mergeMap(([isAuthenticated, isLoaded]) => {
|
||||||
// TODO to enabled again when https://github.com/DSpace/dspace-angular/issues/739 will be resolved
|
// TODO to enabled again when https://github.com/DSpace/dspace-angular/issues/739 will be resolved
|
||||||
const epersonLang$: Observable<string[]> = observableOf([]);
|
const epersonLang$: Observable<string[]> = observableOf([]);
|
||||||
/* if (isAuthenticated && isLoaded) {
|
/* if (isAuthenticated && isLoaded) {
|
||||||
epersonLang$ = this.authService.getAuthenticatedUserFromStore().pipe(
|
epersonLang$ = this.authService.getAuthenticatedUserFromStore().pipe(
|
||||||
take(1),
|
take(1),
|
||||||
map((eperson) => {
|
map((eperson) => {
|
||||||
|
@@ -17,7 +17,7 @@ export class HALEndpointService {
|
|||||||
constructor(
|
constructor(
|
||||||
private requestService: RequestService,
|
private requestService: RequestService,
|
||||||
private rdbService: RemoteDataBuildService
|
private rdbService: RemoteDataBuildService
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public getRootHref(): string {
|
public getRootHref(): string {
|
||||||
|
@@ -21,7 +21,7 @@ const imports = [
|
|||||||
])
|
])
|
||||||
];
|
];
|
||||||
|
|
||||||
if (environment.info.enableEndUserAgreement) {
|
if (environment.info.enableEndUserAgreement) {
|
||||||
imports.push(
|
imports.push(
|
||||||
RouterModule.forChild([
|
RouterModule.forChild([
|
||||||
{
|
{
|
||||||
@@ -31,8 +31,8 @@ const imports = [
|
|||||||
data: { title: 'info.end-user-agreement.title', breadcrumbKey: 'info.end-user-agreement' }
|
data: { title: 'info.end-user-agreement.title', breadcrumbKey: 'info.end-user-agreement' }
|
||||||
}
|
}
|
||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
if (environment.info.enablePrivacyStatement) {
|
if (environment.info.enablePrivacyStatement) {
|
||||||
imports.push(
|
imports.push(
|
||||||
RouterModule.forChild([
|
RouterModule.forChild([
|
||||||
{
|
{
|
||||||
@@ -42,7 +42,7 @@ const imports = [
|
|||||||
data: { title: 'info.privacy.title', breadcrumbKey: 'info.privacy' }
|
data: { title: 'info.privacy.title', breadcrumbKey: 'info.privacy' }
|
||||||
}
|
}
|
||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
@@ -24,12 +24,12 @@ describe('AccessControlFormContainerComponent', () => {
|
|||||||
let fixture: ComponentFixture<AccessControlFormContainerComponent<any>>;
|
let fixture: ComponentFixture<AccessControlFormContainerComponent<any>>;
|
||||||
|
|
||||||
|
|
||||||
// Mock NgbModal
|
// Mock NgbModal
|
||||||
@Component({selector: 'ds-ngb-modal', template: ''})
|
@Component({selector: 'ds-ngb-modal', template: ''})
|
||||||
class MockNgbModalComponent {
|
class MockNgbModalComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mock dependencies
|
// Mock dependencies
|
||||||
const mockBulkAccessControlService = {
|
const mockBulkAccessControlService = {
|
||||||
createPayloadFile: jasmine.createSpy('createPayloadFile').and.returnValue({file: 'mocked-file'}),
|
createPayloadFile: jasmine.createSpy('createPayloadFile').and.returnValue({file: 'mocked-file'}),
|
||||||
executeScript: jasmine.createSpy('executeScript').and.returnValue(of('success')),
|
executeScript: jasmine.createSpy('executeScript').and.returnValue(of('success')),
|
||||||
|
@@ -9,7 +9,7 @@ import { AccessControlRoutingModule } from '../../access-control/access-control-
|
|||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
BrowseByComponent,
|
BrowseByComponent,
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
ResultsBackButtonModule,
|
ResultsBackButtonModule,
|
||||||
BrowseByRoutingModule,
|
BrowseByRoutingModule,
|
||||||
|
@@ -14,10 +14,10 @@ import { ComcolPageHandleComponent } from './comcol-page-handle.component';
|
|||||||
|
|
||||||
export class ThemedComcolPageHandleComponent extends ThemedComponent<ComcolPageHandleComponent> {
|
export class ThemedComcolPageHandleComponent extends ThemedComponent<ComcolPageHandleComponent> {
|
||||||
|
|
||||||
// Optional title
|
// Optional title
|
||||||
@Input() title: string;
|
@Input() title: string;
|
||||||
|
|
||||||
// The value of "handle"
|
// The value of "handle"
|
||||||
@Input() content: string;
|
@Input() content: string;
|
||||||
|
|
||||||
inAndOutputNames: (keyof ComcolPageHandleComponent & keyof this)[] = ['title', 'content'];
|
inAndOutputNames: (keyof ComcolPageHandleComponent & keyof this)[] = ['title', 'content'];
|
||||||
|
@@ -50,7 +50,7 @@ const listElementMock: ItemType = Object.assign(
|
|||||||
id: 'ce64f48e-2c9b-411a-ac36-ee429c0e6a88',
|
id: 'ce64f48e-2c9b-411a-ac36-ee429c0e6a88',
|
||||||
label: 'Entity_1',
|
label: 'Entity_1',
|
||||||
uuid: 'UUID-ce64f48e-2c9b-411a-ac36-ee429c0e6a88'
|
uuid: 'UUID-ce64f48e-2c9b-411a-ac36-ee429c0e6a88'
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
describe('EntityDropdownComponent', () => {
|
describe('EntityDropdownComponent', () => {
|
||||||
|
@@ -41,7 +41,7 @@ export class DynamicRelationGroupModel extends DsDynamicInputModel {
|
|||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get value() {
|
/* get value() {
|
||||||
return (isEmpty(this.value)) ? null : this.value
|
return (isEmpty(this.value)) ? null : this.value
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* eslint-disable max-classes-per-file */
|
/* eslint-disable max-classes-per-file */
|
||||||
import {
|
import {
|
||||||
DEFAULT_ENTITY_TYPE,
|
DEFAULT_ENTITY_TYPE,
|
||||||
DEFAULT_REPRESENTATION_TYPE,
|
DEFAULT_REPRESENTATION_TYPE,
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* eslint-disable max-classes-per-file */
|
/* eslint-disable max-classes-per-file */
|
||||||
import { getComponentByWorkflowTaskOption, rendersWorkflowTaskOption } from './claimed-task-actions-decorator';
|
import { getComponentByWorkflowTaskOption, rendersWorkflowTaskOption } from './claimed-task-actions-decorator';
|
||||||
|
|
||||||
describe('ClaimedTaskActions decorator function', () => {
|
describe('ClaimedTaskActions decorator function', () => {
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* eslint-disable max-classes-per-file */
|
/* eslint-disable max-classes-per-file */
|
||||||
import { ViewMode } from '../../../../core/shared/view-mode.model';
|
import { ViewMode } from '../../../../core/shared/view-mode.model';
|
||||||
import { DEFAULT_VIEW_MODE, getListableObjectComponent, listableObjectComponent } from './listable-object.decorator';
|
import { DEFAULT_VIEW_MODE, getListableObjectComponent, listableObjectComponent } from './listable-object.decorator';
|
||||||
import { Context } from '../../../../core/shared/context.model';
|
import { Context } from '../../../../core/shared/context.model';
|
||||||
|
@@ -10,7 +10,7 @@ import { CacheableObject } from '../../../core/cache/cacheable-object.model';
|
|||||||
* The configuration for a search filter
|
* The configuration for a search filter
|
||||||
*/
|
*/
|
||||||
@typedObject
|
@typedObject
|
||||||
export class SearchFilterConfig implements CacheableObject {
|
export class SearchFilterConfig implements CacheableObject {
|
||||||
static type = SEARCH_FILTER_CONFIG;
|
static type = SEARCH_FILTER_CONFIG;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -77,4 +77,4 @@ import { CacheableObject } from '../../../core/cache/cacheable-object.model';
|
|||||||
get paramName(): string {
|
get paramName(): string {
|
||||||
return 'f.' + this.name;
|
return 'f.' + this.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -67,7 +67,7 @@ import { DynamicDateControlValue } from '@ng-dynamic-forms/core/lib/model/dynami
|
|||||||
templateUrl: './section-upload-file-edit.component.html',
|
templateUrl: './section-upload-file-edit.component.html',
|
||||||
})
|
})
|
||||||
export class SubmissionSectionUploadFileEditComponent
|
export class SubmissionSectionUploadFileEditComponent
|
||||||
implements OnInit, OnDestroy {
|
implements OnInit, OnDestroy {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The FormComponent reference
|
* The FormComponent reference
|
||||||
|
@@ -171,7 +171,7 @@ export class SubmissionSectionUploadComponent extends SectionModelComponent {
|
|||||||
filter((rd: RemoteData<Collection>) => isNotUndefined((rd.payload))),
|
filter((rd: RemoteData<Collection>) => isNotUndefined((rd.payload))),
|
||||||
tap((collectionRemoteData: RemoteData<Collection>) => this.collectionName = this.dsoNameService.getName(collectionRemoteData.payload)),
|
tap((collectionRemoteData: RemoteData<Collection>) => this.collectionName = this.dsoNameService.getName(collectionRemoteData.payload)),
|
||||||
// TODO review this part when https://github.com/DSpace/dspace-angular/issues/575 is resolved
|
// TODO review this part when https://github.com/DSpace/dspace-angular/issues/575 is resolved
|
||||||
/* mergeMap((collectionRemoteData: RemoteData<Collection>) => {
|
/* mergeMap((collectionRemoteData: RemoteData<Collection>) => {
|
||||||
return this.resourcePolicyService.findByHref(
|
return this.resourcePolicyService.findByHref(
|
||||||
(collectionRemoteData.payload as any)._links.defaultAccessConditions.href
|
(collectionRemoteData.payload as any)._links.defaultAccessConditions.href
|
||||||
);
|
);
|
||||||
|
@@ -108,7 +108,7 @@ describe('WorkflowItemActionPageComponent', () => {
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-workflow-item-test-action-page',
|
selector: 'ds-workflow-item-test-action-page',
|
||||||
templateUrl: 'workflow-item-action-page.component.html'
|
templateUrl: 'workflow-item-action-page.component.html'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
class TestComponent extends WorkflowItemActionPageComponent {
|
class TestComponent extends WorkflowItemActionPageComponent {
|
||||||
constructor(protected route: ActivatedRoute,
|
constructor(protected route: ActivatedRoute,
|
||||||
|
@@ -306,7 +306,7 @@ const DECLARATIONS = [
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This module serves as an index for all the components in this theme.
|
* This module serves as an index for all the components in this theme.
|
||||||
* It should import all other modules, so the compiler knows where to find any components referenced
|
* It should import all other modules, so the compiler knows where to find any components referenced
|
||||||
* from a component in this theme
|
* from a component in this theme
|
||||||
|
Reference in New Issue
Block a user