From 2fd075398c0608a931e7dbb4c0eb44a97f6bd674 Mon Sep 17 00:00:00 2001 From: ori Date: Fri, 26 Apr 2019 00:28:31 +0300 Subject: [PATCH] completed system settings page with vuex integration --- chameleon-client/src/components/SystemTab.vue | 127 ++++++++++++++++-- chameleon-client/src/store.js | 19 ++- 2 files changed, 129 insertions(+), 17 deletions(-) diff --git a/chameleon-client/src/components/SystemTab.vue b/chameleon-client/src/components/SystemTab.vue index faceb79ed..09d95522d 100644 --- a/chameleon-client/src/components/SystemTab.vue +++ b/chameleon-client/src/components/SystemTab.vue @@ -1,41 +1,134 @@ - + \ No newline at end of file diff --git a/chameleon-client/src/store.js b/chameleon-client/src/store.js index d9ad07aba..f643f63c9 100644 --- a/chameleon-client/src/store.js +++ b/chameleon-client/src/store.js @@ -27,7 +27,11 @@ export const store = new Vuex.Store({ ratio:[0,0], extent:[0,100], //Settings - teamValue:0 + teamValue:0, + connectionType:"DHCP", + ip:0, + gateWay:0, + hostName:"" }, mutations:{ @@ -48,7 +52,11 @@ export const store = new Vuex.Store({ area: set('area'), ratio: set('ratio'), extent: set('extent'), - teamValue: set('teamValue') + teamValue: set('teamValue'), + connectionType: set('connectionType'), + ip: set('ip'), + gateWay : set('gateWay'), + hostName : set('hostName') }, getters:{ camera: state => state.camera, @@ -65,6 +73,11 @@ export const store = new Vuex.Store({ area: state =>state.area, ratio: state =>state.ratio, extent: state =>state.extent, - teamValue: state => state.teamValue + teamValue: state => state.teamValue, + connectionType: state => state.connectionType, + ip: state => state.ip, + gateWay: state => state.gateWay, + hostName: state => state.hostName + }, }); \ No newline at end of file