diff --git a/web/src/App.vue b/web/src/App.vue index 3731921..cf22df5 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -46,7 +46,7 @@ @@ -66,8 +66,11 @@ - - -
-
- - -
- -
- -
- -
-

{{ $t('connection.title') }}

- - - {{ $t('connection.accesspointHint') }} - - - {{ $t('connection.stationmodeHint') }} - - - - - - - - - {{ $t('connection.dhcpHint') }} - - -
- - - - - - - - -
- - - - - {{ $t('connection.hostnameHint') }} - -
- -
-
-
- -
- -
-

{{ $t('system.firmwareTitle') }}

- - - -
- -
- -
- {{ uploadProgress }}% -
-
- -
-

{{ $t('system.pinsTitle') }}

- -
- - -
- -
- - -
- -
- - -
- -

{{ $t('system.ledStripTitle') }}

- -
- - -
- -
- -
-
-
- - - - - \ No newline at end of file diff --git a/web/src/router/index.js b/web/src/router/index.js index 4de2fc3..c3dd93a 100644 --- a/web/src/router/index.js +++ b/web/src/router/index.js @@ -1,8 +1,8 @@ import Vue from 'vue' import VueRouter from 'vue-router' import Status from '../views/Status.vue' -//import Connection from '../views/Connection.vue' -//import System from '../views/System.vue' +import Connection from '../views/Connection.vue' +import System from '../views/System.vue' Vue.use(VueRouter) @@ -12,6 +12,16 @@ const routes = [ path: '/', name: 'Status', component: Status + }, + { + path: '/connection', + name: 'Connection', + component: Connection + }, + { + path: '/system', + name: 'System', + component: System } ] diff --git a/web/src/store/index.js b/web/src/store/index.js index f392bf8..9f5a58f 100644 --- a/web/src/store/index.js +++ b/web/src/store/index.js @@ -7,46 +7,17 @@ export default new Vuex.Store({ state: { notification: null, notificationTimeout: null, - saving: false, + saving: false + }, - connection: { - hostname: null, - accesspoint: true, - station: false, - ssid: null, - password: null, - dhcp: true, - ip: null, - subnetmask: null, - gateway: null + mutations: { + saving(state, value) + { + state.saving = value; }, - system: { - pins: { - ledAP: null, - ledSTA: null, - apButton: null, - }, - ledCount: null - } - - /* - settingStatic: false, - loadingIndicator: '|', - uploadProgress: false, - - static: { - r: 0, - g: 0, - b: 0, - w: 0 - } - */ - }, - - mutations: { _setNotification(state, payload) { state.notification = payload.notification; diff --git a/web/src/views/Connection.vue b/web/src/views/Connection.vue new file mode 100644 index 0000000..c34d84b --- /dev/null +++ b/web/src/views/Connection.vue @@ -0,0 +1,120 @@ + + + \ No newline at end of file diff --git a/web/src/views/Status.vue b/web/src/views/Status.vue index 41e6cff..6ef1299 100644 --- a/web/src/views/Status.vue +++ b/web/src/views/Status.vue @@ -30,8 +30,11 @@ \ No newline at end of file diff --git a/webpack.dev.js b/webpack.dev.js index 3eff1f3..5848ecb 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -8,7 +8,7 @@ module.exports = merge(config, { historyApiFallback: true, proxy:{ '/api': { - target: 'http://localhost:3000' + target: 'http://127.0.0.1:3000' } }, },