@geode/opengeodeweb-front 9.14.0-rc.2 → 9.14.0
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.
package/package.json
CHANGED
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
|
|
41
41
|
"type": "module",
|
|
42
|
-
"version": "9.14.0
|
|
42
|
+
"version": "9.14.0",
|
|
43
43
|
"main": "./nuxt.config.js",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@geode/opengeodeweb-back": "
|
|
46
|
-
"@geode/opengeodeweb-viewer": "
|
|
45
|
+
"@geode/opengeodeweb-back": "latest",
|
|
46
|
+
"@geode/opengeodeweb-viewer": "latest",
|
|
47
47
|
"@kitware/vtk.js": "33.3.0",
|
|
48
48
|
"@mdi/font": "7.4.47",
|
|
49
49
|
"@pinia/nuxt": "0.11.3",
|
|
@@ -34,12 +34,7 @@ async function importItem(item) {
|
|
|
34
34
|
const treeviewStore = useTreeviewStore()
|
|
35
35
|
await dataBaseStore.registerObject(item.id)
|
|
36
36
|
await dataBaseStore.addItem(item.id, {
|
|
37
|
-
|
|
38
|
-
geode_object: item.geode_object,
|
|
39
|
-
native_filename: item.native_filename,
|
|
40
|
-
viewable_filename: item.viewable_filename,
|
|
41
|
-
displayed_name: item.displayed_name,
|
|
42
|
-
vtk_js: item.vtk_js,
|
|
37
|
+
...item,
|
|
43
38
|
})
|
|
44
39
|
|
|
45
40
|
await treeviewStore.addItem(
|
|
@@ -79,10 +74,6 @@ async function importFile(filename, geode_object) {
|
|
|
79
74
|
return importItem(item)
|
|
80
75
|
}
|
|
81
76
|
|
|
82
|
-
async function importItemFromSnapshot(item) {
|
|
83
|
-
return importItem(item)
|
|
84
|
-
}
|
|
85
|
-
|
|
86
77
|
async function importWorkflowFromSnapshot(items) {
|
|
87
78
|
console.log("[importWorkflowFromSnapshot] start", { count: items?.length })
|
|
88
79
|
const dataBaseStore = useDataBaseStore()
|
|
@@ -92,7 +83,7 @@ async function importWorkflowFromSnapshot(items) {
|
|
|
92
83
|
|
|
93
84
|
const ids = []
|
|
94
85
|
for (const item of items) {
|
|
95
|
-
const id = await
|
|
86
|
+
const id = await importItem(
|
|
96
87
|
item,
|
|
97
88
|
dataBaseStore,
|
|
98
89
|
treeviewStore,
|
|
@@ -106,4 +97,4 @@ async function importWorkflowFromSnapshot(items) {
|
|
|
106
97
|
return ids
|
|
107
98
|
}
|
|
108
99
|
|
|
109
|
-
export { importFile, importWorkflow, importWorkflowFromSnapshot }
|
|
100
|
+
export { importFile, importWorkflow, importWorkflowFromSnapshot, importItem }
|