Skip to content

Commit

Permalink
fix: type-check
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 committed Jan 10, 2025
1 parent 86c488b commit 176a8ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions client/src/components/BenchmarkDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ watch(
<div v-if="bench" class="bench-detail-container">
<div class="bench-score-container">
<div class="bench-score-label">スコア</div>
<div v-if="bench.score !== undefined" class="bench-score-content">
<div
v-if="bench.status === 'running' || bench.status === 'finished'"
class="bench-score-content"
>
{{ formatScore(bench.score) }}
</div>
<div v-else class="bench-score-content-dimmed">未計測</div>
Expand All @@ -63,14 +66,17 @@ watch(
</div>
<div class="bench-detail-element">
<div class="bench-detail-label">開始時刻</div>
<div class="bench-detail-content" v-if="bench.startedAt">
<div
class="bench-detail-content"
v-if="bench.status === 'running' || bench.status === 'finished'"
>
{{ formatDate(bench.startedAt, 'YYYY/MM/DD hh:mm:ss') }}
</div>
<div class="bench-detail-content-dimmed" v-else>まだ開始していません</div>
</div>
<div class="bench-detail-element">
<div class="bench-detail-label">終了時刻</div>
<div class="bench-detail-content" v-if="bench.finishedAt">
<div class="bench-detail-content" v-if="bench.status === 'finished'">
{{ formatDate(bench.finishedAt, 'YYYY/MM/DD hh:mm:ss') }}
</div>
<div class="bench-detail-content-dimmed" v-else>まだ終了していません</div>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/BenchmarkList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const { data: users } = useUsers()
</div>
<div class="list-label"></div>
<template v-for="bench in sortedBenches" :key="bench.id">
<div v-if="bench.score !== undefined" class="bench-score">
<div v-if="bench.status === 'running' || bench.status === 'finished'" class="bench-score">
{{ formatScore(bench.score) }}
</div>
<div v-else class="bench-score-loading">計測中</div>
Expand Down

0 comments on commit 176a8ea

Please sign in to comment.