I have a newly created Blazor Server project (9.0.4). I am trying to switch from SideMenu to TopMenu.
In the BlazorModule, I changed the layout in the ConfigureTheme method from SideMenu to TopMenu:
private void ConfigureTheme()
{
Configure<LeptonXThemeOptions>(options =>
{
options.DefaultStyle = LeptonXStyleNames.System;
});
Configure<LeptonXThemeMvcOptions>(options =>
{
options.ApplicationLayout = LeptonXMvcLayouts.TopMenu;
});
Configure<LeptonXThemeBlazorOptions>(options =>
{
options.Layout = LeptonXBlazorLayouts.TopMenu;
});
}
When I run the application, I get an unhandled exception.
I wanted to let you know that embedding the resources in the project file has solved the issue. Thanks so much for your time and assistance in troubleshooting this—it’s greatly appreciated!
Hello,
I created folders for AbpAccount and AbpIdentiy under Localizations within the Domain.Shared project.
Domain.Shared/Localizations/AbpAccount/en.json
{
"Culture": "en",
"Texts": {
"DisplayName:Name": "First name",
"DisplayName:Surname": "Last name"
}
}
Domain.Shared/Localizations/AbpIdentity/en.json
{
"Culture": "en",
"Texts": {
"DisplayName:Name": "First name",
"DisplayName:Surname": "Last name",
"Name": "First name",
"Surname": "Last name"
}
}
I modified the DomainSharedModule's ConfigureServices as follows:
Configure<AbpLocalizationOptions>(options =>
{
...
options.Resources
.Get<IdentityResource>()
.AddVirtualJson("/Localization/AbpIdentity");
...
});
I modified the ApplicationContractModule's ConfigurationServices as follows:
Configure<AbpLocalizationOptions>(options =>
{
options.Resources
.Get<AccountResource>()
.AddVirtualJson("/Localization/AbpAccount");
});
I created a localization resource to override some of the default values. For example, I wanted to override the default values of 'Name' and 'Surname' to 'First Name' and 'Last Name for AbpAccount and AbpIdentity. I am able to get the desired behavior when I run my application local. However, I don't see my modifications when running from production.
Any suggestions?
I read the article, and I think I will take the approach of creating a blank splash screen.
Thank you
By default, the home page is shown first, and users can navigate to the login page from there.
However, I would like the application to start directly at the login page and only show the home page after the user has been authenticated. To achieve this, I added the canActivate: [authGuard]
to account-routing.module.ts, which correctly makes the login page the default page when navigating to the root URL (e.g., http://localhost:4200).
Despite this, I am encountering an issue where the home page is briefly visible for a split second before the login page appears when initially accessing the application. I would like to prevent the home page from being visible before authentication.
Could you please provide guidance or suggestions on how to resolve this issue? Any help would be greatly appreciated.
Does the ABP Studio desktop application support creating new solutions in older versions of ABP Commercial? For example, can I use ABP Studio to create a new project with v8.3.4, similar to how we can change the version of the ABP Suite?
Thank you in advance.
Simple and easy, brilliant.
Thank you.
Is there a quick way of hiding the logo and name without creating a custom login page? If yes, please explain.
Thank you