Browse Source

update: remove unused declarations and imports

pull/23416/head
sumeyye 1 year ago
parent
commit
5be5c37bda
  1. 1
      npm/ng-packs/packages/core/src/lib/core.module.ts
  2. 2
      npm/ng-packs/packages/core/src/lib/interceptors/transfer-state.interceptor.ts
  3. 1
      npm/ng-packs/packages/core/src/lib/services/window.service.ts
  4. 2
      npm/ng-packs/packages/oauth/src/lib/strategies/auth-flow-strategy.ts

1
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';

2
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.`);
}
}),
);

1
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');

2
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';

Loading…
Cancel
Save