Skip to content

Commit ef8ecd7

Browse files
committed
build: completely remove axios
1 parent 1b58861 commit ef8ecd7

File tree

3 files changed

+2
-27
lines changed

3 files changed

+2
-27
lines changed

package-lock.json

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@
162162
"@typescript-eslint/utils": "^7.18.0",
163163
"angular-material-css-vars": "^8.0.0",
164164
"angular-mentions": "^1.5.0",
165-
"axios": "^1.7.9",
166165
"canvas-confetti": "^1.9.3",
167166
"chai": "^5.1.2",
168167
"chart.js": "^4.4.7",

src/app/core-ui/global-progress-bar/global-progress-bar-interceptor.service.ts

+2-25
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable, inject } from '@angular/core';
1+
import { inject, Injectable } from '@angular/core';
22
import {
33
HttpEvent,
44
HttpHandler,
@@ -8,35 +8,12 @@ import {
88
import { Observable } from 'rxjs';
99
import { finalize } from 'rxjs/operators';
1010
import { GlobalProgressBarService } from './global-progress-bar.service';
11-
import axios from 'axios';
1211

1312
@Injectable({ providedIn: 'root' })
1413
export class GlobalProgressBarInterceptorService implements HttpInterceptor {
1514
private globalProgressBarService = inject(GlobalProgressBarService);
1615

17-
constructor() {
18-
axios.interceptors.request.use(
19-
(config) => {
20-
this.globalProgressBarService.countUp(config.url as string);
21-
return config;
22-
},
23-
(error) => {
24-
this.globalProgressBarService.countDown();
25-
return Promise.reject(error);
26-
},
27-
);
28-
29-
axios.interceptors.response.use(
30-
(response) => {
31-
this.globalProgressBarService.countDown();
32-
return response;
33-
},
34-
(error) => {
35-
this.globalProgressBarService.countDown();
36-
return Promise.reject(error);
37-
},
38-
);
39-
}
16+
constructor() {}
4017

4118
intercept(
4219
req: HttpRequest<unknown>,

0 commit comments

Comments
 (0)