Update Notification Refactor (#511)
* Replaced profile links to anchors so we can open in new tab if we like * Refactored how update checking works. We now explicitly check and send back on the same API. We have a weekly job that will push an update to the user. * Implemented a changelog tab * Ported over a GA fix for using ' in PR bodies. * Don't check cert for Github
This commit is contained in:
parent
0e48aeebc5
commit
2a76092566
21 changed files with 246 additions and 56 deletions
38
API/DTOs/Update/UpdateNotificationDto.cs
Normal file
38
API/DTOs/Update/UpdateNotificationDto.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
namespace API.DTOs.Update
|
||||
{
|
||||
/// <summary>
|
||||
/// Update Notification denoting a new release available for user to update to
|
||||
/// </summary>
|
||||
public class UpdateNotificationDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Current installed Version
|
||||
/// </summary>
|
||||
public string CurrentVersion { get; init; }
|
||||
/// <summary>
|
||||
/// Semver of the release version
|
||||
/// <example>0.4.3</example>
|
||||
/// </summary>
|
||||
public string UpdateVersion { get; init; }
|
||||
/// <summary>
|
||||
/// Release body in HTML
|
||||
/// </summary>
|
||||
public string UpdateBody { get; init; }
|
||||
/// <summary>
|
||||
/// Title of the release
|
||||
/// </summary>
|
||||
public string UpdateTitle { get; init; }
|
||||
/// <summary>
|
||||
/// Github Url
|
||||
/// </summary>
|
||||
public string UpdateUrl { get; init; }
|
||||
/// <summary>
|
||||
/// If this install is within Docker
|
||||
/// </summary>
|
||||
public bool IsDocker { get; init; }
|
||||
/// <summary>
|
||||
/// Is this a pre-release
|
||||
/// </summary>
|
||||
public bool IsPrerelease { get; init; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue