6 changed files with 51 additions and 1 deletions
@ -0,0 +1,18 @@ |
|||
namespace LINGYUN.Abp.Account.Web.Bundling; |
|||
|
|||
public static class AccountBundles |
|||
{ |
|||
public static class Scripts |
|||
{ |
|||
public const string Global = "Abp.Account"; |
|||
|
|||
public const string ChangePassword = Global + ".ChangePassword"; |
|||
} |
|||
|
|||
public static class Styles |
|||
{ |
|||
public const string Global = "Abp.Account"; |
|||
|
|||
public const string UserLoginLink = Global + ".UserLoginLink"; |
|||
} |
|||
} |
|||
@ -0,0 +1,14 @@ |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
|||
|
|||
namespace LINGYUN.Abp.Account.Web.Bundling; |
|||
|
|||
public class UserLoginLinkStyleContributor : BundleContributor |
|||
{ |
|||
public override Task ConfigureBundleAsync(BundleConfigurationContext context) |
|||
{ |
|||
context.Files.Add("/styles/user-login-link/fix-style.css"); |
|||
|
|||
return Task.CompletedTask; |
|||
} |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
@using Localization.Resources.AbpUi |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using LINGYUN.Abp.Account.Web.Bundling; |
|||
@inject IHtmlLocalizer<AbpUiResource> L |
|||
|
|||
<abp-style-bundle name="@AccountBundles.Styles.UserLoginLink" /> |
|||
|
|||
<a class="nav-link fix-margin" role="button" href="~/Account/Login">@L["Login"]</a> |
|||
@ -0,0 +1,4 @@ |
|||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
|||
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI |
|||
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap |
|||
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling |
|||
@ -0,0 +1,3 @@ |
|||
.fix-margin { |
|||
margin: 10px 0; |
|||
} |
|||
Loading…
Reference in new issue