Skip to content

Commit 10e7875

Browse files
fix(viewer): fix client_only
1 parent 7d8a35e commit 10e7875

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

components/RemoteRenderingView.client.vue renamed to components/RemoteRenderingView.vue

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
<template>
2-
<div style="position: relative; width: 100%; height: 100%">
3-
<view-toolbar />
4-
<v-col
5-
style="
6-
overflow: hidden;
7-
position: relative;
8-
z-index: 0;
9-
height: 100%;
10-
width: 100%;
11-
"
12-
ref="viewer"
13-
@click="get_x_y"
14-
@keydown.esc="app_store.toggle_picking_mode(false)"
15-
class="pa-0"
16-
>
17-
</v-col>
18-
</div>
2+
<ClientOnly>
3+
<div style="position: relative; width: 100%; height: 100%">
4+
<view-toolbar />
5+
<v-col
6+
style="
7+
overflow: hidden;
8+
position: relative;
9+
z-index: 0;
10+
height: 100%;
11+
width: 100%;
12+
"
13+
ref="viewer"
14+
@click="get_x_y"
15+
@keydown.esc="app_store.toggle_picking_mode(false)"
16+
class="pa-0"
17+
>
18+
</v-col>
19+
</div>
20+
</ClientOnly>
1921
</template>
2022

2123
<script setup>
@@ -25,7 +27,7 @@
2527
const viewer_store = use_viewer_store()
2628
const { picking_mode } = storeToRefs(viewer_store)
2729
const websocket_store = use_websocket_store()
28-
const { client, is_client_created } = storeToRefs(websocket_store)
30+
const { client, is_running } = storeToRefs(websocket_store)
2931
3032
function get_x_y(event) {
3133
if (picking_mode.value === true) {
@@ -89,7 +91,7 @@
8991
})
9092
9193
function connect() {
92-
if (!is_client_created.value) {
94+
if (!is_running.value) {
9395
return
9496
}
9597
console.log("connecting", client.value)

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"version": "0.0.0-semantically-released",
2323
"main": "./nuxt.config.js",
2424
"dependencies": {
25-
"@kitware/vtk.js": "^29.1.0",
25+
"@kitware/vtk.js": "^29.1.1",
2626
"@mdi/font": "^7.3.67",
2727
"@pinia/nuxt": "^0.5.1",
2828
"@types/node": "^20.8.10",

0 commit comments

Comments
 (0)