From 95b3d47d3e63fda6c0a0ce8d155f119d4f1e751e Mon Sep 17 00:00:00 2001 From: "Wataru.Kasahara" Date: Sun, 3 Mar 2024 17:07:57 +0900 Subject: [PATCH] npm run prettier --- .../pages/activity/activity.component.html | 4 +--- .../features/blog/applications/article.usecase.ts | 5 ++++- .../containers/articles/articles.component.html | 12 +++++------- .../blog/containers/articles/articles.component.ts | 5 ++++- .../blog/ui/article/article.component.html | 6 ++---- src/app/features/lab/pages/lab/lab.component.html | 14 ++++++-------- .../features/top/containers/top/top.component.html | 11 ++++++----- src/app/shared/card/card/card.component.html | 7 ++++--- src/index.html | 2 +- 9 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/app/features/activity/pages/activity/activity.component.html b/src/app/features/activity/pages/activity/activity.component.html index 8fc1590c..15e0ae84 100644 --- a/src/app/features/activity/pages/activity/activity.component.html +++ b/src/app/features/activity/pages/activity/activity.component.html @@ -2,9 +2,7 @@ diff --git a/src/app/features/blog/applications/article.usecase.ts b/src/app/features/blog/applications/article.usecase.ts index 53bc7ad7..abea1afa 100644 --- a/src/app/features/blog/applications/article.usecase.ts +++ b/src/app/features/blog/applications/article.usecase.ts @@ -7,7 +7,10 @@ import { FeedGateway } from '../infrastructures/gateways/feed.gateway'; @Injectable() export class ArticleUsecase { - constructor(private readonly componentStore: ArticleStore, private readonly feedGateway: FeedGateway) {} + constructor( + private readonly componentStore: ArticleStore, + private readonly feedGateway: FeedGateway, + ) {} async fetchFeed() { const rssFeed = await firstValueFrom(this.feedGateway.getRssResponse()); diff --git a/src/app/features/blog/containers/articles/articles.component.html b/src/app/features/blog/containers/articles/articles.component.html index 8a70f3ce..9822f56b 100644 --- a/src/app/features/blog/containers/articles/articles.component.html +++ b/src/app/features/blog/containers/articles/articles.component.html @@ -3,11 +3,9 @@

はてなブログに投稿された最新の 30 件を表示

@if (articles$ | async; as articles) { -
- @for (article of articles; track article) { - - - - } -
+
+ @for (article of articles; track article) { + + } +
} diff --git a/src/app/features/blog/containers/articles/articles.component.ts b/src/app/features/blog/containers/articles/articles.component.ts index 5713170a..6724ffc6 100644 --- a/src/app/features/blog/containers/articles/articles.component.ts +++ b/src/app/features/blog/containers/articles/articles.component.ts @@ -15,7 +15,10 @@ import { ArticleStore } from './article.store'; imports: [PageTitleComponent, NgIf, NgFor, ArticleComponent, AsyncPipe], }) export class ArticlesComponent implements OnInit { - constructor(private readonly _componentStore: ArticleStore, private _usecase: ArticleUsecase) {} + constructor( + private readonly _componentStore: ArticleStore, + private _usecase: ArticleUsecase, + ) {} articles$ = this._componentStore.blogItems$; ngOnInit(): void { diff --git a/src/app/features/blog/ui/article/article.component.html b/src/app/features/blog/ui/article/article.component.html index 5b651326..2d621294 100644 --- a/src/app/features/blog/ui/article/article.component.html +++ b/src/app/features/blog/ui/article/article.component.html @@ -1,11 +1,9 @@
-

{{ feedItem.publishDate | date : 'yyyy/MM/dd' }}

+

{{ feedItem.publishDate | date: 'yyyy/MM/dd' }}

{{ feedItem.title }}
diff --git a/src/app/features/lab/pages/lab/lab.component.html b/src/app/features/lab/pages/lab/lab.component.html index e6a809e6..659996a3 100644 --- a/src/app/features/lab/pages/lab/lab.component.html +++ b/src/app/features/lab/pages/lab/lab.component.html @@ -1,12 +1,10 @@ @for (content of labsContents; track content) { - - - + } diff --git a/src/app/features/top/containers/top/top.component.html b/src/app/features/top/containers/top/top.component.html index 6014eb24..1f16b8c4 100644 --- a/src/app/features/top/containers/top/top.component.html +++ b/src/app/features/top/containers/top/top.component.html @@ -3,11 +3,12 @@ diff --git a/src/app/shared/card/card/card.component.html b/src/app/shared/card/card/card.component.html index 35ba55e6..2a69ace8 100644 --- a/src/app/shared/card/card/card.component.html +++ b/src/app/shared/card/card/card.component.html @@ -2,9 +2,10 @@
{{ title }}
diff --git a/src/index.html b/src/index.html index 15da4140..6c226d28 100644 --- a/src/index.html +++ b/src/index.html @@ -1,4 +1,4 @@ - +