-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from Geode-solutions/revert-62-fix/clean_pages
Revert "fix(pages): clean unused pages in app"
- Loading branch information
Showing
9 changed files
with
250 additions
and
105 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<template> | ||
<v-container> | ||
<v-row> | ||
<v-col> | ||
<v-treeview | ||
v-model:selected="treeviewStore.selection" | ||
:items="treeviewStore.items" | ||
:select-strategy="treeviewStore.selectionType" | ||
return-object | ||
selectable | ||
class="transparent-treeview" | ||
></v-treeview> | ||
</v-col> | ||
</v-row> | ||
</v-container> | ||
</template> | ||
|
||
<style scoped> | ||
.transparent-treeview { | ||
background-color: transparent; | ||
color: white; | ||
} | ||
</style> | ||
|
||
<script setup> | ||
const treeviewStore = useTreeviewStore(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<template></template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<template></template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<template></template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<template></template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<template> | ||
<StepImport class="mr-12" /> | ||
</template> | ||
|
||
<script setup> | ||
import _ from "lodash"; | ||
import FileSelector from "@geode/opengeodeweb-front/components/FileSelector.vue"; | ||
import MissingFilesSelector from "@geode/opengeodeweb-front/components/MissingFilesSelector.vue"; | ||
import ObjectSelector from "@geode/opengeodeweb-front/components/ObjectSelector.vue"; | ||
import ImportFile from "@/components/ImportFile.vue"; | ||
const geode_store = use_geode_store(); | ||
const viewer_store = use_viewer_store(); | ||
geode_store.$patch({ is_running: true }); | ||
viewer_store.$patch({ is_running: true }); | ||
const files = ref([]); | ||
const input_geode_object = ref(""); | ||
const additional_files = ref([]); | ||
const stepper_tree = reactive({ | ||
current_step_index: ref(0), | ||
files, | ||
input_geode_object, | ||
steps: [ | ||
{ | ||
step_title: "Please select a file to convert", | ||
component: { | ||
component_name: shallowRef(FileSelector), | ||
component_options: { | ||
multiple: true, | ||
}, | ||
}, | ||
chips: computed(() => { | ||
return files.value.map((file) => file.name); | ||
}), | ||
}, | ||
{ | ||
step_title: "Confirm the data type", | ||
component: { | ||
component_name: shallowRef(ObjectSelector), | ||
component_options: { | ||
filenames: computed(() => { | ||
return files.value.map((file) => file.name); | ||
}), | ||
}, | ||
}, | ||
chips: computed(() => { | ||
if (input_geode_object.value === "") { | ||
return []; | ||
} else { | ||
return [input_geode_object.value]; | ||
} | ||
}), | ||
}, | ||
{ | ||
step_title: "Please select additionnal files", | ||
component: { | ||
component_name: shallowRef(MissingFilesSelector), | ||
component_options: { | ||
multiple: true, | ||
input_geode_object, | ||
filenames: computed(() => { | ||
return files.value.map((file) => file.name); | ||
}), | ||
}, | ||
}, | ||
chips: computed(() => { | ||
return additional_files.value.map( | ||
(additional_file) => additional_file.name | ||
); | ||
}), | ||
}, | ||
{ | ||
step_title: "Import your file(s)", | ||
component: { | ||
component_name: shallowRef(ImportFile), | ||
component_options: { | ||
input_geode_object, | ||
filenames: computed(() => { | ||
return files.value.map((file) => file.name); | ||
}), | ||
}, | ||
}, | ||
chips: computed(() => { | ||
const output_params = computed(() => { | ||
return [files.value.map((file) => file.name), input_geode_object, additional_files.value.map((file) => file.name)]; | ||
}); | ||
if (_.isEmpty(output_params)) { | ||
return []; | ||
} else { | ||
const array = []; | ||
for (const property in output_params.value) { | ||
if (output_params.value[property].value !== "") { | ||
array.push(output_params.value[property].value); | ||
} | ||
} | ||
return array; | ||
} | ||
}), | ||
}, | ||
], | ||
}); | ||
const schema = { | ||
"$id": "/ping", | ||
"methods": ["POST"], | ||
"type": "object", | ||
"properties": { | ||
}, | ||
"required": [], | ||
"additionalProperties": false | ||
} | ||
const schema2 = { | ||
"$id": "/", | ||
"methods": ["POST"], | ||
"type": "object", | ||
"properties": { | ||
}, | ||
"required": [], | ||
"additionalProperties": false | ||
} | ||
await api_fetch({ schema: schema2, params: {} }); | ||
provide("stepper_tree", stepper_tree); | ||
</script> |