From 5be5c37bda05b1faf1489fe4ba3e6aa5a6bec9f6 Mon Sep 17 00:00:00 2001 From: sumeyye Date: Fri, 12 Sep 2025 16:25:06 +0300 Subject: [PATCH] update: remove unused declarations and imports --- npm/ng-packs/packages/core/src/lib/core.module.ts | 1 - .../core/src/lib/interceptors/transfer-state.interceptor.ts | 2 +- npm/ng-packs/packages/core/src/lib/services/window.service.ts | 1 + .../packages/oauth/src/lib/strategies/auth-flow-strategy.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/npm/ng-packs/packages/core/src/lib/core.module.ts b/npm/ng-packs/packages/core/src/lib/core.module.ts index 1871fdb8d8..09607ae317 100644 --- a/npm/ng-packs/packages/core/src/lib/core.module.ts +++ b/npm/ng-packs/packages/core/src/lib/core.module.ts @@ -3,7 +3,6 @@ import { provideHttpClient, withInterceptorsFromDi, withXsrfConfiguration, - HTTP_INTERCEPTORS, withFetch, } from '@angular/common/http'; import { ModuleWithProviders, NgModule } from '@angular/core'; diff --git a/npm/ng-packs/packages/core/src/lib/interceptors/transfer-state.interceptor.ts b/npm/ng-packs/packages/core/src/lib/interceptors/transfer-state.interceptor.ts index 3cc4720b35..23fb01cb6b 100644 --- a/npm/ng-packs/packages/core/src/lib/interceptors/transfer-state.interceptor.ts +++ b/npm/ng-packs/packages/core/src/lib/interceptors/transfer-state.interceptor.ts @@ -35,7 +35,7 @@ export const transferStateInterceptor: HttpInterceptorFn = ( tap(event => { if (isPlatformServer(platformId) && event instanceof HttpResponse) { transferState.set(stateKey, event.body); - console.log(`Interceptor: ${req.urlWithParams} verisi TransferState'e kaydedildi.`); + console.log(`Interceptor: ${req.urlWithParams} is stored in TransferState.`); } }), ); diff --git a/npm/ng-packs/packages/core/src/lib/services/window.service.ts b/npm/ng-packs/packages/core/src/lib/services/window.service.ts index 6534065d0d..1902f4ea4d 100644 --- a/npm/ng-packs/packages/core/src/lib/services/window.service.ts +++ b/npm/ng-packs/packages/core/src/lib/services/window.service.ts @@ -18,6 +18,7 @@ export class AbpWindowService { reloadPage(): void { this.window.location.reload(); } + downloadBlob(blob: Blob, fileName: string) { const blobUrl = this.window.URL.createObjectURL(blob); const a = this.document.createElement('a'); diff --git a/npm/ng-packs/packages/oauth/src/lib/strategies/auth-flow-strategy.ts b/npm/ng-packs/packages/oauth/src/lib/strategies/auth-flow-strategy.ts index 50fbf6cf85..dd28e438c5 100644 --- a/npm/ng-packs/packages/oauth/src/lib/strategies/auth-flow-strategy.ts +++ b/npm/ng-packs/packages/oauth/src/lib/strategies/auth-flow-strategy.ts @@ -1,4 +1,4 @@ -import { inject, Injector } from '@angular/core'; +import { Injector } from '@angular/core'; import { HttpErrorResponse } from '@angular/common/http'; import { Params, Router } from '@angular/router';