This commit is contained in:
Zel
2025-02-23 18:47:21 +08:00
parent eaaffeeccb
commit e46a7ca31c
104 changed files with 2630 additions and 2516 deletions

View File

@@ -7,23 +7,23 @@ namespace ZelWiki.Models.DataModels
public int Id { get; set; } = 0;
/// <summary>
/// The revision of this page that is being viewed. May not be the latest revision.
/// 正在查看的此页面的修订版。可能不是最新版本
/// </summary>
public int Revision { get; set; }
/// <summary>
/// The most current revision of this page.
/// 此页面的最新修订版
/// </summary>
public int MostCurrentRevision { get; set; }
public bool IsHistoricalVersion => Revision != MostCurrentRevision;
/// <summary>
/// Lets us know whether this page exists and is loaded.
/// 此页面是否存在并已加载
/// </summary>
public bool Exists => Id > 0;
/// <summary>
/// Count of revisions higher than Revision.
/// 修订次数高于修订次数
/// </summary>
public int HigherRevisionCount { get; set; }
public int DeletedRevisionCount { get; set; }
@@ -36,8 +36,8 @@ namespace ZelWiki.Models.DataModels
{
get
{
int idealLength = 64;
int maxLength = 100;
var idealLength = 64;
var maxLength = 100;
if (Description.Length > idealLength)
{