feature/keywords-analysis #276
@@ -42,11 +42,10 @@ export const appConfig: ApplicationConfig = {
|
||||
withNavigationErrorHandler((navigationError: NavigationError) => {
|
||||
const router = inject(Router);
|
||||
const errorService = inject(ErrorService);
|
||||
const targetUrl = navigationError.url;
|
||||
|
||||
if (
|
||||
router.url.includes('/error') ||
|
||||
router.currentNavigation()?.extractedUrl.toString().includes('/error')
|
||||
) {
|
||||
// Prevent an endless loop if navigation to /error itself fails.
|
||||
if (targetUrl.startsWith('/error')) {
|
||||
console.error(
|
||||
'Kritischer Fehler beim Laden der Fehlerseite selbst:',
|
||||
navigationError,
|
||||
@@ -56,21 +55,14 @@ export const appConfig: ApplicationConfig = {
|
||||
|
||||
console.error('Fehler beim Navigieren:', navigationError);
|
||||
|
||||
const error = navigationError.error;
|
||||
let errorMessage: string = 'Unbekannter Fehler';
|
||||
if (error instanceof HttpErrorResponse) {
|
||||
errorMessage = error.error?.message || 'Unbekannter HTTP-Fehler';
|
||||
}
|
||||
|
||||
errorService.setError({
|
||||
statusCode: error.status || 500,
|
||||
title: 'Daten-Fehler',
|
||||
message: 'Die Daten für diese Ansicht konnten nicht geladen werden.',
|
||||
errorDetails: errorMessage,
|
||||
errorService.report(navigationError.error, {
|
||||
title: 'Daten konnten nicht geladen werden',
|
||||
message:
|
||||
'Die Daten für diese Ansicht konnten nicht geladen werden. Bitte versuchen Sie es später erneut.',
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
router.navigate(['/error'], { replaceUrl: true });
|
||||
void router.navigate(['/error'], {
|
||||
replaceUrl: true,
|
||||
});
|
||||
}),
|
||||
),
|
||||
|
||||
@@ -1,35 +1,63 @@
|
||||
<div class="error-container">
|
||||
<mat-card class="error-card" appearance="outlined">
|
||||
<mat-card
|
||||
class="error-card"
|
||||
appearance="outlined"
|
||||
role="alert"
|
||||
aria-labelledby="error-title"
|
||||
aria-describedby="error-message">
|
||||
<mat-card-content class="error-content">
|
||||
<div class="icon-wrapper">
|
||||
<div class="icon-wrapper" aria-hidden="true">
|
||||
<mat-icon class="error-icon">warning</mat-icon>
|
||||
</div>
|
||||
|
||||
<span class="status-code">Fehler {{ statusCode() }}</span>
|
||||
<h1 class="error-title">{{ title() }}</h1>
|
||||
<p class="error-message">{{ message() }}</p>
|
||||
<span class="status-code"> Fehler {{ error().statusCode }} </span>
|
||||
|
||||
<button
|
||||
class="back-button"
|
||||
mat-flat-button
|
||||
color="primary"
|
||||
(click)="goBack()">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
Zurück
|
||||
</button>
|
||||
<h1 id="error-title" class="error-title">
|
||||
{{ error().title }}
|
||||
</h1>
|
||||
|
||||
@if (errorDetails()) {
|
||||
<p id="error-message" class="error-message">
|
||||
{{ error().message }}
|
||||
</p>
|
||||
|
||||
@if (error().referenceId; as referenceId) {
|
||||
<p class="reference-id">
|
||||
Referenznummer:
|
||||
<code>{{ referenceId }}</code>
|
||||
</p>
|
||||
}
|
||||
|
||||
<div class="error-actions">
|
||||
<button
|
||||
class="back-button"
|
||||
mat-flat-button
|
||||
color="primary"
|
||||
type="button"
|
||||
(click)="goBack()">
|
||||
<mat-icon aria-hidden="true">arrow_back</mat-icon>
|
||||
Zurück
|
||||
</button>
|
||||
|
||||
<a mat-button routerLink="/" aria-label="Zur Startseite">
|
||||
<mat-icon aria-hidden="true">home</mat-icon>
|
||||
Startseite
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@if (error().errorDetails; as details) {
|
||||
<mat-expansion-panel
|
||||
class="diagnostics-panel"
|
||||
elevation="0"
|
||||
appearance="outlined">
|
||||
appearance="outlined"
|
||||
(opened)="isDetailsOpen.set(true)"
|
||||
(closed)="isDetailsOpen.set(false)">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title class="diagnostics-title">
|
||||
ERWEITERTE DIAGNOSE
|
||||
Erweiterte Diagnose
|
||||
</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
|
||||
<pre class="diagnostics-code">{{ errorDetails() }}</pre>
|
||||
<pre class="diagnostics-code">{{ details }}</pre>
|
||||
</mat-expansion-panel>
|
||||
}
|
||||
</mat-card-content>
|
||||
|
||||
@@ -1,56 +1,71 @@
|
||||
import { Component, input, OnInit, signal, inject } from '@angular/core';
|
||||
import {
|
||||
Component,
|
||||
computed,
|
||||
inject,
|
||||
input,
|
||||
numberAttribute,
|
||||
signal,
|
||||
} from '@angular/core';
|
||||
import { Location } from '@angular/common';
|
||||
import { Router } from '@angular/router';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatExpansionModule } from '@angular/material/expansion';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { ErrorService } from '../../shared/services/error.service';
|
||||
|
||||
import { ErrorService, ErrorState } from '../../shared/services/error.service';
|
||||
import { RouterLink } from '@angular/router';
|
||||
@Component({
|
||||
selector: 'app-error-page',
|
||||
standalone: true,
|
||||
imports: [MatButtonModule, MatCardModule, MatIconModule, MatExpansionModule],
|
||||
imports: [
|
||||
MatButtonModule,
|
||||
MatCardModule,
|
||||
MatIconModule,
|
||||
MatExpansionModule,
|
||||
RouterLink,
|
||||
],
|
||||
templateUrl: './error-page.component.html',
|
||||
styleUrl: './error-page.component.scss',
|
||||
})
|
||||
export class ErrorPageComponent implements OnInit {
|
||||
routeStatusCode = input<number>(500);
|
||||
routeTitle = input<string>('Da ist was schiefgelaufen');
|
||||
routeMessage = input<string>(
|
||||
export class ErrorPageComponent {
|
||||
readonly routeStatusCode = input(500, { transform: numberAttribute });
|
||||
readonly routeTitle = input('Da ist was schiefgelaufen');
|
||||
readonly routeMessage = input(
|
||||
'Ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es später erneut.',
|
||||
);
|
||||
routeErrorDetails = input<string | undefined>(undefined);
|
||||
readonly routeErrorDetails = input<string | undefined>();
|
||||
|
||||
statusCode = signal<number>(500);
|
||||
title = signal<string>('');
|
||||
message = signal<string>('');
|
||||
errorDetails = signal<string | undefined>(undefined);
|
||||
|
||||
isDetailsOpen = signal<boolean>(false);
|
||||
readonly isDetailsOpen = signal(false);
|
||||
|
||||
private readonly errorService = inject(ErrorService);
|
||||
private readonly location = inject(Location);
|
||||
private readonly router = inject(Router);
|
||||
|
||||
ngOnInit() {
|
||||
const savedError = this.errorService.getError();
|
||||
readonly error = signal<ErrorState>(
|
||||
this.errorService.consumeError() ?? {
|
||||
statusCode: 500,
|
||||
title: 'Da ist was schiefgelaufen',
|
||||
message:
|
||||
'Ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es später erneut.',
|
||||
},
|
||||
);
|
||||
readonly routeError = computed<ErrorState>(() => ({
|
||||
statusCode: this.routeStatusCode(),
|
||||
title: this.routeTitle(),
|
||||
message: this.routeMessage(),
|
||||
errorDetails: this.routeErrorDetails(),
|
||||
}));
|
||||
|
||||
if (savedError) {
|
||||
this.statusCode.set(savedError.statusCode);
|
||||
this.title.set(savedError.title);
|
||||
this.message.set(savedError.message);
|
||||
this.errorDetails.set(savedError.errorDetails);
|
||||
this.errorService.clearError(); // Speicher aufräumen
|
||||
} else {
|
||||
this.statusCode.set(this.routeStatusCode());
|
||||
this.title.set(this.routeTitle());
|
||||
this.message.set(this.routeMessage());
|
||||
this.errorDetails.set(this.routeErrorDetails());
|
||||
}
|
||||
}
|
||||
|
||||
toggleDetails() {
|
||||
toggleDetails(): void {
|
||||
this.isDetailsOpen.update((isOpen) => !isOpen);
|
||||
}
|
||||
|
||||
goBack() {
|
||||
window.history.back();
|
||||
goBack(): void {
|
||||
if (history.length > 1) {
|
||||
this.location.back();
|
||||
return;
|
||||
}
|
||||
|
||||
void this.router.navigateByUrl('/');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<article class="person-card">
|
||||
<article class="person-card popup">
|
||||
<a [routerLink]="['/person', person().id, 'overview']" class="card-header">
|
||||
<!-- Initials Avatar or Profile Image fallback -->
|
||||
<div [skText]="loading()" class="avatar">
|
||||
|
||||
@@ -14,38 +14,7 @@
|
||||
</div>
|
||||
|
||||
<ng-template #cardTmp let-element>
|
||||
<mat-card
|
||||
class="card"
|
||||
appearance="outlined"
|
||||
[routerLink]="getDetaiLink(element)">
|
||||
<mat-card-header>
|
||||
<mat-card-title>{{ element.title }}</mat-card-title>
|
||||
<mat-card-subtitle>{{ element.type | uppercase }}</mat-card-subtitle>
|
||||
</mat-card-header>
|
||||
|
||||
<mat-card-content class="card-content">
|
||||
<mat-divider />
|
||||
<div class="card-metadata">
|
||||
<span
|
||||
>Von {{ element.start_date | date: 'dd.MM.yyyy' }} bis
|
||||
{{ element.end_date | date: 'dd.MM.yyyy' }}</span
|
||||
>
|
||||
</div>
|
||||
<mat-divider />
|
||||
</mat-card-content>
|
||||
|
||||
<mat-card-footer>
|
||||
<mat-card-actions>
|
||||
<a
|
||||
mat-button
|
||||
[routerLink]="getDetaiLink(element)"
|
||||
(click)="$event.stopPropagation()">
|
||||
<mat-icon>info</mat-icon>
|
||||
Übersicht
|
||||
</a>
|
||||
</mat-card-actions>
|
||||
</mat-card-footer>
|
||||
</mat-card>
|
||||
<app-project-card [project]="element" />
|
||||
</ng-template>
|
||||
|
||||
<ng-template #additionalFiltersTmp>
|
||||
|
||||
@@ -4,57 +4,3 @@
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.cards {
|
||||
display: grid;
|
||||
gap: 1.5rem;
|
||||
grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 0.5rem;
|
||||
background-color: var(--sg-background);
|
||||
transition: transform 0.3s ease;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
cursor: pointer;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.card-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
gap: 0.5rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.card-metadata {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.2rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--sg-text-secondary);
|
||||
}
|
||||
|
||||
mat-card-actions {
|
||||
padding-top: 0.5rem;
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
mat-card-actions a {
|
||||
width: 100%;
|
||||
text-decoration: none;
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: var(--sg-radius-sm);
|
||||
}
|
||||
|
||||
.mat-mdc-standard-chip {
|
||||
border-radius: var(--sg-radius-sm);
|
||||
}
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import { Component, computed, input, signal } from '@angular/core';
|
||||
import { FundingProject, FundingProjectPage, ProjectType } from '../../api';
|
||||
import { FundingProjectPage, ProjectType } from '../../api';
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { DatePipe, UpperCasePipe } from '@angular/common';
|
||||
import { MatChipListboxChange, MatChipsModule } from '@angular/material/chips';
|
||||
|
||||
import { AppProjectCardComponent } from '../../shared/ui/app-project-card/app-project-card.component';
|
||||
import { SelectorOption } from '../../shared/ui/query-param-selector/query-param-selector.component';
|
||||
import {
|
||||
CardSearchComponent,
|
||||
@@ -24,10 +23,9 @@ import { FilterObserver } from '../../shared/ui/selected-filters/selected-filter
|
||||
MatCardModule,
|
||||
RouterModule,
|
||||
MatButtonModule,
|
||||
UpperCasePipe,
|
||||
DatePipe,
|
||||
MatChipsModule,
|
||||
CardSearchComponent,
|
||||
AppProjectCardComponent,
|
||||
],
|
||||
templateUrl: './projects.component.html',
|
||||
styleUrl: './projects.component.scss',
|
||||
@@ -83,17 +81,4 @@ export class ProjectsComponent {
|
||||
queryParamsHandling: 'merge',
|
||||
});
|
||||
}
|
||||
|
||||
getDetaiLink(fundingProject: FundingProject): string | null {
|
||||
if (fundingProject.type === 'bund') {
|
||||
const encodedId = encodeURIComponent(fundingProject.id);
|
||||
return '/projects/bund/' + encodedId;
|
||||
} else if (fundingProject.type === 'dfg') {
|
||||
return '/projects/dfg/' + fundingProject.id;
|
||||
} else if (fundingProject.type === 'eu') {
|
||||
return '/projects/eu/' + fundingProject.id;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -195,11 +195,9 @@ export const uniTrendResolver: ResolveFn<UniTrendResolvedData> = (
|
||||
return res;
|
||||
}),
|
||||
catchError((err) => {
|
||||
errorService.setError({
|
||||
statusCode: err?.status || 500,
|
||||
errorService.report(err, {
|
||||
title: 'Visualisierungs-Fehler',
|
||||
message: 'Trenddaten konnten nicht geladen werden.',
|
||||
errorDetails: err?.message || String(err),
|
||||
});
|
||||
return of(null);
|
||||
}),
|
||||
|
||||
@@ -1,27 +1,82 @@
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
import { Injectable, signal } from '@angular/core';
|
||||
|
||||
export interface ErrorState {
|
||||
statusCode: number;
|
||||
title: string;
|
||||
message: string;
|
||||
referenceId?: string;
|
||||
errorDetails?: string;
|
||||
}
|
||||
|
||||
export interface ErrorOptions {
|
||||
title?: string;
|
||||
message?: string;
|
||||
referenceId?: string;
|
||||
}
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ErrorService {
|
||||
private readonly errorSignal = signal<ErrorState | null>(null);
|
||||
|
||||
setError(error: ErrorState): void {
|
||||
this.errorSignal.set(error);
|
||||
readonly error = this.errorSignal.asReadonly();
|
||||
|
||||
report(error: unknown, options: ErrorOptions = {}): ErrorState {
|
||||
const state: ErrorState = {
|
||||
statusCode: this.getStatusCode(error),
|
||||
title: options.title ?? 'Da ist was schiefgelaufen',
|
||||
message:
|
||||
options.message ??
|
||||
'Ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es später erneut.',
|
||||
referenceId: options.referenceId,
|
||||
errorDetails: this.getDebugDetails(error) || undefined,
|
||||
};
|
||||
|
||||
this.errorSignal.set(state);
|
||||
return state;
|
||||
}
|
||||
|
||||
consumeError(): ErrorState | null {
|
||||
const error = this.errorSignal();
|
||||
this.errorSignal.set(null);
|
||||
return error;
|
||||
}
|
||||
|
||||
clearError(): void {
|
||||
this.errorSignal.set(null);
|
||||
}
|
||||
|
||||
getError(): ErrorState | null {
|
||||
return this.errorSignal();
|
||||
private getStatusCode(error: unknown): number {
|
||||
if (error instanceof HttpErrorResponse) {
|
||||
return error.status >= 400 && error.status <= 599 ? error.status : 500;
|
||||
}
|
||||
|
||||
return 500;
|
||||
}
|
||||
|
||||
private getDebugDetails(error: unknown): string {
|
||||
if (error instanceof HttpErrorResponse) {
|
||||
const apiDetail =
|
||||
typeof error.error === 'object' &&
|
||||
error.error !== null &&
|
||||
'detail' in error.error &&
|
||||
typeof error.error.detail === 'string'
|
||||
? error.error.detail
|
||||
: undefined;
|
||||
|
||||
return apiDetail ?? error.message;
|
||||
}
|
||||
|
||||
if (error instanceof Error) {
|
||||
return error.stack ?? error.message;
|
||||
}
|
||||
|
||||
try {
|
||||
return JSON.stringify(error, null, 2);
|
||||
} catch {
|
||||
return String(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<mat-card
|
||||
class="card-content"
|
||||
class="card-content popup"
|
||||
appearance="outlined"
|
||||
[routerLink]="
|
||||
institution().id
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
<mat-card
|
||||
class="card-content popup"
|
||||
appearance="outlined"
|
||||
[routerLink]="getDetailLink(project())">
|
||||
<mat-card-header>
|
||||
<mat-card-title>{{ project().title }}</mat-card-title>
|
||||
<mat-card-subtitle class="subtitle">
|
||||
{{ project().type | uppercase }}</mat-card-subtitle
|
||||
>
|
||||
</mat-card-header>
|
||||
|
||||
<mat-divider />
|
||||
|
||||
<mat-card-content class="mat-card-content">
|
||||
<div class="metrics">
|
||||
<div class="metric-item">
|
||||
<mat-icon>date_range</mat-icon>
|
||||
<span
|
||||
>Von {{ project().start_date | date: 'dd.MM.yyyy' }} bis
|
||||
{{ project().end_date | date: 'dd.MM.yyyy' }}</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
|
||||
<mat-divider />
|
||||
|
||||
<mat-card-footer>
|
||||
<mat-card-actions class="card-actions">
|
||||
<a
|
||||
class="card-action"
|
||||
[routerLink]="getDetailLink(project())"
|
||||
matButton="outlined"
|
||||
(click)="$event.stopPropagation()">
|
||||
<mat-icon>open_in_new</mat-icon>
|
||||
Öffnen
|
||||
</a>
|
||||
</mat-card-actions>
|
||||
</mat-card-footer>
|
||||
</mat-card>
|
||||
@@ -0,0 +1,43 @@
|
||||
.card-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.metrics {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.metric-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
color: var(--sg-text-muted);
|
||||
}
|
||||
|
||||
.card-actions {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.card-action {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mat-card-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
height: 100%;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
import { Component, input } from '@angular/core';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { FundingProject } from '../../../api';
|
||||
import { DatePipe, UpperCasePipe } from '@angular/common';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
@Component({
|
||||
selector: 'app-project-card',
|
||||
imports: [
|
||||
MatCardModule,
|
||||
DatePipe,
|
||||
UpperCasePipe,
|
||||
RouterLink,
|
||||
MatDividerModule,
|
||||
MatIconModule,
|
||||
MatButtonModule,
|
||||
],
|
||||
templateUrl: './app-project-card.component.html',
|
||||
styleUrl: './app-project-card.component.scss',
|
||||
})
|
||||
export class AppProjectCardComponent {
|
||||
project = input.required<FundingProject>();
|
||||
|
||||
getDetailLink(fundingProject: FundingProject): string | null {
|
||||
if (fundingProject.type === 'bund') {
|
||||
const encodedId = encodeURIComponent(fundingProject.id);
|
||||
return '/projects/bund/' + encodedId;
|
||||
} else if (fundingProject.type === 'dfg') {
|
||||
return '/projects/dfg/' + fundingProject.id;
|
||||
} else if (fundingProject.type === 'eu') {
|
||||
return '/projects/eu/' + fundingProject.id;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
@let work = this.work();
|
||||
|
||||
<mat-card
|
||||
class="card-content"
|
||||
class="card-content popup"
|
||||
appearance="outlined"
|
||||
[routerLink]="work.id ? ['/topic', stripOpenAlexId(work.id)] : null">
|
||||
<mat-card-header>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@let topic = this.topic();
|
||||
|
||||
<mat-card
|
||||
class="card-content"
|
||||
class="card-content popup"
|
||||
appearance="outlined"
|
||||
[routerLink]="topic.id ? ['/topic', stripOpenAlexId(topic.id)] : null">
|
||||
<mat-card-header>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<mat-card
|
||||
class="card"
|
||||
class="card popup"
|
||||
appearance="outlined"
|
||||
[routerLink]="['/news', article().id]">
|
||||
<mat-card-header>
|
||||
|
||||
@@ -467,7 +467,21 @@ html.dark-theme {
|
||||
--mat-icon-button-disabled-icon-color: rgba(255, 255, 255, 0.35);
|
||||
--mat-icon-button-icon-color: #ffffff;
|
||||
}
|
||||
.popup {
|
||||
animation: popup 250ms ease-out;
|
||||
}
|
||||
|
||||
@keyframes popup {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.8);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
/* Theme-aware text skeleton */
|
||||
.sk-text-loading {
|
||||
display: inline-block;
|
||||
|
||||
Reference in New Issue
Block a user