Skip to content

Commit f79f56b

Browse files
pull from next
2 parents b75c4b5 + 13dc582 commit f79f56b

14 files changed

+80
-12
lines changed

assets/schemas/CrsSelector.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}

assets/schemas/FileSelector.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}

assets/schemas/ObjectSelector.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}

components/CrsSelector.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
</template>
2525

2626
<script setup>
27+
import schema from "@/assets/schemas/CrsSelector.json"
2728
const emit = defineEmits([
2829
"update_values",
2930
"increment_step",
@@ -33,10 +34,9 @@
3334
const props = defineProps({
3435
input_geode_object: { type: String, required: true },
3536
key_to_update: { type: String, required: true },
36-
schema: { type: Object, required: true },
3737
})
3838
39-
const { input_geode_object, key_to_update, schema } = props
39+
const { input_geode_object, key_to_update } = props
4040
4141
const search = ref("")
4242
const data_table_loading = ref(false)

components/ExtensionSelector.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
</template>
5151

5252
<script setup>
53+
import schema from "@/assets/schemas/ExtensionSelector.json"
54+
5355
const emit = defineEmits([
5456
"update_values",
5557
"increment_step",
@@ -59,9 +61,8 @@
5961
const props = defineProps({
6062
input_geode_object: { type: String, required: true },
6163
filenames: { type: Array, required: true },
62-
schema: { type: Object, required: true },
6364
})
64-
const { input_geode_object, filenames, schema } = props
65+
const { input_geode_object, filenames } = props
6566
6667
const geode_objects_and_output_extensions = ref([])
6768
const loading = ref(false)

components/FileSelector.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
</template>
99

1010
<script setup>
11+
import schema from "@/assets/schemas/FileSelector.json"
12+
1113
const emit = defineEmits([
1214
"update_values",
1315
"increment_step",
@@ -18,10 +20,9 @@
1820
multiple: { type: Boolean, required: true },
1921
key: { type: String, required: false, default: "" },
2022
route: { type: String, required: false, default: "" },
21-
schema: { type: Object, required: true },
2223
})
2324
24-
const { multiple, key, route, schema } = props
25+
const { multiple, key, route } = props
2526
2627
const accept = ref("")
2728
const loading = ref(false)

components/MissingFilesSelector.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
</template>
4444

4545
<script setup>
46+
import schema from "@/assets/schemas/MissingFilesSelector.json"
47+
4648
const emit = defineEmits([
4749
"update_values",
4850
"increment_step",
@@ -54,10 +56,9 @@
5456
input_geode_object: { type: String, required: true },
5557
filenames: { type: Array, required: true },
5658
route: { type: String, required: true },
57-
schema: { type: Object, required: true },
5859
})
5960
60-
const { multiple, input_geode_object, filenames, route, schema } = props
61+
const { multiple, input_geode_object, files, route } = props
6162
6263
const accept = ref("")
6364
const loading = ref(false)

components/ObjectSelector.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232

3333
<script setup>
3434
import geode_objects from "@/assets/geode_objects"
35+
import schema from "@/assets/schemas/ObjectSelector.json"
3536
3637
const emit = defineEmits(["update_values", "increment_step"])
3738
3839
const props = defineProps({
3940
filenames: { type: Array, required: true },
4041
key: { type: String, required: false, default: null },
41-
schema: { type: Object, required: true },
4242
})
4343
44-
const { filenames, key, schema } = props
44+
const { filenames, key } = props
4545
4646
const loading = ref(false)
4747
const allowed_objects = ref([])

0 commit comments

Comments
 (0)