Browse Source
Merge pull request #10112 from abpframework/liangshiwei/accouont
Add ProfileManagementScriptBundleContributor
pull/10113/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
21 additions and
0 deletions
-
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Components/ProfileManagementGroup/Password/AccountProfilePasswordManagementGroupViewComponent.cs
-
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Components/ProfileManagementGroup/PersonalInfo/AccountProfilePersonalInfoManagementGroupViewComponent.cs
-
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Components/ProfileManagementGroup/ProfileManagementScriptBundleContributor.cs
|
|
@ -2,12 +2,16 @@ |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
using Volo.Abp.AspNetCore.Mvc; |
|
|
using Volo.Abp.AspNetCore.Mvc; |
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Widgets; |
|
|
using Volo.Abp.Auditing; |
|
|
using Volo.Abp.Auditing; |
|
|
using Volo.Abp.Identity; |
|
|
using Volo.Abp.Identity; |
|
|
using Volo.Abp.Validation; |
|
|
using Volo.Abp.Validation; |
|
|
|
|
|
|
|
|
namespace Volo.Abp.Account.Web.Pages.Account.Components.ProfileManagementGroup.Password |
|
|
namespace Volo.Abp.Account.Web.Pages.Account.Components.ProfileManagementGroup.Password |
|
|
{ |
|
|
{ |
|
|
|
|
|
[Widget( |
|
|
|
|
|
ScriptTypes = new[] { typeof(ProfileManagementScriptBundleContributor) } |
|
|
|
|
|
)] |
|
|
public class AccountProfilePasswordManagementGroupViewComponent : AbpViewComponent |
|
|
public class AccountProfilePasswordManagementGroupViewComponent : AbpViewComponent |
|
|
{ |
|
|
{ |
|
|
private readonly IProfileAppService _profileAppService; |
|
|
private readonly IProfileAppService _profileAppService; |
|
|
|
|
|
@ -2,12 +2,16 @@ |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
using Volo.Abp.AspNetCore.Mvc; |
|
|
using Volo.Abp.AspNetCore.Mvc; |
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Widgets; |
|
|
using Volo.Abp.Domain.Entities; |
|
|
using Volo.Abp.Domain.Entities; |
|
|
using Volo.Abp.Identity; |
|
|
using Volo.Abp.Identity; |
|
|
using Volo.Abp.Validation; |
|
|
using Volo.Abp.Validation; |
|
|
|
|
|
|
|
|
namespace Volo.Abp.Account.Web.Pages.Account.Components.ProfileManagementGroup.PersonalInfo |
|
|
namespace Volo.Abp.Account.Web.Pages.Account.Components.ProfileManagementGroup.PersonalInfo |
|
|
{ |
|
|
{ |
|
|
|
|
|
[Widget( |
|
|
|
|
|
ScriptTypes = new[] { typeof(ProfileManagementScriptBundleContributor) } |
|
|
|
|
|
)] |
|
|
public class AccountProfilePersonalInfoManagementGroupViewComponent : AbpViewComponent |
|
|
public class AccountProfilePersonalInfoManagementGroupViewComponent : AbpViewComponent |
|
|
{ |
|
|
{ |
|
|
private readonly IProfileAppService _profileAppService; |
|
|
private readonly IProfileAppService _profileAppService; |
|
|
|
|
|
@ -0,0 +1,13 @@ |
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
|
|
|
|
|
|
|
|
|
|
|
namespace Volo.Abp.Account.Web.Pages.Account.Components.ProfileManagementGroup |
|
|
|
|
|
{ |
|
|
|
|
|
public class ProfileManagementScriptBundleContributor: BundleContributor |
|
|
|
|
|
{ |
|
|
|
|
|
public override void ConfigureBundle(BundleConfigurationContext context) |
|
|
|
|
|
{ |
|
|
|
|
|
context.Files.AddIfNotContains("/client-proxies/identity-proxy.js"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |