Hi, please see the Switch to EF Core PostgreSQL Provider documentation.
Hi, you can override a razor component without needing to download all the source code of the module. See the Blazor UI: Customization / Overriding Components to see how to override a razor component.
Are there any plans by ABP to extend the LeptonThemeOptions that can be made configurable to include the MainSiderbar.razor component?
Currently, we don't have any plan regarding that. Because the developer can override any razor component easily by following the Blazor UI: Customization / Overriding Components documentation.
I see MVC has Application, Account, and Empty Layouts. Do we have those for blazor?
Hi, LeptonX Lite only has one layout named Application and LeptonX Theme has three layouts: Application, Side Menu and Top Menu.
You can create a custom layout by checking the Basic Theme layout, from here. And for set it as your layout configure the LeptonXThemeBlazorOptions
option:
Configure<LeptonXThemeBlazorOptions>(options =>
{
options.Layout = LeptonXBlazorLayouts.SideMenu;
// Or your custom implemented layout:
options.Layout = typeof(MyCustomLayoutComponent);
});
See https://docs.abp.io/en/commercial/latest/themes/lepton-x/commercial/blazor?UI=BlazorServer#leptonxthemeblazoroptions for more info.
Hi @abpfintranet-1, you can override the SetProfilePictureAsync method of the AccountAppService
class and check whether the file size exceeds or not:
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IAccountAppService), typeof(AccountAppService), typeof(MyAccountAppService))]
public class MyAccountAppService : AccountAppService
{
[Authorize]
public override async Task SetProfilePictureAsync(ProfilePictureInput input)
{
//check the file size and do not proceed if it's exceeded
if(input.ImageContent.ContentLength > MaxFileSize)
{
return; //or throw exception
}
//file size not exceeded so, continue to set profile picture...
await SettingManager.SetForUserAsync(CurrentUser.GetId(), AccountSettingNames.ProfilePictureSource, input.Type.ToString());
var userIdText = CurrentUser.GetId().ToString();
if (input.Type != ProfilePictureType.Image)
{
if (await AccountProfilePictureContainer.ExistsAsync(userIdText))
{
await AccountProfilePictureContainer.DeleteAsync(userIdText);
}
}
else
{
if (input.ImageContent == null)
{
throw new NoImageProvidedException();
}
await AccountProfilePictureContainer.SaveAsync(userIdText, input.ImageContent.GetStream(), true);
}
}
}
Hi @guven.uysall, if you want to apply entity configurations (table prefix, column, etc.) to all new generated entities, you can edit the templates from Suite.
Example: You can edit the Server.Entity.Partials.ConfigureEntity.txt template and add additional configurations for an entity.
See the documentation.
If you only want to keep changes for certain entities, you should handle it yourself.
By the way, can pagesizechanged created from ABP suite?
Hi, currently no.
ShowPager is no center vertically in the commercial version.
I'll create an issue for that, thanks for reporting.
Hi @chenxm, when you specified the LeptonX Theme package version as 1.0.0-rc.*, it will get the latest preview version which is 1.0.0-rc.4 for now. And this version is not fully compatible with v5.3.4 of ABP Framework.
So you either need to upgrade your ABP packages to v6.0 or downgrade the LeptonX Theme package version to 1.0.0-rc.1.
Hi @cellero, we have an open issue about this topic and we'll reconsider the toolbar button size in the next releases. Thanks for giving feedback.
Currently, to make the toolbar buttons smaller, you can write custom CSS like below;
.lpx-content-toolbar button {
font-size: 1rem !important;
padding: 0.1rem 1rem !important;
}
Thanks for the response @engincan, but I think there is some miss understanding. we are looking to add additional info (custom headers and adding additional query parameter for the request URI) for all of the API calls. but AbpApplicationConfigurationAppService only talks about configuration API right....?
Yes, you're right it's used to provide configurations.
So, if you want to add additional info for all of your API calls, you can create a custom middleware and add custom headers or query parameters to request URI.