the cards in all information views still used a div.card-body around the table, which added a margin on all sides of the table. to achieve a unified look, these cards and tables now look the same as the inverter channel cards.
53 lines
2.0 KiB
Vue
53 lines
2.0 KiB
Vue
<template>
|
|
<CardElement :text="$t('hardwareinfo.HardwareInformation')" textVariant="text-bg-primary" table>
|
|
<div class="table-responsive">
|
|
<table class="table table-hover table-condensed">
|
|
<tbody>
|
|
<tr>
|
|
<th>{{ $t('hardwareinfo.ChipModel') }}</th>
|
|
<td>{{ systemStatus.chipmodel }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{ $t('hardwareinfo.ChipRevision') }}</th>
|
|
<td>{{ systemStatus.chiprevision }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{ $t('hardwareinfo.ChipCores') }}</th>
|
|
<td>{{ systemStatus.chipcores }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{ $t('hardwareinfo.CpuFrequency') }}</th>
|
|
<td>{{ systemStatus.cpufreq }} {{ $t('hardwareinfo.Mhz') }}</td>
|
|
</tr>
|
|
<tr v-if="systemStatus.cputemp">
|
|
<th>{{ $t('hardwareinfo.CpuTemperature') }}</th>
|
|
<td>{{ $n(systemStatus.cputemp, 'celsius') }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{ $t('hardwareinfo.FlashSize') }}</th>
|
|
<td>
|
|
{{ $n(systemStatus.flashsize, 'byte') }}
|
|
({{ $n(systemStatus.flashsize / 1024 / 1024, 'megabyte') }})
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</CardElement>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import CardElement from '@/components/CardElement.vue';
|
|
import type { SystemStatus } from '@/types/SystemStatus';
|
|
import { defineComponent, type PropType } from 'vue';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
CardElement,
|
|
},
|
|
props: {
|
|
systemStatus: { type: Object as PropType<SystemStatus>, required: true },
|
|
},
|
|
});
|
|
</script>
|