This commit is contained in:
Zel
2025-02-04 21:02:31 +08:00
parent 33fb0efd08
commit a2bbf56724
15 changed files with 16 additions and 16 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -3,7 +3,7 @@
namespace TightWiki.Models.DataModels
{
/// <summary>
/// This model combines the elements of an account and a profile into one class.
/// 将帐户和配置文件的元素组合到一个类中
/// </summary>
public partial class AccountProfile : IAccountProfile
{

View File

@@ -10,17 +10,17 @@
</li>
<li class="nav-item">
<form class="form-inline" asp-area="Identity" asp-page="/Account/Logout" asp-route-returnUrl="@Url.Page("/Index", new { area = "" })">
<button type="submit" class="nav-link btn btn-link text-dark">Logout</button>
<button type="submit" class="nav-link btn btn-link text-dark">登出</button>
</form>
</li>
}
else
{
<li class="nav-item">
<a class="nav-link text-dark" asp-area="Identity" asp-page="/Account/Register">Register</a>
<a class="nav-link text-dark" asp-area="Identity" asp-page="/Account/Register">注册</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="Identity" asp-page="/Account/Login">Login</a>
<a class="nav-link text-dark" asp-area="Identity" asp-page="/Account/Login">登录</a>
</li>
}
</ul>

View File

@@ -62,7 +62,7 @@
</div>
@if (sessionState.CanModerate == true || h.UserId == sessionState.Profile?.UserId)
{
<a href="?Delete=@h.Id" class="small text-danger text-decoration-none" onclick="return confirm('Are you sure you want to delete this comment?')">Delete</a>
<a href="?Delete=@h.Id" class="small text-danger text-decoration-none" onclick="return confirm('真的要删除吗?')">Delete</a>
}
</div>
</div>

View File

@@ -22,15 +22,15 @@
<strong>Delete page "@Model.PageName"?</strong>
</div>
<div class="card-body">
Deleting "@Model.PageName" will move the page, all @Model.PageRevision revisions and @Model.CountOfAttachments file attachments to the deletion queue.
This action can only be undone by an administrator or moderator.
页面 "@Model.PageName" 将被删除,所有修订和附件也将被删除。
此操作只能由管理员或主持人撤消。
<br /><br />
Are you sure you want to continue with this deletion?<br /><br />
您确定要继续此删除操作吗?<br /><br />
@using (Html.BeginForm(null, null, FormMethod.Post, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}" }))
{
<div class="form-group"><button type="submit" class="btn btn-danger rounded-0" name="IsActionConfirmed" value="true">Yes</button>&nbsp;&nbsp;<button type="submit" class="btn btn-success rounded-0" name="IsActionConfirmed" value="false">No</button></div>
<div class="form-group"><button type="submit" class="btn btn-danger rounded-0" name="IsActionConfirmed" value="true"></button>&nbsp;&nbsp;<button type="submit" class="btn btn-success rounded-0" name="IsActionConfirmed" value="false"></button></div>
}
</div>
</div>

View File

@@ -25,7 +25,7 @@
@using (Html.BeginForm(null, null, FormMethod.Post, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}" }))
{
<div class="form-group"><button type="submit" class="btn btn-warning rounded-0" name="IsActionConfirmed" value="true">Yes</button>&nbsp;&nbsp;<button type="submit" class="btn btn-success rounded-0" name="IsActionConfirmed" value="false">No</button></div>
<div class="form-group"><button type="submit" class="btn btn-warning rounded-0" name="IsActionConfirmed" value="true"></button>&nbsp;&nbsp;<button type="submit" class="btn btn-success rounded-0" name="IsActionConfirmed" value="false"></button></div>
}
</div>
</div>

View File

@@ -6,11 +6,11 @@
}
<h3>
Page Search
搜索
</h3>
<p>
If it's here, you should be able to find it.<br /><br />
找找有没有你想要的<br /><br />
</p>
@if (!string.IsNullOrEmpty(Model.ErrorMessage))
@@ -29,7 +29,7 @@
<div class="flex-grow-1 me-2">
@Html.TextBoxFor(x => x.SearchString, new { @class = "form-control", style = "width:100%" })
</div>
<button type="submit" value="Find" class="btn btn-primary">Search</button>
<button type="submit" value="Find" class="btn btn-primary">搜一搜</button>
</div>
</div>
<br />
@@ -52,7 +52,7 @@
{
<div class="d-flex small text-muted mb-0">
<strong>
Your search criteria resulted in no pages, simplify your search text.
好像啥也没查到哎
</strong>
</div>
}

View File

@@ -93,7 +93,7 @@
)
{
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle text-dark" href="#" id="navbarDropdownMenuLink" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Page</a>
<a class="nav-link dropdown-toggle text-dark" href="#" id="navbarDropdownMenuLink" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">页面</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
@if (sessionState.CanCreate == true)
@@ -186,7 +186,7 @@
@if (sessionState.IsAuthenticated == true)
{
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle text-dark" href="#" id="navbarDropdownMenuLink" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">我</a>
<a class="nav-link dropdown-toggle text-dark" href="#" id="navbarDropdownMenuLink" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">我</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Profile/My">个人信息</a>
<a class="dropdown-item text-dark" href="@GlobalConfiguration.BasePath/Identity/Account/Manage">账号</a>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 803 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB