diff --git a/.github/workflows/sonar-scan.yml b/.github/workflows/sonar-scan.yml index 7d1bca8db..48a93318a 100644 --- a/.github/workflows/sonar-scan.yml +++ b/.github/workflows/sonar-scan.yml @@ -147,6 +147,8 @@ jobs: body=${body//'%'/'%25'} body=${body//$'\n'/'%0A'} body=${body//$'\r'/'%0D'} + body=${body//$'`'/'%60'} + body=${body//$'>'/'%3E'} echo $body echo "::set-output name=BODY::$body" @@ -249,6 +251,8 @@ jobs: body=${body//'%'/'%25'} body=${body//$'\n'/'%0A'} body=${body//$'\r'/'%0D'} + body=${body//$'`'/'%60'} + body=${body//$'>'/'%3E'} echo $body echo "::set-output name=BODY::$body" diff --git a/API/API.csproj b/API/API.csproj index 137a3a985..d6f059830 100644 --- a/API/API.csproj +++ b/API/API.csproj @@ -107,6 +107,11 @@ + + + + + @@ -115,12 +120,18 @@ - + + + + + + Always + diff --git a/API/DTOs/ChapterDto.cs b/API/DTOs/ChapterDto.cs index d7a4beb64..8c791a395 100644 --- a/API/DTOs/ChapterDto.cs +++ b/API/DTOs/ChapterDto.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; namespace API.DTOs { @@ -45,5 +46,9 @@ namespace API.DTOs /// Volume Id this Chapter belongs to /// public int VolumeId { get; init; } + /// + /// When chapter was created + /// + public DateTime Created { get; init; } } } diff --git a/UI/Web/src/app/_models/chapter.ts b/UI/Web/src/app/_models/chapter.ts index 94dd1b2d1..4a9399489 100644 --- a/UI/Web/src/app/_models/chapter.ts +++ b/UI/Web/src/app/_models/chapter.ts @@ -15,4 +15,5 @@ export interface Chapter { pagesRead: number; // Attached for the given user when requesting from API isSpecial: boolean; title: string; + created: string; } diff --git a/UI/Web/src/app/cards/_modals/card-details-modal/card-details-modal.component.html b/UI/Web/src/app/cards/_modals/card-details-modal/card-details-modal.component.html index 80726b878..b5938118c 100644 --- a/UI/Web/src/app/cards/_modals/card-details-modal/card-details-modal.component.html +++ b/UI/Web/src/app/cards/_modals/card-details-modal/card-details-modal.component.html @@ -21,7 +21,7 @@
-
+
Added: {{(data.created | date: 'short') || '-'}}
diff --git a/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.html b/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.html index f39ee04d1..ef3c2a3cc 100644 --- a/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.html +++ b/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.html @@ -110,7 +110,7 @@
- Created: {{volume.created | date: 'short'}} + Added: {{volume.created | date: 'short'}}
Last Modified: {{volume.lastModified | date: 'short'}}