mirror of https://github.com/abpframework/abp.git
37 changed files with 766 additions and 0 deletions
@ -0,0 +1,50 @@ |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.Account.Blazor.MudBlazor.Pages.Account; |
|||
using Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor; |
|||
using Volo.Abp.AspNetCore.Components.Web.Theming.Routing; |
|||
using Volo.Abp.Mapperly; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.ObjectExtending; |
|||
using Volo.Abp.ObjectExtending.Modularity; |
|||
using Volo.Abp.Threading; |
|||
using Volo.Abp.UI.Navigation; |
|||
|
|||
namespace Volo.Abp.Account.Blazor.MudBlazor; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpAspNetCoreComponentsWebThemingMudBlazorModule), |
|||
typeof(AbpMapperlyModule), |
|||
typeof(AbpAccountApplicationContractsModule) |
|||
)] |
|||
public class AbpAccountBlazorMudBlazorModule : AbpModule |
|||
{ |
|||
private readonly static OneTimeRunner OneTimeRunner = new OneTimeRunner(); |
|||
|
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
context.Services.AddMapperlyObjectMapper<AbpAccountBlazorMudBlazorModule>(); |
|||
|
|||
Configure<AbpNavigationOptions>(options => |
|||
{ |
|||
options.MenuContributors.Add(new AbpAccountBlazorUserMenuContributor()); |
|||
}); |
|||
|
|||
Configure<AbpRouterOptions>(options => |
|||
{ |
|||
options.AdditionalAssemblies.Add(typeof(AbpAccountBlazorMudBlazorModule).Assembly); |
|||
}); |
|||
} |
|||
|
|||
public override void PostConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
OneTimeRunner.Run(() => |
|||
{ |
|||
ModuleExtensionConfigurationHelper |
|||
.ApplyEntityConfigurationToUi( |
|||
IdentityModuleExtensionConsts.ModuleName, |
|||
IdentityModuleExtensionConsts.EntityNames.User, |
|||
editFormTypes: new[] { typeof(PersonalInfoModel) } |
|||
); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,20 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk.Razor"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
<RootNamespace>Volo.Abp.Account.Blazor.MudBlazor</RootNamespace> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Mapperly\Volo.Abp.Mapperly.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.Account.Application.Contracts\Volo.Abp.Account.Application.Contracts.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,12 @@ |
|||
using Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.Abp.FeatureManagement.Blazor.MudBlazor.Server; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpFeatureManagementBlazorMudBlazorModule), |
|||
typeof(AbpAspNetCoreComponentsServerThemingMudBlazorModule) |
|||
)] |
|||
public class AbpFeatureManagementBlazorMudBlazorServerModule : AbpModule |
|||
{ |
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.FeatureManagement.Blazor.MudBlazor\Volo.Abp.FeatureManagement.Blazor.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.Abp.FeatureManagement.Blazor.MudBlazor.WebAssembly; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpFeatureManagementBlazorMudBlazorModule), |
|||
typeof(AbpAspNetCoreComponentsWebAssemblyThemingMudBlazorModule), |
|||
typeof(AbpFeatureManagementHttpApiClientModule) |
|||
)] |
|||
public class AbpFeatureManagementBlazorMudBlazorWebAssemblyModule : AbpModule |
|||
{ |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.FeatureManagement.Blazor.MudBlazor\Volo.Abp.FeatureManagement.Blazor.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\Volo.Abp.FeatureManagement.HttpApi.Client\Volo.Abp.FeatureManagement.HttpApi.Client.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,34 @@ |
|||
using Localization.Resources.AbpUi; |
|||
using Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor; |
|||
using Volo.Abp.FeatureManagement.Blazor.MudBlazor.Settings; |
|||
using Volo.Abp.FeatureManagement.Localization; |
|||
using Volo.Abp.Features; |
|||
using Volo.Abp.Localization; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.SettingManagement.Blazor.MudBlazor; |
|||
|
|||
namespace Volo.Abp.FeatureManagement.Blazor.MudBlazor; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpAspNetCoreComponentsWebThemingMudBlazorModule), |
|||
typeof(AbpFeatureManagementApplicationContractsModule), |
|||
typeof(AbpFeaturesModule), |
|||
typeof(AbpSettingManagementBlazorMudBlazorModule) |
|||
)] |
|||
public class AbpFeatureManagementBlazorMudBlazorModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
Configure<SettingManagementComponentOptions>(options => |
|||
{ |
|||
options.Contributors.Add(new FeatureSettingManagementComponentContributor()); |
|||
}); |
|||
|
|||
Configure<AbpLocalizationOptions>(options => |
|||
{ |
|||
options.Resources |
|||
.Get<AbpFeatureManagementResource>() |
|||
.AddBaseTypes(typeof(AbpUiResource)); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,20 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk.Razor"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Features\Volo.Abp.Features.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.FeatureManagement.Application.Contracts\Volo.Abp.FeatureManagement.Application.Contracts.csproj" /> |
|||
<ProjectReference Include="..\..\..\setting-management\src\Volo.Abp.SettingManagement.Blazor.MudBlazor\Volo.Abp.SettingManagement.Blazor.MudBlazor.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.PermissionManagement.Blazor.MudBlazor.Server; |
|||
|
|||
namespace Volo.Abp.Identity.Blazor.MudBlazor.Server; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpIdentityBlazorMudBlazorModule), |
|||
typeof(AbpPermissionManagementBlazorMudBlazorServerModule) |
|||
)] |
|||
public class AbpIdentityBlazorMudBlazorServerModule : AbpModule |
|||
{ |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.Identity.Blazor.MudBlazor\Volo.Abp.Identity.Blazor.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\permission-management\src\Volo.Abp.PermissionManagement.Blazor.MudBlazor.Server\Volo.Abp.PermissionManagement.Blazor.MudBlazor.Server.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,14 @@ |
|||
using Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.PermissionManagement.Blazor.MudBlazor.WebAssembly; |
|||
|
|||
namespace Volo.Abp.Identity.Blazor.MudBlazor.WebAssembly; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpIdentityBlazorMudBlazorModule), |
|||
typeof(AbpPermissionManagementBlazorMudBlazorWebAssemblyModule), |
|||
typeof(AbpIdentityHttpApiClientModule) |
|||
)] |
|||
public class AbpIdentityBlazorMudBlazorWebAssemblyModule : AbpModule |
|||
{ |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.Identity.Blazor.MudBlazor\Volo.Abp.Identity.Blazor.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\permission-management\src\Volo.Abp.PermissionManagement.Blazor.MudBlazor.WebAssembly\Volo.Abp.PermissionManagement.Blazor.MudBlazor.WebAssembly.csproj" /> |
|||
<ProjectReference Include="..\Volo.Abp.Identity.HttpApi.Client\Volo.Abp.Identity.HttpApi.Client.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,10 @@ |
|||
using Volo.Abp.Mapperly; |
|||
|
|||
namespace Volo.Abp.Identity.Blazor.MudBlazor; |
|||
|
|||
[Mapper(UseDeepCloning = true)] |
|||
public static partial class AbpIdentityBlazorMappers |
|||
{ |
|||
public static partial IdentityUserDto Clone(this IdentityUserDto source); |
|||
public static partial IdentityRoleDto Clone(this IdentityRoleDto source); |
|||
} |
|||
@ -0,0 +1,72 @@ |
|||
using Localization.Resources.AbpUi; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.AspNetCore.Components.Web.Theming.Routing; |
|||
using Volo.Abp.Mapperly; |
|||
using Volo.Abp.MudBlazorUI; |
|||
using Volo.Abp.Identity.Localization; |
|||
using Volo.Abp.Localization; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.ObjectExtending; |
|||
using Volo.Abp.ObjectExtending.Modularity; |
|||
using Volo.Abp.PermissionManagement.Blazor.MudBlazor; |
|||
using Volo.Abp.Threading; |
|||
using Volo.Abp.UI.Navigation; |
|||
|
|||
namespace Volo.Abp.Identity.Blazor.MudBlazor; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpIdentityApplicationContractsModule), |
|||
typeof(AbpMapperlyModule), |
|||
typeof(AbpPermissionManagementBlazorMudBlazorModule), |
|||
typeof(AbpMudBlazorUIModule) |
|||
)] |
|||
public class AbpIdentityBlazorMudBlazorModule : AbpModule |
|||
{ |
|||
private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner(); |
|||
|
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
context.Services.AddMapperlyObjectMapper<AbpIdentityBlazorMudBlazorModule>(); |
|||
|
|||
Configure<AbpNavigationOptions>(options => |
|||
{ |
|||
options.MenuContributors.Add(new AbpIdentityWebMainMenuContributor()); |
|||
}); |
|||
|
|||
Configure<AbpRouterOptions>(options => |
|||
{ |
|||
options.AdditionalAssemblies.Add(typeof(AbpIdentityBlazorMudBlazorModule).Assembly); |
|||
}); |
|||
|
|||
Configure<AbpLocalizationOptions>(options => |
|||
{ |
|||
options.Resources |
|||
.Get<IdentityResource>() |
|||
.AddBaseTypes( |
|||
typeof(AbpUiResource) |
|||
); |
|||
}); |
|||
} |
|||
|
|||
public override void PostConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
OneTimeRunner.Run(() => |
|||
{ |
|||
ModuleExtensionConfigurationHelper |
|||
.ApplyEntityConfigurationToUi( |
|||
IdentityModuleExtensionConsts.ModuleName, |
|||
IdentityModuleExtensionConsts.EntityNames.Role, |
|||
createFormTypes: new[] { typeof(IdentityRoleCreateDto) }, |
|||
editFormTypes: new[] { typeof(IdentityRoleUpdateDto) } |
|||
); |
|||
|
|||
ModuleExtensionConfigurationHelper |
|||
.ApplyEntityConfigurationToUi( |
|||
IdentityModuleExtensionConsts.ModuleName, |
|||
IdentityModuleExtensionConsts.EntityNames.User, |
|||
createFormTypes: new[] { typeof(IdentityUserCreateDto) }, |
|||
editFormTypes: new[] { typeof(IdentityUserUpdateDto) } |
|||
); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,37 @@ |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Identity.Localization; |
|||
using Volo.Abp.UI.Navigation; |
|||
using Volo.Abp.Authorization.Permissions; |
|||
|
|||
namespace Volo.Abp.Identity.Blazor.MudBlazor; |
|||
|
|||
public class AbpIdentityWebMainMenuContributor : IMenuContributor |
|||
{ |
|||
public virtual Task ConfigureMenuAsync(MenuConfigurationContext context) |
|||
{ |
|||
if (context.Menu.Name != StandardMenus.Main) |
|||
{ |
|||
return Task.CompletedTask; |
|||
} |
|||
|
|||
var administrationMenu = context.Menu.GetAdministration(); |
|||
|
|||
var l = context.GetLocalizer<IdentityResource>(); |
|||
|
|||
var identityMenuItem = new ApplicationMenuItem(IdentityMenuNames.GroupName, l["Menu:IdentityManagement"], |
|||
icon: "far fa-id-card"); |
|||
administrationMenu.AddItem(identityMenuItem); |
|||
|
|||
identityMenuItem.AddItem(new ApplicationMenuItem( |
|||
IdentityMenuNames.Roles, |
|||
l["Roles"], |
|||
url: "~/identity/roles").RequirePermissions(IdentityPermissions.Roles.Default)); |
|||
|
|||
identityMenuItem.AddItem(new ApplicationMenuItem( |
|||
IdentityMenuNames.Users, |
|||
l["Users"], |
|||
url: "~/identity/users").RequirePermissions(IdentityPermissions.Users.Default)); |
|||
|
|||
return Task.CompletedTask; |
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
namespace Volo.Abp.Identity.Blazor.MudBlazor; |
|||
|
|||
public static class IdentityMenuNames |
|||
{ |
|||
public const string GroupName = "IdentityManagement"; |
|||
|
|||
public const string Roles = "AbpIdentity.Roles"; |
|||
|
|||
public const string Users = "AbpIdentity.Users"; |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk.Razor"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Mapperly\Volo.Abp.Mapperly.csproj" /> |
|||
<ProjectReference Include="..\..\..\permission-management\src\Volo.Abp.PermissionManagement.Blazor.MudBlazor\Volo.Abp.PermissionManagement.Blazor.MudBlazor.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.Identity.Application.Contracts\Volo.Abp.Identity.Application.Contracts.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,7 @@ |
|||
@using Microsoft.AspNetCore.Components.Web |
|||
@using Microsoft.AspNetCore.Components.Forms |
|||
@using Volo.Abp.AspNetCore.Components.Web |
|||
@using Volo.Abp.MudBlazorUI |
|||
@using Volo.Abp.MudBlazorUI.Components |
|||
@using MudBlazor |
|||
@using MudBlazor.Components |
|||
@ -0,0 +1,12 @@ |
|||
using Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.Abp.PermissionManagement.Blazor.MudBlazor.Server; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpPermissionManagementBlazorMudBlazorModule), |
|||
typeof(AbpAspNetCoreComponentsServerThemingMudBlazorModule) |
|||
)] |
|||
public class AbpPermissionManagementBlazorMudBlazorServerModule : AbpModule |
|||
{ |
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.PermissionManagement.Blazor.MudBlazor\Volo.Abp.PermissionManagement.Blazor.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.Abp.PermissionManagement.Blazor.MudBlazor.WebAssembly; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpPermissionManagementBlazorMudBlazorModule), |
|||
typeof(AbpAspNetCoreComponentsWebAssemblyThemingMudBlazorModule), |
|||
typeof(AbpPermissionManagementHttpApiClientModule) |
|||
)] |
|||
public class AbpPermissionManagementBlazorMudBlazorWebAssemblyModule : AbpModule |
|||
{ |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.PermissionManagement.Blazor.MudBlazor\Volo.Abp.PermissionManagement.Blazor.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\Volo.Abp.PermissionManagement.HttpApi.Client\Volo.Abp.PermissionManagement.HttpApi.Client.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,26 @@ |
|||
using Localization.Resources.AbpUi; |
|||
using Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor; |
|||
using Volo.Abp.Localization; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.PermissionManagement.Localization; |
|||
|
|||
namespace Volo.Abp.PermissionManagement.Blazor.MudBlazor; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpAspNetCoreComponentsWebThemingMudBlazorModule), |
|||
typeof(AbpPermissionManagementApplicationContractsModule) |
|||
)] |
|||
public class AbpPermissionManagementBlazorMudBlazorModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
Configure<AbpLocalizationOptions>(options => |
|||
{ |
|||
options.Resources |
|||
.Get<AbpPermissionManagementResource>() |
|||
.AddBaseTypes( |
|||
typeof(AbpUiResource) |
|||
); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk.Razor"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.PermissionManagement.Application.Contracts\Volo.Abp.PermissionManagement.Application.Contracts.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,3 @@ |
|||
@using Microsoft.AspNetCore.Components.Web |
|||
@using Volo.Abp.AspNetCore.Components.Web |
|||
@using MudBlazor |
|||
@ -0,0 +1,12 @@ |
|||
using Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.Abp.SettingManagement.Blazor.MudBlazor.Server; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpSettingManagementBlazorMudBlazorModule), |
|||
typeof(AbpAspNetCoreComponentsServerThemingMudBlazorModule) |
|||
)] |
|||
public class AbpSettingManagementBlazorMudBlazorServerModule : AbpModule |
|||
{ |
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.SettingManagement.Blazor.MudBlazor\Volo.Abp.SettingManagement.Blazor.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.Abp.SettingManagement.Blazor.MudBlazor.WebAssembly; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpSettingManagementBlazorMudBlazorModule), |
|||
typeof(AbpAspNetCoreComponentsWebAssemblyThemingMudBlazorModule), |
|||
typeof(AbpSettingManagementHttpApiClientModule) |
|||
)] |
|||
public class AbpSettingManagementBlazorMudBlazorWebAssemblyModule : AbpModule |
|||
{ |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.SettingManagement.Blazor.MudBlazor\Volo.Abp.SettingManagement.Blazor.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\Volo.Abp.SettingManagement.HttpApi.Client\Volo.Abp.SettingManagement.HttpApi.Client.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,51 @@ |
|||
using Localization.Resources.AbpUi; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor; |
|||
using Volo.Abp.AspNetCore.Components.Web.Theming.Routing; |
|||
using Volo.Abp.Localization; |
|||
using Volo.Abp.Mapperly; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.SettingManagement.Blazor.MudBlazor.Menus; |
|||
using Volo.Abp.SettingManagement.Blazor.MudBlazor.Settings; |
|||
using Volo.Abp.SettingManagement.Localization; |
|||
using Volo.Abp.UI.Navigation; |
|||
|
|||
namespace Volo.Abp.SettingManagement.Blazor.MudBlazor; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpMapperlyModule), |
|||
typeof(AbpAspNetCoreComponentsWebThemingMudBlazorModule), |
|||
typeof(AbpSettingManagementApplicationContractsModule) |
|||
)] |
|||
public class AbpSettingManagementBlazorMudBlazorModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
context.Services.AddMapperlyObjectMapper<AbpSettingManagementBlazorMudBlazorModule>(); |
|||
|
|||
Configure<AbpNavigationOptions>(options => |
|||
{ |
|||
options.MenuContributors.Add(new SettingManagementMenuContributor()); |
|||
}); |
|||
|
|||
Configure<AbpRouterOptions>(options => |
|||
{ |
|||
options.AdditionalAssemblies.Add(typeof(AbpSettingManagementBlazorMudBlazorModule).Assembly); |
|||
}); |
|||
|
|||
Configure<SettingManagementComponentOptions>(options => |
|||
{ |
|||
options.Contributors.Add(new EmailingPageContributor()); |
|||
options.Contributors.Add(new TimeZonePageContributor()); |
|||
}); |
|||
|
|||
Configure<AbpLocalizationOptions>(options => |
|||
{ |
|||
options.Resources |
|||
.Get<AbpSettingManagementResource>() |
|||
.AddBaseTypes( |
|||
typeof(AbpUiResource) |
|||
); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk.Razor"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
<RootNamespace>Volo.Abp.SettingManagement.Blazor.MudBlazor</RootNamespace> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Mapperly\Volo.Abp.Mapperly.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.SettingManagement.Application.Contracts\Volo.Abp.SettingManagement.Application.Contracts.csproj" /> |
|||
</ItemGroup> |
|||
</Project> |
|||
@ -0,0 +1,12 @@ |
|||
using Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.Abp.TenantManagement.Blazor.MudBlazor.Server; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpTenantManagementBlazorMudBlazorModule), |
|||
typeof(AbpAspNetCoreComponentsServerThemingMudBlazorModule) |
|||
)] |
|||
public class AbpTenantManagementBlazorMudBlazorServerModule : AbpModule |
|||
{ |
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.TenantManagement.Blazor.MudBlazor\Volo.Abp.TenantManagement.Blazor.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.Abp.TenantManagement.Blazor.MudBlazor.WebAssembly; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpTenantManagementBlazorMudBlazorModule), |
|||
typeof(AbpAspNetCoreComponentsWebAssemblyThemingMudBlazorModule), |
|||
typeof(AbpTenantManagementHttpApiClientModule) |
|||
)] |
|||
public class AbpTenantManagementBlazorMudBlazorWebAssemblyModule : AbpModule |
|||
{ |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.TenantManagement.Blazor.MudBlazor\Volo.Abp.TenantManagement.Blazor.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.WebAssembly.Theming.MudBlazor.csproj" /> |
|||
<ProjectReference Include="..\Volo.Abp.TenantManagement.HttpApi.Client\Volo.Abp.TenantManagement.HttpApi.Client.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,64 @@ |
|||
using Localization.Resources.AbpUi; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.AspNetCore.Components.Web.Theming.Routing; |
|||
using Volo.Abp.Mapperly; |
|||
using Volo.Abp.FeatureManagement.Blazor.MudBlazor; |
|||
using Volo.Abp.FeatureManagement.Localization; |
|||
using Volo.Abp.Localization; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.ObjectExtending; |
|||
using Volo.Abp.ObjectExtending.Modularity; |
|||
using Volo.Abp.TenantManagement.Blazor.MudBlazor.Navigation; |
|||
using Volo.Abp.TenantManagement.Localization; |
|||
using Volo.Abp.Threading; |
|||
using Volo.Abp.UI.Navigation; |
|||
|
|||
namespace Volo.Abp.TenantManagement.Blazor.MudBlazor; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpMapperlyModule), |
|||
typeof(AbpTenantManagementApplicationContractsModule), |
|||
typeof(AbpFeatureManagementBlazorMudBlazorModule) |
|||
)] |
|||
public class AbpTenantManagementBlazorMudBlazorModule : AbpModule |
|||
{ |
|||
private static readonly OneTimeRunner OneTimeRunner = new(); |
|||
|
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
context.Services.AddMapperlyObjectMapper<AbpTenantManagementBlazorMudBlazorModule>(); |
|||
|
|||
Configure<AbpNavigationOptions>(options => |
|||
{ |
|||
options.MenuContributors.Add(new TenantManagementBlazorMenuContributor()); |
|||
}); |
|||
|
|||
Configure<AbpRouterOptions>(options => |
|||
{ |
|||
options.AdditionalAssemblies.Add(typeof(AbpTenantManagementBlazorMudBlazorModule).Assembly); |
|||
}); |
|||
|
|||
Configure<AbpLocalizationOptions>(options => |
|||
{ |
|||
options.Resources |
|||
.Get<AbpTenantManagementResource>() |
|||
.AddBaseTypes( |
|||
typeof(AbpFeatureManagementResource), |
|||
typeof(AbpUiResource)); |
|||
}); |
|||
} |
|||
|
|||
public override void PostConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
OneTimeRunner.Run(() => |
|||
{ |
|||
ModuleExtensionConfigurationHelper |
|||
.ApplyEntityConfigurationToUi( |
|||
TenantManagementModuleExtensionConsts.ModuleName, |
|||
TenantManagementModuleExtensionConsts.EntityNames.Tenant, |
|||
createFormTypes: new[] { typeof(TenantCreateDto) }, |
|||
editFormTypes: new[] { typeof(TenantUpdateDto) } |
|||
); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,22 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk.Razor"> |
|||
|
|||
<Import Project="..\..\..\..\configureawait.props" /> |
|||
<Import Project="..\..\..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net10.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Mapperly\Volo.Abp.Mapperly.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\..\..\feature-management\src\Volo.Abp.FeatureManagement.Blazor.MudBlazor\Volo.Abp.FeatureManagement.Blazor.MudBlazor.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Volo.Abp.TenantManagement.Application.Contracts\Volo.Abp.TenantManagement.Application.Contracts.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
Loading…
Reference in new issue