webapp: create interface for NtpConfig
This commit is contained in:
parent
c52f1eeaa2
commit
05eb741833
5
webapp/src/types/NtpConfig.ts
Normal file
5
webapp/src/types/NtpConfig.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export interface NtpConfig {
|
||||
ntp_server: string,
|
||||
ntp_timezone: string,
|
||||
ntp_timezone_descr: string
|
||||
}
|
||||
@ -88,6 +88,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import BootstrapAlert from "@/components/BootstrapAlert.vue";
|
||||
import type { NtpConfig } from "@/types/NtpConfig";
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
@ -97,11 +98,7 @@ export default defineComponent({
|
||||
return {
|
||||
dataLoading: true,
|
||||
timezoneLoading: true,
|
||||
ntpConfigList: {
|
||||
ntp_server: "",
|
||||
ntp_timezone: "",
|
||||
ntp_timezone_descr: ""
|
||||
},
|
||||
ntpConfigList: {} as NtpConfig,
|
||||
timezoneList: {},
|
||||
timezoneSelect: "",
|
||||
mcuTime: new Date(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user