cropper & imageservice

This commit is contained in:
2024-03-23 22:35:47 +01:00
parent d5210d3df4
commit a2c613c38f
11 changed files with 651 additions and 49 deletions

View File

@@ -4,21 +4,6 @@ import { Observable, tap } from 'rxjs';
import { v4 } from 'uuid';
import { LoadingService } from '../services/loading.service';
// export const loadingInterceptor: HttpInterceptorFn = (req, next) => {
// const loadingService = inject(LoadingService);
// const requestId = `HTTP-${v4()}`;
// loadingService.startLoading(requestId);
// return next(req).pipe(
// tap({
// finalize: () => loadingService.stopLoading(requestId),
// error: () => loadingService.stopLoading(requestId),
// complete: () => loadingService.stopLoading(requestId),
// })
// );
// };
@Injectable()
export class LoadingInterceptor implements HttpInterceptor {
constructor(private loadingService:LoadingService) { }