Activities of "masum.ulu"

Hi pvala, We're working on it it'll fix next version (7.3-final). I Refunded your credit

Answer

Hello,

Actually there is already option for that can you please check the Dynamic-Form-Extensions Document

Hello, here's the PR , It'll fixed after 7.3-final publish. I've refunded your credit 🙂

Hi can you please make the same version all @abp, @volo and @volosoft pacakges

All packages version must be same

Answer

Hi again, This messages is warning which means problem fixed, the reason of that there are peer dependencies on libraries. It must run correct right now ?

Answer

Hello,

I've tried to reproduce error but I didn't

My steps

  • abp new Acme.BookStore -csf -u angular -sib
  • after create template go to angular folder
  • Run npm install
  • I got error on the below but this will fix 7.2.3 (7.2 patch version)
  • Isseu Ref

  • If you want to use npm this is the workaround
  • After update your project it will fix by it self

Hello,

Can you add codes below to angular.json > styles section

{
  "input": "node_modules/@volosoft/ngx-lepton-x/assets/css/font-bundle.css",
  "inject": false,
  "bundleName": "font-bundle"
},
{
  "input": "node_modules/@volosoft/ngx-lepton-x/assets/css/font-bundle.rtl.css",
  "inject": false,
  "bundleName": "font-bundle.rtl"
}

Example

Hello, I've created an issue for that also I refunded your credit. This issue will fixed at 7.2-patch 🙂

Hello Alexander,

For the customize guard system you can customize PermissionGuard like below

//custom-permission.guard.ts
import { HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Observable, of, switchMap, tap } from 'rxjs';
import { PermissionGuard } from '@abp/ng.core';

@Injectable({
  providedIn: 'root',
})
export class CustomPermissionGuard extends PermissionGuard {
  canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> {
    let { moduleId } = route.data || {};

    return super.canActivate(route, state).pipe(
      switchMap(access => {
        if (!access) {
          return of(false);
        }

        if (!moduleId) {
          return of(true);
        }

        //Custom logic
        return of(true);
      }),
      tap(access => {
        if (!access && this.oAuthService.hasValidAccessToken()) {
          this.httpErrorReporter.reportError({ status: 403 } as HttpErrorResponse);
        }
      }),
    );
  }
}

//app.module.ts
import { PermissionGuard } from '@abp/ng.core';
import { CustomPermissionGuard } from './custom-permission.guard';

@NgModule({
  imports: [],
  providers: [
    {
      provide: PermissionGuard,
      useExisting: CustomPermissionGuard,
    },
  ],
  declarations: [AppComponent],
  bootstrap: [AppComponent],
})
export class AppModule {}

//app-routing.module.ts
const routes: Routes = [
  {
    path: 'identity',
    loadChildren: () => import('@abp/ng.identity').then(m => m.IdentityModule.forLazy()),
    data: {
      moduleId: 'Identity',
    },
  },
];

@NgModule({
  imports: [RouterModule.forRoot(routes, {})],
  exports: [RouterModule],
})
export class AppRoutingModule {}

Hello,

The bug fixed, you can update to 7.2.3 or 7.3.0 after publish. I'm closing this question :)

Showing 151 to 160 of 219 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 08:30