From 4d2a1e5adfc8688bc585c96e959470d45f655438 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 30 May 2022 14:43:59 +0200 Subject: chore(master): add client folder --- master/client/src/App.vue | 15 ++++ master/client/src/components/G7Map.vue | 85 ++++++++++++++++++++ master/client/src/components/MinionStatus.vue | 110 ++++++++++++++++++++++++++ master/client/src/main.ts | 5 ++ master/client/src/router.ts | 17 ++++ master/client/src/scss/_breakpoints.scss | 8 ++ master/client/src/scss/_colors.scss | 3 + master/client/src/scss/_fonts.scss | 3 + master/client/src/shims-vue.d.ts | 6 ++ master/client/src/views/Home.vue | 53 +++++++++++++ 10 files changed, 305 insertions(+) create mode 100644 master/client/src/App.vue create mode 100644 master/client/src/components/G7Map.vue create mode 100644 master/client/src/components/MinionStatus.vue create mode 100644 master/client/src/main.ts create mode 100644 master/client/src/router.ts create mode 100644 master/client/src/scss/_breakpoints.scss create mode 100644 master/client/src/scss/_colors.scss create mode 100644 master/client/src/scss/_fonts.scss create mode 100644 master/client/src/shims-vue.d.ts create mode 100644 master/client/src/views/Home.vue (limited to 'master/client/src') diff --git a/master/client/src/App.vue b/master/client/src/App.vue new file mode 100644 index 0000000..1638c18 --- /dev/null +++ b/master/client/src/App.vue @@ -0,0 +1,15 @@ + + + diff --git a/master/client/src/components/G7Map.vue b/master/client/src/components/G7Map.vue new file mode 100644 index 0000000..6a887b1 --- /dev/null +++ b/master/client/src/components/G7Map.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/master/client/src/components/MinionStatus.vue b/master/client/src/components/MinionStatus.vue new file mode 100644 index 0000000..ec2564c --- /dev/null +++ b/master/client/src/components/MinionStatus.vue @@ -0,0 +1,110 @@ + + + + + diff --git a/master/client/src/main.ts b/master/client/src/main.ts new file mode 100644 index 0000000..10ea69d --- /dev/null +++ b/master/client/src/main.ts @@ -0,0 +1,5 @@ +import { createApp } from "vue"; +import App from "./App.vue"; +import router from "./router"; + +createApp(App).use(router).mount("#app"); diff --git a/master/client/src/router.ts b/master/client/src/router.ts new file mode 100644 index 0000000..4c70eab --- /dev/null +++ b/master/client/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/client/src/scss/_breakpoints.scss b/master/client/src/scss/_breakpoints.scss new file mode 100644 index 0000000..fe2ccdb --- /dev/null +++ b/master/client/src/scss/_breakpoints.scss @@ -0,0 +1,8 @@ +$breakpoints: ( + "xs": 0, + "sm": 576px, + "md": 768px, + "lg": 992px, + "xl": 1200px, + "xxl": 1400px +); diff --git a/master/client/src/scss/_colors.scss b/master/client/src/scss/_colors.scss new file mode 100644 index 0000000..d8bc4dd --- /dev/null +++ b/master/client/src/scss/_colors.scss @@ -0,0 +1,3 @@ +$text: #ffffff; +$background: #121212; +$primary: #118AB2; diff --git a/master/client/src/scss/_fonts.scss b/master/client/src/scss/_fonts.scss new file mode 100644 index 0000000..72a9501 --- /dev/null +++ b/master/client/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/client/src/shims-vue.d.ts b/master/client/src/shims-vue.d.ts new file mode 100644 index 0000000..3804a43 --- /dev/null +++ b/master/client/src/shims-vue.d.ts @@ -0,0 +1,6 @@ +/* eslint-disable */ +declare module '*.vue' { + import type { DefineComponent } from 'vue' + const component: DefineComponent<{}, {}, any> + export default component +} diff --git a/master/client/src/views/Home.vue b/master/client/src/views/Home.vue new file mode 100644 index 0000000..88f65e8 --- /dev/null +++ b/master/client/src/views/Home.vue @@ -0,0 +1,53 @@ + + + + + -- cgit v1.2.3-18-g5258