-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
painful migrate to angular 15.2.9 with work-around mariohmol/ang-json…
- Loading branch information
1 parent
3fb1347
commit a4e0de4
Showing
14 changed files
with
11,434 additions
and
27,377 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 54 additions & 38 deletions
92
src/app/views/blog-management/post/post-detail/post-detail.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,64 @@ | ||
<div class="clap-container"> | ||
<ang-clap fillColor="green" [claps]="count" [showBorder]="true" [showAnimation]="true" | ||
<!-- <ang-clap fillColor="green" [claps]="count" [showBorder]="true" [showAnimation]="true" | ||
(mouseClickEvent)="clapThisPost($event)" (mouseLeaveEvent)="updateClap()" (clearClapsEvent)="removeClap()"> | ||
</ang-clap> | ||
</ang-clap> --> | ||
</div> | ||
<div class="container post-container"> | ||
|
||
<article class="container article-page"> | ||
<div class="div__back-to-home"><a (click)="backToHome()">← Back to the Blog Home</a></div> | ||
<figure *ngIf="ready" class="d-flex-col-mid-center"> | ||
<img loading="lazy" class="page-image" src="{{item.postBackgroundImg}}" alt="post's image"> | ||
</figure> | ||
<article class="container article-page"> | ||
<div class="div__back-to-home"> | ||
<a (click)="backToHome()"> | ||
← Back to the Blog Home | ||
</a> | ||
</div> | ||
<figure *ngIf="ready" | ||
class="d-flex-col-mid-center"> | ||
<img loading="lazy" | ||
class="page-image" | ||
src="{{item.postBackgroundImg}}" | ||
alt="post's image"> | ||
</figure> | ||
|
||
<div class="wrap-content" *ngIf="ready"> | ||
<header class="header-page d-flex-col-mid-center"> | ||
<h1 class="page-title">{{item?.title}}</h1> | ||
<div class="page-date"> | ||
{{item?.author}} | ||
<div *ngIf="ready" | ||
class="wrap-content"> | ||
<header class="header-page d-flex-col-mid-center"> | ||
<h1 class="page-title">{{item?.title}}</h1> | ||
<div class="page-date"> | ||
{{item?.author}} | ||
wrote | ||
{{item?.createdAt | timeAgo }} | ||
({{item?.createdAt | date }}) | ||
with {{item?.viewCount | number:'1.0-0' }} <i class="fa fa-eye" aria-hidden="true"></i> | ||
</div> | ||
<div style="margin-top: 1rem;"> | ||
<div class="tagging" *ngFor="let tag of item.tags"> | ||
<a class="tagging__item" [routerLink]="'/home'" | ||
[queryParams]="{ tag: tag.name }">#{{tag.name}}</a> | ||
</div> | ||
</div> | ||
</header> | ||
</div> | ||
<div class="post-description"> | ||
<p>{{item?.description}}</p> | ||
</div> | ||
<div class="post-body"> | ||
<ng-container *ngIf="ready"> | ||
<docu-article *ngIf="item.type === POST_TYPE.GHOST_EDITOR; else markdownPart" | ||
[documentation]="item.contentGhostEditor"> | ||
</docu-article> | ||
with {{item?.viewCount | number:'1.0-0' }} | ||
<i class="fa fa-eye" | ||
aria-hidden="true"></i> | ||
</div> | ||
<div style="margin-top: 1rem;"> | ||
<div *ngFor="let tag of item.tags" | ||
class="tagging"> | ||
<a [routerLink]="'/home'" | ||
[queryParams]="{ tag: tag.name }" | ||
class="tagging__item"> | ||
#{{tag.name}} | ||
</a> | ||
</div> | ||
</div> | ||
</header> | ||
</div> | ||
<div class="post-description"> | ||
<p> | ||
{{item?.description}} | ||
</p> | ||
</div> | ||
<div class="post-body"> | ||
<ng-container *ngIf="ready"> | ||
<docu-article *ngIf="item.type === POST_TYPE.GHOST_EDITOR; else markdownPart" | ||
[documentation]="item.contentGhostEditor"> | ||
</docu-article> | ||
|
||
<ng-template #markdownPart> | ||
<markdown [data]="item.content"> | ||
</markdown> | ||
</ng-template> | ||
</ng-container> | ||
</div> | ||
</article> | ||
</div> | ||
<ng-template #markdownPart> | ||
<markdown [data]="item.content"></markdown> | ||
</ng-template> | ||
</ng-container> | ||
</div> | ||
</article> | ||
</div> |
Oops, something went wrong.