From 1b02b8496bce73d3e3cd8f84407b13b114bace75 Mon Sep 17 00:00:00 2001 From: Nicolas Richel Date: Thu, 21 Nov 2024 10:03:44 +0100 Subject: [PATCH] MINOR: feat: photosphere building maker (#10) --- index.js | 1 + .../BIMDataBuildingMaker.vue | 16 +- .../BuildingForm/BuildingForm.vue | 17 +- .../BuildingView.vue} | 22 +- .../StoreyForm/StoreyForm.vue | 4 +- .../StoreysTree/StoreyNode.vue | 2 +- .../StoreysTree/StoreyPlans.vue | 0 .../StoreysTree/StoreysTree.vue | 2 +- .../BuildingsList/BuildingItem.vue | 4 +- .../BuildingsList/BuildingsList.vue | 2 +- src/BIMDataBuildingMaker/config.js | 6 + src/BIMDataBuildingMaker/service.js | 27 +- .../components/FileCard.vue | 8 +- .../components/PdfPageSelector.vue | 4 +- .../components/modals/DeleteModal.vue | 4 +- .../components/modals/RenameModal.vue | 6 +- .../components/newFolder/NewFolderForm.vue | 4 +- .../StructureView/StructureView.vue | 2 +- .../meta-building-structure.js | 50 ++-- .../BIMDataPhotosphereBuildingMaker.vue | 154 +++++++++++ .../PhotosphereBuildingView.vue | 252 ++++++++++++++++++ .../StructureTreeNodes/GenericTreeNode.vue | 42 +++ .../StructureTreeNodes/PlanNode.vue | 42 +++ .../StructureTreeNodes/StoreyNode.vue | 91 +++++++ .../StructureTreeNodes/StructureRootNode.vue | 36 +++ .../StructureTreeNodes/ZoneNode.vue | 21 ++ .../photosphere-building-maker.js | 48 ++++ src/i18n/lang/de.json | 2 +- src/i18n/lang/en.json | 51 ++-- src/i18n/lang/es.json | 2 +- src/i18n/lang/fr.json | 49 ++-- src/i18n/lang/it.json | 2 +- 32 files changed, 842 insertions(+), 131 deletions(-) rename src/BIMDataBuildingMaker/{BuildingStoreys/BuildingStoreys.vue => BuildingView/BuildingView.vue} (91%) rename src/BIMDataBuildingMaker/{BuildingStoreys => BuildingView}/StoreyForm/StoreyForm.vue (95%) rename src/BIMDataBuildingMaker/{BuildingStoreys => BuildingView}/StoreysTree/StoreyNode.vue (98%) rename src/BIMDataBuildingMaker/{BuildingStoreys => BuildingView}/StoreysTree/StoreyPlans.vue (100%) rename src/BIMDataBuildingMaker/{BuildingStoreys => BuildingView}/StoreysTree/StoreysTree.vue (97%) create mode 100644 src/BIMDataPhotosphereBuildingMaker/BIMDataPhotosphereBuildingMaker.vue create mode 100644 src/BIMDataPhotosphereBuildingMaker/PhotosphereBuildingView/PhotosphereBuildingView.vue create mode 100644 src/BIMDataPhotosphereBuildingMaker/StructureTreeNodes/GenericTreeNode.vue create mode 100644 src/BIMDataPhotosphereBuildingMaker/StructureTreeNodes/PlanNode.vue create mode 100644 src/BIMDataPhotosphereBuildingMaker/StructureTreeNodes/StoreyNode.vue create mode 100644 src/BIMDataPhotosphereBuildingMaker/StructureTreeNodes/StructureRootNode.vue create mode 100644 src/BIMDataPhotosphereBuildingMaker/StructureTreeNodes/ZoneNode.vue create mode 100644 src/BIMDataPhotosphereBuildingMaker/photosphere-building-maker.js diff --git a/index.js b/index.js index 0db348e..0b65f67 100644 --- a/index.js +++ b/index.js @@ -5,4 +5,5 @@ export { default as BIMDataMetaBuildingStructure } from "./src/BIMDataMetaBuildi export { default as BIMDataModelPreview } from "./src/BIMDataModelPreview/BIMDataModelPreview.vue"; export { default as BIMDataPDFViewer } from "./src/BIMDataPDFViewer/BIMDataPDFViewer.vue"; export { default as BIMDataPhotosphereBuilding } from "./src/BIMDataPhotosphereBuilding/BIMDataPhotosphereBuilding.vue"; +export { default as BIMDataPhotosphereBuildingMaker } from "./src/BIMDataPhotosphereBuildingMaker/BIMDataPhotosphereBuildingMaker.vue"; export { default as BIMDataSafeZoneModal } from "./src/BIMDataSafeZoneModal/BIMDataSafeZoneModal.vue"; diff --git a/src/BIMDataBuildingMaker/BIMDataBuildingMaker.vue b/src/BIMDataBuildingMaker/BIMDataBuildingMaker.vue index c38d048..470dbf3 100644 --- a/src/BIMDataBuildingMaker/BIMDataBuildingMaker.vue +++ b/src/BIMDataBuildingMaker/BIMDataBuildingMaker.vue @@ -5,7 +5,7 @@ import { createService } from "./service.js"; // Components import BuildingForm from "./BuildingForm/BuildingForm.vue"; import BuildingsList from "./BuildingsList/BuildingsList.vue"; -import BuildingStoreys from "./BuildingStoreys/BuildingStoreys.vue"; +import BuildingView from "./BuildingView/BuildingView.vue"; const props = defineProps({ apiClient: { @@ -102,21 +102,15 @@ onMounted(() => loadMetaBuildings()); :disabled="loading.value" @click="back" > - - {{ $t("BuildingMaker.back") }} + + {{ $t("BIMDataComponents.t.back") }} {{ $t("BuildingMaker.title") }}
- +