@geode/opengeodeweb-front 5.1.0-rc.1 → 6.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.
@@ -0,0 +1,12 @@
1
+ {
2
+ "$id": "/tools/geographic_coordinate_systems",
3
+ "type": "object",
4
+ "method": "POST",
5
+ "properties": {
6
+ "input_geode_object": {
7
+ "type": "string"
8
+ }
9
+ },
10
+ "required": ["input_geode_object"],
11
+ "additionalProperties": false
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$id": "/tools/geode_objects_and_output_extensions",
3
+ "type": "object",
4
+ "method": "POST",
5
+ "properties": {
6
+ "input_geode_object": {
7
+ "type": "string"
8
+ }
9
+ },
10
+ "required": ["input_geode_object"],
11
+ "additionalProperties": false
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$id": "/tools/allowed_files",
3
+ "type": "object",
4
+ "method": "POST",
5
+ "properties": {
6
+ "key": {
7
+ "type": ["string", "null"]
8
+ }
9
+ },
10
+ "required": ["key"],
11
+ "additionalProperties": false
12
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$id": "/tools/missing_files",
3
+ "type": "object",
4
+ "method": "POST",
5
+ "properties": {
6
+ "input_geode_object": {
7
+ "type": "string"
8
+ },
9
+ "filename": {
10
+ "type": "string"
11
+ }
12
+ },
13
+ "required": ["input_geode_object", "filename"],
14
+ "additionalProperties": false
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$id": "/tools/allowed_objects",
3
+ "type": "object",
4
+ "method": "POST",
5
+ "properties": {
6
+ "filename": {
7
+ "type": "string"
8
+ },
9
+ "key": {
10
+ "type": ["string", "null"]
11
+ }
12
+ },
13
+ "required": ["filename", "key"],
14
+ "additionalProperties": false
15
+ }
@@ -24,6 +24,7 @@
24
24
  </template>
25
25
 
26
26
  <script setup>
27
+ import schema from "@/assets/schemas/CrsSelector.json"
27
28
  const emit = defineEmits([
28
29
  "update_values",
29
30
  "increment_step",
@@ -33,10 +34,9 @@
33
34
  const props = defineProps({
34
35
  input_geode_object: { type: String, required: true },
35
36
  key_to_update: { type: String, required: true },
36
- schema: { type: Object, required: true },
37
37
  })
38
38
 
39
- const { input_geode_object, key_to_update, schema } = props
39
+ const { input_geode_object, key_to_update } = props
40
40
 
41
41
  const search = ref("")
42
42
  const data_table_loading = ref(false)
@@ -43,6 +43,7 @@
43
43
  </template>
44
44
 
45
45
  <script setup>
46
+ import { use_errors_store } from "@/stores/errors"
46
47
  const errors_store = use_errors_store()
47
48
  const { server_error } = storeToRefs(errors_store)
48
49
 
@@ -55,6 +55,7 @@
55
55
  </template>
56
56
 
57
57
  <script setup>
58
+ import { use_errors_store } from "@/stores/errors"
58
59
  const errors_store = use_errors_store()
59
60
  const { errors } = storeToRefs(errors_store)
60
61
 
@@ -50,6 +50,8 @@
50
50
  </template>
51
51
 
52
52
  <script setup>
53
+ import schema from "@/assets/schemas/ExtensionSelector.json"
54
+
53
55
  const emit = defineEmits([
54
56
  "update_values",
55
57
  "increment_step",
@@ -58,9 +60,8 @@
58
60
 
59
61
  const props = defineProps({
60
62
  input_geode_object: { type: String, required: true },
61
- schema: { type: Object, required: true },
62
63
  })
63
- const { input_geode_object, schema } = props
64
+ const { input_geode_object } = props
64
65
 
65
66
  const geode_objects_and_output_extensions = ref([])
66
67
  const loading = ref(false)
@@ -8,6 +8,8 @@
8
8
  </template>
9
9
 
10
10
  <script setup>
11
+ import schema from "@/assets/schemas/FileSelector.json"
12
+
11
13
  const emit = defineEmits([
12
14
  "update_values",
13
15
  "increment_step",
@@ -18,10 +20,9 @@
18
20
  multiple: { type: Boolean, required: true },
19
21
  key: { type: String, required: false, default: "" },
20
22
  route: { type: String, required: false, default: "" },
21
- schema: { type: Object, required: true },
22
23
  })
23
24
 
24
- const { multiple, key, route, schema } = props
25
+ const { multiple, key, route } = props
25
26
 
26
27
  const accept = ref("")
27
28
  const loading = ref(false)
@@ -18,6 +18,9 @@
18
18
  </template>
19
19
 
20
20
  <script setup>
21
+ import { use_websocket_store } from "@/stores/websocket"
22
+ import { use_cloud_store } from "@/stores/cloud"
23
+
21
24
  const websocket_store = use_websocket_store()
22
25
  const cloud_store = use_cloud_store()
23
26
  const { is_captcha_validated, is_connexion_launched, is_running } =
@@ -43,6 +43,8 @@
43
43
  </template>
44
44
 
45
45
  <script setup>
46
+ import schema from "@/assets/schemas/MissingFilesSelector.json"
47
+
46
48
  const emit = defineEmits([
47
49
  "update_values",
48
50
  "increment_step",
@@ -54,10 +56,9 @@
54
56
  input_geode_object: { type: String, required: true },
55
57
  files: { type: Array, required: true },
56
58
  route: { type: String, required: true },
57
- schema: { type: Object, required: true },
58
59
  })
59
60
 
60
- const { multiple, input_geode_object, files, route, schema } = props
61
+ const { multiple, input_geode_object, files, route } = props
61
62
 
62
63
  const accept = ref("")
63
64
  const loading = ref(false)
@@ -32,16 +32,16 @@
32
32
 
33
33
  <script setup>
34
34
  import geode_objects from "@/assets/geode_objects"
35
+ import schema from "@/assets/schemas/ObjectSelector.json"
35
36
 
36
37
  const emit = defineEmits(["update_values", "increment_step"])
37
38
 
38
39
  const props = defineProps({
39
40
  files: { type: Array, required: true },
40
41
  key: { type: String, required: false, default: null },
41
- schema: { type: Object, required: true },
42
42
  })
43
43
 
44
- const { files, key, schema } = props
44
+ const { files, key } = props
45
45
 
46
46
  const loading = ref(false)
47
47
  const allowed_objects = ref([])
@@ -19,6 +19,7 @@
19
19
  </template>
20
20
 
21
21
  <script setup>
22
+ import { use_cloud_store } from "@/stores/cloud"
22
23
  const cloud_store = use_cloud_store()
23
24
  const { is_running } = storeToRefs(cloud_store)
24
25
 
@@ -13,7 +13,7 @@
13
13
 
14
14
  <script setup>
15
15
  import { VueRecaptcha } from "vue-recaptcha"
16
-
16
+ import { use_cloud_store } from "@/stores/cloud"
17
17
  const cloud_store = use_cloud_store()
18
18
  const { is_captcha_validated } = storeToRefs(cloud_store)
19
19
 
@@ -23,6 +23,8 @@
23
23
  <script setup>
24
24
  import vtkRemoteView from "@kitware/vtk.js/Rendering/Misc/RemoteView"
25
25
  import { useElementSize } from "@vueuse/core"
26
+ import { use_viewer_store } from "@/stores/viewer"
27
+ import { use_websocket_store } from "@/stores/websocket"
26
28
 
27
29
  const viewer_store = use_viewer_store()
28
30
  const { picking_mode } = storeToRefs(viewer_store)
@@ -19,6 +19,8 @@
19
19
  </template>
20
20
 
21
21
  <script setup>
22
+ import { use_viewer_store } from "@/stores/viewer"
23
+
22
24
  const viewer_store = use_viewer_store()
23
25
  function reset_camera() {
24
26
  viewer_store.reset_camera()
@@ -18,6 +18,8 @@
18
18
  </template>
19
19
 
20
20
  <script setup>
21
+ import { use_cloud_store } from "@/stores/cloud"
22
+
21
23
  const cloud_store = use_cloud_store()
22
24
  const { is_running } = storeToRefs(cloud_store)
23
25
 
@@ -1,6 +1,9 @@
1
1
  import Ajv from "ajv"
2
2
  import _ from "lodash"
3
3
 
4
+ import { use_errors_store } from "@/stores/errors"
5
+ import { use_geode_store } from "@/stores/geode"
6
+
4
7
  export function api_fetch(
5
8
  { schema, params },
6
9
  { request_error_function, response_function, response_error_function } = {},
@@ -1,3 +1,5 @@
1
+ import { use_cloud_store } from "@/stores/cloud"
2
+
1
3
  export default function (function_to_run) {
2
4
  const cloud_store = use_cloud_store()
3
5
  const { is_running } = storeToRefs(cloud_store)
@@ -1,3 +1,6 @@
1
+ import { use_errors_store } from "@/stores/errors"
2
+ import { use_geode_store } from "@/stores/geode"
3
+
1
4
  export function upload_file(
2
5
  { route, files },
3
6
  { request_error_function, response_function, response_error_function } = {},
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "description": "OpenSource Vue/Vuetify framework for web applications",
21
21
  "type": "module",
22
- "version": "5.1.0-rc.1",
22
+ "version": "6.0.0-rc.2",
23
23
  "main": "./nuxt.config.js",
24
24
  "dependencies": {
25
25
  "@kitware/vtk.js": "^29.1.1",
package/stores/cloud.js CHANGED
@@ -1,4 +1,7 @@
1
1
  import { useStorage } from "@vueuse/core"
2
+ import { use_errors_store } from "@/stores/errors"
3
+ import { use_geode_store } from "@/stores/geode"
4
+ import { use_websocket_store } from "@/stores/websocket"
2
5
 
3
6
  export const use_cloud_store = defineStore("cloud", {
4
7
  state: () => ({
package/stores/geode.js CHANGED
@@ -1,3 +1,6 @@
1
+ import { use_cloud_store } from "@/stores/cloud"
2
+ import { use_errors_store } from "@/stores/errors"
3
+
1
4
  export const use_geode_store = defineStore("geode", {
2
5
  state: () => ({
3
6
  request_counter: 0,
package/stores/viewer.js CHANGED
@@ -1,3 +1,5 @@
1
+ import { use_websocket_store } from "@/stores/websocket"
2
+
1
3
  export const use_viewer_store = defineStore("viewer", {
2
4
  state: () => ({
3
5
  picking_mode: false,
@@ -7,7 +7,8 @@ import SmartConnect from "wslink/src/SmartConnect"
7
7
 
8
8
  import "@kitware/vtk.js/Rendering/OpenGL/Profiles/Geometry"
9
9
  import { connectImageStream } from "@kitware/vtk.js/Rendering/Misc/RemoteView"
10
- import protocols from "@/protocols"
10
+ import protocols from "@/utils"
11
+ import { use_cloud_store } from "@/stores/cloud"
11
12
 
12
13
  // Bind vtkWSLinkClient to our SmartConnect
13
14
  vtkWSLinkClient.setSmartConnectClass(SmartConnect)
File without changes
File without changes