Mercurial > gemma
comparison client/src/application/Main.vue @ 713:badbc0207418
feat: systeminformation feature added
Under systeminformation there is a component to display textual
data. Currently there is a stub log from my console displayed.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 21 Sep 2018 13:18:30 +0200 |
parents | 83081ba6c9c1 |
children | dedf252b3e01 |
comparison
equal
deleted
inserted
replaced
712:86725b39b2d2 | 713:badbc0207418 |
---|---|
69 created() { | 69 created() { |
70 window.addEventListener("resize", debounce(this.scaleFairwayProfile), 100); | 70 window.addEventListener("resize", debounce(this.scaleFairwayProfile), 100); |
71 }, | 71 }, |
72 updated() { | 72 updated() { |
73 if (!document.querySelector(".profile")) return; | 73 if (!document.querySelector(".profile")) return; |
74 const clientHeight = document.querySelector(".profile").clientHeight; | |
75 const clientWidth = document.querySelector(".profile").clientWidth; | |
76 if (!clientHeight || !clientWidth) return; | |
74 this.height = document.querySelector(".profile").clientHeight - 25; | 77 this.height = document.querySelector(".profile").clientHeight - 25; |
75 this.width = document.querySelector(".profile").clientWidth - 100; | 78 this.width = document.querySelector(".profile").clientWidth - 100; |
76 }, | 79 }, |
77 destroyed() { | 80 destroyed() { |
78 window.removeEventListener("resize", debounce(this.scaleFairwayProfile)); | 81 window.removeEventListener("resize", debounce(this.scaleFairwayProfile)); |