我滴个乖乖

This commit is contained in:
zel
2025-02-20 15:20:28 +08:00
parent 4b54cca70b
commit 485cfcd6f2
2343 changed files with 495732 additions and 1022 deletions

View File

@@ -0,0 +1,8 @@
namespace ZelWiki.Models.ViewModels.Page
{
public class BrowseViewModel : ViewModelBase
{
public string? AssociatedPages { get; set; }
public string? TagCloud { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
using ZelWiki.Models.DataModels;
namespace ZelWiki.Models.ViewModels.Page
{
public class PageCommentsViewModel : ViewModelBase
{
public List<PageComment> Comments { get; set; } = new();
public string Comment { get; set; } = string.Empty;
public int PaginationPageCount { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
namespace ZelWiki.Models.ViewModels.Page
{
public class PageDeleteViewModel : ViewModelBase
{
public int CountOfAttachments { get; set; }
public int MostCurrentRevision { get; set; }
public string? PageName { get; set; }
public int PageRevision { get; set; }
}
}

View File

@@ -0,0 +1,20 @@
using ZelWiki.Models.DataModels;
namespace ZelWiki.Models.ViewModels.Page
{
public class PageDisplayViewModel : ViewModelBase
{
public string Body { get; set; } = string.Empty;
public string ModifiedByUserName { get; set; } = string.Empty;
public DateTime ModifiedDate { get; set; }
public List<PageComment> Comments { get; set; } = new();
public bool HideFooterComments { get; set; }
public bool HideFooterLastModified { get; set; }
public string Name { get; set; } = string.Empty;
public string Navigation { get; set; } = string.Empty;
public string Namespace { get; set; } = string.Empty;
public int Revision { get; set; }
public int MostCurrentRevision { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations;
namespace ZelWiki.Models.ViewModels.Page
{
public class PageEditViewModel : ViewModelBase
{
public int Id { get; set; }
[Required]
public string Name { get; set; } = string.Empty;
public string Navigation { get; set; } = string.Empty;
public string? Description { get; set; } = string.Empty;
public string? Body { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,15 @@
namespace ZelWiki.Models.ViewModels.Page
{
public class PageRevertViewModel : ViewModelBase
{
public string? PageName { get; set; }
/// <summary>
/// The highest revision for the page.
/// </summary>
public int HighestRevision { get; set; }
/// <summary>
/// The number of revisions that are higher than the current page revision.
/// </summary>
public int HigherRevisionCount { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
using ZelWiki.Models.DataModels;
namespace ZelWiki.Models.ViewModels.Page
{
public class RevisionsViewModel : ViewModelBase
{
public List<PageRevision> Revisions { get; set; } = new();
public int PaginationPageCount { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace ZelWiki.Models.ViewModels.Page
{
public class PageSearchViewModel : ViewModelBase
{
public List<DataModels.Page> Pages { get; set; } = new();
public string SearchString { get; set; } = string.Empty;
public int PaginationPageCount { get; set; }
}
}