diff --git a/Data/pages.db b/Data/pages.db index a1d9540..b0d3241 100644 Binary files a/Data/pages.db and b/Data/pages.db differ diff --git a/Data/statistics.db b/Data/statistics.db index cd83161..a62821e 100644 Binary files a/Data/statistics.db and b/Data/statistics.db differ diff --git a/TightWiki.Models/ViewModels/Admin/MenuItemViewModel.cs b/TightWiki.Models/ViewModels/Admin/MenuItemViewModel.cs index a8b2177..6d2b593 100644 --- a/TightWiki.Models/ViewModels/Admin/MenuItemViewModel.cs +++ b/TightWiki.Models/ViewModels/Admin/MenuItemViewModel.cs @@ -1,12 +1,16 @@ -using TightWiki.Models.DataModels; +using System.ComponentModel.DataAnnotations; +using TightWiki.Models.DataModels; namespace TightWiki.Models.ViewModels.Admin { public class MenuItemViewModel : ViewModelBase { public int Id { get; set; } + [Display(Name = "分类")] public string Name { get; set; } = string.Empty; + [Display(Name = "链接")] public string Link { get; set; } = string.Empty; + [Display(Name = "序列")] public int Ordinal { get; set; } public MenuItem ToDataModel() diff --git a/TightWiki/Views/Admin/CompilationStatistics.cshtml b/TightWiki/Views/Admin/CompilationStatistics.cshtml index 40850ac..34e389f 100644 --- a/TightWiki/Views/Admin/CompilationStatistics.cshtml +++ b/TightWiki/Views/Admin/CompilationStatistics.cshtml @@ -7,11 +7,11 @@ }

- Compilations + 数据统计

- The compilation statistics for all wiki page operations.

+

@@ -25,8 +25,8 @@ } @Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateWarnLink(GlobalConfiguration.BasePath, - "Purging the page compilation statistics will delete all of the stored compilation statistics for all pages. Continue?", - "Purge Compilation Statistics", "/Admin/PurgeCompilationStatistics", Context.Request.Path.Value)) + "所有静态数据将会被清零,确定吗?", + "清楚数据", "/Admin/PurgeCompilationStatistics", Context.Request.Path.Value))

@@ -34,16 +34,16 @@ { - - - - - - - - - - + + + + + + + + + + @foreach (var stat in Model.Statistics) diff --git a/TightWiki/Views/Admin/MenuItem.cshtml b/TightWiki/Views/Admin/MenuItem.cshtml index 674ac7c..084365b 100644 --- a/TightWiki/Views/Admin/MenuItem.cshtml +++ b/TightWiki/Views/Admin/MenuItem.cshtml @@ -5,9 +5,9 @@ var sessionState = ViewData["SessionState"] as TightWiki.SessionState ?? throw new Exception("Wiki State Context cannot be null."); } -

Site Menu Item

+

新增链接

-

Global configuration for the site menu item.

+


@if (!string.IsNullOrEmpty(Model.ErrorMessage)) { @@ -47,7 +47,7 @@
- +
@@ -56,5 +56,5 @@
- + diff --git a/TightWiki/Views/Admin/MenuItems.cshtml b/TightWiki/Views/Admin/MenuItems.cshtml index 7bde202..da31f18 100644 --- a/TightWiki/Views/Admin/MenuItems.cshtml +++ b/TightWiki/Views/Admin/MenuItems.cshtml @@ -7,11 +7,11 @@ }

- Site Menu Items + 站点菜单

- Global configuration for the site menu.

+

@if (!string.IsNullOrEmpty(Model.ErrorMessage)) @@ -23,7 +23,7 @@
@Html.Raw(Model.SuccessMessage)
} -Add new item +新增

@@ -36,9 +36,9 @@
NameDate/TimeCompilationsDurationMatchesErrorsLinksTagsRaw SizeWikified Size页面名称最近访问时间访问次数耗时命中数异常数链接数Tag数原始大小实际大小
- - - + + + @@ -56,11 +56,11 @@ {
- Their are no menu items configured. + 暂无数据
} }
-Add new item +新增 diff --git a/TightWiki/Views/Admin/Role.cshtml b/TightWiki/Views/Admin/Role.cshtml index 827a5c4..24cbc91 100644 --- a/TightWiki/Views/Admin/Role.cshtml +++ b/TightWiki/Views/Admin/Role.cshtml @@ -6,11 +6,11 @@ }

- Role '@Model.Name'. + 角色- '@Model.Name'.

- Role membership.

+

@if (!string.IsNullOrEmpty(Model.ErrorMessage)) @@ -29,7 +29,7 @@
NameLinkOrdinal名称链接序列
- + diff --git a/TightWiki/Views/Admin/Roles.cshtml b/TightWiki/Views/Admin/Roles.cshtml index ddeb222..08a6b9f 100644 --- a/TightWiki/Views/Admin/Roles.cshtml +++ b/TightWiki/Views/Admin/Roles.cshtml @@ -7,11 +7,11 @@ }

- Roles + 角色

- Global configuration for security roles and membership.

+

@if (!string.IsNullOrEmpty(Model.ErrorMessage)) @@ -32,8 +32,8 @@
Name用户名
- - + + @@ -50,7 +50,7 @@ {
- There are no security roles configured. + 暂无数据
} diff --git a/TightWiki/Views/Shared/_Layout.cshtml b/TightWiki/Views/Shared/_Layout.cshtml index 7126b31..988523e 100644 --- a/TightWiki/Views/Shared/_Layout.cshtml +++ b/TightWiki/Views/Shared/_Layout.cshtml @@ -159,7 +159,7 @@ Emojis站点菜单 - 计算 + 统计数据库异常指标
NameDescription角色名称描述