More Bugfixes (#2989)

This commit is contained in:
Joe Milazzo 2024-06-09 13:16:11 -05:00 committed by GitHub
parent 1ae723b405
commit a3e020fe17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 579 additions and 272 deletions

View file

@ -6,10 +6,23 @@ namespace API.DTOs;
public class MangaFileDto
{
public int Id { get; init; }
/// <summary>
/// Absolute path to the archive file (normalized)
/// </summary>
public string FilePath { get; init; } = default!;
/// <summary>
/// Number of pages for the given file
/// </summary>
public int Pages { get; init; }
/// <summary>
/// How many bytes make up this file
/// </summary>
public long Bytes { get; init; }
public MangaFormat Format { get; init; }
public DateTime Created { get; init; }
/// <summary>
/// File extension
/// </summary>
public string? Extension { get; set; }
}

View file

@ -1,4 +1,5 @@
using API.Entities.Enums;
using System;
using API.Entities.Enums;
using API.Services;
namespace API.DTOs.Settings;
@ -88,6 +89,14 @@ public class ServerSettingDto
/// SMTP Configuration
/// </summary>
public SmtpConfigDto SmtpConfig { get; set; }
/// <summary>
/// The Date Kavita was first installed
/// </summary>
public DateTime? FirstInstallDate { get; set; }
/// <summary>
/// The Version of Kavita on the first run
/// </summary>
public string? FirstInstallVersion { get; set; }
/// <summary>
/// Are at least some basics filled in

View file

@ -1,4 +1,6 @@
namespace API.DTOs.Stats;
using System;
namespace API.DTOs.Stats;
/// <summary>
/// This is just for the Server tab on UI
@ -17,5 +19,13 @@ public class ServerInfoSlimDto
/// Version of Kavita
/// </summary>
public required string KavitaVersion { get; set; }
/// <summary>
/// The Date Kavita was first installed
/// </summary>
public DateTime? FirstInstallDate { get; set; }
/// <summary>
/// The Version of Kavita on the first run
/// </summary>
public string? FirstInstallVersion { get; set; }
}