From 8c5df2bd6250d2c1520a527b7997fe4fe4341ff8 Mon Sep 17 00:00:00 2001 From: Haris Razis Date: Thu, 26 Nov 2020 10:56:45 +0200 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=94=A8=20Split=20Points.vue=20=3D>=20C?= =?UTF-8?q?anva=20&=20Table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/package-lock.json | 18 ++++++- web/package.json | 3 +- web/src/components/Canva.vue | 71 +++++++++++++++++++++++++ web/src/components/Points.vue | 97 ++++++----------------------------- web/src/components/Table.vue | 33 ++++++++++++ 5 files changed, 138 insertions(+), 84 deletions(-) create mode 100644 web/src/components/Canva.vue create mode 100644 web/src/components/Table.vue diff --git a/web/package-lock.json b/web/package-lock.json index 1fe407d..f6542c0 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -14,7 +14,8 @@ "bulma": "^0.9.1", "chart.js": "^2.9.4", "vue": "^3.0.0", - "vue-class-component": "^8.0.0-0" + "vue-class-component": "^8.0.0-0", + "vue-property-decorator": "^9.1.2" }, "devDependencies": { "@fortawesome/fontawesome-free": "^5.15.1", @@ -13151,6 +13152,15 @@ "integrity": "sha1-M7QHd3VMZDJXPBIMw4CLvRDUfwQ=", "dev": true }, + "node_modules/vue-property-decorator": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/vue-property-decorator/-/vue-property-decorator-9.1.2.tgz", + "integrity": "sha512-xYA8MkZynPBGd/w5QFJ2d/NM0z/YeegMqYTphy7NJQXbZcuU6FC6AOdUAcy4SXP+YnkerC6AfH+ldg7PDk9ESQ==", + "peerDependencies": { + "vue": "*", + "vue-class-component": "*" + } + }, "node_modules/vue-style-loader": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz", @@ -25248,6 +25258,12 @@ } } }, + "vue-property-decorator": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/vue-property-decorator/-/vue-property-decorator-9.1.2.tgz", + "integrity": "sha512-xYA8MkZynPBGd/w5QFJ2d/NM0z/YeegMqYTphy7NJQXbZcuU6FC6AOdUAcy4SXP+YnkerC6AfH+ldg7PDk9ESQ==", + "requires": {} + }, "vue-style-loader": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz", diff --git a/web/package.json b/web/package.json index 6fd5824..1460302 100644 --- a/web/package.json +++ b/web/package.json @@ -14,7 +14,8 @@ "bulma": "^0.9.1", "chart.js": "^2.9.4", "vue": "^3.0.0", - "vue-class-component": "^8.0.0-0" + "vue-class-component": "^8.0.0-0", + "vue-property-decorator": "^9.1.2" }, "devDependencies": { "@fortawesome/fontawesome-free": "^5.15.1", diff --git a/web/src/components/Canva.vue b/web/src/components/Canva.vue new file mode 100644 index 0000000..3d14f94 --- /dev/null +++ b/web/src/components/Canva.vue @@ -0,0 +1,71 @@ + + + + + diff --git a/web/src/components/Points.vue b/web/src/components/Points.vue index 1203ad9..d47dd7c 100644 --- a/web/src/components/Points.vue +++ b/web/src/components/Points.vue @@ -34,34 +34,15 @@
- +
-
- - - - - - - - - - - - - -
Device idTimeMeasurement
{{ point.client }}{{ new Date(point.time).toLocaleString() }}{{ point.value }}°C
+
+
- Fetched data, try creating a chart or table! + + Fetched data, try creating a chart or table! +
{{ error }} @@ -73,11 +54,17 @@ + +