Skip to content

Commit 4393f8f

Browse files
Merge branch 'next' of https://github.com/Geode-solutions/OpenGeodeWeb-Front into feat/new_recaptcha
2 parents e1acbb7 + 9925205 commit 4393f8f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2761
-24529
lines changed

.github/workflows/schedule.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Schedule
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
type: string
8+
default: "next"
9+
schedule:
10+
- cron: 0 23 * * *
11+
12+
jobs:
13+
schedule:
14+
uses: Geode-solutions/actions/.github/workflows/js-schedule.yml@master
15+
with:
16+
repos: ${{ vars.REPOS }}
17+
branch: ${{ inputs.branch || 'next' }}
18+
secrets: inherit

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ venv
2727
.pytest_cache
2828
__snapshots__
2929
coverage
30-
# package-lock.json
30+
*.db
31+
package-lock.json

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./tests

.oxlintrc.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,29 @@
77
"style": "error",
88
"restriction": "error"
99
},
10-
"plugins": ["import", "node", "oxc", "promise", "unicorn", "vitest"]
10+
"plugins": ["import", "node", "oxc", "promise", "unicorn", "vitest"],
11+
"rules": {
12+
"unicorn/filename-case": [
13+
"error",
14+
{
15+
"case": "snakeCase"
16+
}
17+
],
18+
"eslint/func-style": [
19+
"error",
20+
{
21+
"style:": "declaration"
22+
}
23+
],
24+
"eslint/sort-keys": "off",
25+
"eslint/no-ternary": "off"
26+
},
27+
"overrides": [
28+
{
29+
"files": ["**/components/*"],
30+
"rules": {
31+
"unicorn/filename-case": "PascalCase"
32+
}
33+
}
34+
]
1135
}

components/Step.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,14 @@
9090
function decrement_step() {
9191
stepper_tree.current_step_index--
9292
}
93+
94+
const sortedChips = computed(() => {
95+
const chips = steps.value[props.step_index]?.chips || []
96+
return [...chips].sort((a, b) =>
97+
a.localeCompare(b, undefined, {
98+
numeric: true,
99+
sensitivity: "base",
100+
}),
101+
)
102+
})
93103
</script>

components/Viewer/Generic/Mesh/EdgesOptions.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,22 @@
2828
const dataStyleStore = useDataStyleStore()
2929
3030
const visibility = computed({
31-
get: () => dataStyleStore.edgesVisibility(id.value),
32-
set: (newValue) => dataStyleStore.setEdgesVisibility(id.value, newValue),
31+
get: () => dataStyleStore.meshEdgesVisibility(id.value),
32+
set: (newValue) =>
33+
dataStyleStore.setMeshEdgesVisibility(id.value, newValue),
3334
})
3435
const size = computed({
3536
get: () => dataStyleStore.edgesSize(id.value),
3637
set: (newValue) => dataStyleStore.setEdgesSize(id.value, newValue),
3738
})
3839
const coloring_style_key = computed({
39-
get: () => dataStyleStore.edgesActiveColoring(id.value),
40+
get: () => dataStyleStore.meshEdgesActiveColoring(id.value),
4041
set: (newValue) => {
41-
dataStyleStore.setEdgesActiveColoring(id.value, newValue)
42+
dataStyleStore.setMeshEdgesActiveColoring(id.value, newValue)
4243
},
4344
})
4445
const color = computed({
45-
get: () => dataStyleStore.edgesColor(id.value),
46-
set: (newValue) => dataStyleStore.setEdgesColor(id.value, newValue),
46+
get: () => dataStyleStore.meshEdgesColor(id.value),
47+
set: (newValue) => dataStyleStore.setMeshEdgesColor(id.value, newValue),
4748
})
4849
</script>

components/Viewer/Generic/Mesh/PointsOptions.vue

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,26 @@
4949
const id = toRef(() => props.itemProps.id)
5050
5151
const visibility = computed({
52-
get: () => dataStyleStore.pointsVisibility(id.value),
53-
set: (newValue) => dataStyleStore.setPointsVisibility(id.value, newValue),
52+
get: () => dataStyleStore.meshPointsVisibility(id.value),
53+
set: (newValue) =>
54+
dataStyleStore.setMeshPointsVisibility(id.value, newValue),
5455
})
5556
const size = computed({
56-
get: () => dataStyleStore.pointsSize(id.value),
57-
set: (newValue) => dataStyleStore.setPointsSize(id.value, newValue),
57+
get: () => dataStyleStore.meshPointsSize(id.value),
58+
set: (newValue) => dataStyleStore.setMeshPointsSize(id.value, newValue),
5859
})
5960
const coloring_style_key = computed({
60-
get: () => dataStyleStore.pointsActiveColoring(id.value),
61+
get: () => dataStyleStore.meshPointsActiveColoring(id.value),
6162
set: (newValue) =>
62-
dataStyleStore.setPointsActiveColoring(id.value, newValue),
63+
dataStyleStore.setMeshPointsActiveColoring(id.value, newValue),
6364
})
6465
const color = computed({
65-
get: () => dataStyleStore.pointsColor(id.value),
66-
set: (newValue) => dataStyleStore.setPointsColor(id.value, newValue),
66+
get: () => dataStyleStore.meshPointsColor(id.value),
67+
set: (newValue) => dataStyleStore.setMeshPointsColor(id.value, newValue),
6768
})
6869
const vertex_attribute = computed({
69-
get: () => dataStyleStore.pointsVertexAttribute(id.value),
70+
get: () => dataStyleStore.meshPointsVertexAttribute(id.value),
7071
set: (newValue) =>
71-
dataStyleStore.setPointsVertexAttribute(id.value, newValue),
72+
dataStyleStore.setMeshPointsVertexAttribute(id.value, newValue),
7273
})
7374
</script>

components/Viewer/Generic/Mesh/PolygonsOptions.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,34 @@
3232
const id = toRef(() => props.itemProps.id)
3333
3434
const visibility = computed({
35-
get: () => dataStyleStore.polygonsVisibility(id.value),
36-
set: (newValue) => dataStyleStore.setPolygonsVisibility(id.value, newValue),
35+
get: () => dataStyleStore.meshPolygonsVisibility(id.value),
36+
set: (newValue) =>
37+
dataStyleStore.setMeshPolygonsVisibility(id.value, newValue),
3738
})
3839
const coloring_style_key = computed({
39-
get: () => dataStyleStore.polygonsActiveColoring(id.value),
40+
get: () => dataStyleStore.meshPolygonsActiveColoring(id.value),
4041
set: (newValue) =>
41-
dataStyleStore.setPolygonsActiveColoring(id.value, newValue),
42+
dataStyleStore.setMeshPolygonsActiveColoring(id.value, newValue),
4243
})
4344
const color = computed({
44-
get: () => dataStyleStore.polygonsColor(id.value),
45-
set: (newValue) => dataStyleStore.setPolygonsColor(id.value, newValue),
45+
get: () => dataStyleStore.meshPolygonsColor(id.value),
46+
set: (newValue) => dataStyleStore.setMeshPolygonsColor(id.value, newValue),
4647
})
4748
const textures = computed({
48-
get: () => dataStyleStore.polygonsTextures(id.value),
49-
set: (newValue) => dataStyleStore.setPolygonsTextures(id.value, newValue),
49+
get: () => dataStyleStore.meshPolygonsTextures(id.value),
50+
set: (newValue) =>
51+
dataStyleStore.setMeshPolygonsTextures(id.value, newValue),
5052
})
5153
const vertex_attribute = computed({
52-
get: () => dataStyleStore.polygonsVertexAttribute(id.value),
54+
get: () => dataStyleStore.meshPolygonsVertexAttribute(id.value),
5355
set: (newValue) => {
54-
console.log("setPolygonsVertexAttribute", id.value, newValue)
55-
dataStyleStore.setPolygonsVertexAttribute(id.value, newValue)
56+
dataStyleStore.setMeshPolygonsVertexAttribute(id.value, newValue)
5657
},
5758
})
5859
const polygon_attribute = computed({
59-
get: () => dataStyleStore.polygonsPolygonAttribute(id.value),
60+
get: () => dataStyleStore.meshPolygonsPolygonAttribute(id.value),
6061
set: (newValue) => {
61-
console.log("setPolygonsPolygonAttribute", id.value, newValue)
62-
dataStyleStore.setPolygonsPolygonAttribute(id.value, newValue)
62+
dataStyleStore.setMeshPolygonsPolygonAttribute(id.value, newValue)
6363
},
6464
})
6565
</script>

components/Viewer/Generic/Mesh/PolyhedraOptions.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@
3232
const id = toRef(() => props.itemProps.id)
3333
3434
const visibility = computed({
35-
get: () => dataStyleStore.polyhedraVisibility(id.value),
35+
get: () => dataStyleStore.meshPolyhedraVisibility(id.value),
3636
set: (newValue) =>
37-
dataStyleStore.setPolyhedraVisibility(id.value, newValue),
37+
dataStyleStore.setMeshPolyhedraVisibility(id.value, newValue),
3838
})
3939
const coloring_style_key = computed({
40-
get: () => dataStyleStore.polyhedraActiveColoring(id.value),
40+
get: () => dataStyleStore.meshPolyhedraActiveColoring(id.value),
4141
set: (newValue) =>
42-
dataStyleStore.setPolyhedraActiveColoring(id.value, newValue),
42+
dataStyleStore.setMeshPolyhedraActiveColoring(id.value, newValue),
4343
})
4444
const color = computed({
45-
get: () => dataStyleStore.polyhedraColor(id.value),
46-
set: (newValue) => dataStyleStore.setPolyhedraColor(id.value, newValue),
45+
get: () => dataStyleStore.meshPolyhedraColor(id.value),
46+
set: (newValue) => dataStyleStore.setMeshPolyhedraColor(id.value, newValue),
4747
})
4848
const vertex_attribute = computed({
4949
get: () => dataStyleStore.polyhedraVertexAttribute(id.value),

components/Viewer/Options/TextureItem.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
4343
const props = defineProps({
4444
id: { type: String, required: true },
45+
texture_id: { type: String, required: true },
4546
texture_name: { type: String, required: true },
46-
texture_file_name: { type: String, required: true },
4747
})
4848
4949
const texture_name = ref("")
5050
texture_name.value = props.texture_name
5151
52-
const texture_file_name = ref("")
53-
texture_file_name.value = props.texture_file_name
52+
const texture_id = ref("")
53+
texture_id.value = props.texture_id
5454
5555
const texture_coordinates = ref([])
5656
@@ -86,7 +86,7 @@
8686
},
8787
{
8888
response_function: async (response) => {
89-
texture_file_name.value = response._data.viewable_file_name
89+
texture_id.value = response._data.id
9090
},
9191
},
9292
)
@@ -97,8 +97,8 @@
9797
emit("update_value", { key: "texture_name", value })
9898
})
9999
100-
watch(texture_file_name, (value) => {
101-
emit("update_value", { key: "texture_file_name", value })
100+
watch(texture_id, (value) => {
101+
emit("update_value", { key: "id", value })
102102
})
103103
</script>
104104

0 commit comments

Comments
 (0)