build: 升级目标框架到net10.0并完善模板配置
1. 将Hua.Cli.Tests、项目共享库、模块项目等所有项目的TargetFramework从net8.0/net9.0升级到net10.0 2. 完善dotnet-tools.json、模板配置文件,添加必要的构建和发布配置 3. 新增微服务、网关、应用程序的启动脚本和基础配置文件 4. 补充产品管理模块的领域、应用、Web层基础代码和多语言资源
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
@page
|
||||
@using Volo.Abp.Users
|
||||
@model Company.Project.AuthServer.Pages.IndexModel
|
||||
@inject ICurrentUser CurrentUser
|
||||
@if (CurrentUser.IsAuthenticated)
|
||||
{
|
||||
<div>
|
||||
<abp-row>
|
||||
<abp-column size-md="_3" class="text-center">
|
||||
<i class="fa fa-user d-block" style="font-size: 10em; color: #12b900"></i>
|
||||
<a abp-button="Primary" asp-controller="Logout" asp-action="Index" asp-area="Account">Logout</a>
|
||||
</abp-column>
|
||||
<abp-column size-md="_9">
|
||||
<h2>@CurrentUser.UserName</h2>
|
||||
<h5 class="text-muted">@CurrentUser.Email</h5>
|
||||
<div>
|
||||
<strong>Roles</strong>: @CurrentUser.Roles.JoinAsString(", ")
|
||||
<br />
|
||||
<strong>Claims</strong>: <br />
|
||||
@Html.Raw(CurrentUser.GetAllClaims().Select(c => $"{c.Type}={c.Value}").JoinAsString(" <br /> "))
|
||||
</div>
|
||||
</abp-column>
|
||||
</abp-row>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (!CurrentUser.IsAuthenticated)
|
||||
{
|
||||
<div class="text-center">
|
||||
<img src="~/images/anonymous-user.png" width="200" /><br/><br />
|
||||
<a abp-button="Primary" asp-page="/Account/Login">Login</a>
|
||||
</div>
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages;
|
||||
|
||||
namespace Company.Project.AuthServer.Pages;
|
||||
|
||||
public class IndexModel : AbpPageModel
|
||||
{
|
||||
public void OnGet()
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user