All files / stream MemoryPanel.vue

0% Statements 0/5
0% Branches 0/6
100% Functions 0/0
0% Lines 0/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                                 
<script setup lang="ts">
import MemoryList from './MemoryList.vue'
import { stopwatch } from '@shared/runtime'
 
defineProps<{ values: Record<string, number> | null; seconds: number | null }>()
</script>
 
<template>
  <section class="panel insight-panel memory-panel">
    <span class="panel-title"
      >Game memory<small v-if="seconds !== null"> ยท at {{ stopwatch(seconds) }}</small></span
    >
    <MemoryList v-if="values && Object.keys(values).length" :values="values" />
    <span v-else class="panel-placeholder">The game memory follows the run as it plays</span>
  </section>
</template>