mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 16:52:04 +02:00
Log Grid added, using server side filtering, sorting and paging. Using DynamicQueryable.
This commit is contained in:
34
NzbDrone.Web/Models/DataTablesParams.cs
Normal file
34
NzbDrone.Web/Models/DataTablesParams.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace NzbDrone.Web.Models
|
||||
{
|
||||
public class DataTablesParams
|
||||
{
|
||||
public int iDisplayStart { get; set; }
|
||||
public int iDisplayLength { get; set; }
|
||||
public int iColumns { get; set; }
|
||||
public string sSearch { get; set; }
|
||||
public bool bEscapeRegex { get; set; }
|
||||
public int iSortingCols { get; set; }
|
||||
public int sEcho { get; set; }
|
||||
public List<bool> bSortable { get; set; }
|
||||
public List<bool> bSearchable { get; set; }
|
||||
public List<string> sSearchColumns { get; set; }
|
||||
public List<int> iSortCol { get; set; }
|
||||
public List<string> sSortDir { get; set; }
|
||||
public List<bool> bEscapeRegexColumns { get; set; }
|
||||
|
||||
public DataTablesParams()
|
||||
{
|
||||
bSortable = new List<bool>();
|
||||
bSearchable = new List<bool>();
|
||||
sSearchColumns = new List<string>();
|
||||
iSortCol = new List<int>();
|
||||
sSortDir = new List<string>();
|
||||
bEscapeRegexColumns = new List<bool>();
|
||||
}
|
||||
}
|
||||
}
|
19
NzbDrone.Web/Models/LogModel.cs
Normal file
19
NzbDrone.Web/Models/LogModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace NzbDrone.Web.Models
|
||||
{
|
||||
public class LogModel
|
||||
{
|
||||
public string Message { get; set; }
|
||||
public string Time { get; set; }
|
||||
public string Source { get; set; }
|
||||
public string Method { get; set; }
|
||||
public string Exception { get; set; }
|
||||
public string ExceptionType { get; set; }
|
||||
public string Level { get; set; }
|
||||
public string Details { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user