Ends in:
7 DAYS
11 HRS
53 MIN
20 SEC
Ends in:
7 D
11 H
53 M
20 S

Activities of "muhammedaltug"

Hello,

The rootNamespace property of api configuration used by ABP proxy generation. You can remove the url property.

Hello,

Are errors the same as compile errors(errors in ng serve or ng build)? Vscode may not be able to resolve packages. Please ensure vscode is up to date

Hello,

I created an internal issue. I will notify when the fix available

Hello,

You can do it with overring ApiInterceptor.

Provide your service in app.module.ts

import { NgModule } from '@angular/core';
import { ApiInterceptor } from '@abp/ng.core';
@NgModule({
    providers: [
        //...other Providers
         {
              provide: ApiInterceptor,
              useClass: YourApiInterceptor
        },
    ]
})
export class AppModule{}
import { HttpHandler, HttpRequest } from '@angular/common/http';
import { Inject, Injectable } from '@angular/core';
import { OAuthService } from 'angular-oauth2-oidc';
import { finalize } from 'rxjs/operators';
import {
  SessionStateService,
  HttpWaitService,
  TENANT_KEY,
} from '@abp/ng.core';

@Injectable({
  providedIn: 'root',
})
export class YourApiInterceptor  {
  constructor(
    private oAuthService: OAuthService,
    private sessionState: SessionStateService,
    private httpWaitService: HttpWaitService,
    @Inject(TENANT_KEY) private tenantKey: string,
  ) {}

  intercept(request: HttpRequest<any>, next: HttpHandler) {
    this.httpWaitService.addRequest(request);
    const newRequest = request.clone({
          setHeaders: this.getAdditionalHeaders(request),
        });

    return next
      .handle(newRequest)
      .pipe(finalize(() => this.httpWaitService.deleteRequest(request)));
  }

  getAdditionalHeaders(request: HttpRequest<any>) {
    const existingHeaders = request.headers
    const headers = {} as any;

    const token = this.oAuthService.getAccessToken();
    if (!existingHeaders?.has('Authorization') && token) {
      headers['Authorization'] = `Bearer ${token}`;
    }

    const lang = this.sessionState.getLanguage();
    if (!existingHeaders?.has('Accept-Language') && lang) {
      headers['Accept-Language'] = lang;
    }

    const tenant = this.sessionState.getTenant();
    // add your logic following condition
    if (!existingHeaders?.has(this.tenantKey) && tenant?.id && ) {
      headers[this.tenantKey] = tenant.id;
    }

    headers['X-Requested-With'] = 'XMLHttpRequest';

    return headers;
  }
}```

Hello,

I can't reproduce your problem. But it seems something is wrong. Can you create a new application and compare angular files?

Hello,

Can you change import ApplicationConfiguration to ApplicationConfigurationDto?

snq dependency removed from ABP packages. You can install it with yarn add snq, or you can change snq usage with the optional chaining (?.) operator.

States removed from ABP packages. See related document

Can you send tsconfig.json and tsconfig.app.json?

Hello,

You should submit the form withHTTPs Form Post Request. This info is documented in payfort document

The reason for not sending the request FormsModule imported to your module (If you imported SharedModule, SharedModule imports and exports CoreModule, CoreModule imports and exports FormModule).

You can use ngNoForm directive in this case.

You can implement like following;

<form
    id="form1"
    name="form1"
    method="post"
    target="_top"
    ngNoForm
    action="https://sbcheckout.payfort.com/FortAPI/paymentPage"
>
    <INPUT NAME="service_command" value="TOKENIZATION" />

    <INPUT NAME="language" value="en" />

    <INPUT NAME="merchant_identifier" value="d513612a" />

    <INPUT NAME="access_code" value="vQVsqlNX0dHwPOS3CRDo" />

    <INPUT
      NAME="signature"
      value="93e52b6a5b8562b2c8c7397994ed6da4818218174632cb95d657ac44586374c8"
    />

    <INPUT NAME="return_url" value="https://eo4p0tzof64xp7f.m.pipedream.net" />

    <INPUT NAME="merchant_reference" value="test_100" />

    <input type="submit" value="test" id="submit2" name="" />
</form>

Hello

in .\SchoolAut0mater\angular\projects\staff\src\lib\staff.service.spec.ts, Service reference path is corrected import { StaffService } from './staff.service'; to import { StaffService } from './services/staff.service'; in .\SchoolAut0mater\angular\projects\staff\src\lib\staff.component.spec.ts, Componenreference path is corrected import { StaffComponent } from './staff.component'; to import { StaffComponent } from './components/staff.component';

We will fix the template by moving spec.ts files to the related component and service directory. You can move related files.

renamed "@school-aut0mater/staff" to "@staff" in '.\SchoolAut0mater\angular\projects\staff\package.json' renamed "@school-aut0mater/staff" to "@staff" in '.\SchoolAut0mater\angular\tsconfig.json' renamed "@school-aut0mater/staff/config" to "@staff/config" in '.\SchoolAut0mater\angular\tsconfig.json'

We will fix the import statement of ConfigModule in app.module.ts from @package-name/config to @namespace/package-name/config. You can change the import statement.

Also, we will fix entity generation in your case. The fixes are available in the next bugfix version of 7.0

Hello,

What is your ABP version?

Hello,

Can you share the result of the command below?

yarn why @volo/abp.ng.identity

How did you upgrade angular version?

Showing 11 to 20 of 254 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06