Skip to content

Commit 4142092

Browse files
authored
added release date to title page missing update and missing dlc. Feature request #81 (#85)
1 parent 659f799 commit 4142092

7 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/NsxLibraryManager.Shared/Dto/DlcDto.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ public record DlcDto()
1111
public long Size { get; init; }
1212
public bool Owned { get; set; }
1313
public string? FileName { get; init; }
14+
public DateTime? ReleaseDate { get; init; }
1415
public Collection<ScreenshotDto>? Screenshots { get; init; }
1516
};

src/NsxLibraryManager/Extensions/TitleLibraryMappingExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public static LibraryTitleDto MapToLibraryTitleDto(this Title title,
115115
TitleName = d.TitleName,
116116
FileName = d.FileName,
117117
Version = d.Version,
118+
ReleaseDate = d.ReleaseDate,
118119
Size = d.Size.GetValueOrDefault(),
119120
Screenshots = new Collection<ScreenshotDto>(title.Screenshots.Select(x => new ScreenshotDto()
120121
{
@@ -141,6 +142,7 @@ public static LibraryTitleDto MapToLibraryTitleDto(this Title title,
141142
{
142143
ApplicationId = d.ApplicationId,
143144
TitleName = d.TitleName,
145+
ReleaseDate = d.ReleaseDate,
144146
Size = d.Size.GetValueOrDefault(),
145147
Screenshots = new Collection<ScreenshotDto>(title.Screenshots.Select(x => new ScreenshotDto()
146148
{

src/NsxLibraryManager/NsxLibraryManager.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
99
<ApplicationIcon>wwwroot\images\logo.ico</ApplicationIcon>
1010
<UserSecretsId>eea14e5f-4e4c-4f80-9ff5-0c48075f0367</UserSecretsId>
11-
<AssemblyVersion>0.4.6</AssemblyVersion>
12-
<FileVersion>0.4.6</FileVersion>
11+
<AssemblyVersion>0.4.7</AssemblyVersion>
12+
<FileVersion>0.4.7</FileVersion>
1313
<DebugType>embedded</DebugType>
1414
<PathsToSourceRoot>$(MSBuildProjectDirectory)</PathsToSourceRoot>
1515
</PropertyGroup>

src/NsxLibraryManager/Pages/MissingDlc.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<RadzenDataGridColumn TItem="LibraryTitleDto" Property="DlcCount" Title="Available Dlcs" Visible="true" Width="50px"/>
2424

2525
<RadzenDataGridColumn TItem="LibraryTitleDto" Property="Region" Title="Region" Visible="false" Width="50px"/>
26+
<RadzenDataGridColumn TItem="LibraryTitleDto" Property="ReleaseDate" Title="Release Date" FormatString="{0:d}" Width="50px"/>
2627
</Columns>
2728
</RadzenDataGrid>
2829
</RadzenStack>

src/NsxLibraryManager/Pages/MissingUpdates.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
<RadzenDataGridColumn TItem="LibraryTitleDto" Property="Region" Title="Region" Visible="true" Width="50px"/>
5656
<RadzenDataGridColumn TItem="LibraryTitleDto" Property="UpdatesCount" Title="Available Updates" Visible="true" Width="50px"/>
5757
<RadzenDataGridColumn TItem="LibraryTitleDto" Property="OwnedUpdatesCount" Title="Owned Updates" Visible="true" Width="50px" Sortable="true" />
58+
<RadzenDataGridColumn TItem="LibraryTitleDto" Property="ReleaseDate" Title="Release Date" FormatString="{0:d}" Width="50px"/>
59+
5860
</Columns>
5961
</RadzenDataGrid>
6062
</RadzenStack>

src/NsxLibraryManager/Pages/Title.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
@dlc.Size.ToHumanReadableBytes()
237237
</Template>
238238
</RadzenDataGridColumn>
239+
<RadzenDataGridColumn Property="ReleaseDate" Title="Date" FormatString="{0:d}" Width="50px"/>
239240
<RadzenDataGridColumn Property="Version" Filterable="false" Title="Version" Width="30px" TextAlign="TextAlign.Center"/>
240241
<RadzenDataGridColumn Property="Owned" Filterable="true" Title="Owned" Width="30px" TextAlign="TextAlign.Center" SortOrder="SortOrder.Descending" FormatString="{0}" FormatProvider="@_myBooleanProvider"/>
241242
</Columns>

src/NsxLibraryManager/Pages/Title.razor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ private async Task LoadDlcData(LoadDataArgs args)
9494
ApplicationId = t.ApplicationId,
9595
OtherApplicationId = t.OtherApplicationId,
9696
TitleName = t.TitleName,
97+
ReleaseDate = t.ReleaseDate,
9798
FileName = libraryApplicationIds.Contains(t.ApplicationId) ?
9899
libraryApplicationIds[t.ApplicationId].First().FileName :
99100
null,

0 commit comments

Comments
 (0)