Skip to content

Commit 1b65b11

Browse files
authored
fix(vite): display time for plugin build flow table (#145)
1 parent 1cd8acb commit 1b65b11

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/vite/src/app/components/data/PluginDetailsTable.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Menu as VMenu } from 'floating-vue'
66
import { computed, ref } from 'vue'
77
import { settings } from '~~/app/state/settings'
88
import { parseReadablePath } from '~/utils/filepath'
9+
import { normalizeTimestamp } from '~/utils/format'
910
import { getFileTypeFromModuleId, ModuleTypeRules } from '~/utils/icon'
1011
1112
const props = defineProps<{
@@ -141,7 +142,7 @@ function toggleDurationSortType() {
141142
<div
142143
role="row"
143144
flex="~ row"
144-
class="border-base border-b-1 border-dashed"
145+
class="border-base border-b border-dashed"
145146
:class="[index === filtered.length - 1 ? 'border-b-0' : '']"
146147
>
147148
<div v-if="selectedFields.includes('hookName')" role="cell" flex="~ items-center justify-center" flex-none w32 ws-nowrap op80>
@@ -161,10 +162,10 @@ function toggleDurationSortType() {
161162
<DisplayDuration :duration="item.duration" />
162163
</div>
163164
<div v-if="selectedFields.includes('startTime')" role="cell" flex="~ items-center justify-center" flex-none text-center font-mono text-sm min-w52 op80>
164-
<DisplayTimestamp :timestamp="item.timestamp_start" />
165+
{{ normalizeTimestamp(item.timestamp_start) }}
165166
</div>
166167
<div v-if="selectedFields.includes('endTime')" role="cell" flex="~ items-center justify-center" flex-none text-center font-mono text-sm min-w52 op80>
167-
<DisplayTimestamp :timestamp="item.timestamp_end" />
168+
{{ normalizeTimestamp(item.timestamp_end) }}
168169
</div>
169170
</div>
170171
</template>

0 commit comments

Comments
 (0)