I went through the documentation you suggested but it requires Entity Framework Core .cs file which I won't be having in template downloaded to setup from https://docs.abp.io/en/abp/latest/Apps/VoloDocs
VoloDocs is a self-contained application, which only can be run without modification of code (you can think it as a sample application. So, if you want to use the Docs Module of ABP Framework and change the database provider as PostgreSQL, you need to create a template with PostgreSQL as database provider and then add the Docs Module to your application:
1-) Creating a template with PostgreSQL as database provider :
abp new Acme.BookStore --database-management-system PostgreSQL
2-) Add Docs Module into your application:
abp add-module Volo.Docs
Then, you can use the Docs Module with PostgreSQL. But as i said, it's not possible with self-contained VoloDocs application.
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;
}