Moved to Angular 16
Moved to FastAPI 0.100.0
Moved to pydantic 2.0
This commit is contained in:
2023-07-22 09:19:48 +05:30
parent 8b2d15b9e1
commit 09b762d154
161 changed files with 693 additions and 753 deletions

View File

@ -1,5 +1,4 @@
import { Injectable } from '@angular/core';
import { Resolve } from '@angular/router';
import { Observable } from 'rxjs';
import { ModifierCategory } from '../core/modifier-category';
@ -9,7 +8,7 @@ import { ModifierCategoryService } from './modifier-category.service';
@Injectable({
providedIn: 'root',
})
export class ModifierCategoryListResolver implements Resolve<ModifierCategory[]> {
export class ModifierCategoryListResolver {
constructor(private ser: ModifierCategoryService) {}
resolve(): Observable<ModifierCategory[]> {

View File

@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
import { ActivatedRouteSnapshot } from '@angular/router';
import { Observable } from 'rxjs';
import { ModifierCategory } from '../core/modifier-category';
@ -9,7 +9,7 @@ import { ModifierCategoryService } from './modifier-category.service';
@Injectable({
providedIn: 'root',
})
export class ModifierCategoryResolver implements Resolve<ModifierCategory> {
export class ModifierCategoryResolver {
constructor(private ser: ModifierCategoryService) {}
resolve(route: ActivatedRouteSnapshot): Observable<ModifierCategory> {

View File

@ -16,7 +16,10 @@ const serviceName = 'ModifierCategoryService';
providedIn: 'root',
})
export class ModifierCategoryService {
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
constructor(
private http: HttpClient,
private log: ErrorLoggerService,
) {}
get(id: string | null): Observable<ModifierCategory> {
const getUrl: string = id === null ? url : `${url}/${id}`;