@geode/opengeodeweb-front 9.15.0-rc.1 → 9.15.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.
@@ -13,30 +13,13 @@ export function useProjectManager() {
13
13
  const defaultName = "project.vease"
14
14
 
15
15
  await infraStore.create_connection()
16
- let downloaded = false
17
- const result = await api_fetch(
18
- { schema, params: { snapshot, filename: defaultName } },
19
- {
20
- response_function: function (response) {
21
- if (downloaded) return
22
- downloaded = true
23
- const data = response._data
24
- const headerName =
25
- (response.headers &&
26
- typeof response.headers.get === "function" &&
27
- (response.headers
28
- .get("Content-Disposition")
29
- ?.match(/filename=\"(.+?)\"/)?.[1] ||
30
- response.headers.get("new-file-name"))) ||
31
- defaultName
32
- if (!headerName.toLowerCase().endsWith(".vease")) {
33
- throw new Error("Server returned non-.vease project archive")
34
- }
35
- fileDownload(data, headerName)
36
- },
37
- },
38
- )
39
- return result
16
+ const result = await $fetch(schema.$id, {
17
+ baseURL: geode.base_url,
18
+ method: schema.methods.filter((m) => m !== "OPTIONS")[0],
19
+ body: { snapshot, filename: defaultName },
20
+ })
21
+ fileDownload(result, defaultName)
22
+ return { result }
40
23
  }
41
24
 
42
25
  const importProjectFile = async function (file) {
package/package.json CHANGED
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
41
41
  "type": "module",
42
- "version": "9.15.0-rc.1",
42
+ "version": "9.15.0-rc.2",
43
43
  "main": "./nuxt.config.js",
44
44
  "dependencies": {
45
45
  "@geode/opengeodeweb-back": "next",