refactor: reorganize component files and update import paths; add PsItem and PsProduct interfaces

This commit is contained in:
Vincent Guillet
2025-11-12 12:34:58 +01:00
parent f063a245b9
commit bcc71b965b
92 changed files with 1694 additions and 2815 deletions

View File

@@ -1,6 +1,6 @@
import { inject } from '@angular/core';
import { CanActivateFn, CanMatchFn, Router, UrlTree, ActivatedRouteSnapshot, Route } from '@angular/router';
import { AuthService } from '../services/auth/auth.service';
import { AuthService } from '../services/auth.service';
function requireAdmin(url?: string): boolean | UrlTree {
const authService: AuthService = inject(AuthService);

View File

@@ -1,6 +1,6 @@
import { inject } from '@angular/core';
import { CanActivateFn, CanMatchFn, Router, UrlTree, ActivatedRouteSnapshot, Route } from '@angular/router';
import { AuthService } from '../services/auth/auth.service';
import { AuthService } from '../services/auth.service';
function requireAuth(url?: string): boolean | UrlTree {
const authService = inject(AuthService);

View File

@@ -1,6 +1,6 @@
import { inject } from '@angular/core';
import { Router, UrlTree, CanActivateFn, CanMatchFn } from '@angular/router';
import { AuthService } from '../services/auth/auth.service';
import { AuthService } from '../services/auth.service';
function redirectIfLoggedIn(): boolean | UrlTree {
const authService = inject(AuthService);