@geode/opengeodeweb-front 1.0.1 → 2.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div style="position: relative;">
|
|
2
|
+
<div style="position: relative; ">
|
|
3
3
|
<view-toolbar />
|
|
4
4
|
<v-col style="overflow: hidden; position: relative; z-index: 0; height: 100%; width: 100%" ref="viewer"
|
|
5
|
-
@click="get_x_y" @keydown.esc="app_store.toggle_picking_mode(false)">
|
|
5
|
+
@click="get_x_y" @keydown.esc="app_store.toggle_picking_mode(false)" class="pa-0">
|
|
6
6
|
</v-col>
|
|
7
7
|
</div>
|
|
8
8
|
</template>
|
|
@@ -16,7 +16,7 @@ const { picking_mode } = storeToRefs(viewer_store)
|
|
|
16
16
|
const websocket_store = use_websocket_store()
|
|
17
17
|
const { client, is_client_created } = storeToRefs(websocket_store)
|
|
18
18
|
|
|
19
|
-
function get_x_y(event) {
|
|
19
|
+
function get_x_y (event) {
|
|
20
20
|
if (picking_mode.value === true) {
|
|
21
21
|
const { offsetX, offsetY } = event
|
|
22
22
|
viewer_store.set_picked_point(offsetX, offsetY)
|
|
@@ -30,8 +30,8 @@ const props = defineProps({
|
|
|
30
30
|
const viewer = ref(null)
|
|
31
31
|
const { width, height } = useElementSize(viewer)
|
|
32
32
|
|
|
33
|
-
function resize() {
|
|
34
|
-
view.getCanvasView().setSize(
|
|
33
|
+
function resize () {
|
|
34
|
+
view.getCanvasView().setSize(0, 0)
|
|
35
35
|
view.resize();
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -76,7 +76,7 @@ onMounted(async () => {
|
|
|
76
76
|
}
|
|
77
77
|
})
|
|
78
78
|
|
|
79
|
-
function connect() {
|
|
79
|
+
function connect () {
|
|
80
80
|
if (!is_client_created.value) { return }
|
|
81
81
|
console.log('connecting', client.value)
|
|
82
82
|
const session = client.value.getConnection().getSession()
|
package/package.json
CHANGED
package/stores/cloud.js
CHANGED
|
@@ -15,7 +15,6 @@ export const use_cloud_store = defineStore('cloud', {
|
|
|
15
15
|
if (process.env.NODE_ENV == 'production') {
|
|
16
16
|
geode_url = geode_url + `/${state.ID}/geode`
|
|
17
17
|
}
|
|
18
|
-
console.log("geode_url",geode_url)
|
|
19
18
|
return geode_url
|
|
20
19
|
},
|
|
21
20
|
viewer_url: (state) => {
|
|
@@ -51,7 +50,7 @@ export const use_cloud_store = defineStore('cloud', {
|
|
|
51
50
|
const errors_store = use_errors_store()
|
|
52
51
|
const config = useRuntimeConfig()
|
|
53
52
|
const public_runtime_config = config.public
|
|
54
|
-
const { data, error } = await useFetch(`${public_runtime_config.GEODE_PROTOCOL}://${public_runtime_config.API_URL}:${public_runtime_config.GEODE_PORT}${public_runtime_config.SITE_BRANCH}/
|
|
53
|
+
const { data, error } = await useFetch(`${public_runtime_config.GEODE_PROTOCOL}://${public_runtime_config.API_URL}:${public_runtime_config.GEODE_PORT}${public_runtime_config.SITE_BRANCH}${public_runtime_config.PROJECT}/createbackend`, { method: 'POST' })
|
|
55
54
|
if (data.value !== null) {
|
|
56
55
|
this.ID = data.value.ID
|
|
57
56
|
localStorage.setItem('ID', data.value.ID)
|