mirror of https://github.com/abpframework/abp.git
committed by
GitHub
15 changed files with 139 additions and 126 deletions
@ -0,0 +1,14 @@ |
|||||
|
using Volo.Abp.Account.Localization; |
||||
|
using Volo.Abp.AspNetCore.Components; |
||||
|
|
||||
|
namespace Volo.Abp.Account.Blazor |
||||
|
{ |
||||
|
public abstract class AbpAccountComponentBase : AbpComponentBase |
||||
|
{ |
||||
|
protected AbpAccountComponentBase() |
||||
|
{ |
||||
|
LocalizationResource = typeof(AccountResource); |
||||
|
ObjectMapperContext = typeof(AbpAccountBlazorModule); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -1,33 +1,22 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
using Localization.Resources.AbpUi; |
|
||||
using Microsoft.AspNetCore.Components; |
using Microsoft.AspNetCore.Components; |
||||
using Microsoft.Extensions.Localization; |
|
||||
using Volo.Abp.Account.Localization; |
|
||||
using Volo.Abp.AspNetCore.Components.WebAssembly; |
using Volo.Abp.AspNetCore.Components.WebAssembly; |
||||
using Volo.Abp.Identity; |
using Volo.Abp.Identity; |
||||
using Volo.Abp.ObjectMapping; |
|
||||
|
|
||||
namespace Volo.Abp.Account.Blazor.Pages.Account |
namespace Volo.Abp.Account.Blazor.Pages.Account |
||||
{ |
{ |
||||
public abstract class AccountManageBase : OwningComponentBase |
public partial class AccountManage |
||||
{ |
{ |
||||
[Inject] protected IAccountAppService AccountAppService { get; set; } |
|
||||
[Inject] protected IProfileAppService ProfileAppService { get; set; } |
[Inject] protected IProfileAppService ProfileAppService { get; set; } |
||||
|
|
||||
[Inject] protected IObjectMapper<AbpAccountBlazorModule> ObjectMapper { get; set; } |
|
||||
|
|
||||
[Inject] protected IUiMessageService UiMessageService { get; set; } |
[Inject] protected IUiMessageService UiMessageService { get; set; } |
||||
|
|
||||
[Inject] protected IStringLocalizer<AbpUiResource> UiLocalizer { get; set; } |
|
||||
|
|
||||
[Inject] protected IStringLocalizer<AccountResource> L { get; set; } |
|
||||
|
|
||||
protected string SelectedTab = "Password"; |
protected string SelectedTab = "Password"; |
||||
|
|
||||
protected ChangePasswordModel ChangePasswordModel; |
protected ChangePasswordModel ChangePasswordModel; |
||||
|
|
||||
protected PersonalInfoModel PersonalInfoModel; |
protected PersonalInfoModel PersonalInfoModel; |
||||
|
|
||||
protected async override Task OnInitializedAsync() |
protected async override Task OnInitializedAsync() |
||||
{ |
{ |
||||
await GetUserInformations(); |
await GetUserInformations(); |
||||
@ -0,0 +1,13 @@ |
|||||
|
using Volo.Abp.AspNetCore.Components; |
||||
|
using Volo.Abp.FeatureManagement.Localization; |
||||
|
|
||||
|
namespace Volo.Abp.FeatureManagement.Blazor |
||||
|
{ |
||||
|
public abstract class AbpFeatureManagementComponentBase : AbpComponentBase |
||||
|
{ |
||||
|
protected AbpFeatureManagementComponentBase() |
||||
|
{ |
||||
|
LocalizationResource = typeof(AbpFeatureManagementResource); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue