Skip to content

Commit d818b96

Browse files
Merge pull request #87 from Geode-solutions/next
Next
2 parents c3f1627 + 45fcf08 commit d818b96

31 files changed

+374
-13908
lines changed

components/CrsSelector.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,11 @@
6666
async function get_crs_table() {
6767
const params = { input_geode_object }
6868
toggle_loading()
69-
console.log("get_crs_table")
7069
await api_fetch(
7170
{ schema, params },
7271
{
7372
response_function: (response) => {
7473
crs_list.value = response._data.crs_list
75-
console.log("crs_list", response._data.crs_list)
7674
},
7775
},
7876
)

components/Errors/Banner.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
position="fixed"
77
>
88
<v-row>
9-
<v-col cols="auto" class="white--text text-center">
9+
<v-col cols="auto" class="text-white text-center">
1010
<v-tooltip location="end">
1111
<span>
1212
We turn off our server automatically after 5 minutes of inactivity
@@ -18,22 +18,22 @@
1818
</template>
1919
</v-tooltip>
2020
</v-col>
21-
<v-col cols="auto" class="text-white font-weight-bold"
22-
>Server timed out due to inactivity, please reload this page or click
21+
<v-col cols="auto" class="text-white font-weight-bold">
22+
Server timed out due to inactivity, please reload this page or click
2323
here:
2424
</v-col>
25-
<v-col cols="auto" align-items="center">
26-
<v-btn @click="reload()" color="grey" density="compact"> Reload </v-btn>
25+
<v-col class="align-items" cols="auto">
26+
<v-btn color="grey" density="compact" @click="reload()"> Reload </v-btn>
2727
</v-col>
2828
<v-spacer />
2929
<v-col cols="auto">
3030
<v-btn
3131
icon
32-
flat
32+
variant="flat"
3333
size="20"
34-
@click="errors_store.delete_server_error()"
3534
color="grey"
3635
class=".align-center"
36+
@click="errors_store.delete_server_error()"
3737
>
3838
<v-icon icon="mdi-close" size="20" color="white" />
3939
</v-btn>

components/Errors/Snackers.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22
<v-snackbar
3-
:style="{ 'margin-bottom': calc_margin(index) }"
43
v-for="(error, index) in errors"
54
:key="index"
65
v-model="show"
6+
:style="{ 'margin-bottom': calc_margin(index) }"
77
color="error"
88
location="bottom right"
99
transition="slide-x-reverse-transition"
@@ -42,10 +42,10 @@
4242
<v-col cols="auto">
4343
<v-btn
4444
icon
45-
flat
45+
variant="flat"
4646
size="20"
47-
@click="errors_store.delete_error(index)"
4847
color="error"
48+
@click="errors_store.delete_error(index)"
4949
>
5050
<v-icon icon="mdi-close" size="20" color="white" />
5151
</v-btn>

components/FileSelector.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
2020
const props = defineProps({
2121
multiple: { type: Boolean, required: true },
22-
key: { type: String, required: false, default: "" },
22+
supported_feature: { type: String, required: false, default: null },
2323
})
2424
25-
const { multiple, key } = props
25+
const { multiple, supported_feature } = props
2626
2727
const accept = ref("")
2828
const loading = ref(false)
@@ -38,7 +38,7 @@
3838
3939
async function get_allowed_files() {
4040
toggle_loading()
41-
const params = { key }
41+
const params = { supported_feature }
4242
await api_fetch(
4343
{ schema, params },
4444
{

components/FileUploader.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@
1818
<v-row>
1919
<v-col cols="auto">
2020
<v-btn
21-
@click="upload_files"
2221
color="primary"
2322
:disabled="!files.length && !files_uploaded"
2423
:loading="loading"
2524
class="pa-2"
26-
>Upload file(s)</v-btn
25+
@click="upload_files"
2726
>
27+
Upload file(s)
28+
</v-btn>
2829
</v-col>
2930
</v-row>
3031
</template>

components/Launcher.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<template>
2-
<v-container justify="space-around">
2+
<v-container class="justify">
33
<v-row align-content="center" align="center">
44
<v-col
55
v-if="!is_captcha_validated"
6+
class="align"
67
cols="12"
78
align-self="center"
8-
align="center"
99
>
1010
<h4 class="pb-3">Please complete the recaptcha to launch the app</h4>
1111
<Recaptcha :site_key="site_key" />
@@ -18,7 +18,7 @@
1818
</template>
1919

2020
<script setup>
21-
const websocket_store = use_websocket_store()
21+
const viewer_store = use_viewer_store()
2222
const cloud_store = use_cloud_store()
2323
const { is_captcha_validated, is_connexion_launched, is_running } =
2424
storeToRefs(cloud_store)
@@ -28,7 +28,7 @@
2828
watch(is_captcha_validated, async (value) => {
2929
if (value === true && process.client) {
3030
await cloud_store.create_connexion()
31-
await websocket_store.ws_connect()
31+
await viewer_store.ws_connect()
3232
}
3333
})
3434
</script>

components/MissingFilesSelector.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
const toggle_loading = useToggle(loading)
7070
7171
function files_uploaded_event(value) {
72-
console.log("update_values")
7372
emit("update_values", { additional_files: value })
7473
missing_files()
7574
}

components/ObjectSelector.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
5959
const props = defineProps({
6060
filenames: { type: Array, required: true },
61-
key: { type: String, required: false, default: null },
61+
supported_feature: { type: String, required: false, default: null },
6262
})
63-
const { filenames, key } = props
63+
const { filenames, supported_feature } = props
6464
6565
const loading = ref(false)
6666
const allowed_objects = ref({})
@@ -71,7 +71,7 @@
7171
allowed_objects.value = {}
7272
var promise_array = []
7373
for (const filename of filenames) {
74-
const params = { filename, key }
74+
const params = { filename, supported_feature }
7575
const promise = new Promise((resolve, reject) => {
7676
api_fetch(
7777
{ schema, params },

components/Recaptcha.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<ClientOnly>
33
<vue-recaptcha
44
ref="recaptcha"
5-
sitekey="6Lce72wgAAAAAOXrHyDxRQBhk6NDTD80MrXOlgbC"
6-
:loadRecaptchaScript="true"
5+
:sitekey="site_key"
6+
:load-recaptcha-script="true"
7+
align-self="center"
78
@expired="is_captcha_validated = false"
89
@verify="submit_recaptcha"
9-
align-self="center"
1010
/>
1111
</ClientOnly>
1212
</template>

components/RemoteRenderingView.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,38 @@
33
<div style="position: relative; width: 100%; height: 100%">
44
<view-toolbar />
55
<v-col
6+
ref="viewer"
67
style="
78
overflow: hidden;
89
position: relative;
910
z-index: 0;
1011
height: 100%;
1112
width: 100%;
1213
"
13-
ref="viewer"
14+
class="pa-0"
1415
@click="get_x_y"
1516
@keydown.esc="app_store.toggle_picking_mode(false)"
16-
class="pa-0"
17-
>
18-
</v-col>
17+
/>
1918
</div>
2019
</ClientOnly>
2120
</template>
2221

2322
<script setup>
2423
import vtkRemoteView from "@kitware/vtk.js/Rendering/Misc/RemoteView"
2524
import { useElementSize } from "@vueuse/core"
25+
import schemas from "@geode/opengeodeweb-viewer/schemas.json"
2626
2727
const viewer_store = use_viewer_store()
28-
const { picking_mode } = storeToRefs(viewer_store)
29-
const websocket_store = use_websocket_store()
30-
const { client, is_running } = storeToRefs(websocket_store)
28+
const { client, is_running, picking_mode } = storeToRefs(viewer_store)
3129
3230
function get_x_y(event) {
3331
if (picking_mode.value === true) {
3432
const { offsetX, offsetY } = event
3533
viewer_store.set_picked_point(offsetX, offsetY)
34+
viewer_call({
35+
schema: schemas.opengeodeweb_viewer.set_picked_point,
36+
params: { offsetX, offsetY },
37+
})
3638
}
3739
}
3840

0 commit comments

Comments
 (0)