From 1f66238b7dc31d7d1b37fdecc91bbcb40b0ee973 Mon Sep 17 00:00:00 2001 From: MaxNumerique Date: Wed, 18 Mar 2026 17:10:57 +0100 Subject: [PATCH 1/7] feat(oxfmt): oxfmt addition. Prettier removed --- .eslintrc.cjs | 2 +- .oxlintrc.json | 24 +- .prettierrc | 4 - app/assets/geode_objects.js | 52 +-- app/components/Carousel.vue | 128 +++---- app/components/CrsSelector.vue | 100 +++-- app/components/DeleteDialog.vue | 58 ++- app/components/DragAndDrop.vue | 76 ++-- app/components/ExtensionSelector.vue | 113 +++--- app/components/FeedBack/ErrorBanner.vue | 17 +- app/components/FeedBack/Snackers.vue | 26 +- app/components/FetchingData.vue | 7 +- app/components/FileSelector.vue | 88 ++--- app/components/FileUploader.vue | 141 +++---- app/components/GlassCard.vue | 38 +- app/components/HybridRenderingView.vue | 75 ++-- app/components/InfraConnected.vue | 6 +- app/components/Inspector/InspectionButton.vue | 58 ++- app/components/Inspector/ResultPanel.vue | 37 +- app/components/Launcher.vue | 26 +- app/components/Loading.vue | 132 ++++--- app/components/MissingFilesSelector.vue | 126 +++---- app/components/ObjectSelector.vue | 180 ++++----- app/components/PackagesVersions.vue | 57 ++- app/components/Recaptcha.vue | 128 +++---- app/components/RemoteRenderingView.vue | 210 +++++------ app/components/Screenshot.vue | 78 ++-- app/components/SearchBar.vue | 10 +- app/components/Step.vue | 81 ++-- app/components/Stepper.vue | 64 ++-- app/components/VeaseViewToolbar.vue | 147 ++++---- app/components/ViewToolbar.vue | 86 ++--- app/components/Viewer/BreadCrumb.vue | 48 +-- app/components/Viewer/ContextMenu.vue | 355 +++++++++--------- app/components/Viewer/ContextMenuItem.vue | 222 ++++++----- .../Viewer/EdgedCurve/PointsOptions.vue | 15 +- .../EdgedCurve/SpecificEdgesOptions.vue | 175 ++++----- .../Viewer/Generic/Mesh/CellsOptions.vue | 183 +++++---- .../Viewer/Generic/Mesh/EdgesOptions.vue | 181 ++++----- .../Viewer/Generic/Mesh/PointsOptions.vue | 135 +++---- .../Viewer/Generic/Mesh/PolygonsOptions.vue | 192 +++++----- .../Viewer/Generic/Mesh/PolyhedraOptions.vue | 187 ++++----- .../Viewer/Generic/Model/EdgesOptions.vue | 42 +-- .../Viewer/Generic/Model/PointsOptions.vue | 56 ++- .../Viewer/Grid/2D/CellsOptions.vue | 10 +- .../Viewer/Grid/2D/EdgesOptions.vue | 15 +- .../Viewer/Grid/2D/PointsOptions.vue | 15 +- .../Viewer/Grid/3D/CellsOptions.vue | 10 +- .../Viewer/Grid/3D/EdgesOptions.vue | 15 +- .../Viewer/Grid/3D/FacetsOptions.vue | 10 +- .../Viewer/Grid/3D/PointsOptions.vue | 15 +- .../Viewer/HybridSolid/EdgesOptions.vue | 15 +- .../Viewer/HybridSolid/PointsOptions.vue | 15 +- .../Viewer/HybridSolid/PolygonsOptions.vue | 15 +- .../Viewer/HybridSolid/PolyhedraOptions.vue | 15 +- .../Viewer/Options/AttributeColorBar.vue | 16 +- .../Viewer/Options/AttributeSelector.vue | 151 ++++---- .../Viewer/Options/ColorMapList.vue | 255 ++++++------- .../Viewer/Options/ColorMapPicker.vue | 270 +++++++------ app/components/Viewer/Options/ColorPicker.vue | 18 +- .../Viewer/Options/ColoringTypeSelector.vue | 168 ++++----- app/components/Viewer/Options/TextureItem.vue | 112 +++--- .../Viewer/Options/TexturesSelector.vue | 48 ++- .../Viewer/Options/VisibilitySwitch.vue | 2 +- .../Viewer/PointSet/SpecificPointsOptions.vue | 129 +++---- .../Viewer/PolygonalSurface/EdgesOptions.vue | 15 +- .../Viewer/PolygonalSurface/PointsOptions.vue | 15 +- .../SpecificPolygonsOptions.vue | 186 ++++----- app/components/Viewer/Solid/EdgesOptions.vue | 15 +- app/components/Viewer/Solid/PointsOptions.vue | 15 +- .../Viewer/Solid/PolygonsOptions.vue | 15 +- .../Viewer/Solid/SpecificPolyhedraOptions.vue | 187 ++++----- .../TetrahedralSolid/TetrahedraOptions.vue | 10 +- .../TetrahedralSolid/TrianglesOptions.vue | 10 +- app/components/Viewer/Tree/ObjectTree.vue | 169 ++++----- app/components/Viewer/TreeComponent.vue | 92 +++-- app/components/Viewer/TreeObject.vue | 98 +++-- .../TriangulatedSurface/EdgesOptions.vue | 15 +- .../TriangulatedSurface/PointsOptions.vue | 10 +- .../TriangulatedSurface/TrianglesOptions.vue | 10 +- app/components/Wrapper.vue | 16 +- app/components/ZScaling.vue | 45 +-- app/composables/project_manager.js | 124 +++--- ...n_function_when_microservices_connected.js | 16 +- app/plugins/auto_store_register.js | 24 +- app/stores/app.js | 235 ++++++------ app/stores/data.js | 120 +++--- app/stores/data_style.js | 72 ++-- app/stores/feedback.js | 33 +- app/stores/geode.js | 116 +++--- app/stores/hybrid_viewer.js | 334 ++++++++-------- app/stores/infra.js | 98 +++-- app/stores/lambda.js | 50 +-- app/stores/menu.js | 163 ++++---- app/stores/treeview.js | 118 +++--- app/stores/viewer.js | 202 +++++----- app/utils/app_mode.js | 12 +- app/utils/colormap.js | 6 +- app/utils/config.js | 38 +- app/utils/default_styles.js | 112 +++--- app/utils/extension.js | 90 ++--- app/utils/file_import_workflow.js | 116 +++--- app/utils/local/microservices.js | 212 +++++------ app/utils/local/path.js | 70 ++-- app/utils/local/scripts.js | 42 +-- app/utils/recaptcha.js | 12 +- app/utils/server.js | 40 +- app/utils/status.js | 4 +- app/utils/treeview.js | 8 +- app/utils/validate_schema.js | 14 +- commitlint.config.js | 4 +- eslint.config.js | 8 +- internal/database/database.js | 82 ++-- internal/database/extended_database.js | 19 +- internal/database/tables/data.js | 5 +- internal/database/tables/model_components.js | 2 +- .../tables/model_components_relation.js | 2 +- internal/stores/data_style/mesh/cells/cell.js | 110 +++--- .../stores/data_style/mesh/cells/color.js | 27 +- .../stores/data_style/mesh/cells/common.js | 12 +- .../stores/data_style/mesh/cells/index.js | 73 ++-- .../stores/data_style/mesh/cells/textures.js | 23 +- .../stores/data_style/mesh/cells/vertex.js | 105 +++--- .../data_style/mesh/cells/visibility.js | 27 +- .../stores/data_style/mesh/edges/color.js | 27 +- .../stores/data_style/mesh/edges/common.js | 12 +- internal/stores/data_style/mesh/edges/edge.js | 110 +++--- .../stores/data_style/mesh/edges/index.js | 78 ++-- .../stores/data_style/mesh/edges/vertex.js | 105 +++--- .../data_style/mesh/edges/visibility.js | 27 +- .../stores/data_style/mesh/edges/width.js | 27 +- internal/stores/data_style/mesh/index.js | 68 ++-- .../stores/data_style/mesh/points/color.js | 27 +- .../stores/data_style/mesh/points/common.js | 12 +- .../stores/data_style/mesh/points/index.js | 73 ++-- .../stores/data_style/mesh/points/size.js | 27 +- .../stores/data_style/mesh/points/vertex.js | 105 +++--- .../data_style/mesh/points/visibility.js | 27 +- .../stores/data_style/mesh/polygons/color.js | 27 +- .../stores/data_style/mesh/polygons/common.js | 12 +- .../stores/data_style/mesh/polygons/index.js | 70 ++-- .../data_style/mesh/polygons/polygon.js | 101 +++-- .../data_style/mesh/polygons/textures.js | 27 +- .../stores/data_style/mesh/polygons/vertex.js | 105 +++--- .../data_style/mesh/polygons/visibility.js | 27 +- .../stores/data_style/mesh/polyhedra/color.js | 27 +- .../data_style/mesh/polyhedra/common.js | 12 +- .../stores/data_style/mesh/polyhedra/index.js | 63 ++-- .../data_style/mesh/polyhedra/polyhedron.js | 90 +++-- .../data_style/mesh/polyhedra/vertex.js | 105 +++--- .../data_style/mesh/polyhedra/visibility.js | 28 +- .../stores/data_style/model/blocks/color.js | 45 ++- .../stores/data_style/model/blocks/common.js | 12 +- .../stores/data_style/model/blocks/index.js | 30 +- .../data_style/model/blocks/visibility.js | 45 ++- .../stores/data_style/model/corners/color.js | 45 ++- .../stores/data_style/model/corners/common.js | 12 +- .../stores/data_style/model/corners/index.js | 32 +- .../data_style/model/corners/visibility.js | 46 ++- .../stores/data_style/model/edges/common.js | 8 +- .../stores/data_style/model/edges/index.js | 14 +- .../data_style/model/edges/visibility.js | 26 +- internal/stores/data_style/model/index.js | 163 ++++---- .../stores/data_style/model/lines/color.js | 45 ++- .../stores/data_style/model/lines/common.js | 12 +- .../stores/data_style/model/lines/index.js | 30 +- .../data_style/model/lines/visibility.js | 45 ++- .../stores/data_style/model/points/common.js | 8 +- .../stores/data_style/model/points/index.js | 18 +- .../stores/data_style/model/points/size.js | 22 +- .../data_style/model/points/visibility.js | 26 +- .../stores/data_style/model/surfaces/color.js | 45 ++- .../data_style/model/surfaces/common.js | 12 +- .../stores/data_style/model/surfaces/index.js | 36 +- .../data_style/model/surfaces/visibility.js | 40 +- internal/stores/data_style/state.js | 22 +- internal/utils/api_fetch.js | 58 ++- internal/utils/upload_file.js | 41 +- internal/utils/viewer_call.js | 59 ++- nuxt.config.js | 34 +- scripts/generate_geode_objects.js | 30 +- server/api/app/kill.post.js | 8 +- server/api/app/project_folder_path.post.js | 18 +- server/api/app/run_back.post.js | 18 +- server/api/app/run_viewer.post.js | 18 +- server/api/extensions/run.post.js | 75 ++-- server/api/extensions/upload.put.js | 110 +++--- tests/integration/setup.js | 97 +++-- .../stores/data_style/mesh/cells.nuxt.test.js | 204 +++++----- .../stores/data_style/mesh/edges.nuxt.test.js | 188 ++++------ .../stores/data_style/mesh/index.nuxt.test.js | 79 ++-- .../data_style/mesh/points.nuxt.test.js | 186 +++++---- .../data_style/mesh/polygons.nuxt.test.js | 202 +++++----- .../data_style/mesh/polyhedra.nuxt.test.js | 186 ++++----- .../data_style/model/blocks.nuxt.test.js | 129 +++---- .../data_style/model/corners.nuxt.test.js | 135 +++---- .../data_style/model/edges.nuxt.test.js | 81 ++-- .../data_style/model/index.nuxt.test.js | 65 ++-- .../data_style/model/lines.nuxt.test.js | 133 +++---- .../data_style/model/points.nuxt.test.js | 107 +++--- .../data_style/model/surfaces.nuxt.test.js | 139 +++---- tests/integration/stores/viewer.nuxt.test.js | 71 ++-- tests/setup_indexeddb.js | 4 +- .../unit/components/CrsSelector.nuxt.test.js | 56 +-- .../components/ExtensionSelector.nuxt.test.js | 68 ++-- .../FeedBack/ErrorsBanner.nuxt.test.js | 46 +-- .../components/FeedBack/Snackers.nuxt.test.js | 34 +- .../unit/components/FileSelector.nuxt.test.js | 114 +++--- .../unit/components/FileUploader.nuxt.test.js | 70 ++-- .../Inspector/InspectionButton.nuxt.test.js | 54 +-- .../Inspector/ResultPanel.nuxt.test.js | 47 ++- tests/unit/components/Launcher.nuxt.test.js | 40 +- .../MissingFilesSelector.nuxt.test.js | 74 ++-- .../components/ObjectSelector.nuxt.test.js | 124 +++--- .../components/PackagesVersions.nuxt.test.js | 30 +- tests/unit/components/Step.nuxt.test.js | 34 +- tests/unit/components/Stepper.nuxt.test.js | 36 +- tests/unit/composables/api_fetch.nuxt.test.js | 64 ++-- .../composables/project_manager.nuxt.test.js | 205 +++++----- ..._when_microservices_connected.nuxt.test.js | 70 ++-- .../unit/composables/upload_file.nuxt.test.js | 56 ++- tests/unit/plugins/project_load.nuxt.test.js | 64 ++-- tests/unit/stores/app.nuxt.test.js | 182 +++++---- tests/unit/stores/feedback.nuxt.test.js | 104 +++-- tests/unit/stores/geode.nuxt.test.js | 226 ++++++----- tests/unit/stores/infra.nuxt.test.js | 296 +++++++-------- tests/unit/stores/lambda.nuxt.test.js | 144 ++++--- tests/unit/stores/treeview.nuxt.test.js | 40 +- tests/unit/stores/viewer.nuxt.test.js | 231 ++++++------ tests/unit/utils/recaptcha.nuxt.test.js | 54 ++- tests/unit/utils/validate_schema.nuxt.test.js | 34 +- tests/utils.js | 22 +- tests/vitest.config.js | 18 +- vuetify_config.js | 4 +- 234 files changed, 7698 insertions(+), 9064 deletions(-) delete mode 100644 .prettierrc diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 8ad75e57..0fae25cc 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -12,4 +12,4 @@ module.exports = { "plugin:vuetify/recommended", "plugin:nuxt/recommended", ], -} +}; diff --git a/.oxlintrc.json b/.oxlintrc.json index 728bd785..1aeb1022 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -25,22 +25,7 @@ "eslint/id-length": [ "error", { - "exceptions": [ - "x", - "y", - "z", - "i", - "j", - "k", - "r", - "g", - "b", - "id", - "ID", - "fs", - "os", - "_" - ], + "exceptions": ["x", "y", "z", "i", "j", "k", "r", "g", "b", "id", "ID", "fs", "os", "_"], "min": 3 } ], @@ -79,12 +64,7 @@ } }, { - "files": [ - "app/plugins/**", - "node_scripts/**", - "server/**", - "*.config.js" - ], + "files": ["app/plugins/**", "node_scripts/**", "server/**", "*.config.js"], "rules": { "import/no-default-export": "off" } diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 2041212b..00000000 --- a/.prettierrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "semi": false, - "vueIndentScriptAndStyle": true -} diff --git a/app/assets/geode_objects.js b/app/assets/geode_objects.js index 899bf6e9..73538210 100644 --- a/app/assets/geode_objects.js +++ b/app/assets/geode_objects.js @@ -1,28 +1,28 @@ -import BRep from "@ogw_front/assets/img/geode_objects/BRep.svg" -import CrossSection from "@ogw_front/assets/img/geode_objects/CrossSection.svg" -import EdgedCurve2D from "@ogw_front/assets/img/geode_objects/EdgedCurve2D.svg" -import EdgedCurve3D from "@ogw_front/assets/img/geode_objects/EdgedCurve3D.svg" -import Graph from "@ogw_front/assets/img/geode_objects/Graph.svg" -import HybridSolid3D from "@ogw_front/assets/img/geode_objects/HybridSolid3D.svg" -import ImplicitCrossSection from "@ogw_front/assets/img/geode_objects/ImplicitCrossSection.svg" -import ImplicitStructuralModel from "@ogw_front/assets/img/geode_objects/ImplicitStructuralModel.svg" -import LightRegularGrid2D from "@ogw_front/assets/img/geode_objects/LightRegularGrid2D.svg" -import LightRegularGrid3D from "@ogw_front/assets/img/geode_objects/LightRegularGrid3D.svg" -import PointSet2D from "@ogw_front/assets/img/geode_objects/PointSet2D.svg" -import PointSet3D from "@ogw_front/assets/img/geode_objects/PointSet3D.svg" -import PolygonalSurface2D from "@ogw_front/assets/img/geode_objects/PolygonalSurface2D.svg" -import PolygonalSurface3D from "@ogw_front/assets/img/geode_objects/PolygonalSurface3D.svg" -import PolyhedralSolid3D from "@ogw_front/assets/img/geode_objects/PolyhedralSolid3D.svg" -import RasterImage2D from "@ogw_front/assets/img/geode_objects/RasterImage2D.svg" -import RasterImage3D from "@ogw_front/assets/img/geode_objects/RasterImage3D.svg" -import RegularGrid2D from "@ogw_front/assets/img/geode_objects/RegularGrid2D.svg" -import RegularGrid3D from "@ogw_front/assets/img/geode_objects/RegularGrid3D.svg" -import Section from "@ogw_front/assets/img/geode_objects/Section.svg" -import StructuralModel from "@ogw_front/assets/img/geode_objects/StructuralModel.svg" -import TetrahedralSolid3D from "@ogw_front/assets/img/geode_objects/TetrahedralSolid3D.svg" -import TriangulatedSurface2D from "@ogw_front/assets/img/geode_objects/TriangulatedSurface2D.svg" -import TriangulatedSurface3D from "@ogw_front/assets/img/geode_objects/TriangulatedSurface3D.svg" -import VertexSet from "@ogw_front/assets/img/geode_objects/VertexSet.svg" +import BRep from "@ogw_front/assets/img/geode_objects/BRep.svg"; +import CrossSection from "@ogw_front/assets/img/geode_objects/CrossSection.svg"; +import EdgedCurve2D from "@ogw_front/assets/img/geode_objects/EdgedCurve2D.svg"; +import EdgedCurve3D from "@ogw_front/assets/img/geode_objects/EdgedCurve3D.svg"; +import Graph from "@ogw_front/assets/img/geode_objects/Graph.svg"; +import HybridSolid3D from "@ogw_front/assets/img/geode_objects/HybridSolid3D.svg"; +import ImplicitCrossSection from "@ogw_front/assets/img/geode_objects/ImplicitCrossSection.svg"; +import ImplicitStructuralModel from "@ogw_front/assets/img/geode_objects/ImplicitStructuralModel.svg"; +import LightRegularGrid2D from "@ogw_front/assets/img/geode_objects/LightRegularGrid2D.svg"; +import LightRegularGrid3D from "@ogw_front/assets/img/geode_objects/LightRegularGrid3D.svg"; +import PointSet2D from "@ogw_front/assets/img/geode_objects/PointSet2D.svg"; +import PointSet3D from "@ogw_front/assets/img/geode_objects/PointSet3D.svg"; +import PolygonalSurface2D from "@ogw_front/assets/img/geode_objects/PolygonalSurface2D.svg"; +import PolygonalSurface3D from "@ogw_front/assets/img/geode_objects/PolygonalSurface3D.svg"; +import PolyhedralSolid3D from "@ogw_front/assets/img/geode_objects/PolyhedralSolid3D.svg"; +import RasterImage2D from "@ogw_front/assets/img/geode_objects/RasterImage2D.svg"; +import RasterImage3D from "@ogw_front/assets/img/geode_objects/RasterImage3D.svg"; +import RegularGrid2D from "@ogw_front/assets/img/geode_objects/RegularGrid2D.svg"; +import RegularGrid3D from "@ogw_front/assets/img/geode_objects/RegularGrid3D.svg"; +import Section from "@ogw_front/assets/img/geode_objects/Section.svg"; +import StructuralModel from "@ogw_front/assets/img/geode_objects/StructuralModel.svg"; +import TetrahedralSolid3D from "@ogw_front/assets/img/geode_objects/TetrahedralSolid3D.svg"; +import TriangulatedSurface2D from "@ogw_front/assets/img/geode_objects/TriangulatedSurface2D.svg"; +import TriangulatedSurface3D from "@ogw_front/assets/img/geode_objects/TriangulatedSurface3D.svg"; +import VertexSet from "@ogw_front/assets/img/geode_objects/VertexSet.svg"; export const geode_objects = { BRep: { @@ -125,4 +125,4 @@ export const geode_objects = { tooltip: "VertexSet", image: VertexSet, }, -} +}; diff --git a/app/components/Carousel.vue b/app/components/Carousel.vue index 9c37610d..3ed6ae89 100644 --- a/app/components/Carousel.vue +++ b/app/components/Carousel.vue @@ -1,58 +1,54 @@ diff --git a/app/components/CrsSelector.vue b/app/components/CrsSelector.vue index 70712996..a75407f4 100644 --- a/app/components/CrsSelector.vue +++ b/app/components/CrsSelector.vue @@ -1,67 +1,63 @@