webapp: create interface for NetworkConfig

This commit is contained in:
Thomas Basler 2022-10-17 20:02:05 +02:00
parent a9a6a40eb8
commit c52f1eeaa2
2 changed files with 13 additions and 11 deletions

View File

@ -0,0 +1,11 @@
export interface NetworkConfig {
ssid: string,
password: string,
hostname: string,
dhcp: boolean,
ipaddress: string,
netmask: string,
gateway: string,
dns1: string,
dns2: string
}

View File

@ -114,6 +114,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
import BootstrapAlert from "@/components/BootstrapAlert.vue";
import type { NetworkConfig } from "@/types/NetworkkConfig";
export default defineComponent({
components: {
@ -122,17 +123,7 @@ export default defineComponent({
data() {
return {
dataLoading: true,
networkConfigList: {
ssid: "",
password: "",
hostname: "",
dhcp: false,
ipaddress: "",
netmask: "",
gateway: "",
dns1: "",
dns2: ""
},
networkConfigList: {} as NetworkConfig,
alertMessage: "",
alertType: "info",
showAlert: false,