UI Tweaks (#722)

* Added Date Added time to volume/chapter card detail modals to help users understand when new chapters are added after something has been fully read. Changed Created -> Added for better clarity.

* updating workflow discord parser

- Added ` and > to parser

Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
Joseph Milazzo 2021-11-04 21:48:23 -05:00 committed by GitHub
parent fa44f130e3
commit 073dd5da99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 4 deletions

View File

@ -147,6 +147,8 @@ jobs:
body=${body//'%'/'%25'} body=${body//'%'/'%25'}
body=${body//$'\n'/'%0A'} body=${body//$'\n'/'%0A'}
body=${body//$'\r'/'%0D'} body=${body//$'\r'/'%0D'}
body=${body//$'`'/'%60'}
body=${body//$'>'/'%3E'}
echo $body echo $body
echo "::set-output name=BODY::$body" echo "::set-output name=BODY::$body"
@ -249,6 +251,8 @@ jobs:
body=${body//'%'/'%25'} body=${body//'%'/'%25'}
body=${body//$'\n'/'%0A'} body=${body//$'\n'/'%0A'}
body=${body//$'\r'/'%0D'} body=${body//$'\r'/'%0D'}
body=${body//$'`'/'%60'}
body=${body//$'>'/'%3E'}
echo $body echo $body
echo "::set-output name=BODY::$body" echo "::set-output name=BODY::$body"

View File

@ -107,6 +107,11 @@
<EmbeddedResource Remove="logs\**" /> <EmbeddedResource Remove="logs\**" />
<EmbeddedResource Remove="temp\**" /> <EmbeddedResource Remove="temp\**" />
<EmbeddedResource Remove="covers\**" /> <EmbeddedResource Remove="covers\**" />
<EmbeddedResource Remove="config\covers\**" />
<EmbeddedResource Remove="config\backups\**" />
<EmbeddedResource Remove="config\logs\**" />
<EmbeddedResource Remove="config\temp\**" />
<EmbeddedResource Remove="config\stats\**" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@ -115,12 +120,18 @@
<Content Remove="backups\**" /> <Content Remove="backups\**" />
<Content Remove="logs\**" /> <Content Remove="logs\**" />
<Content Remove="temp\**" /> <Content Remove="temp\**" />
<Content Remove="stats\**" /> <Content Remove="config\stats\**" />
<Content Remove="config\cache\**" />
<Content Remove="config\backups\**" />
<Content Remove="config\logs\**" />
<Content Remove="config\temp\**" />
<Content Remove="config\stats\**" />
<Content Condition=" '$(Configuration)' == 'Release' " Remove="appsettings.Development.json" /> <Content Condition=" '$(Configuration)' == 'Release' " Remove="appsettings.Development.json" />
<Content Update="appsettings.json"> <Content Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
<Content Remove="covers\**" /> <Content Remove="covers\**" />
<Content Remove="config\covers\**" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -1,4 +1,5 @@
using System.Collections.Generic; using System;
using System.Collections.Generic;
namespace API.DTOs namespace API.DTOs
{ {
@ -45,5 +46,9 @@ namespace API.DTOs
/// Volume Id this Chapter belongs to /// Volume Id this Chapter belongs to
/// </summary> /// </summary>
public int VolumeId { get; init; } public int VolumeId { get; init; }
/// <summary>
/// When chapter was created
/// </summary>
public DateTime Created { get; init; }
} }
} }

View File

@ -15,4 +15,5 @@ export interface Chapter {
pagesRead: number; // Attached for the given user when requesting from API pagesRead: number; // Attached for the given user when requesting from API
isSpecial: boolean; isSpecial: boolean;
title: string; title: string;
created: string;
} }

View File

@ -21,7 +21,7 @@
</div> </div>
</div> </div>
<div class="row no-gutters"> <div class="row no-gutters">
<div class="col" *ngIf="utilityService.isVolume(data)"> <div class="col" *ngIf="data.hasOwnProperty('created')">
Added: {{(data.created | date: 'short') || '-'}} Added: {{(data.created | date: 'short') || '-'}}
</div> </div>
<div class="col"> <div class="col">

View File

@ -110,7 +110,7 @@
<div> <div>
<div class="row no-gutters"> <div class="row no-gutters">
<div class="col"> <div class="col">
Created: {{volume.created | date: 'short'}} Added: {{volume.created | date: 'short'}}
</div> </div>
<div class="col"> <div class="col">
Last Modified: {{volume.lastModified | date: 'short'}} Last Modified: {{volume.lastModified | date: 'short'}}