我滴个乖乖
This commit is contained in:
8
ZelWiki.Models/ViewModels/Page/BrowseViewModel.cs
Normal file
8
ZelWiki.Models/ViewModels/Page/BrowseViewModel.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace ZelWiki.Models.ViewModels.Page
|
||||
{
|
||||
public class BrowseViewModel : ViewModelBase
|
||||
{
|
||||
public string? AssociatedPages { get; set; }
|
||||
public string? TagCloud { get; set; }
|
||||
}
|
||||
}
|
||||
11
ZelWiki.Models/ViewModels/Page/PageCommentsViewModel.cs
Normal file
11
ZelWiki.Models/ViewModels/Page/PageCommentsViewModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
10
ZelWiki.Models/ViewModels/Page/PageDeleteViewModel.cs
Normal file
10
ZelWiki.Models/ViewModels/Page/PageDeleteViewModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
20
ZelWiki.Models/ViewModels/Page/PageDisplayViewModel.cs
Normal file
20
ZelWiki.Models/ViewModels/Page/PageDisplayViewModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
15
ZelWiki.Models/ViewModels/Page/PageEditViewModel.cs
Normal file
15
ZelWiki.Models/ViewModels/Page/PageEditViewModel.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
15
ZelWiki.Models/ViewModels/Page/PageRevertViewModel.cs
Normal file
15
ZelWiki.Models/ViewModels/Page/PageRevertViewModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
11
ZelWiki.Models/ViewModels/Page/PageRevisionsViewModel.cs
Normal file
11
ZelWiki.Models/ViewModels/Page/PageRevisionsViewModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
9
ZelWiki.Models/ViewModels/Page/PageSearchViewModel.cs
Normal file
9
ZelWiki.Models/ViewModels/Page/PageSearchViewModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user