Skip to content

Commit

Permalink
npm run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kasaharu committed Mar 3, 2024
1 parent 1db637e commit 56e317c
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

<nav mat-tab-nav-bar [tabPanel]="tabPanel">
@for (category of categories; track category) {

<a mat-tab-link [active]="activeLink === category.key" [routerLink]="category.key">{{ category.label }}</a>

<a mat-tab-link [active]="activeLink === category.key" [routerLink]="category.key">{{ category.label }}</a>
}
</nav>
<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>
Expand Down
5 changes: 4 additions & 1 deletion src/app/features/blog/applications/article.usecase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
<p>はてなブログに投稿された最新の 30 件を表示</p>

@if (articles$ | async; as articles) {
<div class="feed-wrapper">
@for (article of articles; track article) {

<app-article [feedItem]="article"></app-article>

}
</div>
<div class="feed-wrapper">
@for (article of articles; track article) {
<app-article [feedItem]="article"></app-article>
}
</div>
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 2 additions & 4 deletions src/app/features/blog/ui/article/article.component.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<div class="blog-item">
<p class="blog-item-date">{{ feedItem.publishDate | date : 'yyyy/MM/dd' }}</p>
<p class="blog-item-date">{{ feedItem.publishDate | date: 'yyyy/MM/dd' }}</p>
<a class="blog-item-link" href="{{ feedItem.link }}" target="_blank" rel="noopener">{{ feedItem.title }}</a>
<ul class="category">
@for (category of feedItem.categories; track category) {

<li class="category-item">{{ category }}</li>

<li class="category-item">{{ category }}</li>
}
</ul>
</div>
14 changes: 6 additions & 8 deletions src/app/features/lab/pages/lab/lab.component.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<app-page-title [title]="'Labs'"></app-page-title>

@for (content of labsContents; track content) {

<app-card
[title]="content.title"
[demoPageUrl]="content.demoPageUrl"
[repositoryName]="content.repositoryName"
[repositoryUrl]="content.repositoryUrl"
></app-card>

<app-card
[title]="content.title"
[demoPageUrl]="content.demoPageUrl"
[repositoryName]="content.repositoryName"
[repositoryUrl]="content.repositoryUrl"
></app-card>
}
11 changes: 6 additions & 5 deletions src/app/features/top/containers/top/top.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@

<ul class="information">
@for (myInfo of myInfoList; track myInfo) {
<li class="list-item">{{ myInfo }}</li>
} @for (sns of snsList; track sns) {
<li class="list-item">
<a appExternalLink href="{{ sns.url }}">{{ sns.serviceName }}</a>
</li>
<li class="list-item">{{ myInfo }}</li>
}
@for (sns of snsList; track sns) {
<li class="list-item">
<a appExternalLink href="{{ sns.url }}">{{ sns.serviceName }}</a>
</li>
}
</ul>
</div>
7 changes: 4 additions & 3 deletions src/app/shared/card/card/card.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
<div class="card-title">{{ title }}</div>
<div class="external-links">
@if (demoPageUrl) {
<a class="link" appExternalLink href="{{ demoPageUrl }}">demo</a>
} @if (repositoryUrl) {
<a class="link" appExternalLink href="{{ repositoryUrl }}">GitHub - {{ repositoryName }}</a>
<a class="link" appExternalLink href="{{ demoPageUrl }}">demo</a>
}
@if (repositoryUrl) {
<a class="link" appExternalLink href="{{ repositoryUrl }}">GitHub - {{ repositoryName }}</a>
}
</div>
</div>

0 comments on commit 56e317c

Please sign in to comment.