From 9ef9e334fd432a4e3230e633291c046a053d0568 Mon Sep 17 00:00:00 2001 From: Kazgatari <56477241+Kazgatari@users.noreply.github.com> Date: Tue, 18 Aug 2026 11:57:52 +0200 Subject: [PATCH] refactor: changed all static icons to use central defined icons (duplicates not resolved) --- .../accounts/account-dialog.component.html | 2 +- .../accounts/account-dialog.component.ts | 3 + .../modules/accounts/accounts.component.html | 12 +- .../modules/accounts/accounts.component.ts | 15 ++ .../app-login/app-login.component.html | 6 +- .../modules/app-login/app-login.component.ts | 11 ++ .../bookmarks/bookmarks.component.html | 6 +- .../modules/bookmarks/bookmarks.component.ts | 4 + .../author-research-profile.component.html | 2 +- .../author-research-profile.component.ts | 3 + .../compare-authors.component.html | 10 +- .../compare-authors.component.ts | 9 + .../dashboard/dashboard.component.html | 20 +-- .../modules/dashboard/dashboard.component.ts | 35 +++- .../topic-wordcloud-dialog.component.html | 34 ++-- .../topic-wordcloud-dialog.component.ts | 25 +++ .../error-page/error-page.component.html | 6 +- .../error-page/error-page.component.ts | 10 ++ .../forgot-password.component.html | 6 +- .../forgot-password.component.ts | 9 + .../institution-patents.component.html | 10 +- .../institution-patents.component.ts | 13 ++ .../institution-projects.component.html | 4 +- .../institution-projects.component.ts | 4 + .../institutions/institutions.component.ts | 3 +- .../job-logs-dialog.component.html | 8 +- .../job-logs-dialog.component.ts | 11 ++ .../src/app/modules/jobs/jobs.component.html | 20 +-- webapp/src/app/modules/jobs/jobs.component.ts | 19 +++ webapp/src/app/modules/jobs/jobs.utils.ts | 23 ++- .../task-create-dialog.component.html | 14 +- .../task-create-dialog.component.ts | 4 + .../task-edit-dialog.component.html | 14 +- .../task-edit-dialog.component.ts | 4 + .../task-schedule-dialog.component.html | 2 +- .../task-schedule-dialog.component.ts | 3 + .../keywords-patents.component.html | 8 +- .../keywords-patents.component.ts | 11 ++ .../keywords-search.component.html | 52 ++++-- .../keywords-search.component.ts | 21 +++ .../news-results/news-results.component.html | 16 +- .../news-results/news-results.component.ts | 17 ++ .../persons-results.component.html | 18 +- .../persons-results.component.ts | 34 +++- .../search-results.component.html | 4 +- .../search-results.component.ts | 25 ++- .../news-detail/news-detail.component.html | 40 ++--- .../news-detail/news-detail.component.ts | 33 ++++ .../src/app/modules/news/news.component.html | 4 +- webapp/src/app/modules/news/news.component.ts | 4 + .../organization-dialog.component.html | 8 +- .../organization-dialog.component.ts | 14 +- .../organizations.component.html | 6 +- .../organizations/organizations.component.ts | 9 + .../patent-detail.component.html | 36 ++-- .../patent-detail/patent-detail.component.ts | 33 ++++ .../modules/patents/patents.component.html | 4 +- .../app/modules/patents/patents.component.ts | 4 + .../person-card/person-card.component.html | 12 +- .../person-card/person-card.component.ts | 17 ++ .../person-company-connections.component.html | 22 ++- .../person-company-connections.component.ts | 15 ++ .../person-funding.component.html | 8 +- .../person-funding.component.ts | 19 ++- .../person-interesting.component.html | 6 +- .../person-interesting.component.ts | 5 + .../person-list/person-list.component.html | 32 ++-- .../person-list/person-list.component.ts | 17 ++ .../person-network.component.html | 14 +- .../person-network.component.ts | 41 +++-- .../person-patents.component.html | 8 +- .../person-patents.component.ts | 11 ++ .../app/modules/person/person.component.html | 18 +- .../app/modules/person/person.component.ts | 18 ++ .../bund-details/bund-details.component.html | 32 ++-- .../bund-details/bund-details.component.ts | 35 ++++ .../dfg-details/dfg-details.component.html | 40 ++--- .../dfg-details/dfg-details.component.ts | 42 +++++ .../deliverables-cards.component.html | 6 +- .../deliverables-cards.component.ts | 10 ++ .../eu-details.component.html | 62 +++---- .../eu-cordis-details/eu-details.component.ts | 57 ++++++- .../organizations-table.component.html | 4 +- .../organizations-table.component.ts | 4 + .../patents-cards.component.html | 6 +- .../patents-cards/patents-cards.component.ts | 10 ++ .../publications-table.component.html | 8 +- .../publications-table.component.ts | 11 ++ .../modules/projects/projects.component.ts | 3 +- .../publication-detail.component.html | 86 +++++----- .../publication-detail.component.ts | 47 +++++ .../research-profile.component.html | 6 +- .../research-profile.component.ts | 4 + .../reset-password.component.html | 13 +- .../reset-password.component.ts | 11 ++ .../app/modules/topic/topic.component.html | 4 +- .../src/app/modules/topic/topic.component.ts | 9 +- .../app/modules/topics/topics.component.ts | 3 +- .../uni-trend-parent.component.html | 28 +-- .../uni-trend-parent.component.ts | 25 +++ .../app-author-card.component.html | 12 +- .../app-author-card.component.ts | 14 ++ .../app-institution-card.component.html | 10 +- .../app-institution-card.component.ts | 12 ++ .../ui/app-layout/app-layout.component.html | 22 +-- .../ui/app-layout/app-layout.component.ts | 26 +++ .../ui/app-menu/app-menu.component.html | 10 +- .../shared/ui/app-menu/app-menu.component.ts | 7 + .../app-project-card.component.html | 4 +- .../app-project-card.component.ts | 5 + .../app-publication-card.component.html | 8 +- .../app-publication-card.component.ts | 11 ++ .../app-searchbar.component.html | 4 +- .../app-searchbar/app-searchbar.component.ts | 5 + .../app-topic-card.component.html | 6 +- .../app-topic-card.component.ts | 8 +- ...author-institution-selector.component.html | 4 +- .../author-institution-selector.component.ts | 5 + .../author-selector.component.html | 16 +- .../author-selector.component.ts | 22 +++ .../bund-project-table.component.html | 4 +- .../bund-project-table.component.ts | 5 + .../dfg-classification.component.html | 6 +- .../dfg-classification.component.ts | 5 + .../dfg-project-table.component.html | 8 +- .../dfg-project-table.component.ts | 11 ++ .../eu-project-table.component.html | 4 +- .../eu-project-table.component.ts | 5 + .../ui/file-upload/file-upload.component.html | 8 +- .../ui/file-upload/file-upload.component.ts | 24 ++- webapp/src/app/shared/ui/icons.ts | 161 ++++++++++++++++-- .../institution-selector.component.html | 20 ++- .../institution-selector.component.ts | 22 +++ .../shared/ui/loading/loading.component.ts | 4 +- .../location-selector.component.html | 16 +- .../location-selector.component.ts | 20 +++ .../ui/news-card/news-card.component.html | 8 +- .../ui/news-card/news-card.component.ts | 7 + .../patent-table/patent-table.component.html | 12 +- .../ui/patent-table/patent-table.component.ts | 11 ++ ...gory-year-aggregation-chart.component.html | 2 +- ...tegory-year-aggregation-chart.component.ts | 18 +- .../project-filters.component.ts | 28 ++- .../project-oa-topics.component.html | 4 +- .../project-oa-topics.component.ts | 5 + .../publication-filters.component.ts | 23 ++- .../publication-table.component.html | 2 +- .../publication-table.component.ts | 2 + .../query-param-input.component.html | 4 +- .../query-param-input.component.ts | 5 + .../searchable-author-select.component.html | 2 +- .../searchable-author-select.component.ts | 3 + ...le-bund-funding-type-select.component.html | 2 +- ...able-bund-funding-type-select.component.ts | 3 + ...ble-bund-institution-select.component.html | 2 +- ...hable-bund-institution-select.component.ts | 4 + ...earchable-dfg-author-select.component.html | 2 +- .../searchable-dfg-author-select.component.ts | 3 + ...able-dfg-institution-select.component.html | 2 +- ...chable-dfg-institution-select.component.ts | 3 + ...hable-eu-institution-select.component.html | 2 +- ...rchable-eu-institution-select.component.ts | 4 + ...able-eu-project-type-select.component.html | 2 +- ...chable-eu-project-type-select.component.ts | 3 + ...archable-institution-select.component.html | 2 +- ...searchable-institution-select.component.ts | 3 + .../searchable-language-select.component.html | 2 +- .../searchable-language-select.component.ts | 3 + .../searchable-select.component.html | 6 +- .../searchable-select.component.ts | 6 + .../searchable-topic-select.component.html | 2 +- .../searchable-topic-select.component.ts | 3 + ...searchable-work-type-select.component.html | 2 +- .../searchable-work-type-select.component.ts | 3 + .../searchable-year-select.component.html | 2 +- .../searchable-year-select.component.ts | 3 + .../selected-filters.component.html | 2 +- .../selected-filters.component.ts | 3 + .../topic-autocomplete.component.html | 13 +- .../topic-autocomplete.component.ts | 3 + .../topic-legend/topic-legend.component.html | 6 +- .../ui/topic-legend/topic-legend.component.ts | 9 + .../weights-sliders.component.html | 10 +- .../weights-sliders.component.ts | 6 + 184 files changed, 1813 insertions(+), 592 deletions(-) diff --git a/webapp/src/app/modules/accounts/account-dialog.component.html b/webapp/src/app/modules/accounts/account-dialog.component.html index a494ff36..807e8da0 100644 --- a/webapp/src/app/modules/accounts/account-dialog.component.html +++ b/webapp/src/app/modules/accounts/account-dialog.component.html @@ -61,7 +61,7 @@ diff --git a/webapp/src/app/modules/accounts/account-dialog.component.ts b/webapp/src/app/modules/accounts/account-dialog.component.ts index 15e312ae..fcd2926b 100644 --- a/webapp/src/app/modules/accounts/account-dialog.component.ts +++ b/webapp/src/app/modules/accounts/account-dialog.component.ts @@ -21,6 +21,7 @@ import { InseAccountManagementModelOrganizationProfile, UserRole, } from '../../api'; +import { SAVE_ICON } from '../../shared/ui/icons'; export type AccountDialogMode = 'create' | 'edit'; @@ -71,6 +72,8 @@ export type AccountDialogResult = standalone: true, }) export class AccountDialogComponent { + readonly SAVE_ICON = SAVE_ICON; + private readonly dialogRef = inject< MatDialogRef diff --git a/webapp/src/app/modules/accounts/accounts.component.html b/webapp/src/app/modules/accounts/accounts.component.html index fbab8c8f..b80f69d4 100644 --- a/webapp/src/app/modules/accounts/accounts.component.html +++ b/webapp/src/app/modules/accounts/accounts.component.html @@ -31,7 +31,7 @@ type="button" matTooltip="Neuen Account anlegen" (click)="startCreate()"> - person_add + {{ PERSON_ADD_ICON }} Neuer Account } @@ -68,7 +68,7 @@ type="button" aria-label="Bearbeiten" (click)="startEdit(row)"> - edit + {{ EDIT_ICON }} diff --git a/webapp/src/app/modules/accounts/accounts.component.ts b/webapp/src/app/modules/accounts/accounts.component.ts index b8ec1d26..5a7643d4 100644 --- a/webapp/src/app/modules/accounts/accounts.component.ts +++ b/webapp/src/app/modules/accounts/accounts.component.ts @@ -44,6 +44,14 @@ import { UserRole, } from '../../api'; import { StatusPipe } from '../../shared/pipes/status.pipe'; +import { + DELETE_ICON, + EDIT_ICON, + PERSON_ADD_ICON, + PERSON_CHECK_ICON, + PERSON_OFF_ICON, + SWITCH_ACCOUNT_ICON, +} from '../../shared/ui/icons'; @Component({ selector: 'app-accounts', @@ -71,6 +79,13 @@ import { StatusPipe } from '../../shared/pipes/status.pipe'; standalone: true, }) export class AccountsComponent implements OnInit { + readonly PERSON_ADD_ICON = PERSON_ADD_ICON; + readonly EDIT_ICON = EDIT_ICON; + readonly SWITCH_ACCOUNT_ICON = SWITCH_ACCOUNT_ICON; + readonly PERSON_CHECK_ICON = PERSON_CHECK_ICON; + readonly PERSON_OFF_ICON = PERSON_OFF_ICON; + readonly DELETE_ICON = DELETE_ICON; + protected readonly credentialService = inject(CredentialService); private readonly snackBar = inject(MatSnackBar); private readonly router = inject(Router); diff --git a/webapp/src/app/modules/app-login/app-login.component.html b/webapp/src/app/modules/app-login/app-login.component.html index 0c3c7754..0cc67570 100644 --- a/webapp/src/app/modules/app-login/app-login.component.html +++ b/webapp/src/app/modules/app-login/app-login.component.html @@ -58,7 +58,7 @@ " (click)="showPassword = !showPassword"> {{ - showPassword ? 'visibility' : 'visibility_off' + showPassword ? VISIBILITY_ICON : VISIBILITY_OFF_ICON }} @if (credentialsForm.controls.password.hasError('required')) { @@ -91,7 +91,7 @@ } @else {
- mark_email_unread + {{ EMAIL_UNREAD_ICON }}
Code eingeben @@ -123,7 +123,7 @@ class="expiry" [class.expiry--expired]="codeExpiresIn === 0" aria-live="polite"> - timer + {{ TIMER_ICON }} @if (codeExpiresIn > 0) { Code läuft in {{ formatCountdown() }} ab. } @else { diff --git a/webapp/src/app/modules/app-login/app-login.component.ts b/webapp/src/app/modules/app-login/app-login.component.ts index fe894887..73d4da38 100644 --- a/webapp/src/app/modules/app-login/app-login.component.ts +++ b/webapp/src/app/modules/app-login/app-login.component.ts @@ -15,6 +15,12 @@ import { finalize, Subscription } from 'rxjs'; import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar'; import { Router, RouterLink } from '@angular/router'; import { HttpErrorResponse } from '@angular/common/http'; +import { + EMAIL_UNREAD_ICON, + TIMER_ICON, + VISIBILITY_ICON, + VISIBILITY_OFF_ICON, +} from '../../shared/ui/icons'; type LoginStep = 'credentials' | 'otk'; @@ -35,6 +41,11 @@ type LoginStep = 'credentials' | 'otk'; standalone: true, }) export class AppLoginComponent implements OnDestroy { + readonly EMAIL_UNREAD_ICON = EMAIL_UNREAD_ICON; + readonly TIMER_ICON = TIMER_ICON; + readonly VISIBILITY_ICON = VISIBILITY_ICON; + readonly VISIBILITY_OFF_ICON = VISIBILITY_OFF_ICON; + credentialsForm = new FormGroup({ email: new FormControl('', [Validators.required, Validators.email]), password: new FormControl('', [ diff --git a/webapp/src/app/modules/bookmarks/bookmarks.component.html b/webapp/src/app/modules/bookmarks/bookmarks.component.html index 756e6203..3e246ee7 100644 --- a/webapp/src/app/modules/bookmarks/bookmarks.component.html +++ b/webapp/src/app/modules/bookmarks/bookmarks.component.html @@ -6,7 +6,7 @@

Gespeicherte Personen für den schnellen Zugriff.

- bookmarks + {{ BOOKMARKS_ICON }} {{ persons().length }} Personen
@@ -15,7 +15,7 @@ @if (loading()) { } @else if (persons().length) { @@ -30,7 +30,7 @@ } @else {
- bookmark_border + {{ BOOKMARK_BORDER_ICON }}

Noch keine Bookmarks

Speichere Personen über das Bookmark-Symbol auf einer Personenkarte. diff --git a/webapp/src/app/modules/bookmarks/bookmarks.component.ts b/webapp/src/app/modules/bookmarks/bookmarks.component.ts index 2192e77b..1d8744f0 100644 --- a/webapp/src/app/modules/bookmarks/bookmarks.component.ts +++ b/webapp/src/app/modules/bookmarks/bookmarks.component.ts @@ -8,6 +8,7 @@ import { CustomAuthor, PersonsService } from '../../api'; import { BookmarkService } from '../../shared/services/bookmark.service'; import { PersonCardComponent } from '../person-card/person-card.component'; import { LoadingComponent } from '../../shared/ui/loading/loading.component'; +import { BOOKMARKS_ICON, BOOKMARK_BORDER_ICON } from '../../shared/ui/icons'; const PERSON_INCLUDE_TAGS = 'display_name,works_count,cited_by_count,summary_stats,ids,' + @@ -22,6 +23,9 @@ const PERSON_INCLUDE_TAGS = styleUrl: './bookmarks.component.scss', }) export class BookmarksComponent { + readonly BOOKMARKS_ICON = BOOKMARKS_ICON; + readonly BOOKMARK_BORDER_ICON = BOOKMARK_BORDER_ICON; + readonly bookmarkService = inject(BookmarkService); private readonly personsService = inject(PersonsService); private readonly destroyRef = inject(DestroyRef); diff --git a/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.html b/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.html index b7f8cf28..7ecf688f 100644 --- a/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.html +++ b/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.html @@ -1,7 +1,7 @@ @if (visible()) { - science + {{ SCIENCE_ICON }}

Forschungsprofil diff --git a/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.ts b/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.ts index 6fb7764b..a2b3a09f 100644 --- a/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.ts +++ b/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.ts @@ -11,6 +11,7 @@ import { AuthorCategoryPieComponent, buildAuthorCategoryLegend, } from './author-category-pie.component'; +import { SCIENCE_ICON } from '../../../shared/ui/icons'; export interface ResearchProfileAuthor { authorId: string; @@ -36,6 +37,8 @@ interface AuthorOrientationView { styleUrl: './author-research-profile.component.scss', }) export class AuthorResearchProfileComponent { + readonly SCIENCE_ICON = SCIENCE_ICON; + private readonly chartTheme = inject(ChartThemeService); authors = input.required(); diff --git a/webapp/src/app/modules/compare-authors/compare-authors.component.html b/webapp/src/app/modules/compare-authors/compare-authors.component.html index acc2e968..9a43a290 100644 --- a/webapp/src/app/modules/compare-authors/compare-authors.component.html +++ b/webapp/src/app/modules/compare-authors/compare-authors.component.html @@ -22,7 +22,7 @@
Betrachteter Zeitraum: - date_range + {{ DATE_RANGE_ICON }} {{ span.from }}–{{ span.to }}
@@ -42,7 +42,7 @@ ]" title="Zur Autor:innen-Seite"> {{ author.name }} - open_in_new + {{ OPEN_IN_NEW_ICON }} } @@ -181,7 +181,7 @@ ]" title="Zur Autor:innen-Seite"> {{ author.name }} - open_in_new + {{ OPEN_IN_NEW_ICON }} @@ -198,7 +198,7 @@ } @@ -257,7 +257,7 @@
@if (hasNameMatchedRow(rows)) {

- star + {{ STAR_ICON }} Diese Kennzahlen basieren auf einem automatischen Namensabgleich mit externen Quellen, wodurch es in Einzelfällen zu Fehlzuordnungen kommen kann. diff --git a/webapp/src/app/modules/compare-authors/compare-authors.component.ts b/webapp/src/app/modules/compare-authors/compare-authors.component.ts index de5639ff..5116ec2a 100644 --- a/webapp/src/app/modules/compare-authors/compare-authors.component.ts +++ b/webapp/src/app/modules/compare-authors/compare-authors.component.ts @@ -29,6 +29,11 @@ import { ChipComponent } from '../../shared/ui/chip/chip.component'; import { TopicChipComponent } from '../../shared/ui/topic-chip/topic-chip.component'; import { ChartThemeService } from '../../shared/services/chart-theme.service'; import { topicHierarchyColor } from '../../resolvers/utils/topic-colors'; +import { + DATE_RANGE_ICON, + OPEN_IN_NEW_ICON, + STAR_ICON, +} from '../../shared/ui/icons'; import { AUTHOR_COLORS, OTHER_COLOR, @@ -135,6 +140,10 @@ interface SegmentDef { styleUrl: './compare-authors.component.scss', }) export class CompareAuthorsComponent implements OnInit { + readonly DATE_RANGE_ICON = DATE_RANGE_ICON; + readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON; + readonly STAR_ICON = STAR_ICON; + private readonly route = inject(ActivatedRoute); private readonly rankingService = inject(RankingService); private readonly topicsService = inject(TopicsService); diff --git a/webapp/src/app/modules/dashboard/dashboard.component.html b/webapp/src/app/modules/dashboard/dashboard.component.html index 73d21e66..8de37ebf 100644 --- a/webapp/src/app/modules/dashboard/dashboard.component.html +++ b/webapp/src/app/modules/dashboard/dashboard.component.html @@ -44,7 +44,7 @@ matTooltip="Anzahl der Publikationen im ausgewählten Zeitraum" matTooltipPosition="above">

- menu_book + {{ MENU_BOOK_ICON }}
Publikationen @@ -66,7 +66,7 @@ matTooltip="Anzahl der Personen im ausgewählten Zeitraum" matTooltipPosition="above">
- groups + {{ GROUPS_ICON }}
Personen @@ -111,7 +111,7 @@ matTooltip="Anzahl der laufenden, abgeschlossenen und kommenden EU-Projekte im ausgewählten Zeitraum" matTooltipPosition="above">
- public + {{ PUBLIC_ICON }}
EU-Projekte @@ -133,7 +133,7 @@ matTooltip="Anzahl der laufenden, abgeschlossenen und kommenden Bund-Projekte im ausgewählten Zeitraum" matTooltipPosition="above">
- account_balance + {{ ACCOUNT_BALANCE_ICON }}
Bund-Projekte @@ -155,7 +155,7 @@ matTooltip="Anzahl der laufenden, abgeschlossenen und kommenden DFG-Projekte im ausgewählten Zeitraum" matTooltipPosition="above">
- science + {{ SCIENCE_ICON }}
DFG-Projekte @@ -230,7 +230,7 @@
@@ -267,7 +267,7 @@
@@ -308,7 +308,7 @@
@@ -351,7 +351,7 @@
@@ -394,7 +394,7 @@
diff --git a/webapp/src/app/modules/dashboard/dashboard.component.ts b/webapp/src/app/modules/dashboard/dashboard.component.ts index 613ac71d..2fe8d26d 100644 --- a/webapp/src/app/modules/dashboard/dashboard.component.ts +++ b/webapp/src/app/modules/dashboard/dashboard.component.ts @@ -7,7 +7,18 @@ import { ActivatedRoute, Router, RouterLink } from '@angular/router'; import { MatDialog } from '@angular/material/dialog'; import { ComponentTooltipDirective } from '../../directives/component-tooltip.directive'; import { AppAuthorTooltipComponent } from '../../shared/ui/app-author-tooltip/app-author-tooltip.component'; -import { PATENT_ICON } from '../../shared/ui/icons'; +import { + ACCOUNT_BALANCE_ICON, + ACCOUNT_TREE_ICON, + ARTICLE_ICON, + DESCRIPTION_ICON, + GROUPS_ICON, + MENU_BOOK_ICON, + PATENT_ICON, + PUBLIC_ICON, + SCIENCE_ICON, + STACKED_BAR_CHART_ICON, +} from '../../shared/ui/icons'; import { EuProjectStatusChartComponent } from './eu-project-status-chart/eu-project-status-chart.component'; import { YearRangeSliderComponent } from '../../shared/ui/year-range-slider/year-range-slider.component'; import { LoadingComponent } from '../../shared/ui/loading/loading.component'; @@ -76,6 +87,14 @@ type DashboardPeriodMode = export class DashboardComponent implements OnInit { readonly AuthorTooltipComponent = AppAuthorTooltipComponent; readonly patentIcon = PATENT_ICON; + readonly MENU_BOOK_ICON = MENU_BOOK_ICON; + readonly GROUPS_ICON = GROUPS_ICON; + readonly PUBLIC_ICON = PUBLIC_ICON; + readonly ACCOUNT_BALANCE_ICON = ACCOUNT_BALANCE_ICON; + readonly SCIENCE_ICON = SCIENCE_ICON; + readonly STACKED_BAR_CHART_ICON = STACKED_BAR_CHART_ICON; + readonly ACCOUNT_TREE_ICON = ACCOUNT_TREE_ICON; + statistics?: Partial; statisticsLoading = false; statisticsError = false; @@ -192,26 +211,30 @@ export class DashboardComponent implements OnInit { return [ { title: 'Publikationen', - icon: 'menu_book', + icon: MENU_BOOK_ICON, entries: this.topAuthors?.works ?? [], }, { title: 'EU-Projekte', - icon: 'public', + icon: PUBLIC_ICON, entries: this.topAuthors?.eu_projects ?? [], }, { title: 'Patente', - icon: 'description', + icon: DESCRIPTION_ICON, entries: this.topAuthors?.patents ?? [], }, { title: 'DFG Projekte', - icon: 'account_tree', + icon: ACCOUNT_TREE_ICON, entries: this.topAuthors?.projects ?? [], stripAuthorTitle: true, }, - { title: 'News', icon: 'article', entries: this.topAuthors?.news ?? [] }, + { + title: 'News', + icon: ARTICLE_ICON, + entries: this.topAuthors?.news ?? [], + }, ]; } diff --git a/webapp/src/app/modules/dashboard/topic-wordcloud-dialog/topic-wordcloud-dialog.component.html b/webapp/src/app/modules/dashboard/topic-wordcloud-dialog/topic-wordcloud-dialog.component.html index 08946dda..cc68e7f9 100644 --- a/webapp/src/app/modules/dashboard/topic-wordcloud-dialog/topic-wordcloud-dialog.component.html +++ b/webapp/src/app/modules/dashboard/topic-wordcloud-dialog/topic-wordcloud-dialog.component.html @@ -22,7 +22,7 @@ type="button" aria-label="Dialog schließen" mat-dialog-close> - close + {{ CLOSE_ICON }}
@@ -32,7 +32,7 @@ Field @@ -41,14 +41,14 @@ }}
- +
Subfield @@ -57,14 +57,14 @@ }}
- +
Topic @@ -90,7 +90,7 @@ @if (loading) {
Wordcloud wird erstellt Die wichtigsten Keywords werden geladen … @@ -98,7 +98,7 @@ } @else if (loadFailed) {
{{ CLOUD_OFF_ICON }} Wordcloud nicht verfügbar Die Keywords konnten nicht geladen werden. @@ -106,7 +106,7 @@ } @else if (words.length) {
- + Keyword-Auswahl {{ word.name }} - + } @empty { Noch nichts ausgewählt @@ -157,7 +157,7 @@ ? $event.preventDefault() : closeForSearchNavigation() "> - + Suche in Keywords - + Suche in Themen
@@ -208,7 +208,7 @@ } @else {
{{ SEARCH_OFF_ICON }} Keine Keywords gefunden (MAT_DIALOG_DATA); private readonly dialogRef = inject( MatDialogRef, diff --git a/webapp/src/app/modules/error-page/error-page.component.html b/webapp/src/app/modules/error-page/error-page.component.html index d19a6b48..6a41768b 100644 --- a/webapp/src/app/modules/error-page/error-page.component.html +++ b/webapp/src/app/modules/error-page/error-page.component.html @@ -7,7 +7,7 @@ aria-describedby="error-message"> Fehler {{ error().statusCode }} @@ -34,12 +34,12 @@ color="primary" type="button" (click)="goBack()"> - + Zurück - + Startseite
diff --git a/webapp/src/app/modules/error-page/error-page.component.ts b/webapp/src/app/modules/error-page/error-page.component.ts index 20737936..39ac2aa3 100644 --- a/webapp/src/app/modules/error-page/error-page.component.ts +++ b/webapp/src/app/modules/error-page/error-page.component.ts @@ -14,6 +14,12 @@ import { MatExpansionModule } from '@angular/material/expansion'; import { MatIconModule } from '@angular/material/icon'; import { ErrorService, ErrorState } from '../../shared/services/error.service'; import { RouterLink } from '@angular/router'; +import { + ARROW_BACK_ICON, + HOME_ICON, + WARNING_ICON, +} from '../../shared/ui/icons'; + @Component({ selector: 'app-error-page', standalone: true, @@ -28,6 +34,10 @@ import { RouterLink } from '@angular/router'; styleUrl: './error-page.component.scss', }) export class ErrorPageComponent { + readonly WARNING_ICON = WARNING_ICON; + readonly ARROW_BACK_ICON = ARROW_BACK_ICON; + readonly HOME_ICON = HOME_ICON; + readonly routeStatusCode = input(500, { transform: numberAttribute }); readonly routeTitle = input('Da ist was schiefgelaufen'); readonly routeMessage = input( diff --git a/webapp/src/app/modules/forgot-password/forgot-password.component.html b/webapp/src/app/modules/forgot-password/forgot-password.component.html index 955b4b31..9b070e43 100644 --- a/webapp/src/app/modules/forgot-password/forgot-password.component.html +++ b/webapp/src/app/modules/forgot-password/forgot-password.component.html @@ -13,7 +13,7 @@ } @@ -170,20 +170,22 @@ class="accordion-header" (click)="openPanel = openPanel === 'topics' ? null : 'topics'" [attr.aria-expanded]="openPanel === 'topics'"> - label + {{ LABEL_ICON }} Themen & Schlüsselwörter info_outline{{ INFO_OUTLINE_ICON }} @if (article.topics?.length) { {{ article.topics!.length }} } - expand_more{{ EXPAND_MORE_ICON }} @if (openPanel === 'topics') { @@ -207,8 +209,8 @@ }} {{ expandedTopicId === topic.id - ? 'expand_less' - : 'expand_more' + ? EXPAND_LESS_ICON + : EXPAND_MORE_ICON }} @if (expandedTopicId === topic.id) { @@ -222,7 +224,7 @@ class="analyse-btn" matTooltip="Suche nach dem Schlüsselwort" (click)="analyseKeyword(topic.source_keyword)"> - search + {{ SEARCH_ICON }} } @@ -112,7 +112,7 @@ type="button" [disabled]="isLoadingAssociations()" (click)="submit()"> - save + {{ SAVE_ICON }} Speichern diff --git a/webapp/src/app/modules/organizations/organization-dialog/organization-dialog.component.ts b/webapp/src/app/modules/organizations/organization-dialog/organization-dialog.component.ts index c5039408..9c1e4306 100644 --- a/webapp/src/app/modules/organizations/organization-dialog/organization-dialog.component.ts +++ b/webapp/src/app/modules/organizations/organization-dialog/organization-dialog.component.ts @@ -44,6 +44,12 @@ import { UpdateOrganizationRequest, } from '../../../api'; import { InstitutionRemovalDialogComponent } from './institution-removal-dialog.component'; +import { + APARTMENT_ICON, + CLOSE_ICON, + SAVE_ICON, + SEARCH_ICON, +} from '../../../shared/ui/icons'; type Relationship = InstitutionAssociation.RelationshipEnum; @@ -58,10 +64,11 @@ interface EditableInstitution { institution: Institution; manuallySelected: boolean; origins: InstitutionOrigin[]; + relationship?: Relationship; } interface OriginLabel { - relationship: 'selected' | Relationship; + relationship: Relationship | 'selected'; label: string; tooltip?: string; } @@ -109,6 +116,11 @@ const cleanInstitutionId = (id: string): string => standalone: true, }) export class OrganizationDialogComponent { + readonly SEARCH_ICON = SEARCH_ICON; + readonly APARTMENT_ICON = APARTMENT_ICON; + readonly CLOSE_ICON = CLOSE_ICON; + readonly SAVE_ICON = SAVE_ICON; + private readonly dialogRef = inject< MatDialogRef< diff --git a/webapp/src/app/modules/organizations/organizations.component.html b/webapp/src/app/modules/organizations/organizations.component.html index b52e00b0..35ac82d2 100644 --- a/webapp/src/app/modules/organizations/organizations.component.html +++ b/webapp/src/app/modules/organizations/organizations.component.html @@ -11,7 +11,7 @@ color="primary" type="button" (click)="startCreate()"> - add_business + {{ ADD_BUSINESS_ICON }} Neue Organisation
@@ -66,7 +66,7 @@ type="button" aria-label="Bearbeiten" (click)="startEdit(row)"> - edit + {{ EDIT_ICON }}
diff --git a/webapp/src/app/modules/organizations/organizations.component.ts b/webapp/src/app/modules/organizations/organizations.component.ts index a06eff1c..808f04af 100644 --- a/webapp/src/app/modules/organizations/organizations.component.ts +++ b/webapp/src/app/modules/organizations/organizations.component.ts @@ -30,6 +30,11 @@ import { OrganizationWithInstitutions, } from '../../resolvers/organizations-organizations.resolver'; import { CredentialService } from '../../shared/services/credential.service'; +import { + ADD_BUSINESS_ICON, + DELETE_ICON, + EDIT_ICON, +} from '../../shared/ui/icons'; @Component({ selector: 'app-organizations', @@ -49,6 +54,10 @@ import { CredentialService } from '../../shared/services/credential.service'; standalone: true, }) export class OrganizationsComponent implements OnInit { + readonly ADD_BUSINESS_ICON = ADD_BUSINESS_ICON; + readonly EDIT_ICON = EDIT_ICON; + readonly DELETE_ICON = DELETE_ICON; + private readonly router = inject(Router); private readonly dialog = inject(MatDialog); private readonly snackBar = inject(MatSnackBar); diff --git a/webapp/src/app/modules/patent-detail/patent-detail.component.html b/webapp/src/app/modules/patent-detail/patent-detail.component.html index f05d50b4..59d283da 100644 --- a/webapp/src/app/modules/patent-detail/patent-detail.component.html +++ b/webapp/src/app/modules/patent-detail/patent-detail.component.html @@ -4,19 +4,19 @@ class="back-link" (click)="navigateBack()" aria-label="Zurück zu den Patenten"> - arrow_back + {{ ARROW_BACK_ICON }} Alle Patente @if (loading) { } @else if (notFound || !patent) {
- search_off + {{ SEARCH_OFF_ICON }}

Patent nicht gefunden

Das Patent konnte nicht geladen werden.

Zur Patentübersicht @@ -55,7 +55,7 @@ target="_blank" rel="noopener"> {{ link.label }} - open_in_new + {{ OPEN_IN_NEW_ICON }} }
@@ -63,17 +63,17 @@
- groups + {{ GROUPS_ICON }} {{ patent.inventors?.length ?? 0 }} Erfinder
- business + {{ BUSINESS_ICON }} {{ patent.assignees?.length ?? 0 }} Anmelder
- category + {{ CATEGORY_ICON }} {{ (patent.ipc?.length ?? 0) + (patent.cpc?.length ?? 0) }} @@ -87,7 +87,7 @@ @if (patent.abstract) {
- subject + {{ SUBJECT_ICON }}

Abstract

{{ patent.abstract }}

@@ -96,7 +96,7 @@
- engineering + {{ ENGINEERING_ICON }}

Erfinder

{{ patent.inventors?.length ?? 0 }}
@@ -112,7 +112,7 @@ @if (patent.assignees?.length) {
- account_balance + {{ ACCOUNT_BALANCE_ICON }}

Anmelder

{{ patent.assignees?.length ?? 0 }}
@@ -129,7 +129,7 @@ @if (patent.openalex_topics?.length) {
- topic + {{ TOPIC_ICON }}

OpenAlex Themen

@@ -154,7 +154,7 @@
- label + {{ LABEL_ICON }}

Klassifikation (IPC)

@@ -228,7 +228,7 @@ } @else if (patent.ipc?.length) {
- label + {{ LABEL_ICON }}

Klassifikation (IPC)

@@ -243,7 +243,7 @@
- label + {{ LABEL_ICON }}

Klassifikation (CPC)

@@ -317,7 +317,7 @@ } @else if (patent.cpc?.length) {
- label + {{ LABEL_ICON }}

Klassifikation (CPC)

@@ -332,7 +332,7 @@
@@ -68,7 +68,7 @@ margin-right: 4px; vertical-align: middle; " - >apartment{{ APARTMENT_ICON }} open_in_new{{ OPEN_IN_NEW_ICON }} } @@ -124,17 +124,17 @@ } @else {
- person_search + {{ PERSON_SEARCH_ICON }}

Keine Personen gefunden

Versuchen Sie einen anderen Suchbegriff oder passen Sie die Filter @@ -194,7 +196,7 @@

- apartment + {{ APARTMENT_ICON }} @if (institutionId(); as institutionId) { @if (worksCount() !== null) { - menu_book + {{ PUBLICATION_ICON }} {{ worksCount() | number }} Publikationen } @@ -61,7 +61,7 @@ } @if (citedByCount() !== null) { - format_quote + {{ CITATION_ICON }} {{ citedByCount() | number }} Zitationen } @@ -85,7 +85,7 @@ " matTooltipPosition="right" [matTooltipShowDelay]="250"> - trending_up + {{ TRENDING_UP_ICON }} h-Index {{ h_index() }} } @@ -105,7 +105,7 @@ matTooltip="ORCID-Profil öffnen" matTooltipPosition="right" [matTooltipShowDelay]="250"> - verified + {{ VERIFIED_ICON }} {{ orcidId }} } @@ -118,7 +118,7 @@ @if (isBioLoading()) { } @else if (personBio() != null) { @@ -143,7 +143,7 @@ } @else { } diff --git a/webapp/src/app/modules/person/person.component.ts b/webapp/src/app/modules/person/person.component.ts index afd17359..123b9b37 100644 --- a/webapp/src/app/modules/person/person.component.ts +++ b/webapp/src/app/modules/person/person.component.ts @@ -49,14 +49,22 @@ import { LinkTabNavBarItem, } from '../../shared/ui/link-tab-nav-bar/link-tab-nav-bar.component'; import { + APARTMENT_ICON, + BOOKMARK_BORDER_ICON, + BOOKMARK_ICON, + CITATION_ICON, COMPANY_CONNECTION_ICON, + DESCRIPTION_ICON, FUNDING_ICON, NETWORK_ICON, NEWS_ICON, OVERVIEW_ICON, PATENT_ICON, + PERSON_ICON, PROJECT_ICON, PUBLICATION_ICON, + TRENDING_UP_ICON, + VERIFIED_ICON, } from '../../shared/ui/icons'; @Component({ @@ -78,6 +86,16 @@ import { styleUrl: './person.component.scss', }) export class PersonComponent { + readonly BOOKMARK_ICON = BOOKMARK_ICON; + readonly BOOKMARK_BORDER_ICON = BOOKMARK_BORDER_ICON; + readonly APARTMENT_ICON = APARTMENT_ICON; + readonly PUBLICATION_ICON = PUBLICATION_ICON; + readonly CITATION_ICON = CITATION_ICON; + readonly TRENDING_UP_ICON = TRENDING_UP_ICON; + readonly VERIFIED_ICON = VERIFIED_ICON; + readonly DESCRIPTION_ICON = DESCRIPTION_ICON; + readonly PERSON_ICON = PERSON_ICON; + private readonly router = inject(Router); private readonly activatedRoute = inject(ActivatedRoute); diff --git a/webapp/src/app/modules/projects/bund-details/bund-details.component.html b/webapp/src/app/modules/projects/bund-details/bund-details.component.html index bd7488e6..3d872734 100644 --- a/webapp/src/app/modules/projects/bund-details/bund-details.component.html +++ b/webapp/src/app/modules/projects/bund-details/bund-details.component.html @@ -2,7 +2,7 @@ @@ -31,18 +31,18 @@ [style.background-color]=" getStatusColor(getStatusDisplay(bundProject.funding_end_date)) "> - circle + {{ CIRCLE_ICON }} {{ getStatusDisplay(bundProject.funding_end_date) }}
@@ -51,7 +51,7 @@
- calendar_today + {{ CALENDAR_ICON }}
{{ bundProject.funding_start_date | date: 'dd.MM.yyyy' @@ -60,7 +60,7 @@
- event_busy + {{ EVENT_BUSY_ICON }}
{{ getFundingStatus(bundProject.funding_end_date) @@ -70,7 +70,7 @@
- access_time + {{ ACCESS_TIME_ICON }}
{{ getStatusDisplay(bundProject.funding_end_date) @@ -80,7 +80,7 @@
@if (bundProject.funding_amount) {
- paid + {{ PAID_ICON }}
{{ bundProject.funding_amount @@ -92,7 +92,7 @@ } @if (bundProject.funding_profile) {
- assignment + {{ ASSIGNMENT_ICON }}
{{ bundProject.funding_profile }} Förderprofil @@ -107,7 +107,7 @@ @if (bundProject.description) {
- description + {{ DESCRIPTION_ICON }}

Beschreibung

{{ bundProject.description }}

@@ -122,7 +122,7 @@ @if (getAssociatedPersons().length > 0) {
- people + {{ PEOPLE_ICON }}

Beteiligte Personen

{{ getAssociatedPersons().length @@ -148,7 +148,7 @@ ) {
- business + {{ BUSINESS_ICON }}

Beteiligte Institution

@@ -234,7 +234,7 @@ ) {
- location_on + {{ LOCATION_ICON }}

Standort

@@ -285,7 +285,7 @@ ) {
- more_info + {{ MORE_INFO_ICON }}

Weitere Informationen

@@ -322,7 +322,7 @@
- info + {{ INFO_ICON }}

Projektdetails

@@ -408,7 +408,7 @@ } @else {
- error_outline + {{ ERROR_OUTLINE_ICON }}

Bund Projekt nicht gefunden.

diff --git a/webapp/src/app/modules/projects/bund-details/bund-details.component.ts b/webapp/src/app/modules/projects/bund-details/bund-details.component.ts index 6a78d422..04edd277 100644 --- a/webapp/src/app/modules/projects/bund-details/bund-details.component.ts +++ b/webapp/src/app/modules/projects/bund-details/bund-details.component.ts @@ -5,6 +5,24 @@ import { MatCardModule } from '@angular/material/card'; import { MatIconModule } from '@angular/material/icon'; import { BundProjectDetails } from '../../../api/model/bundProjectDetails'; import { ProjectOaTopicsComponent } from '../../../shared/ui/project-oa-topics/project-oa-topics.component'; +import { + ACCESS_TIME_ICON, + ACCOUNT_BALANCE_ICON, + ASSIGNMENT_ICON, + BUSINESS_ICON, + CALENDAR_ICON, + CATEGORY_ICON, + CHEVRON_RIGHT_ICON, + CIRCLE_ICON, + DESCRIPTION_ICON, + ERROR_OUTLINE_ICON, + EVENT_BUSY_ICON, + INFO_ICON, + LOCATION_ICON, + MORE_INFO_ICON, + PAID_ICON, + PEOPLE_ICON, +} from '../../../shared/ui/icons'; export interface InstitutionEntry { label: string; @@ -23,6 +41,23 @@ export interface InstitutionEntry { styleUrl: './bund-details.component.scss', }) export class BundDetailsComponent implements OnInit { + readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON; + readonly CIRCLE_ICON = CIRCLE_ICON; + readonly CALENDAR_ICON = CALENDAR_ICON; + readonly EVENT_BUSY_ICON = EVENT_BUSY_ICON; + readonly ACCESS_TIME_ICON = ACCESS_TIME_ICON; + readonly PAID_ICON = PAID_ICON; + readonly ASSIGNMENT_ICON = ASSIGNMENT_ICON; + readonly DESCRIPTION_ICON = DESCRIPTION_ICON; + readonly PEOPLE_ICON = PEOPLE_ICON; + readonly BUSINESS_ICON = BUSINESS_ICON; + readonly LOCATION_ICON = LOCATION_ICON; + readonly MORE_INFO_ICON = MORE_INFO_ICON; + readonly INFO_ICON = INFO_ICON; + readonly ERROR_OUTLINE_ICON = ERROR_OUTLINE_ICON; + readonly ACCOUNT_BALANCE_ICON = ACCOUNT_BALANCE_ICON; + readonly CATEGORY_ICON = CATEGORY_ICON; + private readonly route = inject(ActivatedRoute); bundProject: BundProjectDetails | undefined; diff --git a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.html b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.html index 19c3c6cc..797e273a 100644 --- a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.html +++ b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.html @@ -2,7 +2,7 @@ @@ -34,7 +34,7 @@ [style.background-color]=" getStatusColor(getStatusDisplay(dfgProject.funding_end)) "> - circle + {{ CIRCLE_ICON }} {{ getStatusDisplay(dfgProject.funding_end) }}
@if (dfgProject.page_url) { @@ -42,7 +42,7 @@ [href]="dfgProject.page_url" target="_blank" class="primary-action"> - open_in_new + {{ OPEN_IN_NEW_ICON }} Zum Projekt } @@ -51,7 +51,7 @@ [href]="dfgProject.external_link" target="_blank" class="secondary-action"> - language + {{ LANGUAGE_ICON }} Webseite } @@ -60,21 +60,21 @@
- calendar_today + {{ CALENDAR_ICON }}
{{ dfgProject.funding_start || 'N/A' }} Förderbeginn
- event_busy + {{ EVENT_BUSY_ICON }}
{{ getFundingEndDisplay(dfgProject.funding_end) }} Förderende
- access_time + {{ ACCESS_TIME_ICON }}
{{ getStatusDisplay(dfgProject.funding_end) }} Status @@ -82,7 +82,7 @@
@if (dfgProject.dfg_procedure) {
- gavel + {{ GAVEL_ICON }}
{{ dfgProject.dfg_procedure }} DFG Verfahren @@ -91,7 +91,7 @@ } @if (getFundingType()) {
- paid + {{ PAID_ICON }}
{{ getFundingType() }} Förderung @@ -100,7 +100,7 @@ } @if (getInternationalRelation()) {
- public + {{ PUBLIC_ICON }}
{{ getInternationalRelation() }} Internationaler Bezug @@ -115,7 +115,7 @@ @if (getDescription()) {
- description + {{ DESCRIPTION_ICON }}

Beschreibung

{{ getDescription() }}

@@ -125,7 +125,7 @@ @if (getFinalReportAbstract()) {
- fact_check + {{ FACT_CHECK_ICON }}

Abschlussbericht

{{ getFinalReportAbstract() }}

@@ -146,7 +146,7 @@
- people + {{ PEOPLE_ICON }}

Beteiligte Personen

{{ getPersonCount() }}
@@ -184,7 +184,7 @@
- business + {{ BUSINESS_ICON }}

Beteiligte Institutionen

{{ getInstitutionCount() }}
@@ -196,7 +196,7 @@ searchForInstitutionName(getInstitutionName(institution)) " class="institution-item"> - apartment + {{ APARTMENT_ICON }}
{{ getInstitutionName(institution) }} @if (getInstitutionRoleLabel(institution)) { @@ -220,7 +220,7 @@ @if (getSubprojects().length > 0) {
- account_tree + {{ ACCOUNT_TREE_ICON }}

Teilprojekte

{{ getSubprojects().length }}
@@ -264,7 +264,7 @@ @if (getPublications().length > 0) {
- menu_book + {{ MENU_BOOK_ICON }}

Publikationen

{{ getPublications().length }}
@@ -301,7 +301,7 @@ @if (getWebsiteHtml()) {
- language + {{ LANGUAGE_ICON }}

Projektwebseite

@@ -313,7 +313,7 @@
- info + {{ INFO_ICON }}

Projektdetails

@@ -395,7 +395,7 @@ } @else {
- error_outline + {{ ERROR_OUTLINE_ICON }}

DFG Projekt nicht gefunden.

diff --git a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.ts b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.ts index 2c4eda17..7d41a129 100644 --- a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.ts +++ b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.ts @@ -11,6 +11,28 @@ import { DfgProjectPersonRole } from '../../../api/model/dfgProjectPersonRole'; import { DFGProjectFachgebieteInner } from '../../../api/model/dFGProjectFachgebieteInner'; import { ProjectOaTopicsComponent } from '../../../shared/ui/project-oa-topics/project-oa-topics.component'; import { DfgClassificationComponent } from '../../../shared/ui/dfg-classification/dfg-classification.component'; +import { + ACCESS_TIME_ICON, + ACCOUNT_TREE_ICON, + APARTMENT_ICON, + BUSINESS_ICON, + CALENDAR_ICON, + CHEVRON_RIGHT_ICON, + CIRCLE_ICON, + DESCRIPTION_ICON, + ERROR_OUTLINE_ICON, + EVENT_BUSY_ICON, + FACT_CHECK_ICON, + GAVEL_ICON, + INFO_ICON, + LANGUAGE_ICON, + MENU_BOOK_ICON, + OPEN_IN_NEW_ICON, + PAID_ICON, + PEOPLE_ICON, + PUBLIC_ICON, +} from '../../../shared/ui/icons'; + @Component({ selector: 'app-dfg-details', standalone: true, @@ -25,6 +47,26 @@ import { DfgClassificationComponent } from '../../../shared/ui/dfg-classificatio styleUrl: './dfg-details.component.scss', }) export class DfgDetailsComponent implements OnInit { + readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON; + readonly CIRCLE_ICON = CIRCLE_ICON; + readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON; + readonly LANGUAGE_ICON = LANGUAGE_ICON; + readonly CALENDAR_ICON = CALENDAR_ICON; + readonly EVENT_BUSY_ICON = EVENT_BUSY_ICON; + readonly ACCESS_TIME_ICON = ACCESS_TIME_ICON; + readonly GAVEL_ICON = GAVEL_ICON; + readonly PAID_ICON = PAID_ICON; + readonly PUBLIC_ICON = PUBLIC_ICON; + readonly DESCRIPTION_ICON = DESCRIPTION_ICON; + readonly FACT_CHECK_ICON = FACT_CHECK_ICON; + readonly PEOPLE_ICON = PEOPLE_ICON; + readonly BUSINESS_ICON = BUSINESS_ICON; + readonly APARTMENT_ICON = APARTMENT_ICON; + readonly ACCOUNT_TREE_ICON = ACCOUNT_TREE_ICON; + readonly MENU_BOOK_ICON = MENU_BOOK_ICON; + readonly INFO_ICON = INFO_ICON; + readonly ERROR_OUTLINE_ICON = ERROR_OUTLINE_ICON; + private route = inject(ActivatedRoute); dfgProject: DfgProjectDetails | undefined; diff --git a/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.html b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.html index 5a399ecb..ef5f115e 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.html +++ b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.html @@ -1,14 +1,14 @@
- assignment + {{ ASSIGNMENT_ICON }}

Deliverables ({{ deliverables.length }})

@for (deliv of deliverables; track deliv.url) {
- file_present + {{ FILE_PRESENT_ICON }}
@@ -20,7 +20,7 @@ } @if (deliv.url) { - open_in_new + {{ OPEN_IN_NEW_ICON }} Zum Deliverable } diff --git a/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.ts b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.ts index 99fbd049..260f3461 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.ts +++ b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.ts @@ -4,6 +4,12 @@ import { Router } from '@angular/router'; import { Input } from '@angular/core'; import { MatIcon } from '@angular/material/icon'; import { MatCard } from '@angular/material/card'; +import { + ASSIGNMENT_ICON, + FILE_PRESENT_ICON, + OPEN_IN_NEW_ICON, +} from '../../../../shared/ui/icons'; + @Component({ selector: 'app-deliverables-cards', imports: [MatIcon, MatCard], @@ -11,6 +17,10 @@ import { MatCard } from '@angular/material/card'; styleUrl: './deliverables-cards.component.scss', }) export class DeliverablesCardsComponent { + readonly ASSIGNMENT_ICON = ASSIGNMENT_ICON; + readonly FILE_PRESENT_ICON = FILE_PRESENT_ICON; + readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON; + @Input() deliverables: HEUDeliverable[] = []; @Input() showHeader: boolean = true; @Input() headerTitle: string = 'Deliverables'; diff --git a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.html b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.html index 8340ff10..48c3c755 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.html +++ b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.html @@ -2,7 +2,7 @@ @@ -44,13 +44,13 @@
- circle + {{ CIRCLE_ICON }} {{ getStatusDisplay(euProject.status) }}
} @if (euProject.fundingScheme) {
- assignment + {{ ASSIGNMENT_ICON }} {{ getFundingSchemeDisplay(euProject.fundingScheme) }} @@ -61,7 +61,7 @@ [href]="'https://doi.org/' + euProject.grantDoi" target="_blank" class="doi-link"> - link + {{ LINK_ICON }} DOI: {{ euProject.grantDoi }} } @@ -70,21 +70,21 @@
- calendar_today + {{ CALENDAR_ICON }}
{{ euProject.startDate | date: 'dd.MM.yyyy' }} Förderbeginn
- event_busy + {{ EVENT_BUSY_ICON }}
{{ euProject.endDate | date: 'dd.MM.yyyy' }} Förderende
- access_time + {{ ACCESS_TIME_ICON }}
{{ getFundingStatus(euProject.endDate) }} Status @@ -92,7 +92,7 @@
@if (euProject.ecMaxContribution) {
- euro_symbol + {{ EURO_ICON }}
{{ euProject.ecMaxContribution @@ -104,7 +104,7 @@ } @if (euProject.totalCost) {
- attach_money + {{ ATTACH_MONEY_ICON }}
{{ euProject.totalCost @@ -116,7 +116,7 @@ } @if (euProject.organizationCount !== undefined) {
- business + {{ BUSINESS_ICON }}
{{ euProject.organizationCount }} Organisationen @@ -125,7 +125,7 @@ } @if (euProject.publicationCount !== undefined) {
- description + {{ DESCRIPTION_ICON }}
{{ euProject.publicationCount }} Publikationen @@ -140,7 +140,7 @@ class="tab-btn" [class.active]="activeTab === 'overview'" (click)="setTab('overview')"> - info + {{ INFO_ICON }} Übersicht @@ -170,7 +170,7 @@ [class.active]="activeTab === 'iprs'" [disabled]="!isTabVisible('iprs')" (click)="setTab('iprs')"> - gavel + {{ GAVEL_ICON }} IPRs {{ euProject.iprs?.length ?? 0 }} @@ -180,7 +180,7 @@ [class.active]="activeTab === 'deliverables'" [disabled]="!isTabVisible('deliverables')" (click)="setTab('deliverables')"> - assignment + {{ ASSIGNMENT_ICON }} Deliverables {{ euProject.deliverables?.length ?? 0 }} @@ -196,7 +196,7 @@ @if (euProject.objective) {
- description + {{ DESCRIPTION_ICON }}

Projektziel

{{ euProject.objective }}

@@ -206,7 +206,7 @@ @if (getFormattedTopics(euProject.topics).length > 0) {
- topic + {{ TOPIC_ICON }}

Themen

{{ getFormattedTopics(euProject.topics).length @@ -233,7 +233,7 @@ @if (getKeywordChips().length > 0) {
- tag + {{ TAG_ICON }}

Schlüsselwörter

{{ getKeywordChips().length @@ -263,7 +263,7 @@ @if (euProject.eurosciVoc && euProject.eurosciVoc.length > 0) {
- science + {{ SCIENCE_ICON }}

EuroSciVoc

{{ euProject.eurosciVoc.length @@ -282,9 +282,9 @@ ) { {{ segment }} @if (!$last) { - chevron_right + {{ + CHEVRON_RIGHT_ICON + }} } } } @else { @@ -302,7 +302,9 @@ }} } @if (voc.path) { - search + {{ + SEARCH_ICON + }} }
} @@ -315,7 +317,7 @@
- info + {{ INFO_ICON }}

Projektdetails

@@ -419,7 +421,7 @@
- schedule + {{ SCHEDULE_ICON }}

Zeitliche Übersicht

@@ -456,7 +458,9 @@ target="_blank" class="external-link"> {{ euProject.grantDoi }} - open_in_new + {{ + OPEN_IN_NEW_ICON + }}
@@ -472,7 +476,7 @@ ) {
- person + {{ PERSON_ICON }}

ERC Principal Investigators

{{ euProject.ercPrincipalInvestigators.length @@ -521,7 +525,7 @@ } @else {
- error_outline + {{ ERROR_OUTLINE_ICON }}

EU Projekt nicht gefunden.

diff --git a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.ts b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.ts index 49ddf0fc..3ec3f334 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.ts +++ b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.ts @@ -17,6 +17,31 @@ import { PatentsCardsComponent } from './patents-cards/patents-cards.component'; import { DeliverablesCardsComponent } from './deliverables-cards/deliverables-cards.component'; import { TopicChipComponent } from '../../../shared/ui/topic-chip/topic-chip.component'; import { ProjectOaTopicsComponent } from '../../../shared/ui/project-oa-topics/project-oa-topics.component'; +import { + ACCESS_TIME_ICON, + ARTICLE_ICON, + ASSIGNMENT_ICON, + ATTACH_MONEY_ICON, + BUSINESS_ICON, + CALENDAR_ICON, + CHEVRON_RIGHT_ICON, + CIRCLE_ICON, + DESCRIPTION_ICON, + ERROR_OUTLINE_ICON, + EURO_ICON, + EVENT_BUSY_ICON, + GAVEL_ICON, + INFO_ICON, + LINK_ICON, + OPEN_IN_NEW_ICON, + PERSON_ICON, + SCHEDULE_ICON, + SCIENCE_ICON, + SEARCH_ICON, + TAG_ICON, + TOPIC_ICON, +} from '../../../shared/ui/icons'; + export type TabType = | 'overview' | 'organizations' @@ -47,6 +72,28 @@ export type TabType = styleUrl: './eu-details.component.scss', }) export class EuDetailsComponent implements OnInit, OnDestroy { + readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON; + readonly CIRCLE_ICON = CIRCLE_ICON; + readonly ASSIGNMENT_ICON = ASSIGNMENT_ICON; + readonly LINK_ICON = LINK_ICON; + readonly CALENDAR_ICON = CALENDAR_ICON; + readonly EVENT_BUSY_ICON = EVENT_BUSY_ICON; + readonly ACCESS_TIME_ICON = ACCESS_TIME_ICON; + readonly EURO_ICON = EURO_ICON; + readonly ATTACH_MONEY_ICON = ATTACH_MONEY_ICON; + readonly BUSINESS_ICON = BUSINESS_ICON; + readonly DESCRIPTION_ICON = DESCRIPTION_ICON; + readonly INFO_ICON = INFO_ICON; + readonly GAVEL_ICON = GAVEL_ICON; + readonly TOPIC_ICON = TOPIC_ICON; + readonly TAG_ICON = TAG_ICON; + readonly SCIENCE_ICON = SCIENCE_ICON; + readonly SEARCH_ICON = SEARCH_ICON; + readonly SCHEDULE_ICON = SCHEDULE_ICON; + readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON; + readonly PERSON_ICON = PERSON_ICON; + readonly ERROR_OUTLINE_ICON = ERROR_OUTLINE_ICON; + private readonly route = inject(ActivatedRoute); private readonly router = inject(Router); @@ -72,11 +119,11 @@ export class EuDetailsComponent implements OnInit, OnDestroy { TabType, { label: string; icon: string; order: number } > = { - overview: { label: 'Übersicht', icon: 'info', order: 0 }, - organizations: { label: 'Organisationen', icon: 'business', order: 1 }, - publications: { label: 'Publikationen', icon: 'article', order: 2 }, - iprs: { label: 'IPRs', icon: 'gavel', order: 3 }, - deliverables: { label: 'Ergebnisse', icon: 'assignment', order: 4 }, + overview: { label: 'Übersicht', icon: INFO_ICON, order: 0 }, + organizations: { label: 'Organisationen', icon: BUSINESS_ICON, order: 1 }, + publications: { label: 'Publikationen', icon: ARTICLE_ICON, order: 2 }, + iprs: { label: 'IPRs', icon: GAVEL_ICON, order: 3 }, + deliverables: { label: 'Ergebnisse', icon: ASSIGNMENT_ICON, order: 4 }, }; ngOnInit(): void { diff --git a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.html b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.html index 45101292..82ebed64 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.html +++ b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.html @@ -2,7 +2,7 @@ @if (showHeader) {
- business + {{ BUSINESS_ICON }}

{{ headerTitle }} ({{ getOrgsCount() }})

} @@ -85,7 +85,7 @@ class="link-button" matTooltip="Website öffnen" (click)="$event.stopPropagation()"> - open_in_new + {{ OPEN_IN_NEW_ICON }} Web } @else { diff --git a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.ts b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.ts index bf190a58..a4b8a3ec 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.ts +++ b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.ts @@ -20,6 +20,7 @@ import { GenericColumn, } from '../../../../shared/ui/data-table/data-table.component'; import { CountryFlagComponent } from '../../../../shared/ui/country-flag/country-flag.component'; +import { BUSINESS_ICON, OPEN_IN_NEW_ICON } from '../../../../shared/ui/icons'; @Component({ selector: 'app-organizations-table', @@ -36,6 +37,9 @@ import { CountryFlagComponent } from '../../../../shared/ui/country-flag/country styleUrl: './organizations-table.component.scss', }) export class OrganizationsTableComponent { + readonly BUSINESS_ICON = BUSINESS_ICON; + readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON; + private readonly router = inject(Router); public paginationService = inject(PaginationService); diff --git a/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.html b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.html index f5df4652..b60c1d73 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.html +++ b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.html @@ -1,7 +1,7 @@
- gavel + {{ GAVEL_ICON }}

Intellectual Property Rights ({{ patents.length }})

@@ -9,9 +9,9 @@
@if (ipr.type === 'PATENT') { - emoji_events + {{ EMOJI_EVENTS_ICON }} } @else { - copyright + {{ COPYRIGHT_ICON }} }
diff --git a/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.ts b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.ts index 248c91a4..20e53927 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.ts +++ b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.ts @@ -4,6 +4,12 @@ import { Router } from '@angular/router'; import { Input } from '@angular/core'; import { MatIcon } from '@angular/material/icon'; import { MatCard } from '@angular/material/card'; +import { + COPYRIGHT_ICON, + EMOJI_EVENTS_ICON, + GAVEL_ICON, +} from '../../../../shared/ui/icons'; + @Component({ selector: 'app-patents-cards', imports: [MatIcon, MatCard], @@ -11,6 +17,10 @@ import { MatCard } from '@angular/material/card'; styleUrl: './patents-cards.component.scss', }) export class PatentsCardsComponent { + readonly GAVEL_ICON = GAVEL_ICON; + readonly EMOJI_EVENTS_ICON = EMOJI_EVENTS_ICON; + readonly COPYRIGHT_ICON = COPYRIGHT_ICON; + @Input() patents: Fp7ProjectIPR[] = []; @Input() showHeader: boolean = true; @Input() headerTitle: string = 'IPRs'; diff --git a/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.html b/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.html index 0a3d5296..0601a3b7 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.html +++ b/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.html @@ -2,7 +2,7 @@ @if (showHeader) {
- description + {{ DESCRIPTION_ICON }}

{{ headerTitle }} ({{ getPublicationCount() }})

} @@ -86,7 +86,7 @@ class="link-button doi-link" matTooltip="DOI öffnen" (click)="$event.stopPropagation()"> - link + {{ LINK_ICON }} DOI } @@ -98,7 +98,7 @@ class="link-button" matTooltip="Repository öffnen" (click)="$event.stopPropagation()"> - folder_open + {{ FOLDER_OPEN_ICON }} Repo } @@ -110,7 +110,7 @@ class="link-button" matTooltip="Publikation öffnen" (click)="$event.stopPropagation()"> - article + {{ ARTICLE_ICON }} Link } diff --git a/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.ts b/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.ts index 840fe398..79eb88ad 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.ts +++ b/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.ts @@ -21,6 +21,12 @@ import { GenericColumn, } from '../../../../shared/ui/data-table/data-table.component'; import { ChipOverflowToggleComponent } from '../../../../shared/ui/chip-overflow-toggle/chip-overflow-toggle.component'; +import { + ARTICLE_ICON, + DESCRIPTION_ICON, + FOLDER_OPEN_ICON, + LINK_ICON, +} from '../../../../shared/ui/icons'; @Component({ selector: 'app-publications-table', @@ -38,6 +44,11 @@ import { ChipOverflowToggleComponent } from '../../../../shared/ui/chip-overflow styleUrl: './publications-table.component.scss', }) export class PublicationsTableComponent { + readonly DESCRIPTION_ICON = DESCRIPTION_ICON; + readonly LINK_ICON = LINK_ICON; + readonly FOLDER_OPEN_ICON = FOLDER_OPEN_ICON; + readonly ARTICLE_ICON = ARTICLE_ICON; + private router = inject(Router); public paginationService = inject(PaginationService); diff --git a/webapp/src/app/modules/projects/projects.component.ts b/webapp/src/app/modules/projects/projects.component.ts index 699be446..d76f2d45 100644 --- a/webapp/src/app/modules/projects/projects.component.ts +++ b/webapp/src/app/modules/projects/projects.component.ts @@ -15,6 +15,7 @@ import { } from '../../shared/ui/card-search/card-search.component'; import { FilterObserver } from '../../shared/ui/selected-filters/selected-filters.component'; import { FilterCardComponent } from '../../shared/ui/filter-card/filter-card.component'; +import { SEARCH_ICON } from '../../shared/ui/icons'; @Component({ selector: 'app-projects', @@ -48,7 +49,7 @@ export class ProjectsComponent { { id: 'name', queryParamKey: 'search', - icon: 'search', + icon: SEARCH_ICON, }, ]; diff --git a/webapp/src/app/modules/publication-detail/publication-detail.component.html b/webapp/src/app/modules/publication-detail/publication-detail.component.html index f93244f8..95f4edd6 100644 --- a/webapp/src/app/modules/publication-detail/publication-detail.component.html +++ b/webapp/src/app/modules/publication-detail/publication-detail.component.html @@ -4,19 +4,19 @@ class="back-link" (click)="navigateBack()" [attr.aria-label]="returnAriaLabel"> - arrow_back + {{ ARROW_BACK_ICON }} {{ returnLabel }} @if (loading) { } @else if (notFound || !publication) {
- search_off + {{ SEARCH_OFF_ICON }}

Publikation nicht gefunden

Die Publikation konnte nicht geladen werden.

Zur Personensuche @@ -76,7 +76,7 @@ target="_blank" rel="noopener"> {{ link.label }} - open_in_new + {{ OPEN_IN_NEW_ICON }} }
@@ -84,12 +84,12 @@
- format_quote + {{ CITATION_ICON }} {{ publication.cited_by_count ?? 0 | number }} Zitationen
- menu_book + {{ MENU_BOOK_ICON }} {{ publication.referenced_works_count ?? 0 | number }} @@ -97,7 +97,7 @@
{{ - publication.open_access?.is_oa ? 'lock_open' : 'lock' + publication.open_access?.is_oa ? LOCK_OPEN_ICON : LOCK_ICON }} {{ publication.open_access?.is_oa ? 'Ja' : 'Nein' }} Open Access @@ -107,7 +107,7 @@ @if (publication.is_retracted) {
- warning + {{ WARNING_ICON }} Diese Publikation wurde zurückgezogen.
} @@ -117,7 +117,7 @@ @if (abstractText(); as abstract) {
- subject + {{ SUBJECT_ICON }}

Abstract

{{ abstract }}

@@ -130,21 +130,21 @@ class="accordion-header" (click)="authorsExpanded = !authorsExpanded" [attr.aria-expanded]="authorsExpanded"> - group + {{ GROUP_ICON }} Autorinnen und Autoren info_outline{{ INFO_OUTLINE_ICON }} @if (authors().length) { {{ authors().length }} } - expand_more + {{ + EXPAND_MORE_ICON + }} @if (authorsExpanded) {
@@ -201,7 +201,7 @@ class="page-btn" [disabled]="authorsPage === 0" (click)="authorsPage = authorsPage - 1"> - chevron_left + {{ CHEVRON_LEFT_ICON }} {{ authorsPage + 1 }} / {{ authorsPageCount() }} - chevron_right + {{ CHEVRON_RIGHT_ICON }}
} @@ -224,7 +224,7 @@ @if (publication.topics?.length) {
- label + {{ LABEL_ICON }}

Themen

@@ -248,7 +248,7 @@ @if (publication.keywords?.length) {
- interests + {{ INTERESTS_ICON }}

Keywords

@@ -266,19 +266,19 @@ class="accordion-header" (click)="sourcesExpanded = !sourcesExpanded" [attr.aria-expanded]="sourcesExpanded"> - library_books + {{ LIBRARY_BOOKS_ICON }} Quellen und Versionen info_outline{{ INFO_OUTLINE_ICON }} {{ sources().length }} - expand_more + {{ + EXPAND_MORE_ICON + }} @if (sourcesExpanded) {
@@ -316,7 +316,7 @@ target="_blank" rel="noopener" aria-label="Quelle öffnen"> - open_in_new + {{ OPEN_IN_NEW_ICON }} }
@@ -332,7 +332,7 @@
} @@ -460,19 +462,19 @@ class="accordion-header" (click)="fundingExpanded = !fundingExpanded" [attr.aria-expanded]="fundingExpanded"> - paid + {{ PAID_ICON }} Förderungen info_outline{{ INFO_OUTLINE_ICON }} {{ fundingCount() }} - expand_more + {{ + EXPAND_MORE_ICON + }} @if (fundingExpanded) {
@@ -506,19 +508,19 @@ class="accordion-header" (click)="linksExpanded = !linksExpanded" [attr.aria-expanded]="linksExpanded"> - link + {{ LINK_ICON }} Externe Links info_outline{{ INFO_OUTLINE_ICON }} {{ externalLinks().length }} - expand_more + {{ + EXPAND_MORE_ICON + }} @if (linksExpanded) {
@@ -526,7 +528,7 @@ @for (link of externalLinks(); track link.url) { {{ link.label }} - north_east + {{ NORTH_EAST_ICON }} }
diff --git a/webapp/src/app/modules/publication-detail/publication-detail.component.ts b/webapp/src/app/modules/publication-detail/publication-detail.component.ts index f9c8f3e6..b8d02040 100644 --- a/webapp/src/app/modules/publication-detail/publication-detail.component.ts +++ b/webapp/src/app/modules/publication-detail/publication-detail.component.ts @@ -23,6 +23,30 @@ import { WorkTypePipe } from '../../shared/pipes/work-type.pipe'; import { LanguageCodePipe } from '../../shared/pipes/language-code.pipe'; import { WorkPrimaryCategoryPipe } from '../../shared/pipes/work-primary-category.pipe'; import { ResearchProfileComponent } from './research-profile/research-profile.component'; +import { + ACCOUNT_BALANCE_ICON, + ARROW_BACK_ICON, + CHEVRON_LEFT_ICON, + CHEVRON_RIGHT_ICON, + CITATION_ICON, + EXPAND_MORE_ICON, + GROUP_ICON, + INFO_ICON, + INFO_OUTLINE_ICON, + INTERESTS_ICON, + LABEL_ICON, + LIBRARY_BOOKS_ICON, + LINK_ICON, + LOCK_ICON, + LOCK_OPEN_ICON, + MENU_BOOK_ICON, + NORTH_EAST_ICON, + OPEN_IN_NEW_ICON, + PAID_ICON, + SEARCH_OFF_ICON, + SUBJECT_ICON, + WARNING_ICON, +} from '../../shared/ui/icons'; interface DetailLink { label: string; @@ -57,6 +81,29 @@ interface InstitutionDetail { styleUrl: './publication-detail.component.scss', }) export class PublicationDetailComponent implements OnInit { + readonly ARROW_BACK_ICON = ARROW_BACK_ICON; + readonly MENU_BOOK_ICON = MENU_BOOK_ICON; + readonly SEARCH_OFF_ICON = SEARCH_OFF_ICON; + readonly OPEN_IN_NEW_ICON = OPEN_IN_NEW_ICON; + readonly CITATION_ICON = CITATION_ICON; + readonly LOCK_ICON = LOCK_ICON; + readonly LOCK_OPEN_ICON = LOCK_OPEN_ICON; + readonly WARNING_ICON = WARNING_ICON; + readonly SUBJECT_ICON = SUBJECT_ICON; + readonly GROUP_ICON = GROUP_ICON; + readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON; + readonly EXPAND_MORE_ICON = EXPAND_MORE_ICON; + readonly CHEVRON_LEFT_ICON = CHEVRON_LEFT_ICON; + readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON; + readonly LABEL_ICON = LABEL_ICON; + readonly INTERESTS_ICON = INTERESTS_ICON; + readonly LIBRARY_BOOKS_ICON = LIBRARY_BOOKS_ICON; + readonly INFO_ICON = INFO_ICON; + readonly ACCOUNT_BALANCE_ICON = ACCOUNT_BALANCE_ICON; + readonly PAID_ICON = PAID_ICON; + readonly LINK_ICON = LINK_ICON; + readonly NORTH_EAST_ICON = NORTH_EAST_ICON; + private readonly destroyRef = inject(DestroyRef); private readonly route = inject(ActivatedRoute); private readonly httpClient = inject(HttpClient); diff --git a/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.html b/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.html index 86867314..ee20fd3b 100644 --- a/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.html +++ b/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.html @@ -1,7 +1,7 @@ @if (details(); as profile) { - science + {{ SCIENCE_ICON }}
Forschungsprofil @@ -67,7 +67,7 @@ matTooltipPosition="above" (click)="$event.stopPropagation()" aria-label="Erläuterung zur Konfidenz"> - info_outline + {{ INFO_OUTLINE_ICON }} } @@ -81,7 +81,7 @@ matTooltipPosition="above" (click)="$event.stopPropagation()" aria-label="Erläuterung zur Informationsgrundlage"> - info_outline + {{ INFO_OUTLINE_ICON }} } diff --git a/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.ts b/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.ts index 188b5fa6..ed8d47f7 100644 --- a/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.ts +++ b/webapp/src/app/modules/publication-detail/research-profile/research-profile.component.ts @@ -21,6 +21,7 @@ import { WorkPrimaryCategoryPipe } from '../../../shared/pipes/work-primary-cate import { ChartThemeService } from '../../../shared/services/chart-theme.service'; import { OrientationGaugeComponent } from '../../../shared/ui/orientation-gauge/orientation-gauge.component'; import { TopicChipComponent } from '../../../shared/ui/topic-chip/topic-chip.component'; +import { INFO_OUTLINE_ICON, SCIENCE_ICON } from '../../../shared/ui/icons'; type PasteurQuadrant = | 'pure_basic' @@ -83,6 +84,9 @@ const QUADRANTS: readonly QuadrantDefinition[] = [ styleUrl: './research-profile.component.scss', }) export class ResearchProfileComponent { + readonly SCIENCE_ICON = SCIENCE_ICON; + readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON; + private readonly destroyRef = inject(DestroyRef); private readonly chartTheme = inject(ChartThemeService); private readonly quadrantChartSize = signal({ width: 640, height: 320 }); diff --git a/webapp/src/app/modules/reset-password/reset-password.component.html b/webapp/src/app/modules/reset-password/reset-password.component.html index b988a501..bf4fc4f9 100644 --- a/webapp/src/app/modules/reset-password/reset-password.component.html +++ b/webapp/src/app/modules/reset-password/reset-password.component.html @@ -9,7 +9,7 @@ @if (passwordChanged()) {