Skip to content

Commit

Permalink
add prettier to dev dependencies and update prettier configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
konolak committed Jan 8, 2025
1 parent d4c5cab commit 8e648c5
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 45 deletions.
4 changes: 3 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"singleQuote": true
"singleQuote": true,
"trailingComma" : "es5",
"end-of-line" : "auto"
}
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"karma-jasmine": "~4.0.1",
"karma-jasmine-html-reporter": "^1.5.4",
"ng-extract-i18n-merge": "^2.11.2",
"prettier": "3.4.2",
"protractor": "~7.0.0",
"typescript": "^5.4.5",
"webpack-bundle-analyzer": "^4.10.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,51 +31,51 @@ import { Search } from 'src/app/portal/models/search.model';
import { MatSnackBar } from '@angular/material/snack-bar';
import MetaTags from 'src/assets/static-data/meta-tags.json';
import { AppSettingsService } from '@shared/services/app-settings.service';
import { ModelUtilsService } from '@shared/services/model-util.service';
import { CleanCitationPipe } from '../../../pipes/clean-citation';
import { MatProgressSpinner } from '@angular/material/progress-spinner';
import { CdkCopyToClipboard } from '@angular/cdk/clipboard';
import { DialogComponent } from '../../../../shared/components/dialog/dialog.component';
import { ShareComponent } from '../share/share.component';
import { SecondaryButtonComponent } from '../../../../shared/components/buttons/secondary-button/secondary-button.component';
import { RelatedLinksComponent } from '../related-links/related-links.component';
import { MatCard, MatCardTitle } from '@angular/material/card';
import { PublicationLinksComponent } from './publication-links/publication-links.component';
import { OrcidComponent } from '../../../../shared/components/orcid/orcid.component';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { TooltipModule } from 'ngx-bootstrap/tooltip';
import { BreadcrumbComponent } from '../../breadcrumb/breadcrumb.component';
import { ModelUtilsService } from '@shared/services/model-util.service';
import { CleanCitationPipe } from '../../../pipes/clean-citation';
import { MatProgressSpinner } from '@angular/material/progress-spinner';
import { CdkCopyToClipboard } from '@angular/cdk/clipboard';
import { DialogComponent } from '../../../../shared/components/dialog/dialog.component';
import { ShareComponent } from '../share/share.component';
import { SecondaryButtonComponent } from '../../../../shared/components/buttons/secondary-button/secondary-button.component';
import { RelatedLinksComponent } from '../related-links/related-links.component';
import { MatCard, MatCardTitle } from '@angular/material/card';
import { PublicationLinksComponent } from './publication-links/publication-links.component';
import { OrcidComponent } from '../../../../shared/components/orcid/orcid.component';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { TooltipModule } from 'ngx-bootstrap/tooltip';
import { BreadcrumbComponent } from '../../breadcrumb/breadcrumb.component';
import { SearchBarComponent } from '../../search-bar/search-bar.component';

@Component({
selector: 'app-single-publication',
templateUrl: './single-publication.component.html',
styleUrls: ['./single-publication.component.scss'],
standalone: true,
imports: [
SearchBarComponent,
NgIf,
RouterLink,
BreadcrumbComponent,
NgFor,
TooltipModule,
FontAwesomeModule,
NgClass,
OrcidComponent,
NgSwitch,
NgSwitchCase,
NgSwitchDefault,
PublicationLinksComponent,
MatCard,
MatCardTitle,
RelatedLinksComponent,
SecondaryButtonComponent,
ShareComponent,
DialogComponent,
CdkCopyToClipboard,
MatProgressSpinner,
CleanCitationPipe,
],
@Component({
selector: 'app-single-publication',
templateUrl: './single-publication.component.html',
styleUrls: ['./single-publication.component.scss'],
standalone: true,
imports: [
SearchBarComponent,
NgIf,
RouterLink,
BreadcrumbComponent,
NgFor,
TooltipModule,
FontAwesomeModule,
NgClass,
OrcidComponent,
NgSwitch,
NgSwitchCase,
NgSwitchDefault,
PublicationLinksComponent,
MatCard,
MatCardTitle,
RelatedLinksComponent,
SecondaryButtonComponent,
ShareComponent,
DialogComponent,
CdkCopyToClipboard,
MatProgressSpinner,
CleanCitationPipe,
],
})
export class SinglePublicationComponent
implements OnInit, AfterViewInit, OnDestroy
Expand Down Expand Up @@ -644,7 +644,8 @@ export class SinglePublicationComponent
checkEmpty(item)
);
this.typeFields = this.typeFields.filter((item) => checkEmpty(item));
this.mediumFields = this.mediumFields.filter((item) => checkEmpty(item));
this.mediumFields = this.mediumFields.filter((item) =>
item.field !== 'jufoClassCode' ? checkEmpty(item) : true);
this.linksFields = this.linksFields.filter((item) => checkEmpty(item));
this.otherFields = this.otherFields.filter((item) => checkEmpty(item));
this.open_accessFields = this.open_accessFields.filter((item) =>
Expand Down

0 comments on commit 8e648c5

Please sign in to comment.