@geode/opengeodeweb-front 10.12.0-rc.1 → 10.12.0-rc.10

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.
@@ -22,7 +22,7 @@ if (infraStore.app_mode !== appMode.CLOUD) {
22
22
  <v-container class="justify">
23
23
  <v-row align-content="center" align="center">
24
24
  <v-col
25
- v-if="!infraStore.status == Status.NOT_CREATED"
25
+ v-if="infraStore.status === Status.NOT_CREATED"
26
26
  class="align"
27
27
  cols="12"
28
28
  align-self="center"
@@ -30,7 +30,7 @@ if (infraStore.app_mode !== appMode.CLOUD) {
30
30
  >
31
31
  <Recaptcha :button_color="'secondary'" />
32
32
  </v-col>
33
- <v-col v-else-if="infraStore.status == Status.CREATING">
33
+ <v-col v-else-if="infraStore.status === Status.CREATING">
34
34
  <Loading :logo="logo" />
35
35
  </v-col>
36
36
  </v-row>
@@ -45,15 +45,6 @@ async function runScript(
45
45
  child.stdout.on("data", (data) => console.log(`[${execName}] ${data.toString()}`));
46
46
  child.stderr.on("data", (data) => console.log(`[${execName}] ${data.toString()}`));
47
47
 
48
- child.on("error", async (error) => {
49
- const electron = await import("electron");
50
- electron.dialog.showMessageBox({
51
- title: "Title",
52
- type: "warning",
53
- message: `Error occured.\r\n${error}`,
54
- });
55
- });
56
-
57
48
  child.on("close", (code) => console.log(`[${execName}] exited with code ${code}`));
58
49
  child.on("kill", () => {
59
50
  console.log(`[${execName}] process killed`);
package/nuxt.config.js CHANGED
@@ -5,6 +5,7 @@ import path from "node:path";
5
5
  import package_json from "./package.json";
6
6
 
7
7
  const __dirname = import.meta.dirname;
8
+ const oneMinute = 60_000;
8
9
 
9
10
  export default defineNuxtConfig({
10
11
  runtimeConfig: {
@@ -37,6 +38,12 @@ export default defineNuxtConfig({
37
38
  transpile: ["vuetify"],
38
39
  },
39
40
 
41
+ nitro: {
42
+ routeRules: {
43
+ "/api/**": { timeout: oneMinute },
44
+ },
45
+ },
46
+
40
47
  vuetify: {
41
48
  vuetifyOptions: {
42
49
  defaults: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-front",
3
- "version": "10.12.0-rc.1",
3
+ "version": "10.12.0-rc.10",
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": {
@@ -84,9 +84,6 @@
84
84
  "vitest-environment-nuxt": "1.0.1",
85
85
  "vitest-indexeddb": "0.0.1"
86
86
  },
87
- "peerDependencies": {
88
- "electron": "36.4.0"
89
- },
90
87
  "overrides": {
91
88
  "vue": "latest"
92
89
  }
@@ -21,6 +21,7 @@ export default defineEventHandler(async (event) => {
21
21
  const location = "europe-west9";
22
22
  const projectId = process.env.GOOGLE_CLOUD_PROJECT;
23
23
  const parent = `projects/${projectId}/locations/${location}`;
24
+ console.log({ parent });
24
25
  const auth = new GoogleAuth({
25
26
  credentials,
26
27
  scopes: ["https://www.googleapis.com/auth/cloud-platform"],
@@ -28,6 +29,7 @@ export default defineEventHandler(async (event) => {
28
29
  const authClient = await auth.getClient();
29
30
  const [routerImage, backImage, viewerImage] = await artifactImages(parent, authClient);
30
31
  const request = requestConfig(parent, routerImage, backImage, viewerImage);
32
+ console.log({ request });
31
33
  const runClient = new ServicesClient({ authClient });
32
34
  const [operation] = await runClient.createService(request);
33
35
  const [response] = await operation.promise();
@@ -11,13 +11,15 @@ function checkRecaptchaParams(name, email, launch) {
11
11
  }
12
12
 
13
13
  async function artifactImage(registry, parent, repo) {
14
- const branch = process.env.BRANCH;
14
+ const branch = process.env.NETLIFY_BRANCH;
15
15
  const [_, projectId] = parent.split("/");
16
16
  const repository = `${parent}/repositories/ghcr/packages/geode-solutions%2F`;
17
- const artifactRegistry = `europe-west9-docker.pkg.dev/${projectId}/ghcr/geode-solutions`;
17
+ const name = `${repository}${repo}/tags/${branch}`;
18
+ console.log({ name });
18
19
  const response = await registry.projects.locations.repositories.packages.tags.get({
19
- name: `${repository}${repo}/tags/${branch}`,
20
+ name,
20
21
  });
22
+ const artifactRegistry = `europe-west9-docker.pkg.dev/${projectId}/ghcr/geode-solutions`;
21
23
  const digest = response.data.version.split("/").pop();
22
24
  const image = `${artifactRegistry}/${repo}@${digest}`;
23
25
  console.log("Found image for", repo, image);
@@ -76,6 +78,20 @@ function requestConfig(parent, routerImage, backImage, viewerImage) {
76
78
  },
77
79
  ],
78
80
  resources,
81
+ env: [
82
+ {
83
+ name: "PARENT",
84
+ value: parent,
85
+ },
86
+ ],
87
+ startupProbe: {
88
+ httpGet: {
89
+ port: 80,
90
+ path: "/viewer/healthcheck",
91
+ },
92
+ periodSeconds: 1,
93
+ failureThreshold: 30,
94
+ },
79
95
  },
80
96
  {
81
97
  image: backImage,