@geode/opengeodeweb-front 10.6.2 → 10.7.0-rc.1
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/.eslintrc.cjs +1 -1
- package/.oxlintrc.json +3 -22
- package/app/assets/geode_objects.js +26 -26
- package/app/components/Carousel.vue +62 -66
- package/app/components/CrsSelector.vue +48 -52
- package/app/components/DeleteDialog.vue +21 -37
- package/app/components/DragAndDrop.vue +35 -41
- package/app/components/ExtensionSelector.vue +50 -63
- package/app/components/FeedBack/ErrorBanner.vue +7 -10
- package/app/components/FeedBack/Snackers.vue +12 -14
- package/app/components/FetchingData.vue +1 -6
- package/app/components/FileSelector.vue +41 -47
- package/app/components/FileUploader.vue +62 -79
- package/app/components/GlassCard.vue +19 -19
- package/app/components/HybridRenderingView.vue +37 -38
- package/app/components/InfraConnected.vue +3 -3
- package/app/components/Inspector/InspectionButton.vue +27 -31
- package/app/components/Inspector/ResultPanel.vue +13 -24
- package/app/components/Launcher.vue +13 -13
- package/app/components/Loading.vue +63 -69
- package/app/components/MissingFilesSelector.vue +53 -73
- package/app/components/ObjectSelector.vue +81 -99
- package/app/components/PackagesVersions.vue +27 -30
- package/app/components/Recaptcha.vue +60 -71
- package/app/components/RemoteRenderingView.vue +102 -108
- package/app/components/Screenshot.vue +36 -42
- package/app/components/SearchBar.vue +5 -5
- package/app/components/Step.vue +37 -44
- package/app/components/Stepper.vue +29 -35
- package/app/components/VeaseViewToolbar.vue +69 -78
- package/app/components/ViewToolbar.vue +41 -45
- package/app/components/Viewer/BreadCrumb.vue +18 -30
- package/app/components/Viewer/ContextMenu.vue +176 -179
- package/app/components/Viewer/ContextMenuItem.vue +105 -117
- package/app/components/Viewer/EdgedCurve/PointsOptions.vue +6 -9
- package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +82 -93
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +84 -99
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +83 -98
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +62 -73
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +84 -108
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +82 -105
- package/app/components/Viewer/Generic/Model/EdgesOptions.vue +19 -23
- package/app/components/Viewer/Generic/Model/PointsOptions.vue +26 -30
- package/app/components/Viewer/Grid/2D/CellsOptions.vue +5 -5
- package/app/components/Viewer/Grid/2D/EdgesOptions.vue +6 -9
- package/app/components/Viewer/Grid/2D/PointsOptions.vue +6 -9
- package/app/components/Viewer/Grid/3D/CellsOptions.vue +5 -5
- package/app/components/Viewer/Grid/3D/EdgesOptions.vue +6 -9
- package/app/components/Viewer/Grid/3D/FacetsOptions.vue +5 -5
- package/app/components/Viewer/Grid/3D/PointsOptions.vue +6 -9
- package/app/components/Viewer/HybridSolid/EdgesOptions.vue +6 -9
- package/app/components/Viewer/HybridSolid/PointsOptions.vue +6 -9
- package/app/components/Viewer/HybridSolid/PolygonsOptions.vue +6 -9
- package/app/components/Viewer/HybridSolid/PolyhedraOptions.vue +6 -9
- package/app/components/Viewer/Options/AttributeColorBar.vue +8 -8
- package/app/components/Viewer/Options/AttributeSelector.vue +73 -78
- package/app/components/Viewer/Options/ColorMapList.vue +115 -140
- package/app/components/Viewer/Options/ColorMapPicker.vue +128 -142
- package/app/components/Viewer/Options/ColorPicker.vue +9 -9
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +77 -91
- package/app/components/Viewer/Options/TextureItem.vue +54 -58
- package/app/components/Viewer/Options/TexturesSelector.vue +22 -26
- package/app/components/Viewer/Options/VisibilitySwitch.vue +1 -1
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +61 -68
- package/app/components/Viewer/PolygonalSurface/EdgesOptions.vue +6 -9
- package/app/components/Viewer/PolygonalSurface/PointsOptions.vue +6 -9
- package/app/components/Viewer/PolygonalSurface/SpecificPolygonsOptions.vue +83 -103
- package/app/components/Viewer/Solid/EdgesOptions.vue +6 -9
- package/app/components/Viewer/Solid/PointsOptions.vue +6 -9
- package/app/components/Viewer/Solid/PolygonsOptions.vue +6 -9
- package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +82 -105
- package/app/components/Viewer/TetrahedralSolid/TetrahedraOptions.vue +5 -5
- package/app/components/Viewer/TetrahedralSolid/TrianglesOptions.vue +5 -5
- package/app/components/Viewer/Tree/ObjectTree.vue +80 -89
- package/app/components/Viewer/TreeComponent.vue +43 -49
- package/app/components/Viewer/TreeObject.vue +48 -50
- package/app/components/Viewer/TriangulatedSurface/EdgesOptions.vue +6 -9
- package/app/components/Viewer/TriangulatedSurface/PointsOptions.vue +5 -5
- package/app/components/Viewer/TriangulatedSurface/TrianglesOptions.vue +5 -5
- package/app/components/Wrapper.vue +8 -8
- package/app/components/ZScaling.vue +18 -27
- package/app/composables/project_manager.js +57 -67
- package/app/composables/run_function_when_microservices_connected.js +8 -8
- package/app/plugins/auto_store_register.js +11 -13
- package/app/stores/app.js +118 -138
- package/app/stores/data.js +52 -68
- package/app/stores/data_style.js +36 -36
- package/app/stores/feedback.js +17 -20
- package/app/stores/geode.js +54 -55
- package/app/stores/hybrid_viewer.js +164 -177
- package/app/stores/infra.js +45 -55
- package/app/stores/lambda.js +26 -26
- package/app/stores/menu.js +78 -85
- package/app/stores/treeview.js +57 -65
- package/app/stores/viewer.js +92 -104
- package/app/utils/colormap.js +3 -3
- package/app/utils/config.js +16 -22
- package/app/utils/default_styles.js +50 -62
- package/app/utils/extension.js +44 -44
- package/app/utils/file_import_workflow.js +50 -64
- package/app/utils/local/app_mode.js +2 -2
- package/app/utils/local/cleanup.js +66 -72
- package/app/utils/local/microservices.js +61 -71
- package/app/utils/local/path.js +16 -19
- package/app/utils/local/scripts.js +22 -22
- package/app/utils/recaptcha.js +6 -6
- package/app/utils/server.js +21 -24
- package/app/utils/status.js +2 -2
- package/app/utils/treeview.js +4 -4
- package/app/utils/validate_schema.js +7 -7
- package/commitlint.config.js +2 -2
- package/eslint.config.js +4 -4
- package/internal/database/database.js +38 -46
- package/internal/database/extended_database.js +9 -10
- package/internal/database/tables/data.js +2 -3
- package/internal/database/tables/model_components.js +1 -1
- package/internal/database/tables/model_components_relation.js +1 -1
- package/internal/stores/data_style/mesh/cells/cell.js +47 -63
- package/internal/stores/data_style/mesh/cells/color.js +11 -16
- package/internal/stores/data_style/mesh/cells/common.js +6 -6
- package/internal/stores/data_style/mesh/cells/index.js +37 -47
- package/internal/stores/data_style/mesh/cells/textures.js +11 -12
- package/internal/stores/data_style/mesh/cells/vertex.js +47 -58
- package/internal/stores/data_style/mesh/cells/visibility.js +11 -16
- package/internal/stores/data_style/mesh/edges/color.js +11 -16
- package/internal/stores/data_style/mesh/edges/common.js +6 -6
- package/internal/stores/data_style/mesh/edges/edge.js +47 -63
- package/internal/stores/data_style/mesh/edges/index.js +38 -52
- package/internal/stores/data_style/mesh/edges/vertex.js +47 -58
- package/internal/stores/data_style/mesh/edges/visibility.js +11 -16
- package/internal/stores/data_style/mesh/edges/width.js +11 -16
- package/internal/stores/data_style/mesh/index.js +34 -34
- package/internal/stores/data_style/mesh/points/color.js +11 -16
- package/internal/stores/data_style/mesh/points/common.js +6 -6
- package/internal/stores/data_style/mesh/points/index.js +35 -49
- package/internal/stores/data_style/mesh/points/size.js +11 -16
- package/internal/stores/data_style/mesh/points/vertex.js +47 -58
- package/internal/stores/data_style/mesh/points/visibility.js +11 -16
- package/internal/stores/data_style/mesh/polygons/color.js +11 -16
- package/internal/stores/data_style/mesh/polygons/common.js +6 -6
- package/internal/stores/data_style/mesh/polygons/index.js +36 -45
- package/internal/stores/data_style/mesh/polygons/polygon.js +45 -56
- package/internal/stores/data_style/mesh/polygons/textures.js +11 -16
- package/internal/stores/data_style/mesh/polygons/vertex.js +47 -58
- package/internal/stores/data_style/mesh/polygons/visibility.js +11 -16
- package/internal/stores/data_style/mesh/polyhedra/color.js +11 -16
- package/internal/stores/data_style/mesh/polyhedra/common.js +6 -6
- package/internal/stores/data_style/mesh/polyhedra/index.js +29 -42
- package/internal/stores/data_style/mesh/polyhedra/polyhedron.js +43 -47
- package/internal/stores/data_style/mesh/polyhedra/vertex.js +47 -58
- package/internal/stores/data_style/mesh/polyhedra/visibility.js +11 -17
- package/internal/stores/data_style/model/blocks/color.js +21 -24
- package/internal/stores/data_style/model/blocks/common.js +6 -6
- package/internal/stores/data_style/model/blocks/index.js +13 -17
- package/internal/stores/data_style/model/blocks/visibility.js +21 -24
- package/internal/stores/data_style/model/corners/color.js +21 -24
- package/internal/stores/data_style/model/corners/common.js +6 -6
- package/internal/stores/data_style/model/corners/index.js +14 -18
- package/internal/stores/data_style/model/corners/visibility.js +21 -25
- package/internal/stores/data_style/model/edges/common.js +4 -4
- package/internal/stores/data_style/model/edges/index.js +7 -7
- package/internal/stores/data_style/model/edges/visibility.js +11 -15
- package/internal/stores/data_style/model/index.js +84 -100
- package/internal/stores/data_style/model/lines/color.js +21 -24
- package/internal/stores/data_style/model/lines/common.js +6 -6
- package/internal/stores/data_style/model/lines/index.js +13 -17
- package/internal/stores/data_style/model/lines/visibility.js +21 -24
- package/internal/stores/data_style/model/points/common.js +4 -4
- package/internal/stores/data_style/model/points/index.js +9 -9
- package/internal/stores/data_style/model/points/size.js +11 -11
- package/internal/stores/data_style/model/points/visibility.js +11 -15
- package/internal/stores/data_style/model/surfaces/color.js +21 -24
- package/internal/stores/data_style/model/surfaces/common.js +6 -6
- package/internal/stores/data_style/model/surfaces/index.js +14 -22
- package/internal/stores/data_style/model/surfaces/visibility.js +18 -22
- package/internal/stores/data_style/state.js +11 -11
- package/internal/utils/api_fetch.js +24 -34
- package/internal/utils/upload_file.js +19 -24
- package/internal/utils/viewer_call.js +23 -36
- package/nuxt.config.js +7 -11
- package/package.json +3 -3
- package/scripts/generate_geode_objects.js +14 -16
- package/server/api/app/kill.post.js +4 -4
- package/server/api/app/project_folder_path.post.js +11 -11
- package/server/api/app/run_back.post.js +12 -12
- package/server/api/app/run_viewer.post.js +12 -12
- package/server/api/extensions/run.post.js +34 -41
- package/server/api/extensions/upload.put.js +48 -62
- package/tests/integration/setup.js +43 -53
- package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +90 -116
- package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +81 -107
- package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +38 -41
- package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +85 -101
- package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +89 -113
- package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +81 -105
- package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +56 -73
- package/tests/integration/stores/data_style/model/corners.nuxt.test.js +59 -76
- package/tests/integration/stores/data_style/model/edges.nuxt.test.js +39 -42
- package/tests/integration/stores/data_style/model/index.nuxt.test.js +31 -34
- package/tests/integration/stores/data_style/model/lines.nuxt.test.js +60 -73
- package/tests/integration/stores/data_style/model/points.nuxt.test.js +52 -55
- package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +59 -80
- package/tests/integration/stores/viewer.nuxt.test.js +35 -38
- package/tests/setup_indexeddb.js +2 -2
- package/tests/unit/components/CrsSelector.nuxt.test.js +28 -28
- package/tests/unit/components/ExtensionSelector.nuxt.test.js +33 -35
- package/tests/unit/components/FeedBack/ErrorsBanner.nuxt.test.js +23 -23
- package/tests/unit/components/FeedBack/Snackers.nuxt.test.js +18 -18
- package/tests/unit/components/FileSelector.nuxt.test.js +57 -59
- package/tests/unit/components/FileUploader.nuxt.test.js +35 -39
- package/tests/unit/components/Inspector/InspectionButton.nuxt.test.js +28 -28
- package/tests/unit/components/Inspector/ResultPanel.nuxt.test.js +22 -27
- package/tests/unit/components/Launcher.nuxt.test.js +20 -22
- package/tests/unit/components/MissingFilesSelector.nuxt.test.js +37 -37
- package/tests/unit/components/ObjectSelector.nuxt.test.js +62 -62
- package/tests/unit/components/PackagesVersions.nuxt.test.js +16 -16
- package/tests/unit/components/Step.nuxt.test.js +18 -19
- package/tests/unit/components/Stepper.nuxt.test.js +18 -18
- package/tests/unit/composables/api_fetch.nuxt.test.js +34 -36
- package/tests/unit/composables/project_manager.nuxt.test.js +93 -112
- package/tests/unit/composables/run_function_when_microservices_connected.nuxt.test.js +36 -36
- package/tests/unit/composables/upload_file.nuxt.test.js +27 -29
- package/tests/unit/plugins/project_load.nuxt.test.js +31 -33
- package/tests/unit/stores/app.nuxt.test.js +90 -92
- package/tests/unit/stores/feedback.nuxt.test.js +47 -57
- package/tests/unit/stores/geode.nuxt.test.js +111 -115
- package/tests/unit/stores/infra.nuxt.test.js +148 -148
- package/tests/unit/stores/lambda.nuxt.test.js +72 -74
- package/tests/unit/stores/treeview.nuxt.test.js +19 -21
- package/tests/unit/stores/viewer.nuxt.test.js +109 -122
- package/tests/unit/utils/recaptcha.nuxt.test.js +25 -29
- package/tests/unit/utils/validate_schema.nuxt.test.js +17 -17
- package/tests/utils.js +11 -11
- package/tests/vitest.config.js +9 -9
- package/vuetify_config.js +2 -2
- package/.prettierrc +0 -4
|
@@ -1,48 +1,47 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import VeaseViewToolbar from "@ogw_front/components/VeaseViewToolbar";
|
|
3
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer";
|
|
4
|
+
import { useViewerStore } from "@ogw_front/stores/viewer";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const DEFAULT_ELEMENT_HEIGHT = 100;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const emit = defineEmits(["click"]);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const container = useTemplateRef("viewer");
|
|
11
|
+
const hybridViewerStore = useHybridViewerStore();
|
|
12
|
+
const viewerStore = useViewerStore();
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const { width: windowWidth, height: windowHeight } = useWindowSize()
|
|
14
|
+
const { width: elementWidth, height: elementHeight } = useElementSize(container);
|
|
15
|
+
const { width: windowWidth, height: windowHeight } = useWindowSize();
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
const debouncedResize = debounce(() => {
|
|
18
|
+
hybridViewerStore.resize(elementWidth.value, elementHeight.value);
|
|
19
|
+
}, DEFAULT_ELEMENT_HEIGHT);
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
watch([elementWidth, elementHeight, windowWidth, windowHeight], (value) => {
|
|
22
|
+
debouncedResize();
|
|
23
|
+
});
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
onMounted(async () => {
|
|
26
|
+
if (import.meta.client) {
|
|
27
|
+
await hybridViewerStore.initHybridViewer();
|
|
28
|
+
await nextTick();
|
|
29
|
+
hybridViewerStore.setContainer(container);
|
|
30
|
+
debouncedResize();
|
|
31
|
+
}
|
|
32
|
+
});
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
clearTimeout(timeout)
|
|
43
|
-
timeout = setTimeout(later, wait)
|
|
34
|
+
function debounce(func, wait) {
|
|
35
|
+
let timeout = undefined;
|
|
36
|
+
return function executedFunction(...args) {
|
|
37
|
+
function later() {
|
|
38
|
+
clearTimeout(timeout);
|
|
39
|
+
func(...args);
|
|
44
40
|
}
|
|
45
|
-
|
|
41
|
+
clearTimeout(timeout);
|
|
42
|
+
timeout = setTimeout(later, wait);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
46
45
|
</script>
|
|
47
46
|
|
|
48
47
|
<template>
|
|
@@ -62,7 +61,7 @@
|
|
|
62
61
|
</template>
|
|
63
62
|
|
|
64
63
|
<style>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
img {
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
}
|
|
68
67
|
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { useInfraStore } from "@ogw_front/stores/infra";
|
|
3
|
+
const infraStore = useInfraStore();
|
|
4
|
+
console.log("TEST", { infraStore });
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<template>
|
|
@@ -1,38 +1,34 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json";
|
|
3
|
+
import { useGeodeStore } from "@ogw_front/stores/geode";
|
|
4
|
+
const schema = schemas.opengeodeweb_back.inspect_file;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
filename: { type: String, required: true },
|
|
14
|
-
})
|
|
15
|
-
const loading = ref(false)
|
|
16
|
-
const toggle_loading = useToggle(loading)
|
|
6
|
+
const emit = defineEmits(["update_values", "increment_step", "decrement_step"]);
|
|
7
|
+
const { geode_object_type, filename } = defineProps({
|
|
8
|
+
geode_object_type: { type: String, required: true },
|
|
9
|
+
filename: { type: String, required: true },
|
|
10
|
+
});
|
|
11
|
+
const loading = ref(false);
|
|
12
|
+
const toggle_loading = useToggle(loading);
|
|
17
13
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
async function get_inspection_results() {
|
|
15
|
+
toggle_loading();
|
|
16
|
+
const params = {
|
|
17
|
+
geode_object_type: geode_object_type,
|
|
18
|
+
filename: filename,
|
|
19
|
+
};
|
|
20
|
+
const geodeStore = useGeodeStore();
|
|
25
21
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
22
|
+
await geodeStore.request(schema, params, {
|
|
23
|
+
response_function: (response) => {
|
|
24
|
+
emit("update_values", {
|
|
25
|
+
inspection_result: [response.inspection_result],
|
|
26
|
+
});
|
|
27
|
+
emit("increment_step");
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
toggle_loading();
|
|
31
|
+
}
|
|
36
32
|
</script>
|
|
37
33
|
|
|
38
34
|
<template>
|
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
2
|
+
import InspectorResultPanel from "@ogw_front/components/Inspector/ResultPanel";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const { inspection_result } = defineProps({
|
|
5
|
+
inspection_result: { type: Array, required: true },
|
|
6
|
+
});
|
|
7
|
+
const opened_panels = ref([]);
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
onMounted(() => {
|
|
10
|
+
opened_panels.value = inspection_result
|
|
11
|
+
.map((result, i) => (result.nb_issues > 0 ? i : -1))
|
|
12
|
+
.filter((index) => index !== -1);
|
|
13
|
+
});
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
16
|
<template>
|
|
17
17
|
<v-container class="pa-2">
|
|
18
18
|
<v-expansion-panels v-model="opened_panels" multiple elevation="5">
|
|
19
|
-
<v-expansion-panel
|
|
20
|
-
v-for="(result, index) in inspection_result"
|
|
21
|
-
:key="index"
|
|
22
|
-
class="card"
|
|
23
|
-
>
|
|
19
|
+
<v-expansion-panel v-for="(result, index) in inspection_result" :key="index" class="card">
|
|
24
20
|
<v-expansion-panel-title>
|
|
25
21
|
<v-row align="center">
|
|
26
22
|
<v-col cols="auto">
|
|
@@ -35,17 +31,10 @@
|
|
|
35
31
|
</v-row>
|
|
36
32
|
</v-expansion-panel-title>
|
|
37
33
|
<v-expansion-panel-text>
|
|
38
|
-
<InspectorResultPanel
|
|
39
|
-
v-if="result.children"
|
|
40
|
-
:inspection_result="result.children"
|
|
41
|
-
/>
|
|
34
|
+
<InspectorResultPanel v-if="result.children" :inspection_result="result.children" />
|
|
42
35
|
<v-container v-if="result.issues">
|
|
43
36
|
<v-col>
|
|
44
|
-
<v-row
|
|
45
|
-
v-for="(issue, index) in result.issues"
|
|
46
|
-
:key="index"
|
|
47
|
-
class="pa-0"
|
|
48
|
-
>
|
|
37
|
+
<v-row v-for="(issue, index) in result.issues" :key="index" class="pa-0">
|
|
49
38
|
{{ issue }}
|
|
50
39
|
</v-row>
|
|
51
40
|
</v-col>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import Loading from "@ogw_front/components/Loading";
|
|
3
|
+
import Recaptcha from "@ogw_front/components/Recaptcha";
|
|
4
|
+
import { Status } from "@ogw_front/utils/status";
|
|
5
|
+
import { useInfraStore } from "@ogw_front/stores/infra";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const infraStore = useInfraStore();
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
watch(
|
|
10
|
+
() => infraStore.is_captcha_validated,
|
|
11
|
+
(value, oldValue) => {
|
|
12
|
+
if (value && !oldValue && import.meta.client) {
|
|
13
|
+
infraStore.create_backend();
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
);
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<template>
|
|
@@ -1,84 +1,78 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import chemin from "@ogw_front/assets/img/energy_sobriety/chemin.png";
|
|
3
|
+
import collegue from "@ogw_front/assets/img/energy_sobriety/collegue.png";
|
|
4
|
+
import derniere from "@ogw_front/assets/img/energy_sobriety/derniere.png";
|
|
5
|
+
import etincelle from "@ogw_front/assets/img/energy_sobriety/etincelle.png";
|
|
6
|
+
import geste from "@ogw_front/assets/img/energy_sobriety/geste.png";
|
|
7
|
+
import lampadaire from "@ogw_front/assets/img/energy_sobriety/lampadaire.png";
|
|
8
|
+
import salon from "@ogw_front/assets/img/energy_sobriety/salon.png";
|
|
9
|
+
import sobene from "@ogw_front/assets/img/energy_sobriety/sobene.png";
|
|
10
|
+
import socle from "@ogw_front/assets/img/energy_sobriety/socle.png";
|
|
11
|
+
import vert from "@ogw_front/assets/img/energy_sobriety/vert.png";
|
|
12
|
+
import ying_yang from "@ogw_front/assets/img/energy_sobriety/ying_yang.png";
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
import Carousel from "@ogw_front/components/Carousel";
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
16
|
+
const users_list = [
|
|
17
|
+
{
|
|
18
|
+
name: "YING YANG",
|
|
19
|
+
logo: ying_yang,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "CHEMIN",
|
|
23
|
+
logo: chemin,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "SOBRIETE ENERGETIQUE",
|
|
27
|
+
logo: sobene,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "VERT",
|
|
31
|
+
logo: vert,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "LAMPADAIRE",
|
|
35
|
+
logo: lampadaire,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "COLLEGUE",
|
|
39
|
+
logo: collegue,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "ETINCELLE",
|
|
43
|
+
logo: etincelle,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "GESTE",
|
|
47
|
+
logo: geste,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "SOCLE",
|
|
51
|
+
logo: socle,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "DERNIERE",
|
|
55
|
+
logo: derniere,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "SALON",
|
|
59
|
+
logo: salon,
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
62
|
</script>
|
|
63
63
|
|
|
64
64
|
<template>
|
|
65
65
|
<v-row justify="center">
|
|
66
66
|
<v-col cols="12" class="ma-3">
|
|
67
67
|
<v-card loading>
|
|
68
|
-
<v-card-title class="text-center">
|
|
69
|
-
|
|
70
|
-
</v-card-title>
|
|
71
|
-
<v-card-subtitle class="text-center">
|
|
72
|
-
Why do you have to wait?
|
|
73
|
-
</v-card-subtitle>
|
|
68
|
+
<v-card-title class="text-center"> Microservices are starting... </v-card-title>
|
|
69
|
+
<v-card-subtitle class="text-center"> Why do you have to wait? </v-card-subtitle>
|
|
74
70
|
<v-card-text class="text-center">
|
|
75
|
-
We start our microservices only on demand... and this takes a few
|
|
76
|
-
|
|
71
|
+
We start our microservices only on demand... and this takes a few minutes before you can
|
|
72
|
+
use our free app.
|
|
77
73
|
<br />
|
|
78
74
|
This is aligned with our energy sobriety policy. So be patient
|
|
79
|
-
<v-icon color="primary" size="20">
|
|
80
|
-
mdi-emoticon-excited-outline
|
|
81
|
-
</v-icon>
|
|
75
|
+
<v-icon color="primary" size="20"> mdi-emoticon-excited-outline </v-icon>
|
|
82
76
|
<br />
|
|
83
77
|
<Carousel :items="users_list" />
|
|
84
78
|
</v-card-text>
|
|
@@ -1,75 +1,65 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
2
|
+
import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import FetchingData from "@ogw_front/components/FetchingData";
|
|
5
|
+
import FileUploader from "@ogw_front/components/FileUploader";
|
|
6
|
+
import { useGeodeStore } from "@ogw_front/stores/geode";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const schema = schemas.opengeodeweb_back.missing_files;
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
"update_values",
|
|
12
|
-
"increment_step",
|
|
13
|
-
"decrement_step",
|
|
14
|
-
])
|
|
10
|
+
const emit = defineEmits(["update_values", "increment_step", "decrement_step"]);
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
const { multiple, geode_object_type, filenames } = defineProps({
|
|
13
|
+
multiple: { type: Boolean, required: true },
|
|
14
|
+
geode_object_type: { type: String, required: true },
|
|
15
|
+
filenames: { type: Array, required: true },
|
|
16
|
+
});
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
const accept = ref("");
|
|
19
|
+
const loading = ref(false);
|
|
20
|
+
const has_missing_files = ref(false);
|
|
21
|
+
const mandatory_files = ref([]);
|
|
22
|
+
const additional_files = ref([]);
|
|
23
|
+
const toggle_loading = useToggle(loading);
|
|
28
24
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
function files_uploaded_event(value) {
|
|
26
|
+
emit("update_values", { additional_files: value });
|
|
27
|
+
emit("increment_step");
|
|
28
|
+
}
|
|
33
29
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
async function missing_files() {
|
|
31
|
+
toggle_loading();
|
|
32
|
+
has_missing_files.value = false;
|
|
33
|
+
mandatory_files.value = [];
|
|
34
|
+
additional_files.value = [];
|
|
35
|
+
const geodeStore = useGeodeStore();
|
|
40
36
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
mandatory_files.value = [
|
|
54
|
-
...mandatory_files.value,
|
|
55
|
-
...value.mandatory_files,
|
|
56
|
-
]
|
|
57
|
-
additional_files.value = [
|
|
58
|
-
...additional_files.value,
|
|
59
|
-
...value.additional_files,
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
if (has_missing_files.value) {
|
|
63
|
-
accept.value = [...mandatory_files.value, ...additional_files.value]
|
|
64
|
-
.map((filename) => `.${filename.split(".").pop()}`)
|
|
65
|
-
.join(",")
|
|
66
|
-
} else {
|
|
67
|
-
emit("increment_step")
|
|
37
|
+
const promise_array = filenames.map(async (filename) => {
|
|
38
|
+
const response = await geodeStore.request(schema, {
|
|
39
|
+
geode_object_type,
|
|
40
|
+
filename,
|
|
41
|
+
});
|
|
42
|
+
return response;
|
|
43
|
+
});
|
|
44
|
+
const values = await Promise.all(promise_array);
|
|
45
|
+
for (const value of values) {
|
|
46
|
+
if (value.has_missing_files) {
|
|
47
|
+
has_missing_files.value = true;
|
|
68
48
|
}
|
|
69
|
-
|
|
49
|
+
mandatory_files.value = [...mandatory_files.value, ...value.mandatory_files];
|
|
50
|
+
additional_files.value = [...additional_files.value, ...value.additional_files];
|
|
51
|
+
}
|
|
52
|
+
if (has_missing_files.value) {
|
|
53
|
+
accept.value = [...mandatory_files.value, ...additional_files.value]
|
|
54
|
+
.map((filename) => `.${filename.split(".").pop()}`)
|
|
55
|
+
.join(",");
|
|
56
|
+
} else {
|
|
57
|
+
emit("increment_step");
|
|
70
58
|
}
|
|
59
|
+
toggle_loading();
|
|
60
|
+
}
|
|
71
61
|
|
|
72
|
-
|
|
62
|
+
await missing_files();
|
|
73
63
|
</script>
|
|
74
64
|
|
|
75
65
|
<template>
|
|
@@ -89,27 +79,17 @@
|
|
|
89
79
|
<v-icon color="accent" icon="mdi-file-document-plus-outline" />
|
|
90
80
|
</v-col>
|
|
91
81
|
<p class="pa-1">Additional files:</p>
|
|
92
|
-
<v-col
|
|
93
|
-
v-for="additional_file in additional_files"
|
|
94
|
-
cols="auto"
|
|
95
|
-
class="pa-0"
|
|
96
|
-
>
|
|
82
|
+
<v-col v-for="additional_file in additional_files" cols="auto" class="pa-0">
|
|
97
83
|
<v-chip>{{ additional_file }}</v-chip>
|
|
98
84
|
</v-col>
|
|
99
85
|
</v-row>
|
|
100
86
|
<v-row>
|
|
101
87
|
<v-col cols="12">
|
|
102
|
-
<FileUploader
|
|
103
|
-
v-bind="{ multiple, accept }"
|
|
104
|
-
@files_uploaded="files_uploaded_event"
|
|
105
|
-
/>
|
|
88
|
+
<FileUploader v-bind="{ multiple, accept }" @files_uploaded="files_uploaded_event" />
|
|
106
89
|
</v-col>
|
|
107
90
|
</v-row>
|
|
108
91
|
<v-row>
|
|
109
|
-
<v-col
|
|
110
|
-
v-if="mandatory_files.length === 0 && additional_files.length > 0"
|
|
111
|
-
cols="auto"
|
|
112
|
-
>
|
|
92
|
+
<v-col v-if="mandatory_files.length === 0 && additional_files.length > 0" cols="auto">
|
|
113
93
|
<v-btn @click="emit('increment_step')" color="warning">Skip step</v-btn>
|
|
114
94
|
</v-col>
|
|
115
95
|
</v-row>
|