From 804f13402078a025924f5a42c479dd418f985112 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 23 May 2022 15:30:53 +0200 Subject: feat(master): add display single minion temperature reading --- master/public/index.html | 19 +++--- master/src/App.vue | 29 +++------ master/src/assets/logo.png | Bin 6849 -> 0 bytes master/src/components/HelloWorld.vue | 64 ------------------- master/src/components/MinionStatus.vue | 110 +++++++++++++++++++++++++++++++++ master/src/main.ts | 8 +-- master/src/router.ts | 17 +++++ master/src/router/index.ts | 25 -------- master/src/scss/_colors.scss | 3 + master/src/scss/_fonts.scss | 3 + master/src/views/AboutView.vue | 5 -- master/src/views/Home.vue | 41 ++++++++++++ master/src/views/HomeView.vue | 18 ------ 13 files changed, 197 insertions(+), 145 deletions(-) delete mode 100644 master/src/assets/logo.png delete mode 100644 master/src/components/HelloWorld.vue create mode 100644 master/src/components/MinionStatus.vue create mode 100644 master/src/router.ts delete mode 100644 master/src/router/index.ts create mode 100644 master/src/scss/_colors.scss create mode 100644 master/src/scss/_fonts.scss delete mode 100644 master/src/views/AboutView.vue create mode 100644 master/src/views/Home.vue delete mode 100644 master/src/views/HomeView.vue diff --git a/master/public/index.html b/master/public/index.html index 3e5a139..15206f7 100644 --- a/master/public/index.html +++ b/master/public/index.html @@ -1,17 +1,22 @@ - + + - <%= htmlWebpackPlugin.options.title %> - - + + <%= htmlWebpackPlugin.options.title %> + + + +
- - + + diff --git a/master/src/App.vue b/master/src/App.vue index ec98c47..1638c18 100644 --- a/master/src/App.vue +++ b/master/src/App.vue @@ -1,30 +1,15 @@ diff --git a/master/src/assets/logo.png b/master/src/assets/logo.png deleted file mode 100644 index f3d2503..0000000 Binary files a/master/src/assets/logo.png and /dev/null differ diff --git a/master/src/components/HelloWorld.vue b/master/src/components/HelloWorld.vue deleted file mode 100644 index f68982b..0000000 --- a/master/src/components/HelloWorld.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - diff --git a/master/src/components/MinionStatus.vue b/master/src/components/MinionStatus.vue new file mode 100644 index 0000000..ec2564c --- /dev/null +++ b/master/src/components/MinionStatus.vue @@ -0,0 +1,110 @@ + + + + + diff --git a/master/src/main.ts b/master/src/main.ts index 3e79677..10ea69d 100644 --- a/master/src/main.ts +++ b/master/src/main.ts @@ -1,5 +1,5 @@ -import { createApp } from 'vue' -import App from './App.vue' -import router from './router' +import { createApp } from "vue"; +import App from "./App.vue"; +import router from "./router"; -createApp(App).use(router).mount('#app') +createApp(App).use(router).mount("#app"); diff --git a/master/src/router.ts b/master/src/router.ts new file mode 100644 index 0000000..4c70eab --- /dev/null +++ b/master/src/router.ts @@ -0,0 +1,17 @@ +import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router"; +import HomeView from "./views/Home.vue"; + +const routes: Array = [ + { + path: "/", + name: "home", + component: HomeView + } +]; + +const router = createRouter({ + history: createWebHashHistory(), + routes +}); + +export default router; diff --git a/master/src/router/index.ts b/master/src/router/index.ts deleted file mode 100644 index df8090e..0000000 --- a/master/src/router/index.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router' -import HomeView from '../views/HomeView.vue' - -const routes: Array = [ - { - path: '/', - name: 'home', - component: HomeView - }, - { - path: '/about', - name: 'about', - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue') - } -] - -const router = createRouter({ - history: createWebHashHistory(), - routes -}) - -export default router diff --git a/master/src/scss/_colors.scss b/master/src/scss/_colors.scss new file mode 100644 index 0000000..d8bc4dd --- /dev/null +++ b/master/src/scss/_colors.scss @@ -0,0 +1,3 @@ +$text: #ffffff; +$background: #121212; +$primary: #118AB2; diff --git a/master/src/scss/_fonts.scss b/master/src/scss/_fonts.scss new file mode 100644 index 0000000..72a9501 --- /dev/null +++ b/master/src/scss/_fonts.scss @@ -0,0 +1,3 @@ +@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap'); + +$primary: "Lato", sans-serif; diff --git a/master/src/views/AboutView.vue b/master/src/views/AboutView.vue deleted file mode 100644 index 3fa2807..0000000 --- a/master/src/views/AboutView.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/master/src/views/Home.vue b/master/src/views/Home.vue new file mode 100644 index 0000000..180383f --- /dev/null +++ b/master/src/views/Home.vue @@ -0,0 +1,41 @@ + + + + + diff --git a/master/src/views/HomeView.vue b/master/src/views/HomeView.vue deleted file mode 100644 index 8e628bd..0000000 --- a/master/src/views/HomeView.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - -- cgit v1.2.3-18-g5258