webapp: create interface for NtpStatus

This commit is contained in:
Thomas Basler 2022-10-17 20:36:02 +02:00
parent 386b6b73bd
commit 19ee117a53
2 changed files with 9 additions and 7 deletions

View File

@ -0,0 +1,7 @@
export interface NtpStatus {
ntp_server: string,
ntp_timezone: string,
ntp_timezone_descr: string
ntp_status: boolean,
ntp_localtime: string
}

View File

@ -67,18 +67,13 @@
<script lang="ts">
import { defineComponent } from 'vue';
import type { NtpStatus } from "@/types/NtpStatus";
export default defineComponent({
data() {
return {
dataLoading: true,
ntpDataList: {
ntp_server: "",
ntp_timezone: "",
ntp_timezone_descr: "",
ntp_status: false,
ntp_localtime: ""
},
ntpDataList: {} as NtpStatus,
};
},
created() {