Browse Source

line-po v 0.4.4

pull/25/head
Alexey Velikiy 3 years ago
parent
commit
01a1ce7702
  1. 2
      client/package.json
  2. 4
      client/src/components/hastic_pod/index.ts
  3. 18
      client/yarn.lock

2
client/package.json

@ -9,7 +9,7 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"@chartwerk/line-pod": "0.4.1",
"@chartwerk/line-pod": "0.4.4",
"@kyvg/vue3-notification": "^2.3.4",
"@types/lodash": "^4.14.176",
"@types/tinycolor2": "^1.4.3",

4
client/src/components/hastic_pod/index.ts

@ -86,7 +86,7 @@ export class HasticPod extends LinePod {
let to = Math.floor(Date.now() / 1000);
let from = to - 50000; // -50000 seconds
if(this.state?.xValueRange !== undefined) {
if(!(this.state.xValueRange[0] == 0 && this.state.xValueRange[1] == 1)) {
[from, to] = this.state?.xValueRange;
console.log('took from range from state');
} else {
@ -97,7 +97,7 @@ export class HasticPod extends LinePod {
this._udc({ from, to })
.then(resp => {
this.updateSegments(resp.segments);
this.updateData(resp.timeserie);
this.updateData(resp.timeserie, undefined, true);
})
.catch(() => { /* set "error" message */ })
}

18
client/yarn.lock

@ -223,17 +223,17 @@
"@babel/helper-validator-identifier" "^7.14.9"
to-fast-properties "^2.0.0"
"@chartwerk/core@^0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@chartwerk/core/-/core-0.2.0.tgz#208604a51a38f307e45b751f2fe6f13e655b67c1"
integrity sha512-VWlBMn6FiYts3RbDdFd3ChQ9QzpdewUlv7Scwc8e/54863abtG4YHyD/X9cVB5RjRivEJd9cJPHWkPaWKuik3g==
"@chartwerk/core@^0.3.2":
version "0.3.2"
resolved "https://registry.yarnpkg.com/@chartwerk/core/-/core-0.3.2.tgz#40187a4d1dda5045effc04c01559ff16c236bca7"
integrity sha512-E4Bb2rDBDTNXRM7koSXDwM6IYYNdLnqxJel1y2BmH4p9R0Z+3L0C4B+jYurkiwcnIWdGlHXVFL0E0khPeLypfA==
"@chartwerk/line-pod@^0.4.1":
version "0.4.1"
resolved "https://registry.yarnpkg.com/@chartwerk/line-pod/-/line-pod-0.4.1.tgz#b4a8ed21aa41a268ab5567ada7dbd13621c9a36e"
integrity sha512-6CVVQvtFnK46BwevCFskNiCP0eabvGOva+sqcK0LnrC4ifVPiIdOIHbY3qHiTWaT2bQw1frpYPN6x8aitLUliw==
"@chartwerk/line-pod@0.4.4":
version "0.4.4"
resolved "https://registry.yarnpkg.com/@chartwerk/line-pod/-/line-pod-0.4.4.tgz#724152e886c529df97019ba3dfed335ef42b2f57"
integrity sha512-L7RmTzy+TVMueV91E3upVCK/V7t9ZYLwC0tIYhFJxSJjrLOhRMAOLxZdkp7CqxXFj+u+FuFDhY0Dch2nYDvLpg==
dependencies:
"@chartwerk/core" "^0.2.0"
"@chartwerk/core" "^0.3.2"
"@cnakazawa/watch@^1.0.3":
version "1.0.4"

Loading…
Cancel
Save