@geode/opengeodeweb-front 10.30.2-rc.2 → 10.30.2-rc.4

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/.oxlintrc.json CHANGED
@@ -20,6 +20,7 @@
20
20
  "eslint/no-ternary": "off", // A utiliser pour des opérations simples
21
21
  "unicorn/prefer-ternary": "off",
22
22
  "oxc/no-async-await": "off",
23
+ "one-var": ["error", "never"],
23
24
  "oxc/no-rest-spread-properties": "off", // Enable if older browser support is needed
24
25
  "eslint/max-statements": ["warn", 20],
25
26
  "eslint/id-length": [
@@ -44,10 +44,10 @@ function drawCanvasForPreset(presetName, canvas) {
44
44
  const table = lut.getUint8Table(rgbPoints[0], rgbPoints.at(-LAST_POINT_OFFSET), width, true);
45
45
  const imageData = ctx.createImageData(width, height);
46
46
  for (let xCoord = 0; xCoord < width; xCoord += 1) {
47
- const alpha = table[xCoord * 4 + THREE],
48
- blue = table[xCoord * 4 + 2],
49
- green = table[xCoord * 4 + 1],
50
- red = table[xCoord * 4];
47
+ const alpha = table[xCoord * 4 + THREE];
48
+ const blue = table[xCoord * 4 + 2];
49
+ const green = table[xCoord * 4 + 1];
50
+ const red = table[xCoord * 4];
51
51
  for (let yCoord = 0; yCoord < height; yCoord += 1) {
52
52
  const pixelIdx = (yCoord * width + xCoord) * 4;
53
53
  imageData.data[pixelIdx] = red;
@@ -94,9 +94,9 @@ async function performAddItem(id, options) {
94
94
  }
95
95
  const reader = vtkXMLPolyDataReader();
96
96
  await reader.parseAsArrayBuffer(new TextEncoder().encode(value.binary_light_viewable));
97
- const actor = vtkActor(),
98
- mapper = vtkMapper(),
99
- polydata = reader.getOutputData(0);
97
+ const actor = vtkActor();
98
+ const mapper = vtkMapper();
99
+ const polydata = reader.getOutputData(0);
100
100
  mapper.setInputData(polydata);
101
101
  actor.getProperty().setColor(actorColor);
102
102
  actor.setMapper(mapper);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-front",
3
- "version": "10.30.2-rc.2",
3
+ "version": "10.30.2-rc.4",
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": {
package/shared/scripts.js CHANGED
@@ -69,4 +69,17 @@ function setIsAppReady(appBaseUrl, isReady) {
69
69
  return fetchSchema({ schema, params, baseURL: appBaseUrl });
70
70
  }
71
71
 
72
- export { setAppBaseUrl, setBackBaseUrl, setIsAppReady, setViewerBaseUrl };
72
+ function getIsAppReady(appBaseUrl) {
73
+ console.log("[API] getIsAppReady");
74
+ const schema = {
75
+ $id: "/api/microservice/app/get_is_app_ready",
76
+ methods: ["GET"],
77
+ type: "object",
78
+ properties: {},
79
+ required: [],
80
+ additionalProperties: false,
81
+ };
82
+ return fetchSchema({ schema, baseURL: appBaseUrl });
83
+ }
84
+
85
+ export { getIsAppReady, setAppBaseUrl, setBackBaseUrl, setIsAppReady, setViewerBaseUrl };
@@ -23,8 +23,8 @@ const range = [MINIMUM_RANGE, MAXIMUM_RANGE];
23
23
  const default_vertex_attribute = { name: "points", item: 0, range };
24
24
  const default_cell_attribute = { name: "RGB_data", item: 0, range };
25
25
 
26
- let id = "",
27
- projectFolderPath = "";
26
+ let id = "";
27
+ let projectFolderPath = "";
28
28
 
29
29
  describe("mesh cells", () => {
30
30
  beforeAll(async () => {
@@ -20,8 +20,8 @@ const range = [MINIMUM_RANGE, MAXIMUM_RANGE];
20
20
  const default_vertex_attribute = { name: "vertex_attribute", item: 0, range };
21
21
  const default_edge_attribute = { name: "edge_attribute", item: 0, range };
22
22
 
23
- let id = "",
24
- projectFolderPath = "";
23
+ let id = "";
24
+ let projectFolderPath = "";
25
25
 
26
26
  describe("mesh edges", () => {
27
27
  beforeAll(async () => {
@@ -14,8 +14,8 @@ const mesh_schemas = viewer_schemas.opengeodeweb_viewer.mesh;
14
14
  const file_name = "test.og_rgd3d";
15
15
  const geode_object = "RegularGrid3D";
16
16
 
17
- let id = "",
18
- projectFolderPath = "";
17
+ let id = "";
18
+ let projectFolderPath = "";
19
19
 
20
20
  describe("mesh", () => {
21
21
  beforeAll(async () => {
@@ -19,8 +19,8 @@ const MAXIMUM_RANGE = 20;
19
19
  const range = [MINIMUM_RANGE, MAXIMUM_RANGE];
20
20
  const default_vertex_attribute = { name: "points", item: 0, range };
21
21
 
22
- let id = "",
23
- projectFolderPath = "";
22
+ let id = "";
23
+ let projectFolderPath = "";
24
24
 
25
25
  describe("mesh points", () => {
26
26
  beforeAll(async () => {
@@ -20,8 +20,8 @@ const range = [MINIMUM_RANGE, MAXIMUM_RANGE];
20
20
  const default_vertex_attribute = { name: "points", item: 0, range };
21
21
  const default_polygon_attribute = { name: "test_attribute", item: 0, range };
22
22
 
23
- let id = "",
24
- projectFolderPath = "";
23
+ let id = "";
24
+ let projectFolderPath = "";
25
25
 
26
26
  describe("mesh polygons", () => {
27
27
  beforeAll(async () => {
@@ -20,8 +20,8 @@ const range = [MINIMUM_RANGE, MAXIMUM_RANGE];
20
20
  const default_vertex_attribute = { name: "toto_on_vertices", item: 0, range };
21
21
  const default_polyhedron_attribute = { name: "toto_on_polyhedra", item: 0, range };
22
22
 
23
- let id = "",
24
- projectFolderPath = "";
23
+ let id = "";
24
+ let projectFolderPath = "";
25
25
 
26
26
  describe("mesh polyhedra", () => {
27
27
  beforeAll(async () => {
@@ -26,8 +26,8 @@ function sleep(milliseconds) {
26
26
  });
27
27
  }
28
28
 
29
- let id = "",
30
- projectFolderPath = "";
29
+ let id = "";
30
+ let projectFolderPath = "";
31
31
 
32
32
  describe("model blocks", () => {
33
33
  beforeAll(async () => {
@@ -25,8 +25,8 @@ function sleep(milliseconds) {
25
25
  });
26
26
  }
27
27
 
28
- let id = "",
29
- projectFolderPath = "";
28
+ let id = "";
29
+ let projectFolderPath = "";
30
30
 
31
31
  describe("model corners", () => {
32
32
  beforeAll(async () => {
@@ -22,8 +22,8 @@ function sleep(milliseconds) {
22
22
  });
23
23
  }
24
24
 
25
- let id = "",
26
- projectFolderPath = "";
25
+ let id = "";
26
+ let projectFolderPath = "";
27
27
 
28
28
  describe("model edges", () => {
29
29
  beforeAll(async () => {
@@ -23,8 +23,8 @@ function sleep(milliseconds) {
23
23
  });
24
24
  }
25
25
 
26
- let id = "",
27
- projectFolderPath = "";
26
+ let id = "";
27
+ let projectFolderPath = "";
28
28
 
29
29
  describe("model", () => {
30
30
  beforeAll(async () => {
@@ -26,8 +26,8 @@ function sleep(milliseconds) {
26
26
  });
27
27
  }
28
28
 
29
- let id = "",
30
- projectFolderPath = "";
29
+ let id = "";
30
+ let projectFolderPath = "";
31
31
 
32
32
  describe("model lines", () => {
33
33
  beforeAll(async () => {
@@ -22,8 +22,8 @@ function sleep(milliseconds) {
22
22
  });
23
23
  }
24
24
 
25
- let id = "",
26
- projectFolderPath = "";
25
+ let id = "";
26
+ let projectFolderPath = "";
27
27
 
28
28
  describe("model points", () => {
29
29
  beforeAll(async () => {
@@ -30,8 +30,8 @@ function sleep(milliseconds) {
30
30
  });
31
31
  }
32
32
 
33
- let id = "",
34
- projectFolderPath = "";
33
+ let id = "";
34
+ let projectFolderPath = "";
35
35
 
36
36
  describe("model surfaces", () => {
37
37
  beforeAll(async () => {