Skip to content

Commit 54cff2c

Browse files
authored
Merge pull request #343 from Geode-solutions/fix/test_e2e_import_file
Fix/test e2e import file
2 parents 0146cb8 + f21e080 commit 54cff2c

4 files changed

Lines changed: 9 additions & 49 deletions

File tree

.oxlintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@
121121
"max-lines-per-function": "off",
122122
"max-statements": "off",
123123
"vitest/prefer-to-be-truthy": "off",
124-
"vitest/prefer-to-be-falsy": "off"
124+
"vitest/prefer-to-be-falsy": "off",
125+
"vitest/require-test-timeout": "warn"
125126
}
126127
},
127128
{

app/stores/viewer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export const useViewerStore = defineStore(
101101
});
102102
client.value.onConnectionClose((httpReq) => {
103103
const message = httpReq?.response?.error || `Connection close`;
104+
status.value = Status.NOT_CONNECTED;
104105
console.error(message);
105106
});
106107

app/utils/local/path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { appMode } from "./app_mode.js";
1111

1212
function executablePath(microservicePath) {
1313
console.log("[executablePath]", { microservicePath }, process.env.NODE_ENV);
14-
if (useRuntimeConfig().public.MODE === appMode.DESKTOP && process.env.NODE_ENV === "production") {
14+
if (process.env.MODE === appMode.DESKTOP && process.env.NODE_ENV === "production") {
1515
return process.env.RESOURCES_PATH;
1616
}
1717
return microservicePath;

internal/stores/data_style/state.js

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -47,49 +47,7 @@ export function useDataStyleState() {
4747
);
4848

4949
function getStyle(id) {
50-
const default_style = {
51-
visibility: true,
52-
color: { r: 255, g: 255, b: 255 },
53-
corners: { visibility: true, color: { r: 20, g: 20, b: 20 } },
54-
lines: { visibility: true, color: { r: 20, g: 20, b: 20 } },
55-
surfaces: { visibility: true, color: { r: 255, g: 255, b: 255 } },
56-
blocks: { visibility: true, color: { r: 255, g: 255, b: 255 } },
57-
points: { visibility: true, size: 10 },
58-
edges: { visibility: true },
59-
cells: {
60-
visibility: true,
61-
coloring: {
62-
active: "color",
63-
color: { r: 255, g: 255, b: 255 },
64-
cell: { name: "", storedConfigs: {} },
65-
vertex: { name: "", storedConfigs: {} },
66-
textures: [],
67-
},
68-
},
69-
polygons: {
70-
visibility: true,
71-
coloring: {
72-
active: "color",
73-
color: { r: 255, g: 255, b: 255 },
74-
polygon: { name: "", storedConfigs: {} },
75-
vertex: { name: "", storedConfigs: {} },
76-
textures: [],
77-
},
78-
},
79-
polyhedra: {
80-
visibility: true,
81-
coloring: {
82-
active: "color",
83-
color: { r: 255, g: 255, b: 255 },
84-
polyhedron: { name: "", storedConfigs: {} },
85-
vertex: { name: "", storedConfigs: {} },
86-
},
87-
},
88-
};
89-
if (styles.value[id]) {
90-
return { ...default_style, ...toRaw(styles.value[id]) };
91-
}
92-
return default_style;
50+
return { ...toRaw(styles.value[id]) };
9351
}
9452

9553
function mutateStyle(id, values) {
@@ -137,15 +95,15 @@ export function useDataStyleState() {
13795
}
13896

13997
return {
140-
styles,
141-
componentStyles,
142-
objectVisibility,
143-
selectedObjects,
14498
getStyle,
14599
mutateStyle,
146100
getComponentStyle,
147101
mutateComponentStyle,
148102
mutateComponentStyles,
103+
styles,
104+
componentStyles,
105+
objectVisibility,
106+
selectedObjects,
149107
clear,
150108
};
151109
}

0 commit comments

Comments
 (0)