Activities of "kkmy"

Thank you, it works!

Hello,

I want to remove some theme options under the Appearance part that is in the side bar. Specifically, I want to remove all options except Light. I have managed to remove all options except System. What should I do?

Configure<LeptonXThemeOptions>(options =>
{
    options.DefaultStyle = LeptonXStyleNames.Light;

    options.Styles.Remove(LeptonXStyleNames.Dark);
    options.Styles.Remove(LeptonXStyleNames.Dim);
    options.Styles.Remove(LeptonXStyleNames.System);
});
import { LPX_THEMES, LPX_THEME_STYLES_DEFAULTS, lightTheme } from '@volosoft/ngx-lepton-x';

// LPX_THEME_STYLES_DEFAULTS list does not have the System option.
const lightOnlyThemes = LPX_THEME_STYLES_DEFAULTS
  .filter(theme => theme === lightTheme)
  .map(theme => ({ ...theme, defaultTheme: true }));
  
export const appConfig: ApplicationConfig = {
  providers: [
    importProvidersFrom(
      ...
      ThemeLeptonXModule.forRoot({
        defaultTheme: 'light'
      }),
      ...
    ),
    {
      provide: LPX_THEMES,
      useValue: lightOnlyThemes
    },
    ...
  ]
};

Thank you.

I have already done it the way you have suggested but I wanted to check just in case :)

Thank you.

Hello,

How can I use ABP's hookToQuery() pattern with an InputSignal in Angular so that whenever its value is changed, the table should refresh itself? I could not see an example in tutorial documents. What should be the approach in the example below?

Thanks.

export class EagleComponent implements OnInit {

  eagleId = input.required<string>();

  public readonly listService = inject(ListService<GetListEagleDto>);
  private eagleService = inject(EagleService);

  eagles: PagedResultDto<EagleDto> | null = null;

  ngOnInit(): void {
    this.createQueryHook();
  }

  createQueryHook() {
    const req = (query) => this.eagleService.getList({
      ...query,
      eagleId: this.eagleId()
    });

    this.listService.hookToQuery(req).subscribe(res => {
      this.eagles = res;
    });
  }

  query() {
    this.listService.get();
  }
}

My case is exactly what you have described i.e. trying to import from an external project.

This works brilliantly, thanks maliming!

Hello,

How can I set CreatorId and CreationTime for an entity that is of type AuditedEntity? When I try to get the entity and set it directly like below, I get this error:

entity.CreatorId = user.Id; The property 'Volo.Abp.Domain.Entities.Auditing.CreationAuditedEntity<TKey>.CreatorId' cannot be used in this context because the 'set' accessor is inaccessible

This is not the case for AuditedAggregateRoot. I can do the exact same thing without errors.

What should I do to set those properties?

Thank you.

Thanks!

Hi EngincanV,

The code that you provided for the method is not like this in my project and the new project that is created with the version 9.3.5 recently. The following is how the particular method is created:

private void ConfigureAuthentication(ServiceConfigurationContext context)
{
    context.Services.ForwardIdentityAuthenticationForBearer(
        OpenIddictValidationAspNetCoreDefaults.AuthenticationScheme
    );
    context.Services.Configure<AbpClaimsPrincipalFactoryOptions>(options =>
    {
        options.IsDynamicClaimsEnabled = true;
    });
}

We do not have the code block that is given by the AI-Bot. Moreover, I have created a new project and it does not have this block neither.

Hello,

Our project underwent a penetration test. In the test result, it is suggested that our project needs to stop responding for tokens without an encryption algorithm. Which means that, it should not allow access for the tokens that have "alg": "none" in their headers.

How can we implement this in our project? Will it break anything related to ABP framework, authentication, authorization etc.?

Thanks!

Showing 1 to 10 of 30 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on October 21, 2026, 11:09
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.