From 07c006fb2bfbf7077c33901a4669fa0156624b56 Mon Sep 17 00:00:00 2001 From: Haris Razis Date: Wed, 25 Nov 2020 11:37:06 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Add=20placeholder=20Chart=20and=20f?= =?UTF-8?q?unctional=20table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/App.vue | 20 +++- web/src/components/Chart.vue | 68 ------------ web/src/components/Devices.vue | 2 +- web/src/components/Points.vue | 182 +++++++++++++++++++++++++++++++++ web/tsconfig.json | 21 +--- 5 files changed, 203 insertions(+), 90 deletions(-) delete mode 100644 web/src/components/Chart.vue create mode 100644 web/src/components/Points.vue diff --git a/web/src/App.vue b/web/src/App.vue index c28d44d..b5420f5 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -2,12 +2,22 @@
-
-
+
+
+ Welcome to Anchiale's Dashboard! On the Devices tab you can see + all the clients that are curently connected to the server. On the + Points tab you can display the points writen withing the last + hour to the database. Try fetching first and then display them on a + chart or a table! Keep in mind that the API may take some time to + respond, so be patient when fetching. +
+
+
+
- +
@@ -19,7 +29,7 @@ import { Options, Vue } from 'vue-class-component'; import Navbar from '@/components/Navbar.vue'; import Hero from '@/components/Hero.vue'; import Devices from '@/components/Devices.vue'; -import Chart from '@/components/Chart.vue'; +import Points from '@/components/Points.vue'; import Footer from '@/components/Footer.vue'; @Options({ @@ -27,7 +37,7 @@ import Footer from '@/components/Footer.vue'; Navbar, Hero, Devices, - Chart, + Points, Footer, }, }) diff --git a/web/src/components/Chart.vue b/web/src/components/Chart.vue deleted file mode 100644 index 11f6a2c..0000000 --- a/web/src/components/Chart.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - diff --git a/web/src/components/Devices.vue b/web/src/components/Devices.vue index faa03fd..a5eb1c1 100644 --- a/web/src/components/Devices.vue +++ b/web/src/components/Devices.vue @@ -24,7 +24,7 @@ - _id: {{ client }} +

{{ client }}

diff --git a/web/src/components/Points.vue b/web/src/components/Points.vue new file mode 100644 index 0000000..1203ad9 --- /dev/null +++ b/web/src/components/Points.vue @@ -0,0 +1,182 @@ + + + diff --git a/web/tsconfig.json b/web/tsconfig.json index 9ee3641..d5a06cc 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "es6", "module": "esnext", "strict": true, "jsx": "preserve", @@ -12,20 +12,11 @@ "allowSyntheticDefaultImports": true, "sourceMap": true, "baseUrl": ".", - "types": [ - "webpack-env" - ], + "types": ["webpack-env"], "paths": { - "@/*": [ - "src/*" - ] + "@/*": ["src/*"] }, - "lib": [ - "esnext", - "dom", - "dom.iterable", - "scripthost" - ] + "lib": ["esnext", "dom", "dom.iterable", "scripthost"] }, "include": [ "src/**/*.ts", @@ -34,7 +25,5 @@ "tests/**/*.ts", "tests/**/*.tsx" ], - "exclude": [ - "node_modules" - ] + "exclude": ["node_modules"] }