From 6441351f62c2640ac95428d1bcb7dff50f17d392 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Fri, 22 Oct 2021 12:02:58 +0200 Subject: [PATCH] Package update and cleanup --- package-lock.json | 18 ++--- package.json | 4 +- src/App.vue | 15 +++-- src/components/ObjectSpeckleViewer.vue | 1 - src/components/Renderer.vue | 19 +----- src/components/RevitDashboard.vue | 91 ++++++++++++++------------ vue.config.js | 47 ++++++++++++- 7 files changed, 120 insertions(+), 75 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8318228..7436a48 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1201,14 +1201,14 @@ "dev": true }, "@speckle/objectloader": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@speckle/objectloader/-/objectloader-2.0.3.tgz", - "integrity": "sha512-hSyJU0ktZOYbgjDtwrHHXowRu5L0lxoO32N2JPJUjURoy+M1ZpvJVGyT4jKG03HvH30j9rynja0PVjVoW9LdEw==" + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@speckle/objectloader/-/objectloader-2.1.1.tgz", + "integrity": "sha512-EdMBYixK//8OrL/8aLvOkjNbEJab59FZyMETcPW9hgwo/M4a0pX6ao9LTrHyBMCGpjx5iyidk8SDpExebAtARw==" }, "@speckle/viewer": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/@speckle/viewer/-/viewer-2.0.12.tgz", - "integrity": "sha512-R5NL2/ECacW4GFni/Cri2mUbwRPkSu5EaOybQL/Vhp1QdNPA2wwotAdfxGr84KzQV0+A1J0lypZchVafLUZpDg==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@speckle/viewer/-/viewer-2.1.1.tgz", + "integrity": "sha512-OQWLfVIb79AJJYEl90kk9Ra/WcmpmDaloTgbkaRQOC0jMNmhFSFfrsFvfNX5G3BdhuDGKpbSwDx2j81xJucKJQ==", "requires": { "camera-controls": "^1.28.0", "lodash.debounce": "^4.0.8", @@ -3060,9 +3060,9 @@ "dev": true }, "camera-controls": { - "version": "1.28.0", - "resolved": "https://registry.npmjs.org/camera-controls/-/camera-controls-1.28.0.tgz", - "integrity": "sha512-V9HIwjcdD843RpToJjW2fUZfZUQaFIA2/Wx87+zq781/tJGzjE1g1PBeMTOV8oTGl8cskS5yV8AqtBn9+HlrUQ==" + "version": "1.33.1", + "resolved": "https://registry.npmjs.org/camera-controls/-/camera-controls-1.33.1.tgz", + "integrity": "sha512-+l0LgV+w0G4GAtwiSahHLj7rCqzVMSa+/BHE3+aE7vdku2B9QF8CXgDSlCH9cBt2TZeg+WQSkRPeIYwjvtjdPw==" }, "caniuse-api": { "version": "3.0.0", diff --git a/package.json b/package.json index 78a177b..e0fefe3 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "lint": "vue-cli-service lint" }, "dependencies": { - "@speckle/objectloader": "2.0.3", - "@speckle/viewer": "2.0.12", + "@speckle/objectloader": "^2.1.1", + "@speckle/viewer": "^2.1.1", "chart.js": "^2.9.4", "color-interpolate": "^1.0.5", "colorjs.io": "^0.0.3", diff --git a/src/App.vue b/src/App.vue index 6ae0ef9..0ca955c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -18,9 +18,16 @@ - - mdi-help-circle-outline - + + + + Have any questions? Join our Community! + + - This app is still in ALPHA stage; meaning some things may not work as expected. You can provide feedback on our Community Forum + This app is still in ALPHA stage; meaning some things may not work as expected. You can provide feedback on our Community Forum OK diff --git a/src/components/ObjectSpeckleViewer.vue b/src/components/ObjectSpeckleViewer.vue index 452b6e7..ac9526e 100644 --- a/src/components/ObjectSpeckleViewer.vue +++ b/src/components/ObjectSpeckleViewer.vue @@ -143,7 +143,6 @@ export default { this.localExpand = this.expand if(!this.localExpand){ var res = await getObject(this.streamId,this.value.referencedId) - console.log("object res", res) delete res.data.stream.object.data.__closure this.object = res.data.stream.object } diff --git a/src/components/Renderer.vue b/src/components/Renderer.vue index f93851f..852363e 100644 --- a/src/components/Renderer.vue +++ b/src/components/Renderer.vue @@ -47,7 +47,7 @@ @@ -235,7 +235,7 @@ export default { }, computed: { isSmall() { - return this.$vuetify.breakpoint.name == 'xs' || this.$vuetify.breakpoint.name == 'sm' + return this.$vuetify.breakpoint.name === 'xs' || this.$vuetify.breakpoint.name === 'sm' }, darkMode() { return this.$vuetify.theme.dark @@ -325,7 +325,6 @@ export default { ) window.__viewer.on('select', (objects) => { - // console.log(objects) this.selectedObjects.splice(0, this.selectedObjects.length) this.selectedObjects.push(...objects) this.$emit('selection', this.selectedObjects) @@ -351,20 +350,6 @@ export default { }