Fixed smaller rounting bugs

This commit is contained in:
2026-02-02 08:56:51 +01:00
parent 3a13d62c9e
commit 01f66d4b8f
2 changed files with 7 additions and 6 deletions

View File

@@ -8,31 +8,31 @@ export class RouterConstants {
static readonly ABOUT = { static readonly ABOUT = {
PATH: 'about', PATH: 'about',
LINK: ['/about'] as const, LINK: '/about',
COMPONENT: AboutComponent COMPONENT: AboutComponent
}; };
static readonly PROJECTS = { static readonly PROJECTS = {
PATH: 'projects', PATH: 'projects',
LINK: ['/projects'] as const, LINK: '/projects',
COMPONENT: ProjectsComponent COMPONENT: ProjectsComponent
}; };
static readonly ALGORITHMS = { static readonly ALGORITHMS = {
PATH: 'algorithms', PATH: 'algorithms',
LINK: ['/algorithms'] as const, LINK: '/algorithms',
COMPONENT: AlgorithmsComponent COMPONENT: AlgorithmsComponent
}; };
static readonly PATHFINDING = { static readonly PATHFINDING = {
PATH: 'algorithms/pathfinding', PATH: 'algorithms/pathfinding',
LINK: ['/algorithms', 'pathfinding'] as const, LINK: '/algorithms/pathfinding',
COMPONENT: PathfindingComponent COMPONENT: PathfindingComponent
}; };
static readonly IMPRINT = { static readonly IMPRINT = {
PATH: 'imprint', PATH: 'imprint',
LINK: ['/imprint'] as const, LINK: '/imprint',
COMPONENT: ImprintComponent COMPONENT: ImprintComponent
}; };
} }

View File

@@ -1,6 +1,7 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { AlgorithmCategory } from '../models/algorithm-category'; import { AlgorithmCategory } from '../models/algorithm-category';
import { Observable, of } from 'rxjs'; import { Observable, of } from 'rxjs';
import {RouterConstants} from '../../../constants/RouterConstants';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'
@@ -12,7 +13,7 @@ export class AlgorithmsService {
id: 'pathfinding', id: 'pathfinding',
title: 'ALGORITHM.PATHFINDING.TITLE', title: 'ALGORITHM.PATHFINDING.TITLE',
description: 'ALGORITHM.PATHFINDING.DESCRIPTION', description: 'ALGORITHM.PATHFINDING.DESCRIPTION',
routerLink: 'pathfinding' routerLink: RouterConstants.PATHFINDING.LINK
} }
]; ];