forked from tbnobody/OpenDTU
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f62362
commit ec42c6f
Showing
5 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<CardElement :text="$t('serialPortUsage.SerialPortUsage')" textVariant="text-bg-primary" table> | ||
<div class="table-responsive"> | ||
<table class="table table-hover table-condensed"> | ||
<tbody> | ||
<tr> | ||
<th>{{ $t('serialPortUsage.Number') }}</th> | ||
<th>{{ $t('serialPortUsage.Owner') }}</th> | ||
</tr> | ||
<tr v-for="serialPort in serialPortDetails" v-bind:key="serialPort.port"> | ||
<td>{{ serialPort.port }}</td> | ||
<td>{{ serialPort.owner !== '' ? serialPort.owner : $t('serialPortDetails.Available') }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</CardElement> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import CardElement from '@/components/CardElement.vue'; | ||
import type { SerialPortDetail } from '@/types/SystemStatus'; | ||
import { defineComponent, type PropType } from 'vue'; | ||
export default defineComponent({ | ||
components: { | ||
CardElement, | ||
}, | ||
props: { | ||
serialPortDetails: { type: Array as PropType<SerialPortDetail[]>, required: true }, | ||
}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters