From 001edce47ca3f066901229c16b08af0b5907f331 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Mon, 28 Jan 2019 12:04:58 +0000 Subject: [PATCH] Actually gets config from API (with loading spinner!) --- src/App.vue | 12 ++-- src/components/IpDisplay.vue | 5 -- src/components/hostDisplay.vue | 16 +++++ src/components/{IpInput.vue => hostInput.vue} | 27 +++----- src/store.js | 61 ++++++++++++++++--- 5 files changed, 80 insertions(+), 41 deletions(-) delete mode 100644 src/components/IpDisplay.vue create mode 100644 src/components/hostDisplay.vue rename src/components/{IpInput.vue => hostInput.vue} (59%) diff --git a/src/App.vue b/src/App.vue index c634effd..f02c0e21 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,8 +1,8 @@ @@ -16,15 +16,15 @@ import Icons from 'uikit/dist/js/uikit-icons'; UIkit.use(Icons); // Import components -import IpInput from './components/IpInput.vue' -import IpDisplay from './components/IpDisplay' +import hostInput from './components/hostInput.vue' +import hostDisplay from './components/hostDisplay' // Export main app export default { name: 'app', components: { - IpInput, - IpDisplay + hostInput, + hostDisplay } } diff --git a/src/components/IpDisplay.vue b/src/components/IpDisplay.vue deleted file mode 100644 index d13f9590..00000000 --- a/src/components/IpDisplay.vue +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/src/components/hostDisplay.vue b/src/components/hostDisplay.vue new file mode 100644 index 00000000..ac03fd4c --- /dev/null +++ b/src/components/hostDisplay.vue @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/src/components/IpInput.vue b/src/components/hostInput.vue similarity index 59% rename from src/components/IpInput.vue rename to src/components/hostInput.vue index d0c08322..9bf08e59 100644 --- a/src/components/IpInput.vue +++ b/src/components/hostInput.vue @@ -1,6 +1,5 @@