diff --git a/.env.example b/.env.example index 4942b028..2ecd5afb 100644 --- a/.env.example +++ b/.env.example @@ -9,7 +9,7 @@ VUE_APP_BACKEND_BASE_URL=http://localhost:8000 # Authentication settings VUE_APP_IAM_BASE_URL=https://iam.bimdata.io VUE_APP_OIDC_CLIENT_ID= -# can be a comma separated list of identity providers +# Comma separated list of identity providers VUE_APP_AUTHORIZED_IDENTITY_PROVIDERS=bimdataconnect # Maptiler auth token used by maplibre @@ -23,33 +23,19 @@ VUE_APP_URL_DOCUMENTATION=https://developers.bimdata.io VUE_APP_URL_MARKETPLACE=https://marketplace.bimdata.io VUE_APP_URL_OLD_PLATFORM=https://platform-old.bimdata.io -# Guided Tour config -VUE_APP_GUIDED_TOUR_ENABLED=false - # Subscription config # Subscription feature will be enabled if "true" VUE_APP_SUBSCRIPTION_ENABLED=false # Paddle "sandbox" mode will be enabled if "true" VUE_APP_PADDLE_SANDBOX=false - -# Translate IFC entities will be enabled if "true" -VUE_APP_TRANSLATE_IFC_TYPE=false - -# Notifications config -VUE_APP_NOTIFICATION_ENABLED=true - # Vendor ID from Paddle VUE_APP_PADDLE_VENDOR_ID= # Plans/Product IDs from Paddle VUE_APP_PRO_PLAN_ID= VUE_APP_DATAPACK_PLAN_ID= - -# Amount of storage available with free plan -# => 300 MB = 300 * 1024^2 +# Amount of storage available with free plan in bytes (e.g. 300 MB = 300 * 1024^2) VUE_APP_FREE_PLAN_STORAGE=314572800 - -# Amount of base storage available with pro plan -# => 10 GB = 10 * 1024^3 +# Amount of base storage available with pro plan in bytes (e.g. 10 GB = 10 * 1024^3) VUE_APP_PRO_PLAN_STORAGE=10737418240 # Projects config @@ -57,3 +43,9 @@ VUE_APP_PRO_PLAN_STORAGE=10737418240 VUE_APP_PROJECT_STATUS_LIMIT_NEW=5 # Number of days since last update for which a project is considered "Active" VUE_APP_PROJECT_STATUS_LIMIT_ACTIVE=15 + +# Features +VUE_APP_GUIDED_TOUR_ENABLED=false +VUE_APP_TRANSLATE_IFC_TYPE=false +VUE_APP_NOTIFICATION_ENABLED=true +VUE_APP_AVOID_SPACE_DELETION=false diff --git a/etc/env.sh b/etc/env.sh index 1189fa1d..2afde240 100755 --- a/etc/env.sh +++ b/etc/env.sh @@ -42,6 +42,7 @@ declare -A vars_to_placeholders=( [VUE_APP_GUIDED_TOUR_ENABLED]="ENV.VUE_APP_GUIDED_TOUR_ENABLED" [VUE_APP_TRANSLATE_IFC_TYPE]="ENV.VUE_APP_TRANSLATE_IFC_TYPE" [VUE_APP_NOTIFICATION_ENABLED]="ENV.VUE_APP_NOTIFICATION_ENABLED" + [VUE_APP_AVOID_SPACE_DELETION]="ENV.VUE_APP_AVOID_SPACE_DELETION" ) # Function to compute the hash of a resource diff --git a/src/components/specific/app/app-modal/AppModalContent.vue b/src/components/specific/app/app-modal/AppModalContent.vue index fd0ce0b8..46e0cb71 100644 --- a/src/components/specific/app/app-modal/AppModalContent.vue +++ b/src/components/specific/app/app-modal/AppModalContent.vue @@ -43,7 +43,7 @@ onBeforeRouteLeave(() => closeModal()); position: relative; min-width: 400px; min-height: 400px; - padding: calc(var(--spacing-unit) * 3); + padding: calc(var(--spacing-unit) * 2); background-color: var(--color-white); &__btn-close { diff --git a/src/components/specific/app/warning-modal/WarningModal.vue b/src/components/specific/app/warning-modal/WarningModal.vue new file mode 100644 index 00000000..4122f039 --- /dev/null +++ b/src/components/specific/app/warning-modal/WarningModal.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/src/components/specific/files/files-manager/FilesManager.vue b/src/components/specific/files/files-manager/FilesManager.vue index 01f78582..a23270a8 100644 --- a/src/components/specific/files/files-manager/FilesManager.vue +++ b/src/components/specific/files/files-manager/FilesManager.vue @@ -39,7 +39,7 @@ :fileStructure="fileStructure" :files="selection" :initialFolder="currentFolder" - @delete-files="openFileDeleteModal" + @delete-files="openWarningModal" @delete-visas="openVisaDeleteModal" @download="downloadFiles" @move="moveFiles" @@ -209,7 +209,8 @@ import { fileUploadInput } from "../../../../utils/upload.js"; // Components import AllFilesTable from "../all-files-table/AllFilesTable.vue"; -import AppSidePanelContent from "../../../specific/app/app-side-panel/AppSidePanelContent.vue"; +import AppSidePanelContent from "../../app/app-side-panel/AppSidePanelContent.vue"; +import WarningModal from "../../app/warning-modal/WarningModal.vue"; import DocumentViewer from "../document-viewer/DocumentViewer.vue"; import FilesActionBar from "./files-action-bar/FilesActionBar.vue"; import FilesDeleteModal from "./files-delete-modal/FilesDeleteModal.vue"; @@ -462,6 +463,10 @@ export default { closeModal(); }; + const openWarningModal = () => { + openModal({ component: WarningModal }); + }; + const moveFiles = async (event) => { await move(props.project, event.files, event.dest); }; @@ -790,6 +795,7 @@ export default { openVisaDeleteModal, openSidePanel, openSubscriptionModal, + openWarningModal, onTabChange, openTagManager, openVersioningManager, diff --git a/src/components/specific/models/models-manager/generic-models-manager/GenericModelsManager.vue b/src/components/specific/models/models-manager/generic-models-manager/GenericModelsManager.vue index 455911fd..4444ab1c 100644 --- a/src/components/specific/models/models-manager/generic-models-manager/GenericModelsManager.vue +++ b/src/components/specific/models/models-manager/generic-models-manager/GenericModelsManager.vue @@ -44,7 +44,7 @@ :project="project" :models="selection" @archive="archiveModels" - @delete="openDeleteModal" + @delete="openWarningModal" @download="downloadModels" @open="openModels" @unarchive="unarchiveModels" @@ -90,6 +90,7 @@