@geode/opengeodeweb-front 10.35.0-rc.4 → 10.35.0-rc.5
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/app/stores/cloud.ts +4 -13
- package/package.json +6 -3
package/app/stores/cloud.ts
CHANGED
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
import { clearCloudUrlParam, getCloudUrlParam } from "@ogw_front/utils/cloud";
|
|
2
|
+
import type { RunCloudResponse } from "@geode/cloud-api/types";
|
|
2
3
|
import { Status } from "@ogw_front/utils/status";
|
|
3
4
|
import { api_fetch } from "@ogw_internal/utils/api_fetch";
|
|
4
5
|
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json";
|
|
6
|
+
import cloud_api_schemas from "@geode/cloud-api/cloud_api_schemas.json";
|
|
5
7
|
import { setAppBaseUrl } from "@ogw_shared/scripts";
|
|
6
8
|
import { useAPIStore } from "@ogw_front/stores/api";
|
|
7
9
|
import { useFeedbackStore } from "@ogw_front/stores/feedback";
|
|
8
10
|
|
|
9
|
-
const run_cloud_schema =
|
|
10
|
-
$id: "/cloud/run",
|
|
11
|
-
methods: ["POST"],
|
|
12
|
-
type: "object",
|
|
13
|
-
properties: {
|
|
14
|
-
email: { type: "string" },
|
|
15
|
-
project: { type: "string" },
|
|
16
|
-
branch: { type: "string" },
|
|
17
|
-
},
|
|
18
|
-
required: ["email", "project", "branch"],
|
|
19
|
-
additionalProperties: false,
|
|
20
|
-
};
|
|
11
|
+
const run_cloud_schema = cloud_api_schemas.cloud_api.cloud.run;
|
|
21
12
|
|
|
22
13
|
export const useCloudStore = defineStore("cloud", {
|
|
23
14
|
state: () => ({
|
|
@@ -44,7 +35,7 @@ export const useCloudStore = defineStore("cloud", {
|
|
|
44
35
|
const params = { email, project: PROJECT, branch: BRANCH };
|
|
45
36
|
const feedbackStore = useFeedbackStore();
|
|
46
37
|
const APIStore = useAPIStore();
|
|
47
|
-
const result = await APIStore.request(
|
|
38
|
+
const result = await APIStore.request<RunCloudResponse>(
|
|
48
39
|
{ schema: run_cloud_schema, params },
|
|
49
40
|
{
|
|
50
41
|
request_error_function: () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geode/opengeodeweb-front",
|
|
3
|
-
"version": "10.35.0-rc.
|
|
3
|
+
"version": "10.35.0-rc.5",
|
|
4
4
|
"description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
|
|
5
5
|
"homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Front",
|
|
6
6
|
"bugs": {
|
|
@@ -48,20 +48,22 @@
|
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"lint": "oxlint --fix .",
|
|
51
|
+
"prepare:types": "cross-env MODE=BROWSER nuxi prepare",
|
|
51
52
|
"typecheck": "nuxt typecheck && tsc -p tsconfig.tests.json --noEmit",
|
|
52
53
|
"build:back": "npx opengeodeweb-microservice-pyinstaller ../OpenGeodeWeb-Back",
|
|
53
54
|
"build:viewer": "npx opengeodeweb-microservice-pyinstaller ../OpenGeodeWeb-Viewer",
|
|
54
55
|
"build:microservices": "concurrently \"npm run build:back\" \"npm run build:viewer\"",
|
|
55
56
|
"json": "npx opengeodeweb-microservice-generate --startDir server/api --key route --separator / --prefix api",
|
|
56
57
|
"test": "npm run test:unit",
|
|
57
|
-
"tests": "
|
|
58
|
+
"tests": "npm run prepare:types && vitest --config ./tests/vitest.config.ts",
|
|
58
59
|
"test:unit": "npm run tests -- --project unit",
|
|
59
60
|
"test:integration": "npm run tests -- --project integration",
|
|
60
61
|
"geode_objects": "tsx scripts/generate_geode_objects.ts && prettier ./assets/geode_objects.ts --write",
|
|
61
|
-
"build": "
|
|
62
|
+
"build": "npm run prepare:types && rolldown -c rolldown.config.ts",
|
|
62
63
|
"prepublishOnly": "npm run build"
|
|
63
64
|
},
|
|
64
65
|
"dependencies": {
|
|
66
|
+
"@geode/cloud-api": "next",
|
|
65
67
|
"@geode/opengeodeweb-back": "next",
|
|
66
68
|
"@geode/opengeodeweb-viewer": "next",
|
|
67
69
|
"@kitware/vtk.js": "33.3.0",
|
|
@@ -106,6 +108,7 @@
|
|
|
106
108
|
"@types/lodash": "4.17.25",
|
|
107
109
|
"@vitejs/plugin-vue": "6.0.8",
|
|
108
110
|
"@vue/test-utils": "2.4.11",
|
|
111
|
+
"cross-env": "10.0.0",
|
|
109
112
|
"happy-dom": "20.0.11",
|
|
110
113
|
"msw": "2.11.1",
|
|
111
114
|
"oxlint": "1.82.0",
|