Skip to content

Commit cec5892

Browse files
committed
Refactor formatting with eslint + prettier
1 parent 6df7037 commit cec5892

2 files changed

Lines changed: 50 additions & 10 deletions

File tree

src/app/item-page/simple/item-types/untyped-item/untyped-item.component.ts

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,26 @@ import { ItemComponent } from '../shared/item.component';
4040
templateUrl: './untyped-item.component.html',
4141
changeDetection: ChangeDetectionStrategy.OnPush,
4242
standalone: true,
43-
imports: [NgIf, ThemedResultsBackButtonComponent, MiradorViewerComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, ThemedMediaViewerComponent, ThemedFileSectionComponent, ItemPageDateFieldComponent, ThemedMetadataRepresentationListComponent, GenericItemPageFieldComponent, ItemPageAbstractFieldComponent, ItemPageUriFieldComponent, CollectionsComponent, RouterLink, AsyncPipe, TranslateModule, ItemPageCcLicenseFieldComponent],
43+
imports: [
44+
NgIf,
45+
ThemedResultsBackButtonComponent,
46+
MiradorViewerComponent,
47+
ThemedItemPageTitleFieldComponent,
48+
DsoEditMenuComponent,
49+
MetadataFieldWrapperComponent,
50+
ThemedThumbnailComponent,
51+
ThemedMediaViewerComponent,
52+
ThemedFileSectionComponent,
53+
ItemPageDateFieldComponent,
54+
ThemedMetadataRepresentationListComponent,
55+
GenericItemPageFieldComponent,
56+
ItemPageAbstractFieldComponent,
57+
ItemPageUriFieldComponent,
58+
CollectionsComponent,
59+
RouterLink,
60+
AsyncPipe,
61+
TranslateModule,
62+
ItemPageCcLicenseFieldComponent,
63+
],
4464
})
45-
export class UntypedItemComponent extends ItemComponent {
46-
47-
}
65+
export class UntypedItemComponent extends ItemComponent {}

src/themes/custom/app/item-page/simple/item-types/untyped-item/untyped-item.component.ts

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { ThemedMediaViewerComponent } from '../../../../../../../app/item-page/m
1717
import { MiradorViewerComponent } from '../../../../../../../app/item-page/mirador-viewer/mirador-viewer.component';
1818
import { ThemedFileSectionComponent } from '../../../../../../../app/item-page/simple/field-components/file-section/themed-file-section.component';
1919
import { ItemPageAbstractFieldComponent } from '../../../../../../../app/item-page/simple/field-components/specific-field/abstract/item-page-abstract-field.component';
20+
import { ItemPageCcLicenseFieldComponent } from '../../../../../../../app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component';
2021
import { ItemPageDateFieldComponent } from '../../../../../../../app/item-page/simple/field-components/specific-field/date/item-page-date-field.component';
2122
import { GenericItemPageFieldComponent } from '../../../../../../../app/item-page/simple/field-components/specific-field/generic/generic-item-page-field.component';
2223
import { ThemedItemPageTitleFieldComponent } from '../../../../../../../app/item-page/simple/field-components/specific-field/title/themed-item-page-field.component';
@@ -28,7 +29,6 @@ import { MetadataFieldWrapperComponent } from '../../../../../../../app/shared/m
2829
import { listableObjectComponent } from '../../../../../../../app/shared/object-collection/shared/listable-object/listable-object.decorator';
2930
import { ThemedResultsBackButtonComponent } from '../../../../../../../app/shared/results-back-button/themed-results-back-button.component';
3031
import { ThemedThumbnailComponent } from '../../../../../../../app/thumbnail/themed-thumbnail.component';
31-
import { ItemPageCcLicenseFieldComponent } from 'src/app/item-page/simple/field-components/specific-field/cc-license/item-page-cc-license-field.component';
3232

3333
/**
3434
* Component that represents an untyped Item page
@@ -37,12 +37,34 @@ import { ItemPageCcLicenseFieldComponent } from 'src/app/item-page/simple/field-
3737
@Component({
3838
selector: 'ds-untyped-item',
3939
// styleUrls: ['./untyped-item.component.scss'],
40-
styleUrls: ['../../../../../../../app/item-page/simple/item-types/untyped-item/untyped-item.component.scss'],
40+
styleUrls: [
41+
'../../../../../../../app/item-page/simple/item-types/untyped-item/untyped-item.component.scss',
42+
],
4143
// templateUrl: './untyped-item.component.html',
42-
templateUrl: '../../../../../../../app/item-page/simple/item-types/untyped-item/untyped-item.component.html',
44+
templateUrl:
45+
'../../../../../../../app/item-page/simple/item-types/untyped-item/untyped-item.component.html',
4346
changeDetection: ChangeDetectionStrategy.OnPush,
4447
standalone: true,
45-
imports: [NgIf, ThemedResultsBackButtonComponent, MiradorViewerComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, ThemedMediaViewerComponent, ThemedFileSectionComponent, ItemPageDateFieldComponent, ThemedMetadataRepresentationListComponent, GenericItemPageFieldComponent, ItemPageAbstractFieldComponent, ItemPageUriFieldComponent, CollectionsComponent, RouterLink, AsyncPipe, TranslateModule, ItemPageCcLicenseFieldComponent],
48+
imports: [
49+
NgIf,
50+
ThemedResultsBackButtonComponent,
51+
MiradorViewerComponent,
52+
ThemedItemPageTitleFieldComponent,
53+
DsoEditMenuComponent,
54+
MetadataFieldWrapperComponent,
55+
ThemedThumbnailComponent,
56+
ThemedMediaViewerComponent,
57+
ThemedFileSectionComponent,
58+
ItemPageDateFieldComponent,
59+
ThemedMetadataRepresentationListComponent,
60+
GenericItemPageFieldComponent,
61+
ItemPageAbstractFieldComponent,
62+
ItemPageUriFieldComponent,
63+
CollectionsComponent,
64+
RouterLink,
65+
AsyncPipe,
66+
TranslateModule,
67+
ItemPageCcLicenseFieldComponent,
68+
],
4669
})
47-
export class UntypedItemComponent extends BaseComponent {
48-
}
70+
export class UntypedItemComponent extends BaseComponent {}

0 commit comments

Comments
 (0)