OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Move IFC models into bim
Oliver Günther31b53b40c454
diff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/context_menu.sass b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/context_menu.sasssimilarity index 100%rename from modules/ifc_models/app/assets/stylesheets/ifc_viewer/context_menu.sassrename to modules/bim/app/assets/stylesheets/bim/ifc_viewer/context_menu.sassdiff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sasssimilarity index 100%rename from modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sassrename to modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sassdiff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/loading_modal.sass b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/loading_modal.sasssimilarity index 100%rename from modules/ifc_models/app/assets/stylesheets/ifc_viewer/loading_modal.sassrename to modules/bim/app/assets/stylesheets/bim/ifc_viewer/loading_modal.sassdiff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tabs.sass b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/tabs.sasssimilarity index 100%rename from modules/ifc_models/app/assets/stylesheets/ifc_viewer/tabs.sassrename to modules/bim/app/assets/stylesheets/bim/ifc_viewer/tabs.sassdiff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/toolbar.sass b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/toolbar.sasssimilarity index 100%rename from modules/ifc_models/app/assets/stylesheets/ifc_viewer/toolbar.sassrename to modules/bim/app/assets/stylesheets/bim/ifc_viewer/toolbar.sassdiff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tooltips.sass b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/tooltips.sasssimilarity index 100%rename from modules/ifc_models/app/assets/stylesheets/ifc_viewer/tooltips.sassrename to modules/bim/app/assets/stylesheets/bim/ifc_viewer/tooltips.sassdiff --git a/modules/ifc_models/app/cells/ifc_models/models/row_cell.rb b/modules/bim/app/cells/bim/ifc_models/row_cell.rbsimilarity index 98%rename from modules/ifc_models/app/cells/ifc_models/models/row_cell.rbrename to modules/bim/app/cells/bim/ifc_models/row_cell.rbindex fceaf8fbce1..5a5c58314df 100644--- a/modules/ifc_models/app/cells/ifc_models/models/row_cell.rb+++ b/modules/bim/app/cells/bim/ifc_models/row_cell.rb@@ -1,5 +1,5 @@-module IFCModels- module Models+module Bim+ module IFCModelsclass RowCell < ::RowCellinclude ::IconsHelperinclude ::AvatarHelperdiff --git a/modules/ifc_models/app/cells/ifc_models/models/table_cell.rb b/modules/bim/app/cells/bim/ifc_models/table_cell.rbsimilarity index 97%rename from modules/ifc_models/app/cells/ifc_models/models/table_cell.rbrename to modules/bim/app/cells/bim/ifc_models/table_cell.rbindex 36db32a30cf..279e89c9254 100644--- a/modules/ifc_models/app/cells/ifc_models/models/table_cell.rb+++ b/modules/bim/app/cells/bim/ifc_models/table_cell.rb@@ -1,5 +1,5 @@-module IFCModels- module Models+module Bim+ module IFCModelsclass TableCell < ::TableCellinclude ::IconsHelpercolumns :title, :default?, :created_at, :updated_at, :uploader, :processingdiff --git a/modules/bim/app/contracts/bim/ifc_models/base_contract.rb b/modules/bim/app/contracts/bim/ifc_models/base_contract.rbnew file mode 100644index 00000000000..2dff8290d5f--- /dev/null+++ b/modules/bim/app/contracts/bim/ifc_models/base_contract.rb@@ -0,0 +1,89 @@+#-- copyright+# OpenProject is a project management system.+# Copyright (C) 2012-2017 the OpenProject Foundation (OPF)+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2017 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See doc/COPYRIGHT.rdoc for more details.+#++++module Bim+ module IFCModels+ class BaseContract < ::ModelContract+ delegate :project,+ :new_record?,+ to: :model++ attribute :title+ attribute :is_default+ attribute :project++ def self.model+ ::IFCModels::IFCModel+ end++ def validate+ user_allowed_to_manage+ user_is_uploader+ ifc_attachment_existent+ ifc_attachment_is_ifc+ uploader_is_ifc_attachment_author++ super+ end++ def user_allowed_to_manage+ if model.project && !user.allowed_to?(:manage_ifc_models, model.project)+ errors.add :base, :error_unauthorized+ end+ end++ def user_is_uploader+ if model.uploader_id_changed? && model.uploader != user+ errors.add :uploader_id, :invalid+ end+ end++ def ifc_attachment_existent+ errors.add :base, :ifc_attachment_missing unless model.ifc_attachment+ end++ def ifc_attachment_is_ifc+ return unless model.ifc_attachment&.new_record?++ firstline = File.open(model.ifc_attachment.file.file.path, &:readline)++ begin+ unless firstline.match?(/^ISO-10303-21;/)+ errors.add :base, :invalid_ifc_file+ end+ rescue ArgumentError+ errors.add :base, :invalid_ifc_file+ end+ end++ def uploader_is_ifc_attachment_author+ errors.add :uploader_id, :invalid if model.ifc_attachment && model.uploader != model.ifc_attachment.author+ end+ end+ end+enddiff --git a/modules/ifc_models/app/contracts/ifc_models/create_contract.rb b/modules/bim/app/contracts/bim/ifc_models/create_contract.rbsimilarity index 93%rename from modules/ifc_models/app/contracts/ifc_models/create_contract.rbrename to modules/bim/app/contracts/bim/ifc_models/create_contract.rbindex ce4894fe6bc..2eb016781a2 100644--- a/modules/ifc_models/app/contracts/ifc_models/create_contract.rb+++ b/modules/bim/app/contracts/bim/ifc_models/create_contract.rb@@ -26,7 +26,9 @@# See doc/COPYRIGHT.rdoc for more details.#++-module IFCModels- class CreateContract < BaseContract+module Bim+ module IFCModels+ class CreateContract < BaseContract+ endendenddiff --git a/modules/ifc_models/app/contracts/ifc_models/update_contract.rb b/modules/bim/app/contracts/bim/ifc_models/update_contract.rbsimilarity index 93%rename from modules/ifc_models/app/contracts/ifc_models/update_contract.rbrename to modules/bim/app/contracts/bim/ifc_models/update_contract.rbindex 1f5e7bdd16f..6c4e9ac9bce 100644--- a/modules/ifc_models/app/contracts/ifc_models/update_contract.rb+++ b/modules/bim/app/contracts/bim/ifc_models/update_contract.rb@@ -26,7 +26,9 @@# See doc/COPYRIGHT.rdoc for more details.#++-module IFCModels- class UpdateContract < BaseContract+module Bim+ module IFCModels+ class UpdateContract < BaseContract+ endendenddiff --git a/modules/bim/app/controllers/bim/ifc_models/base_controller.rb b/modules/bim/app/controllers/bim/ifc_models/base_controller.rbnew file mode 100644index 00000000000..76b13efc6fa--- /dev/null+++ b/modules/bim/app/controllers/bim/ifc_models/base_controller.rb@@ -0,0 +1,6 @@+module Bim+ module IFCModels+ class BaseController < ApplicationController+ end+ end+enddiff --git a/modules/bim/app/controllers/bim/ifc_models/ifc_models_controller.rb b/modules/bim/app/controllers/bim/ifc_models/ifc_models_controller.rbnew file mode 100644index 00000000000..4a50f141f08--- /dev/null+++ b/modules/bim/app/controllers/bim/ifc_models/ifc_models_controller.rb@@ -0,0 +1,132 @@+#-- encoding: UTF-8++#-- copyright+# OpenProject is a project management system.+# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2017 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++module Bim+ module IFCModels+ class IFCModelsController < BaseController+ helper_method :gon++ before_action :find_project_by_project_id, only: %i[index new create show defaults edit update destroy]+ before_action :find_ifc_model_object, except: %i[index new create]+ before_action :find_all_ifc_models, only: %i[show defaults index]++ before_action :authorize++ menu_item :ifc_models++ def index+ @ifc_models = @ifc_models+ .includes(:project, :uploader)+ end++ def new+ @ifc_model = @project.ifc_models.build+ end++ def edit;+ end++ def show;+ end++ def defaults+ @default_ifc_models = @ifc_models.defaults++ if @default_ifc_models.empty?+ redirect_to action: :index+ end+ end++ def create+ combined_params = permitted_model_params+ .to_h+ .reverse_merge(project: @project)++ call = ::IFCModels::CreateService+ .new(user: current_user)+ .call(combined_params)++ @ifc_model = call.result++ if call.success?+ flash[:notice] = t('ifc_models.flash_messages.upload_successful')+ redirect_to action: :index+ else+ @errors = call.errors+ render action: :new+ end+ end++ def update+ combined_params = permitted_model_params+ .to_h+ .reverse_merge(project: @project)++ call = ::IFCModels::UpdateService+ .new(user: current_user, model: @ifc_model)+ .call(combined_params)++ @ifc_model = call.result++ if call.success?+ flash[:notice] = t(:notice_successful_update)+ redirect_to action: :index+ else+ @errors = call.errors+ render action: :edit+ end+ end++ def destroy+ @ifc_model.destroy+ redirect_to action: :index+ end++ private++ def find_all_ifc_models+ @ifc_models = @project+ .ifc_models+ .includes(:attachments)+ .order('created_at ASC')+ end++ def permitted_model_params+ params+ .require(:ifc_models_ifc_model)+ .permit('title', 'ifc_attachment', 'is_default')+ end++ def find_ifc_model_object+ @ifc_model = IFCModels::IFCModel.find_by(id: params[:id])+ end+ end+ end+enddiff --git a/modules/bim/app/helpers/bcf_application_helper.rb b/modules/bim/app/helpers/bim/bcf_application_helper.rbsimilarity index 85%rename from modules/bim/app/helpers/bcf_application_helper.rbrename to modules/bim/app/helpers/bim/bcf_application_helper.rbindex 8fdcbc046b4..45c27c937d4 100644--- a/modules/bim/app/helpers/bcf_application_helper.rb+++ b/modules/bim/app/helpers/bim/bcf_application_helper.rb@@ -25,12 +25,14 @@## See docs/COPYRIGHT.rdoc for more details.#++-#-module BcfApplicationHelper- def body_css_classes- classes = super- classes = classes + " bcf-#{@project&.module_enabled?(:bcf) ? 'activated' : 'deactivated'}"- classes+module Bim+ module BcfApplicationHelper+ def body_css_classes+ classes = super+ classes = classes + " bcf-#{@project&.module_enabled?(:bcf) ? 'activated' : 'deactivated'}"++ classes+ endendenddiff --git a/modules/bim/app/helpers/bcf_work_packages_filter_helper.rb b/modules/bim/app/helpers/bim/bcf_work_packages_filter_helper.rbsimilarity index 77%rename from modules/bim/app/helpers/bcf_work_packages_filter_helper.rbrename to modules/bim/app/helpers/bim/bcf_work_packages_filter_helper.rbindex c17defd0a2d..599ecb25bac 100644--- a/modules/bim/app/helpers/bcf_work_packages_filter_helper.rb+++ b/modules/bim/app/helpers/bim/bcf_work_packages_filter_helper.rb@@ -28,19 +28,21 @@# See docs/COPYRIGHT.rdoc for more details.#++-module BcfWorkPackagesFilterHelper- include WorkPackagesFilterHelper+module Bim+ module BcfWorkPackagesFilterHelper+ include WorkPackagesFilterHelper- def project_work_packages_bcf_issues_path(project)- query = {- f: [- filter_object('status_id', 'o')- ],- hi: true,- hl: 'priority',- dr: 'card'- }+ def project_work_packages_bcf_issues_path(project)+ query = {+ f: [+ filter_object('status_id', 'o')+ ],+ hi: true,+ hl: 'priority',+ dr: 'card'+ }- project_work_packages_with_query_path(project, query)+ project_work_packages_with_query_path(project, query)+ endendenddiff --git a/modules/bim/app/helpers/bim/ifc_models_helper.rb b/modules/bim/app/helpers/bim/ifc_models_helper.rbnew file mode 100644index 00000000000..4a5c60b6524--- /dev/null+++ b/modules/bim/app/helpers/bim/ifc_models_helper.rb@@ -0,0 +1,57 @@+module Bim+ module IFCModelsHelper+ def provision_gon_for_ifc_model(all_models, models_to_load = [])+ all_converted_models = converted_ifc_models(all_models)++ gon.ifc_models = {+ models: gon_ifc_model_models(all_converted_models, models_to_load),+ default_models: gon_ifc_default_models(all_converted_models, models_to_load),+ projects: [{id: @project.identifier, name: @project.name}],+ xkt_attachment_ids: gon_ifc_model_xkt_attachment_ids(all_converted_models),+ metadata_attachment_ids: gon_ifc_model_metadata_attachment_ids(all_converted_models),+ permissions: {+ manage: User.current.allowed_to?(:manage_ifc_models, @project)+ }+ }+ end++ def converted_ifc_models(ifc_models)+ ifc_models.select(&:converted?)+ end++ def gon_ifc_model_models(all_models, models_to_load)+ all_converted_models = converted_ifc_models(all_models)++ all_converted_models.map do |ifc_model|+ {+ id: ifc_model.id,+ name: ifc_model.title,+ saoEnabled: models_to_load.include?(ifc_model)+ }+ end+ end++ def gon_ifc_default_models(all_models, models_to_load)+ all_converted_models = converted_ifc_models(all_models)+ default_models = []++ all_converted_models.map do |ifc_model|+ default_models << ifc_model.id.to_s if models_to_load.include?(ifc_model)+ end+ default_models+ end++ def gon_ifc_model_xkt_attachment_ids(models)+ Hash[models.map { |model| [model.id, model.xkt_attachment.id] }]+ end++ def gon_ifc_model_metadata_attachment_ids(models)+ Hash[+ models.map do |model|+ [model.id,+ model.metadata_attachment.id]+ end+ ]+ end+ end+enddiff --git a/modules/bim/app/models/bcf.rb b/modules/bim/app/models/bcf.rbdeleted file mode 100644index f5acb9ac1b4..00000000000--- a/modules/bim/app/models/bcf.rb+++ /dev/null@@ -1,5 +0,0 @@-module Bcf- def self.table_name_prefix- 'bcf_'- end-enddiff --git a/modules/bim/app/models/bim/bcf.rb b/modules/bim/app/models/bim/bcf.rbnew file mode 100644index 00000000000..289ff0b7117--- /dev/null+++ b/modules/bim/app/models/bim/bcf.rb@@ -0,0 +1,7 @@+module Bim+ module Bcf+ def self.table_name_prefix+ 'bcf_'+ end+ end+enddiff --git a/modules/bim/app/models/bcf/comment.rb b/modules/bim/app/models/bim/bcf/comment.rbsimilarity index 100%rename from modules/bim/app/models/bcf/comment.rbrename to modules/bim/app/models/bim/bcf/comment.rbdiff --git a/modules/bim/app/models/bcf/initialize_with_uuid.rb b/modules/bim/app/models/bim/bcf/initialize_with_uuid.rbsimilarity index 100%rename from modules/bim/app/models/bcf/initialize_with_uuid.rbrename to modules/bim/app/models/bim/bcf/initialize_with_uuid.rbdiff --git a/modules/bim/app/models/bcf/issue.rb b/modules/bim/app/models/bim/bcf/issue.rbsimilarity index 100%rename from modules/bim/app/models/bcf/issue.rbrename to modules/bim/app/models/bim/bcf/issue.rbdiff --git a/modules/bim/app/models/bcf/viewpoint.rb b/modules/bim/app/models/bim/bcf/viewpoint.rbsimilarity index 100%rename from modules/bim/app/models/bcf/viewpoint.rbrename to modules/bim/app/models/bim/bcf/viewpoint.rbdiff --git a/modules/bim/app/models/bim/ifc_models/ifc_model.rb b/modules/bim/app/models/bim/ifc_models/ifc_model.rbnew file mode 100644index 00000000000..da864fca0fc--- /dev/null+++ b/modules/bim/app/models/bim/ifc_models/ifc_model.rb@@ -0,0 +1,54 @@+module Bim+ module IFCModels+ class IFCModel < ActiveRecord::Base+ acts_as_attachable delete_permission: :manage_ifc_models, view_permission: :view_ifc_models++ belongs_to :project+ belongs_to :uploader, class_name: 'User', foreign_key: 'uploader_id'++ validates :title, presence: true+ validates :project, presence: true++ scope :defaults, -> { where(is_default: true) }++ %i(ifc xkt metadata).each do |name|+ define_method "#{name}_attachment" do+ get_attached_type(name)+ end++ define_method "#{name}_attachment=" do |file|+ if name == :ifc+ # Also delete xkt and metadata+ delete_attachment :xkt+ delete_attachment :metadata+ end++ delete_attachment name+ attach_files('first' => {'file' => file, 'description' => name})+ end+ end++ def converted?+ xkt_attachment.present? && metadata_attachment.present?+ end++ private++ ##+ # Delete the given named description+ def get_attached_type(key)+ if attachments.loaded?+ attachments.detect { |a| a.description == key.to_s && !a.marked_for_destruction? }+ else+ attachments.find_by_description(key.to_s)+ end+ end++ ##+ # Delete the given named description+ def delete_attachment(key)+ get_attached_type(key)&.destroy+ end+ end+ end+enddiff --git a/modules/ifc_models/app/services/ifc_models/create_service.rb b/modules/bim/app/services/ifc_models/create_service.rbsimilarity index 80%rename from modules/ifc_models/app/services/ifc_models/create_service.rbrename to modules/bim/app/services/ifc_models/create_service.rbindex d977c145c4a..1c319c2b2b7 100644--- a/modules/ifc_models/app/services/ifc_models/create_service.rb+++ b/modules/bim/app/services/ifc_models/create_service.rb@@ -26,20 +26,22 @@# See docs/COPYRIGHT.rdoc for more details.#+-module IFCModels- class CreateService < ::BaseServices::Create- protected+module Bim+ module IFCModels+ class CreateService < ::BaseServices::Create+ protected- def after_perform(call)- if call.success?- IFCConversionJob.perform_later(call.result)- end+ def after_perform(call)+ if call.success?+ IFCConversionJob.perform_later(call.result)+ end- call- end+ call+ end- def instance(_params)- ::IFCModels::IFCModel.new+ def instance(_params)+ ::IFCModels::IFCModel.new+ endendendenddiff --git a/modules/ifc_models/app/services/ifc_models/set_attributes_service.rb b/modules/bim/app/services/ifc_models/set_attributes_service.rbsimilarity index 53%rename from modules/ifc_models/app/services/ifc_models/set_attributes_service.rbrename to modules/bim/app/services/ifc_models/set_attributes_service.rbindex 70ae3e99648..ac4f9a05685 100644--- a/modules/ifc_models/app/services/ifc_models/set_attributes_service.rb+++ b/modules/bim/app/services/ifc_models/set_attributes_service.rb@@ -28,46 +28,48 @@# See docs/COPYRIGHT.rdoc for more details.#++-module IFCModels- class SetAttributesService < ::BaseServices::SetAttributes- protected+module Bim+ module IFCModels+ class SetAttributesService < ::BaseServices::SetAttributes+ protected- def set_attributes(params)- set_ifc_attachment(params.delete(:ifc_attachment))+ def set_attributes(params)+ set_ifc_attachment(params.delete(:ifc_attachment))- super+ super- change_by_system do- model.uploader = model.ifc_attachment&.author if model.ifc_attachment&.new_record?+ change_by_system do+ model.uploader = model.ifc_attachment&.author if model.ifc_attachment&.new_record?+ endend- end- def set_default_attributes(_params)- set_title- end+ def set_default_attributes(_params)+ set_title+ end- def validate_and_result- super.tap do |call|- # map errors on attachments to better display them- if call.errors[:attachments].any?- model.ifc_attachment.errors.details.each do |_, errors|- errors.each do |error|- call.errors.add(:attachments, error[:error], **error.except(:error))+ def validate_and_result+ super.tap do |call|+ # map errors on attachments to better display them+ if call.errors[:attachments].any?+ model.ifc_attachment.errors.details.each do |_, errors|+ errors.each do |error|+ call.errors.add(:attachments, error[:error], **error.except(:error))+ endendendendend- end- def set_title- model.title = model.ifc_attachment&.file&.filename&.gsub(/\.\w+$/, '')- end+ def set_title+ model.title = model.ifc_attachment&.file&.filename&.gsub(/\.\w+$/, '')+ end- def set_ifc_attachment(ifc_attachment)- return unless ifc_attachment+ def set_ifc_attachment(ifc_attachment)+ return unless ifc_attachment- model.attachments.each(&:mark_for_destruction)- model.attach_files('first' => { 'file' => ifc_attachment, 'description' => 'ifc' })+ model.attachments.each(&:mark_for_destruction)+ model.attach_files('first' => {'file' => ifc_attachment, 'description' => 'ifc'})+ endendendenddiff --git a/modules/ifc_models/app/services/ifc_models/update_service.rb b/modules/bim/app/services/ifc_models/update_service.rbsimilarity index 66%rename from modules/ifc_models/app/services/ifc_models/update_service.rbrename to modules/bim/app/services/ifc_models/update_service.rbindex 1f2c1f02a73..03360b98625 100644--- a/modules/ifc_models/app/services/ifc_models/update_service.rb+++ b/modules/bim/app/services/ifc_models/update_service.rb@@ -26,28 +26,30 @@# See docs/COPYRIGHT.rdoc for more details.#+-module IFCModels- class UpdateService < ::BaseServices::Update- protected+module Bim+ module IFCModels+ class UpdateService < ::BaseServices::Update+ protected- def before_perform(params)- super.tap do |call|- @ifc_attachment_replaced = call.success? && model.ifc_attachment.new_record?+ def before_perform(params)+ super.tap do |call|+ @ifc_attachment_replaced = call.success? && model.ifc_attachment.new_record?+ endend- end- def after_perform(call)- if call.success?- # As the attachments association does not have the autosave option, we need to remove the- # attachments ourselves- model.attachments.select(&:marked_for_destruction?).each(&:destroy)+ def after_perform(call)+ if call.success?+ # As the attachments association does not have the autosave option, we need to remove the+ # attachments ourselves+ model.attachments.select(&:marked_for_destruction?).each(&:destroy)- if @ifc_attachment_replaced- IFCConversionJob.perform_later(call.result)+ if @ifc_attachment_replaced+ IFCConversionJob.perform_later(call.result)+ endend- end- call+ call+ endendendenddiff --git a/modules/bim/app/services/ifc_models/view_converter_service.rb b/modules/bim/app/services/ifc_models/view_converter_service.rbnew file mode 100644index 00000000000..3af5786af63--- /dev/null+++ b/modules/bim/app/services/ifc_models/view_converter_service.rb@@ -0,0 +1,166 @@+#-- copyright+# OpenProject is a project management system.+# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2017 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++require 'open3'++module Bim+ module IFCModels+ class ViewConverterService+ attr_reader :ifc_model, :errors++ PIPELINE_COMMANDS ||= %w[IfcConvert COLLADA2GLTF gltf2xkt xeokit-metadata].freeze++ def initialize(ifc_model)+ @errors = ActiveModel::Errors.new(self)+ @ifc_model = ifc_model+ end++ ##+ # Check availability of the pipeline+ def self.available?+ available_commands.length == PIPELINE_COMMANDS.length+ end++ def self.available_commands+ @available_commands ||= begin+ PIPELINE_COMMANDS.select do |command|+ _, status = Open3.capture2e('which', command)+ status.exitstatus.zero?+ end+ end+ end++ def call+ validate!++ Dir.mktmpdir do |dir|+ perform_conversion!(dir)++ ServiceResult.new(success: ifc_model.save, result: ifc_model)+ end+ rescue StandardError => e+ OpenProject.logger.error("Failed to convert IFC to XKT", exception: e)+ ServiceResult.new(success: false).tap { |r| r.errors.add(:base, e.message) }+ end++ def perform_conversion!(dir)+ # Step 1: IfcConvert+ ifc_file = ifc_model.ifc_attachment.diskfile.path+ collada_file = convert_to_collada(ifc_file, dir)++ # Step 2: Collada2GLTF+ gltf_file = convert_to_gltf(collada_file, dir)++ # Step 3: Convert to XKT+ xkt_file = convert_to_xkt(gltf_file, dir)+ ifc_model.xkt_attachment = File.new xkt_file++ # Convert metadata+ metadata_file = convert_metadata(ifc_file, dir)+ ifc_model.metadata_attachment = File.new metadata_file+ end++ ##+ # Call IfcConvert with an IFC file to output an identically-named+ # DAE collada file.+ #+ # @param ifc_filepath {String} Path to the IFC model file+ # @param target_dir {String} Path to the temporary output folder+ def convert_to_collada(ifc_filepath, target_dir)+ Rails.logger.debug { "Converting #{ifc_model.inspect} to DAE" }++ convert!(ifc_filepath, target_dir, 'dae') do |target_file|+ Open3.capture2e('IfcConvert', '--use-element-guids', '--no-progress', '--verbose', ifc_filepath, target_file)+ end+ end++ ##+ # Call COLLADA2GLTF with the converted DAE file.+ #+ # @param dae_filepath {String} Path to the converted DAE model file+ # @param target_dir {String} Path to the temporary output folder+ def convert_to_gltf(dae_filepath, target_dir)+ Rails.logger.debug { "Converting #{ifc_model.inspect} to GLTF" }++ convert!(dae_filepath, target_dir, 'gltf') do |target_file|+ Open3.capture2e('COLLADA2GLTF', '-i', dae_filepath, '-o', target_file)+ end+ end++ ##+ # Call gltf2xkt with the converted gltf file.+ #+ # @param gltf_filepath {String} Path to the converted GLTF model file+ # @param target_dir {String} Path to the temporary output folder+ def convert_to_xkt(gltf_filepath, target_dir)+ Rails.logger.debug { "Converting #{ifc_model.inspect} to XKT" }++ convert!(gltf_filepath, target_dir, 'xkt') do |target_file|+ Open3.capture2e('gltf2xkt', '-s', gltf_filepath, '-o', target_file)+ end+ end++ ##+ # Call xeokit-metadata+ #+ # @param ifc_filepath {String} Path to the converted IFC model file+ # @param target_dir {String} Path to the temporary output folder+ def convert_metadata(ifc_filepath, target_dir)+ Rails.logger.debug { "Retrieving metadata of #{ifc_model.inspect}" }++ convert!(ifc_filepath, target_dir, 'json') do |target_file|+ Open3.capture2e('xeokit-metadata', ifc_filepath, target_file)+ end+ end++ ##+ # Build input filename and target filename+ def convert!(source_file, target_dir, ext)+ filename = File.basename(source_file, '.*')+ target_filename = "#{filename}.#{ext}"+ target_file = File.join(target_dir, target_filename)++ out, status = yield target_file++ if status.exitstatus != 0+ raise "Failed to convert #{filename} to #{ext}: #{out}"+ end++ target_file+ end++ def validate!+ unless self.class.available?+ missing = PIPELINE_COMMANDS - self.class.available_commands+ raise I18n.t('ifc_models.conversion.missing_commands', names: missing.join(", "))+ end++ true+ end+ end+ end+enddiff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/_form.html.erb b/modules/bim/app/views/bim/ifc_models/_form.html.erbsimilarity index 100%rename from modules/ifc_models/app/views/ifc_models/ifc_models/_form.html.erbrename to modules/bim/app/views/bim/ifc_models/_form.html.erbdiff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/_no_default_notice.html.erb b/modules/bim/app/views/bim/ifc_models/_no_default_notice.html.erbsimilarity index 100%rename from modules/ifc_models/app/views/ifc_models/ifc_models/_no_default_notice.html.erbrename to modules/bim/app/views/bim/ifc_models/_no_default_notice.html.erbdiff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/_panels.html.erb b/modules/bim/app/views/bim/ifc_models/_panels.html.erbsimilarity index 100%rename from modules/ifc_models/app/views/ifc_models/ifc_models/_panels.html.erbrename to modules/bim/app/views/bim/ifc_models/_panels.html.erbdiff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/_show_headers.html.erb b/modules/bim/app/views/bim/ifc_models/_show_headers.html.erbsimilarity index 100%rename from modules/ifc_models/app/views/ifc_models/ifc_models/_show_headers.html.erbrename to modules/bim/app/views/bim/ifc_models/_show_headers.html.erbdiff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/_unconverted_notice.html.erb b/modules/bim/app/views/bim/ifc_models/_unconverted_notice.html.erbsimilarity index 100%rename from modules/ifc_models/app/views/ifc_models/ifc_models/_unconverted_notice.html.erbrename to modules/bim/app/views/bim/ifc_models/_unconverted_notice.html.erbdiff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/defaults.html.erb b/modules/bim/app/views/bim/ifc_models/defaults.html.erbsimilarity index 100%rename from modules/ifc_models/app/views/ifc_models/ifc_models/defaults.html.erbrename to modules/bim/app/views/bim/ifc_models/defaults.html.erbdiff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/edit.html.erb b/modules/bim/app/views/bim/ifc_models/edit.html.erbsimilarity index 100%rename from modules/ifc_models/app/views/ifc_models/ifc_models/edit.html.erbrename to modules/bim/app/views/bim/ifc_models/edit.html.erbdiff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/index.html.erb b/modules/bim/app/views/bim/ifc_models/index.html.erbsimilarity index 100%rename from modules/ifc_models/app/views/ifc_models/ifc_models/index.html.erbrename to modules/bim/app/views/bim/ifc_models/index.html.erbdiff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/new.html.erb b/modules/bim/app/views/bim/ifc_models/new.html.erbsimilarity index 100%rename from modules/ifc_models/app/views/ifc_models/ifc_models/new.html.erbrename to modules/bim/app/views/bim/ifc_models/new.html.erbdiff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/show.html.erb b/modules/bim/app/views/bim/ifc_models/show.html.erbsimilarity index 100%rename from modules/ifc_models/app/views/ifc_models/ifc_models/show.html.erbrename to modules/bim/app/views/bim/ifc_models/show.html.erbdiff --git a/modules/bim/app/workers/bim/ifc_models/ifc_conversion_job.rb b/modules/bim/app/workers/bim/ifc_models/ifc_conversion_job.rbnew file mode 100644index 00000000000..c478eff237c--- /dev/null+++ b/modules/bim/app/workers/bim/ifc_models/ifc_conversion_job.rb@@ -0,0 +1,18 @@+module Bim+ module IFCModels+ class IFCConversionJob < ::ApplicationJob+ queue_as :ifc_conversion++ ##+ # Run the conversion of IFC to+ def perform(ifc_model)+ result = ViewConverterService.new(ifc_model).call++ unless result.success?+ errors = result.errors.full_messages.join(". ")+ Rails.logger.error "Failed to convert IFC model #{ifc_model.inspect}: #{errors}"+ end+ end+ end+ end+enddiff --git a/modules/ifc_models/bin/setup_dev.sh b/modules/bim/bin/setup_dev.shsimilarity index 100%rename from modules/ifc_models/bin/setup_dev.shrename to modules/bim/bin/setup_dev.shdiff --git a/modules/bim/config/locales/en.yml b/modules/bim/config/locales/en.ymlindex f05d5d0133e..b958ab0ef75 100644--- a/modules/bim/config/locales/en.yml+++ b/modules/bim/config/locales/en.yml@@ -1,5 +1,7 @@# English strings go here for Rails i18nen:+ bim:+ label_bim: 'BIM'bcf:label_bcf: 'BCF'label_imported_failed: 'Failed imports of BCF topics'@@ -74,9 +76,19 @@ en:bcf_v2_1_text: "Application will receive full read & write access to the OpenProject BCF API v2.1 to perform actions on your behalf."activerecord:+ attributes:+ ifc_models/ifc_model:+ ifc_attachment: "IFC file"+ is_default: "Default model"+ attachments: "IFC file"errors:models:- bcf/viewpoint:+ bim/ifc_models/ifc_model:+ attributes:+ base:+ ifc_attachment_missing: "No ifc file attached."+ invalid_ifc_file: "The provided file is not a valid IFC file."+ bim/bcf/viewpoint:bitmaps_not_writable: "bitmaps is not writable as it is not yet implemented."index_not_integer: "index is not an integer."invalid_clipping_planes: "clipping_planes is invalid."@@ -89,3 +101,31 @@ en:snapshot_type_unsupported: "snapshot_type needs to be either 'png' or 'jpg'."snapshot_data_blank: "snapshot_data needs to be provided."unsupported_key: "An unsupported json property is included."+ ifc_models:+ label_ifc_models: 'IFC models'+ label_new_ifc_model: 'New IFC model'+ label_show_defaults: 'Show defaults'+ label_default_ifc_models: 'Default IFC models'+ label_edit_defaults: 'Edit defaults'+ no_defaults_warning:+ title: 'No IFC model was set as default for this project.'+ check_1: 'Check that you have uploaded at least one IFC model.'+ check_2: 'Check that at least one IFC model is set to "Default".'+ no_results: "No IFC models have been uploaded in this project."+ processing_state:+ label: 'Processing?'+ in_progress: 'In progress'+ completed: 'Completed'+ processing_notice:+ processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'+ flash_messages:+ upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'+ conversion:+ missing_commands: "The following IFC converter commands are missing on this system: %{names}"+ project_module_ifc_models: "IFC models"+ permission_view_ifc_models: "View IFC models"+ permission_manage_ifc_models: "Import and manage IFC models"+ extraction:+ available:+ ifc_convert: "IFC conversion pipeline available"+diff --git a/modules/bim/config/locales/js-en.yml b/modules/bim/config/locales/js-en.ymlindex 92292fad057..fd19702f026 100644--- a/modules/bim/config/locales/js-en.yml+++ b/modules/bim/config/locales/js-en.yml@@ -4,3 +4,11 @@ en:bcf:import: 'Import'export: 'Export'+ ifc_models:+ models:+ default: 'Default IFC models'+ manage: 'Manage models'+ views:+ list: 'List only'+ viewer: 'Viewer only'+ split: 'Viewer and list'diff --git a/modules/bim/config/routes.rb b/modules/bim/config/routes.rbindex 3601f241840..9f665ee6b85 100644--- a/modules/bim/config/routes.rb+++ b/modules/bim/config/routes.rb@@ -41,4 +41,19 @@ OpenProject::Application.routes.draw doget 'bcf_issues', to: 'bcf/issues#redirect_to_bcf_issues_list', as: :work_packagesendend++ scope '', as: 'ifc_models' do+ scope 'projects/:project_id', as: 'project' do+ resources :ifc_models, except: [:show], controller: 'ifc_models/ifc_models' do+ collection do+ get 'defaults(/*state)', action: :defaults+ get 'list(/*state)', action: :defaults+ end++ member do+ get 'show(/*state)', action: :show+ end+ end+ end+ endenddiff --git a/modules/ifc_models/db/migrate/20191029155327_add_ifc_models_plugin.rb b/modules/bim/db/migrate/20191029155327_add_ifc_models_plugin.rbsimilarity index 100%rename from modules/ifc_models/db/migrate/20191029155327_add_ifc_models_plugin.rbrename to modules/bim/db/migrate/20191029155327_add_ifc_models_plugin.rbdiff --git a/modules/ifc_models/db/migrate/20191114090353_add_is_default_to_ifc_models.rb b/modules/bim/db/migrate/20191114090353_add_is_default_to_ifc_models.rbsimilarity index 100%rename from modules/ifc_models/db/migrate/20191114090353_add_is_default_to_ifc_models.rbrename to modules/bim/db/migrate/20191114090353_add_is_default_to_ifc_models.rbdiff --git a/modules/bim/lib/open_project/bim/engine.rb b/modules/bim/lib/open_project/bim/engine.rbindex a1386717225..be94e646702 100644--- a/modules/bim/lib/open_project/bim/engine.rb+++ b/modules/bim/lib/open_project/bim/engine.rb@@ -42,12 +42,18 @@ module OpenProject::Bimdefault: {}} do- project_module :bcf do+ project_module :bim do+ permission :view_ifc_models,+ { 'bim/ifc_models/ifc_models': %i[index show defaults] }+ permission :manage_ifc_models,+ { 'bim/ifc_models/ifc_models': %i[index show destroy edit update create new] },+ dependencies: %i[view_ifc_models]+permission :view_linked_issues,- { 'bcf/issues': %i[index] },+ { 'bim/bcf/issues': %i[index] },dependencies: %i[view_work_packages]permission :manage_bcf,- { 'bcf/issues': %i[index upload prepare_import configure_import perform_import] },+ { 'bim/bcf/issues': %i[index upload prepare_import configure_import perform_import] },dependencies: %i[view_linked_issuesview_work_packagesadd_work_packages@@ -57,18 +63,25 @@ module OpenProject::BimOpenProject::AccessControl.permission(:view_work_packages).actions << 'bcf/issues/redirect_to_bcf_issues_list'- rename_menu_item :project_menu,- :work_packages,- { url: Proc.new { |project| project.module_enabled?(:bcf) ?- { controller: 'bcf/issues', action: 'redirect_to_bcf_issues_list' } :- { controller: '/work_packages', action: 'index' } },- caption: Proc.new { |project| project.module_enabled?(:bcf) ? I18n.t(:'bcf.label_bcf') : I18n.t(:label_work_package_plural) },- icon: Proc.new { |project| project.module_enabled?(:bcf) ? 'icon2 icon-bcf' : 'icon2 icon-view-timeline' },- badge: Proc.new { |project| project.module_enabled?(:bcf) ? 'bcf.new_badge' : nil } }+ ::Redmine::MenuManager.map(:project_menu) do |menu|+ menu.push(:ifc_models,+ { controller: '/bim/ifc_models/ifc_models', action: 'defaults' },+ caption: :'bim.label_bim',+ param: :project_id,+ after: :work_packages,+ icon: 'icon2 icon-ifc',+ badge: :label_new)++ menu.push :ifc_viewer_panels,+ { controller: '/bim/ifc_models/ifc_models', action: 'defaults' },+ param: :project_id,+ parent: :ifc_models,+ partial: '/bim/ifc_models/ifc_models/panels'+ endend- assets %w(bcf/bcf.css)+ assets %w(bim/bcf.css bim/ifc_viewer/generic.css)patches %i[WorkPackage Type Journal]@@ -139,17 +152,21 @@ module OpenProject::Bim"#{project(project_id)}/bcf_xml"end- initializer 'bcf.register_hooks' do+ config.to_prepare do+ require 'open_project/ifc_models/hooks'+ end++ initializer 'bim.bcf.register_hooks' do# don't use require_dependency to not reload hooks in development moderequire 'open_project/xls_export/hooks/work_package_hook.rb'end- initializer 'bcf.register_mimetypes' do+ initializer 'bim.bcf.register_mimetypes' doMime::Type.register "application/octet-stream", :bcf unless Mime::Type.lookup_by_extension(:bcf)Mime::Type.register "application/octet-stream", :bcfzip unless Mime::Type.lookup_by_extension(:bcfzip)end- initializer 'bcf.add_api_scope' do+ initializer 'bim.bcf.add_api_scope' doDoorkeeper.configuration.scopes.add(:bcf_v2_1)module OpenProject::Authentication::Scopediff --git a/modules/ifc_models/lib/open_project/ifc_models/hooks.rb b/modules/bim/lib/open_project/bim/hooks.rbsimilarity index 91%rename from modules/ifc_models/lib/open_project/ifc_models/hooks.rbrename to modules/bim/lib/open_project/bim/hooks.rbindex 5bc89a2118a..f37217255e9 100644--- a/modules/ifc_models/lib/open_project/ifc_models/hooks.rb+++ b/modules/bim/lib/open_project/bim/hooks.rb@@ -26,7 +26,7 @@# See docs/COPYRIGHT.rdoc for more details.#+-module OpenProject::IFCModels::Hooks+module OpenProject::Bim::Hooksclass Hook < Redmine::Hook::Listenerinclude ActionView::Helpers::TagHelperinclude ActionView::Context@@ -34,7 +34,7 @@ module OpenProject::IFCModels::Hooksdef admin_information_checklist(*)[- [:'extraction.available.ifc_convert', ::IFCModels::ViewConverterService.available?]+ [:'extraction.available.ifc_convert', ::Bim::IFCModels::ViewConverterService.available?]]endenddiff --git a/modules/ifc_models/lib/open_project/ifc_models/patches/project_patch.rb b/modules/bim/lib/open_project/bim/patches/project_patch.rbsimilarity index 90%rename from modules/ifc_models/lib/open_project/ifc_models/patches/project_patch.rbrename to modules/bim/lib/open_project/bim/patches/project_patch.rbindex eb301c6b85b..9e71e81ea48 100644--- a/modules/ifc_models/lib/open_project/ifc_models/patches/project_patch.rb+++ b/modules/bim/lib/open_project/bim/patches/project_patch.rb@@ -28,10 +28,10 @@require_dependency 'work_package'-module OpenProject::IFCModels::Patches::ProjectPatch+module OpenProject::Bim::Patches::ProjectPatchdef self.included(base)base.class_eval do- has_many :ifc_models, class_name: 'IFCModels::IFCModel', foreign_key: 'project_id'+ has_many :ifc_models, class_name: 'Bim::IFCModels::IFCModel', foreign_key: 'project_id'endendenddiff --git a/modules/bim/lib/open_project/bim/patches/setting_seeder_patch.rb b/modules/bim/lib/open_project/bim/patches/setting_seeder_patch.rbindex 7b3e8b67d1b..3432f737534 100644--- a/modules/bim/lib/open_project/bim/patches/setting_seeder_patch.rb+++ b/modules/bim/lib/open_project/bim/patches/setting_seeder_patch.rb@@ -35,8 +35,8 @@ module OpenProject::Bim::Patches::SettingSeederPatchdef dataoriginal_data = super- unless original_data['default_projects_modules'].include? 'bcf'- original_data['default_projects_modules'] << 'bcf'+ unless original_data['default_projects_modules'].include? 'bim'+ original_data['default_projects_modules'] << 'bim'endoriginal_datadiff --git a/modules/ifc_models/spec/contracts/ifc_models/create_contract_spec.rb b/modules/bim/spec/contracts/ifc_models/create_contract_spec.rbsimilarity index 100%rename from modules/ifc_models/spec/contracts/ifc_models/create_contract_spec.rbrename to modules/bim/spec/contracts/ifc_models/create_contract_spec.rbdiff --git a/modules/ifc_models/spec/contracts/ifc_models/shared_contract_examples.rb b/modules/bim/spec/contracts/ifc_models/shared_contract_examples.rbsimilarity index 100%rename from modules/ifc_models/spec/contracts/ifc_models/shared_contract_examples.rbrename to modules/bim/spec/contracts/ifc_models/shared_contract_examples.rbdiff --git a/modules/ifc_models/spec/contracts/ifc_models/update_contract_spec.rb b/modules/bim/spec/contracts/ifc_models/update_contract_spec.rbsimilarity index 100%rename from modules/ifc_models/spec/contracts/ifc_models/update_contract_spec.rbrename to modules/bim/spec/contracts/ifc_models/update_contract_spec.rbdiff --git a/modules/ifc_models/spec/factories/ifc_model_factory.rb b/modules/bim/spec/factories/ifc_model_factory.rbsimilarity index 100%rename from modules/ifc_models/spec/factories/ifc_model_factory.rbrename to modules/bim/spec/factories/ifc_model_factory.rbdiff --git a/modules/ifc_models/spec/features/model_management_spec.rb b/modules/bim/spec/features/model_management_spec.rbsimilarity index 100%rename from modules/ifc_models/spec/features/model_management_spec.rbrename to modules/bim/spec/features/model_management_spec.rbdiff --git a/modules/ifc_models/spec/features/model_viewer_spec.rb b/modules/bim/spec/features/model_viewer_spec.rbsimilarity index 100%rename from modules/ifc_models/spec/features/model_viewer_spec.rbrename to modules/bim/spec/features/model_viewer_spec.rbdiff --git a/modules/ifc_models/spec/features/show_default_spec.rb b/modules/bim/spec/features/show_default_spec.rbsimilarity index 100%rename from modules/ifc_models/spec/features/show_default_spec.rbrename to modules/bim/spec/features/show_default_spec.rbdiff --git a/modules/ifc_models/spec/fixtures/files/minimal.ifc b/modules/bim/spec/fixtures/files/minimal.ifcsimilarity index 100%rename from modules/ifc_models/spec/fixtures/files/minimal.ifcrename to modules/bim/spec/fixtures/files/minimal.ifcdiff --git a/modules/ifc_models/spec/fixtures/files/minimal.json b/modules/bim/spec/fixtures/files/minimal.jsonsimilarity index 100%rename from modules/ifc_models/spec/fixtures/files/minimal.jsonrename to modules/bim/spec/fixtures/files/minimal.jsondiff --git a/modules/ifc_models/spec/fixtures/files/minimal.xkt b/modules/bim/spec/fixtures/files/minimal.xktsimilarity index 100%rename from modules/ifc_models/spec/fixtures/files/minimal.xktrename to modules/bim/spec/fixtures/files/minimal.xktdiff --git a/modules/ifc_models/spec/models/ifc_model_spec.rb b/modules/bim/spec/models/ifc_model_spec.rbsimilarity index 100%rename from modules/ifc_models/spec/models/ifc_model_spec.rbrename to modules/bim/spec/models/ifc_model_spec.rbdiff --git a/modules/ifc_models/spec/services/ifc_models/create_service_spec.rb b/modules/bim/spec/services/ifc_models/create_service_spec.rbsimilarity index 100%rename from modules/ifc_models/spec/services/ifc_models/create_service_spec.rbrename to modules/bim/spec/services/ifc_models/create_service_spec.rbdiff --git a/modules/ifc_models/spec/services/ifc_models/set_attributes_service_spec.rb b/modules/bim/spec/services/ifc_models/set_attributes_service_spec.rbsimilarity index 100%rename from modules/ifc_models/spec/services/ifc_models/set_attributes_service_spec.rbrename to modules/bim/spec/services/ifc_models/set_attributes_service_spec.rbdiff --git a/modules/ifc_models/spec/services/ifc_models/update_service_spec.rb b/modules/bim/spec/services/ifc_models/update_service_spec.rbsimilarity index 100%rename from modules/ifc_models/spec/services/ifc_models/update_service_spec.rbrename to modules/bim/spec/services/ifc_models/update_service_spec.rbdiff --git a/modules/ifc_models/spec/services/ifc_models/view_conversion_service_spec.rb b/modules/bim/spec/services/ifc_models/view_conversion_service_spec.rbsimilarity index 100%rename from modules/ifc_models/spec/services/ifc_models/view_conversion_service_spec.rbrename to modules/bim/spec/services/ifc_models/view_conversion_service_spec.rbdiff --git a/modules/ifc_models/spec/support/pages/ifc_models/index.rb b/modules/bim/spec/support/pages/ifc_models/index.rbsimilarity index 100%rename from modules/ifc_models/spec/support/pages/ifc_models/index.rbrename to modules/bim/spec/support/pages/ifc_models/index.rbdiff --git a/modules/ifc_models/spec/support/pages/ifc_models/show.rb b/modules/bim/spec/support/pages/ifc_models/show.rbsimilarity index 100%rename from modules/ifc_models/spec/support/pages/ifc_models/show.rbrename to modules/bim/spec/support/pages/ifc_models/show.rbdiff --git a/modules/ifc_models/spec/support/pages/ifc_models/show_default.rb b/modules/bim/spec/support/pages/ifc_models/show_default.rbsimilarity index 100%rename from modules/ifc_models/spec/support/pages/ifc_models/show_default.rbrename to modules/bim/spec/support/pages/ifc_models/show_default.rbdiff --git a/modules/ifc_models/spec/workers/ifc_conversion_job_spec.rb b/modules/bim/spec/workers/ifc_conversion_job_spec.rbsimilarity index 100%rename from modules/ifc_models/spec/workers/ifc_conversion_job_spec.rbrename to modules/bim/spec/workers/ifc_conversion_job_spec.rbdiff --git a/modules/ifc_models/Gemfile b/modules/ifc_models/Gemfiledeleted file mode 100644index 851fabc21dd..00000000000--- a/modules/ifc_models/Gemfile+++ /dev/null@@ -1,2 +0,0 @@-source 'https://rubygems.org'-gemspecdiff --git a/modules/ifc_models/app/contracts/ifc_models/base_contract.rb b/modules/ifc_models/app/contracts/ifc_models/base_contract.rbdeleted file mode 100644index 9be2f216f4c..00000000000--- a/modules/ifc_models/app/contracts/ifc_models/base_contract.rb+++ /dev/null@@ -1,87 +0,0 @@-#-- copyright-# OpenProject is a project management system.-# Copyright (C) 2012-2017 the OpenProject Foundation (OPF)-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License version 3.-#-# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang-# Copyright (C) 2010-2013 the ChiliProject Team-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License-# as published by the Free Software Foundation; either version 2-# of the License, or (at your option) any later version.-#-# This program is distributed in the hope that it will be useful,-# but WITHOUT ANY WARRANTY; without even the implied warranty of-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-# GNU General Public License for more details.-#-# You should have received a copy of the GNU General Public License-# along with this program; if not, write to the Free Software-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#-# See doc/COPYRIGHT.rdoc for more details.-#++--module IFCModels- class BaseContract < ::ModelContract- delegate :project,- :new_record?,- to: :model-- attribute :title- attribute :is_default- attribute :project-- def self.model- ::IFCModels::IFCModel- end-- def validate- user_allowed_to_manage- user_is_uploader- ifc_attachment_existent- ifc_attachment_is_ifc- uploader_is_ifc_attachment_author-- super- end-- def user_allowed_to_manage- if model.project && !user.allowed_to?(:manage_ifc_models, model.project)- errors.add :base, :error_unauthorized- end- end-- def user_is_uploader- if model.uploader_id_changed? && model.uploader != user- errors.add :uploader_id, :invalid- end- end-- def ifc_attachment_existent- errors.add :base, :ifc_attachment_missing unless model.ifc_attachment- end-- def ifc_attachment_is_ifc- return unless model.ifc_attachment&.new_record?-- firstline = File.open(model.ifc_attachment.file.file.path, &:readline)-- begin- unless firstline.match?(/^ISO-10303-21;/)- errors.add :base, :invalid_ifc_file- end- rescue ArgumentError- errors.add :base, :invalid_ifc_file- end- end-- def uploader_is_ifc_attachment_author- errors.add :uploader_id, :invalid if model.ifc_attachment && model.uploader != model.ifc_attachment.author- end- end-enddiff --git a/modules/ifc_models/app/controllers/ifc_models/base_controller.rb b/modules/ifc_models/app/controllers/ifc_models/base_controller.rbdeleted file mode 100644index 96270a4b95f..00000000000--- a/modules/ifc_models/app/controllers/ifc_models/base_controller.rb+++ /dev/null@@ -1,4 +0,0 @@-module ::IFCModels- class BaseController < ApplicationController- end-enddiff --git a/modules/ifc_models/app/controllers/ifc_models/ifc_models_controller.rb b/modules/ifc_models/app/controllers/ifc_models/ifc_models_controller.rbdeleted file mode 100644index fd8f7765bce..00000000000--- a/modules/ifc_models/app/controllers/ifc_models/ifc_models_controller.rb+++ /dev/null@@ -1,128 +0,0 @@-#-- encoding: UTF-8--#-- copyright-# OpenProject is a project management system.-# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License version 3.-#-# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang-# Copyright (C) 2010-2013 the ChiliProject Team-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License-# as published by the Free Software Foundation; either version 2-# of the License, or (at your option) any later version.-#-# This program is distributed in the hope that it will be useful,-# but WITHOUT ANY WARRANTY; without even the implied warranty of-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-# GNU General Public License for more details.-#-# You should have received a copy of the GNU General Public License-# along with this program; if not, write to the Free Software-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#-# See docs/COPYRIGHT.rdoc for more details.-#++--module ::IFCModels- class IFCModelsController < BaseController- helper_method :gon-- before_action :find_project_by_project_id, only: %i[index new create show defaults edit update destroy]- before_action :find_ifc_model_object, except: %i[index new create]- before_action :find_all_ifc_models, only: %i[show defaults index]-- before_action :authorize-- menu_item :ifc_models-- def index- @ifc_models = @ifc_models- .includes(:project, :uploader)- end-- def new- @ifc_model = @project.ifc_models.build- end-- def edit; end-- def show; end-- def defaults- @default_ifc_models = @ifc_models.defaults-- if @default_ifc_models.empty?- redirect_to action: :index- end- end-- def create- combined_params = permitted_model_params- .to_h- .reverse_merge(project: @project)-- call = ::IFCModels::CreateService- .new(user: current_user)- .call(combined_params)-- @ifc_model = call.result-- if call.success?- flash[:notice] = t('ifc_models.flash_messages.upload_successful')- redirect_to action: :index- else- @errors = call.errors- render action: :new- end- end-- def update- combined_params = permitted_model_params- .to_h- .reverse_merge(project: @project)-- call = ::IFCModels::UpdateService- .new(user: current_user, model: @ifc_model)- .call(combined_params)-- @ifc_model = call.result-- if call.success?- flash[:notice] = t(:notice_successful_update)- redirect_to action: :index- else- @errors = call.errors- render action: :edit- end- end-- def destroy- @ifc_model.destroy- redirect_to action: :index- end-- private-- def find_all_ifc_models- @ifc_models = @project- .ifc_models- .includes(:attachments)- .order('created_at ASC')- end-- def permitted_model_params- params- .require(:ifc_models_ifc_model)- .permit('title', 'ifc_attachment', 'is_default')- end-- def find_ifc_model_object- @ifc_model = IFCModels::IFCModel.find_by(id: params[:id])- end- end-enddiff --git a/modules/ifc_models/app/helpers/ifc_models_helper.rb b/modules/ifc_models/app/helpers/ifc_models_helper.rbdeleted file mode 100644index c2f956b9b45..00000000000--- a/modules/ifc_models/app/helpers/ifc_models_helper.rb+++ /dev/null@@ -1,55 +0,0 @@-module IFCModelsHelper- def provision_gon_for_ifc_model(all_models, models_to_load = [])- all_converted_models = converted_ifc_models(all_models)-- gon.ifc_models = {- models: gon_ifc_model_models(all_converted_models, models_to_load),- default_models: gon_ifc_default_models(all_converted_models, models_to_load),- projects: [{ id: @project.identifier, name: @project.name }],- xkt_attachment_ids: gon_ifc_model_xkt_attachment_ids(all_converted_models),- metadata_attachment_ids: gon_ifc_model_metadata_attachment_ids(all_converted_models),- permissions: {- manage: User.current.allowed_to?(:manage_ifc_models, @project)- }- }- end-- def converted_ifc_models(ifc_models)- ifc_models.select(&:converted?)- end-- def gon_ifc_model_models(all_models, models_to_load)- all_converted_models = converted_ifc_models(all_models)-- all_converted_models.map do |ifc_model|- {- id: ifc_model.id,- name: ifc_model.title,- saoEnabled: models_to_load.include?(ifc_model)- }- end- end-- def gon_ifc_default_models(all_models, models_to_load)- all_converted_models = converted_ifc_models(all_models)- default_models = []-- all_converted_models.map do |ifc_model|- default_models << ifc_model.id.to_s if models_to_load.include?(ifc_model)- end- default_models- end-- def gon_ifc_model_xkt_attachment_ids(models)- Hash[models.map { |model| [model.id, model.xkt_attachment.id] }]- end-- def gon_ifc_model_metadata_attachment_ids(models)- Hash[- models.map do |model|- [model.id,- model.metadata_attachment.id]- end- ]- end-enddiff --git a/modules/ifc_models/app/models/ifc_models/ifc_model.rb b/modules/ifc_models/app/models/ifc_models/ifc_model.rbdeleted file mode 100644index 1d1a7c3c8ab..00000000000--- a/modules/ifc_models/app/models/ifc_models/ifc_model.rb+++ /dev/null@@ -1,52 +0,0 @@-module IFCModels- class IFCModel < ActiveRecord::Base- acts_as_attachable delete_permission: :manage_ifc_models, view_permission: :view_ifc_models-- belongs_to :project- belongs_to :uploader, class_name: 'User', foreign_key: 'uploader_id'-- validates :title, presence: true- validates :project, presence: true-- scope :defaults, -> { where(is_default: true) }-- %i(ifc xkt metadata).each do |name|- define_method "#{name}_attachment" do- get_attached_type(name)- end-- define_method "#{name}_attachment=" do |file|- if name == :ifc- # Also delete xkt and metadata- delete_attachment :xkt- delete_attachment :metadata- end-- delete_attachment name- attach_files('first' => { 'file' => file, 'description' => name })- end- end-- def converted?- xkt_attachment.present? && metadata_attachment.present?- end-- private-- ##- # Delete the given named description- def get_attached_type(key)- if attachments.loaded?- attachments.detect { |a| a.description == key.to_s && !a.marked_for_destruction? }- else- attachments.find_by_description(key.to_s)- end- end-- ##- # Delete the given named description- def delete_attachment(key)- get_attached_type(key)&.destroy- end- end-enddiff --git a/modules/ifc_models/app/services/ifc_models/view_converter_service.rb b/modules/ifc_models/app/services/ifc_models/view_converter_service.rbdeleted file mode 100644index 9a5952efdca..00000000000--- a/modules/ifc_models/app/services/ifc_models/view_converter_service.rb+++ /dev/null@@ -1,164 +0,0 @@-#-- copyright-# OpenProject is a project management system.-# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License version 3.-#-# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang-# Copyright (C) 2010-2013 the ChiliProject Team-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License-# as published by the Free Software Foundation; either version 2-# of the License, or (at your option) any later version.-#-# This program is distributed in the hope that it will be useful,-# but WITHOUT ANY WARRANTY; without even the implied warranty of-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-# GNU General Public License for more details.-#-# You should have received a copy of the GNU General Public License-# along with this program; if not, write to the Free Software-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#-# See docs/COPYRIGHT.rdoc for more details.-#+-require 'open3'--module IFCModels- class ViewConverterService- attr_reader :ifc_model, :errors-- PIPELINE_COMMANDS ||= %w[IfcConvert COLLADA2GLTF gltf2xkt xeokit-metadata].freeze-- def initialize(ifc_model)- @errors = ActiveModel::Errors.new(self)- @ifc_model = ifc_model- end-- ##- # Check availability of the pipeline- def self.available?- available_commands.length == PIPELINE_COMMANDS.length- end-- def self.available_commands- @available_commands ||= begin- PIPELINE_COMMANDS.select do |command|- _, status = Open3.capture2e('which', command)- status.exitstatus.zero?- end- end- end-- def call- validate!-- Dir.mktmpdir do |dir|- perform_conversion!(dir)-- ServiceResult.new(success: ifc_model.save, result: ifc_model)- end- rescue StandardError => e- OpenProject.logger.error("Failed to convert IFC to XKT", exception: e)- ServiceResult.new(success: false).tap { |r| r.errors.add(:base, e.message) }- end-- def perform_conversion!(dir)- # Step 1: IfcConvert- ifc_file = ifc_model.ifc_attachment.diskfile.path- collada_file = convert_to_collada(ifc_file, dir)-- # Step 2: Collada2GLTF- gltf_file = convert_to_gltf(collada_file, dir)-- # Step 3: Convert to XKT- xkt_file = convert_to_xkt(gltf_file, dir)- ifc_model.xkt_attachment = File.new xkt_file-- # Convert metadata- metadata_file = convert_metadata(ifc_file, dir)- ifc_model.metadata_attachment = File.new metadata_file- end-- ##- # Call IfcConvert with an IFC file to output an identically-named- # DAE collada file.- #- # @param ifc_filepath {String} Path to the IFC model file- # @param target_dir {String} Path to the temporary output folder- def convert_to_collada(ifc_filepath, target_dir)- Rails.logger.debug { "Converting #{ifc_model.inspect} to DAE" }-- convert!(ifc_filepath, target_dir, 'dae') do |target_file|- Open3.capture2e('IfcConvert', '--use-element-guids', '--no-progress', '--verbose', ifc_filepath, target_file)- end- end-- ##- # Call COLLADA2GLTF with the converted DAE file.- #- # @param dae_filepath {String} Path to the converted DAE model file- # @param target_dir {String} Path to the temporary output folder- def convert_to_gltf(dae_filepath, target_dir)- Rails.logger.debug { "Converting #{ifc_model.inspect} to GLTF" }-- convert!(dae_filepath, target_dir, 'gltf') do |target_file|- Open3.capture2e('COLLADA2GLTF', '-i', dae_filepath, '-o', target_file)- end- end-- ##- # Call gltf2xkt with the converted gltf file.- #- # @param gltf_filepath {String} Path to the converted GLTF model file- # @param target_dir {String} Path to the temporary output folder- def convert_to_xkt(gltf_filepath, target_dir)- Rails.logger.debug { "Converting #{ifc_model.inspect} to XKT" }-- convert!(gltf_filepath, target_dir, 'xkt') do |target_file|- Open3.capture2e('gltf2xkt', '-s', gltf_filepath, '-o', target_file)- end- end-- ##- # Call xeokit-metadata- #- # @param ifc_filepath {String} Path to the converted IFC model file- # @param target_dir {String} Path to the temporary output folder- def convert_metadata(ifc_filepath, target_dir)- Rails.logger.debug { "Retrieving metadata of #{ifc_model.inspect}" }-- convert!(ifc_filepath, target_dir, 'json') do |target_file|- Open3.capture2e('xeokit-metadata', ifc_filepath, target_file)- end- end-- ##- # Build input filename and target filename- def convert!(source_file, target_dir, ext)- filename = File.basename(source_file, '.*')- target_filename = "#{filename}.#{ext}"- target_file = File.join(target_dir, target_filename)-- out, status = yield target_file-- if status.exitstatus != 0- raise "Failed to convert #{filename} to #{ext}: #{out}"- end-- target_file- end-- def validate!- unless self.class.available?- missing = PIPELINE_COMMANDS - self.class.available_commands- raise I18n.t('ifc_models.conversion.missing_commands', names: missing.join(", "))- end-- true- end- end-enddiff --git a/modules/ifc_models/app/workers/ifc_models/ifc_conversion_job.rb b/modules/ifc_models/app/workers/ifc_models/ifc_conversion_job.rbdeleted file mode 100644index 43a9eb6cf01..00000000000--- a/modules/ifc_models/app/workers/ifc_models/ifc_conversion_job.rb+++ /dev/null@@ -1,16 +0,0 @@-module IFCModels- class IFCConversionJob < ::ApplicationJob- queue_as :ifc_conversion-- ##- # Run the conversion of IFC to- def perform(ifc_model)- result = ViewConverterService.new(ifc_model).call-- unless result.success?- errors = result.errors.full_messages.join(". ")- Rails.logger.error "Failed to convert IFC model #{ifc_model.inspect}: #{errors}"- end- end- end-enddiff --git a/modules/ifc_models/config/locales/crowdin/ar.yml b/modules/ifc_models/config/locales/crowdin/ar.ymldeleted file mode 100644index 6462685059f..00000000000--- a/modules/ifc_models/config/locales/crowdin/ar.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-ar:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'بصدد الإنجاز'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/bg.yml b/modules/ifc_models/config/locales/crowdin/bg.ymldeleted file mode 100644index bbf1c5ee72c..00000000000--- a/modules/ifc_models/config/locales/crowdin/bg.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-bg:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'В изпълнение'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/ca.yml b/modules/ifc_models/config/locales/crowdin/ca.ymldeleted file mode 100644index 197fa1fd5ee..00000000000--- a/modules/ifc_models/config/locales/crowdin/ca.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-ca:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'En progrés'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/cs.yml b/modules/ifc_models/config/locales/crowdin/cs.ymldeleted file mode 100644index 7e36cfbc7c3..00000000000--- a/modules/ifc_models/config/locales/crowdin/cs.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-cs:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'Probíhá'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/da.yml b/modules/ifc_models/config/locales/crowdin/da.ymldeleted file mode 100644index 7314cb9c515..00000000000--- a/modules/ifc_models/config/locales/crowdin/da.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-da:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'Igangværende'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/de.yml b/modules/ifc_models/config/locales/crowdin/de.ymldeleted file mode 100644index 0a7c3272c20..00000000000--- a/modules/ifc_models/config/locales/crowdin/de.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-de:- ifc_models:- label_ifc_models: 'IFC-Modelle'- label_new_ifc_model: 'Neues IFC-Modell'- label_show_defaults: 'Standard-Modelle anzeigen'- label_default_ifc_models: 'Standard IFC-Modelle'- label_edit_defaults: 'Standard-Modelle bearbeiten'- no_defaults_warning:- title: 'Es wurde kein IFC-Modell als Standard für dieses Projekt festgelegt.'- check_1: 'Überprüfen Sie, dass Sie mindestens ein IFC-Modell hochgeladen haben.'- check_2: 'Überprüfen Sie, dass mindestens ein IFC-Modell als "Standard" gesetzt ist.'- no_results: "Es wurden keine IFC-Modelle in diesem Projekt hochgeladen."- processing_state:- label: 'Verarbeitung?'- in_progress: 'In Bearbeitung'- completed: 'Abgeschlossen'- processing_notice:- processing_default: 'Die folgenden Standard-IFC-Modelle werden noch verarbeitet und sind daher noch nicht verfügbar:'- flash_messages:- upload_successful: 'Upload erfolgreich. Es wird nun bearbeitet und kann in ein paar Minuten verwendet werden.'- conversion:- missing_commands: "Die folgenden IFC-Konverterbefehle fehlen auf diesem System: %{names}"- project_module_ifc_models: "IFC-Modelle"- permission_view_ifc_models: "Neues IFC-Modell"- permission_manage_ifc_models: "IFC-Modelle importieren und verwalten"- extraction:- available:- ifc_convert: "IFC Konvertierungs-Pipeline verfügbar"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC-Datei"- is_default: "Standardmodell"- attachments: "IFC-Datei"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "Keine IFC Datei angehängt."- invalid_ifc_file: "Die angegebene Datei ist keine gültige IFC-Datei."diff --git a/modules/ifc_models/config/locales/crowdin/el.yml b/modules/ifc_models/config/locales/crowdin/el.ymldeleted file mode 100644index b80d71e0e11..00000000000--- a/modules/ifc_models/config/locales/crowdin/el.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-el:- ifc_models:- label_ifc_models: 'Μοντέλα IFC'- label_new_ifc_model: 'Νέο μοντέλο IFC'- label_show_defaults: 'Εμφάνιση προεπιλογών'- label_default_ifc_models: 'Προεπιλεγμένα μοντέλα IFC'- label_edit_defaults: 'Επεξεργασία προεπιλογών'- no_defaults_warning:- title: 'Δεν έχει οριστεί μοντέλο IFC ως προεπιλογή για αυτό το έργο.'- check_1: 'Ελέγξτε ότι έχετε μεταφορτώσει τουλάχιστον ένα μοντέλο IFC.'- check_2: 'Ελέγξτε ότι τουλάχιστον ένα μοντέλο IFC είναι ορισμένο ως "Προεπιλογή".'- no_results: "Δεν υπάρχουν μοντέλα IFC που να έχουν μεταφορτωθεί σε αυτό το έργο."- processing_state:- label: 'Γίνεται επεξεργασία;'- in_progress: 'Σε εξέλιξη'- completed: 'Ολοκληρωμένο'- processing_notice:- processing_default: 'Το ακόλουθο προεπιλεγμένο μοντέλο IFC επεξεργάζεται και γι''αυτό δεν είναι διαθέσιμο, ακόμη:'- flash_messages:- upload_successful: 'Η μεταφόρτωση ολοκληρώθηκε επιτυχώς. Τώρα θα επεξεργαστεί και θα είναι έτοιμο για χρήση σε μερικά λεπτά.'- conversion:- missing_commands: "Οι ακόλουθες εντολές του μετατροπέα IFC λείπουν από αυτό το σύστημα: %{names}"- project_module_ifc_models: "Μοντέλα IFC"- permission_view_ifc_models: "Εμφάνιση μοντέλων IFC"- permission_manage_ifc_models: "Εισαγωγή και διαχείριση μοντέλων IFC"- extraction:- available:- ifc_convert: "Διαθέσιμο pipeline μετατροπής IFC"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "Αρχείο IFC"- is_default: "Προεπιλεγμένο μοντέλο"- attachments: "Αρχείο IFC"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "Δεν υπάρχει συνημμένο ifc αρχείο."- invalid_ifc_file: "Το δοθέν αρχείο δεν είναι ένα έγκυρο αρχείο IFC."diff --git a/modules/ifc_models/config/locales/crowdin/es.yml b/modules/ifc_models/config/locales/crowdin/es.ymldeleted file mode 100644index 476a57cf5b0..00000000000--- a/modules/ifc_models/config/locales/crowdin/es.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-es:- ifc_models:- label_ifc_models: 'Modelos IFC'- label_new_ifc_model: 'Nuevo modelo IFC'- label_show_defaults: 'Mostrar valores predeterminados'- label_default_ifc_models: 'Modelos IFC predeterminados'- label_edit_defaults: 'Editar valores predeterminados'- no_defaults_warning:- title: 'No se ha definido ningún modelo IFC como predeterminado para este proyecto.'- check_1: 'Asegúrese de que ha cargado como mínimo un modelo IFC.'- check_2: 'Asegúrese de que se haya definido como mínimo un modelo IFC como «Predeterminado».'- no_results: "No se ha cargado ningún modelo IFC en este proyecto."- processing_state:- label: '¿Procesándose?'- in_progress: 'En progreso'- completed: 'Completado'- processing_notice:- processing_default: 'Los modelos IFC predeterminados aún se están procesando y, por lo tanto, no están disponibles:'- flash_messages:- upload_successful: 'Carga completada correctamente. Ahora se procesarán y estarán listos para usarse en un par de minutos.'- conversion:- missing_commands: "Faltan los siguientes comandos del convertidor de IFC en este sistema: %{names}"- project_module_ifc_models: "Modelos IFC"- permission_view_ifc_models: "Ver modelos IFC"- permission_manage_ifc_models: "Importar y administrar modelos IFC"- extraction:- available:- ifc_convert: "Canalización de conversión de IFC disponible"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "Archivo IFC"- is_default: "Modelo predeterminado"- attachments: "Archivo IFC"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No se adjuntó ningún archivo IFC."- invalid_ifc_file: "El archivo proporcionado no es un archivo IFC válido."diff --git a/modules/ifc_models/config/locales/crowdin/fi.yml b/modules/ifc_models/config/locales/crowdin/fi.ymldeleted file mode 100644index fded790ffc2..00000000000--- a/modules/ifc_models/config/locales/crowdin/fi.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-fi:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'Käynnissä'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/fil.yml b/modules/ifc_models/config/locales/crowdin/fil.ymldeleted file mode 100644index 534f14d683e..00000000000--- a/modules/ifc_models/config/locales/crowdin/fil.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-fil:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'Isinasagawa'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/fr.yml b/modules/ifc_models/config/locales/crowdin/fr.ymldeleted file mode 100644index 13e64e1504e..00000000000--- a/modules/ifc_models/config/locales/crowdin/fr.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-fr:- ifc_models:- label_ifc_models: 'Modèles IFC'- label_new_ifc_model: 'Nouveau modèle IFC'- label_show_defaults: 'Afficher les valeurs par défaut'- label_default_ifc_models: 'Modèles IFC par défaut'- label_edit_defaults: 'Modifier les valeurs par défaut'- no_defaults_warning:- title: 'Aucun modèle IFC n''a été défini comme défaut pour ce projet.'- check_1: 'Vérifiez que vous avez téléversé au moins un modèle IFC.'- check_2: 'Vérifiez qu''au moins un modèle IFC est défini comme « Par défaut ».'- no_results: "Aucun modèle IFC n'a été téléversé dans ce projet."- processing_state:- label: 'En cours de traitement ?'- in_progress: 'En cours'- completed: 'Terminé'- processing_notice:- processing_default: 'Les modèles IFC par défaut suivants sont toujours en cours de traitement et ne sont donc pas encore disponibles :'- flash_messages:- upload_successful: 'Téléversement réussi. Il sera maintenant traité et prêt à être utilisé dans quelques minutes.'- conversion:- missing_commands: "Les commandes de convertisseur IFC suivantes sont manquantes sur ce système : %{names}"- project_module_ifc_models: "Modèles IFC"- permission_view_ifc_models: "Voir les modèles IFC"- permission_manage_ifc_models: "Importer et gérer les modèles IFC"- extraction:- available:- ifc_convert: "Canal de conversion IFC disponible"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "Fichier IFC"- is_default: "Modèle par défaut"- attachments: "Fichier IFC"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "Aucun fichier ifc joint."- invalid_ifc_file: "Le fichier fourni n'est pas un fichier IFC valide."diff --git a/modules/ifc_models/config/locales/crowdin/hr.yml b/modules/ifc_models/config/locales/crowdin/hr.ymldeleted file mode 100644index 528df59609c..00000000000--- a/modules/ifc_models/config/locales/crowdin/hr.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-hr:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'U tijeku'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/hu.yml b/modules/ifc_models/config/locales/crowdin/hu.ymldeleted file mode 100644index e732339fb9b..00000000000--- a/modules/ifc_models/config/locales/crowdin/hu.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-hu:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'Folyamatban'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/id.yml b/modules/ifc_models/config/locales/crowdin/id.ymldeleted file mode 100644index 0a82c002b15..00000000000--- a/modules/ifc_models/config/locales/crowdin/id.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-id:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'In Progress'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/it.yml b/modules/ifc_models/config/locales/crowdin/it.ymldeleted file mode 100644index 79ce7d647e6..00000000000--- a/modules/ifc_models/config/locales/crowdin/it.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-it:- ifc_models:- label_ifc_models: 'Modelli IFC'- label_new_ifc_model: 'Nuovo modello IFC'- label_show_defaults: 'Mostra predefiniti'- label_default_ifc_models: 'Modelli IFC predefiniti'- label_edit_defaults: 'Modifica predefiniti'- no_defaults_warning:- title: 'Nessun modello IFC impostato come predefinito per questo progetto.'- check_1: 'Verifica di aver caricato almeno un modello IFC.'- check_2: 'Accertati che almeno un modello IFC sia impostato su "Predefinito".'- no_results: "Nessun modello IFC è stato caricato in questo progetto."- processing_state:- label: 'Elaborare?'- in_progress: 'In corso'- completed: 'Completato'- processing_notice:- processing_default: 'I seguenti modelli IFC predefiniti sono ancora in fase di elaborazione e non sono quindi ancora disponibili:'- flash_messages:- upload_successful: 'Caricamento riuscito. Verrà ora elaborato e sarà pronto all''uso tra un paio di minuti.'- conversion:- missing_commands: "I seguenti comandi del convertitore IFC non sono presenti su questo sistema: %{names}"- project_module_ifc_models: "Modelli IFC"- permission_view_ifc_models: "Visualizza modelli IFC"- permission_manage_ifc_models: "Importa e gestisci i modelli IFC"- extraction:- available:- ifc_convert: "È disponibile la pipeline di conversione IFC"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "File IFC"- is_default: "Modello predefinito"- attachments: "File IFC"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "Nessun file ifc allegato."- invalid_ifc_file: "Il file fornito non è un file IFC valido."diff --git a/modules/ifc_models/config/locales/crowdin/ja.yml b/modules/ifc_models/config/locales/crowdin/ja.ymldeleted file mode 100644index 1e7add576ee..00000000000--- a/modules/ifc_models/config/locales/crowdin/ja.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-ja:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: '進行中'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/js-ar.yml b/modules/ifc_models/config/locales/crowdin/js-ar.ymldeleted file mode 100644index 3e7af192d77..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-ar.yml+++ /dev/null@@ -1,6 +0,0 @@-ar:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-bg.yml b/modules/ifc_models/config/locales/crowdin/js-bg.ymldeleted file mode 100644index 93304306cfa..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-bg.yml+++ /dev/null@@ -1,6 +0,0 @@-bg:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-ca.yml b/modules/ifc_models/config/locales/crowdin/js-ca.ymldeleted file mode 100644index e1faabb0b4f..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-ca.yml+++ /dev/null@@ -1,6 +0,0 @@-ca:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-cs.yml b/modules/ifc_models/config/locales/crowdin/js-cs.ymldeleted file mode 100644index bd5f6241a97..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-cs.yml+++ /dev/null@@ -1,6 +0,0 @@-cs:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-da.yml b/modules/ifc_models/config/locales/crowdin/js-da.ymldeleted file mode 100644index 2d19f3c36bd..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-da.yml+++ /dev/null@@ -1,6 +0,0 @@-da:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-de.yml b/modules/ifc_models/config/locales/crowdin/js-de.ymldeleted file mode 100644index dbc77d7fe77..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-de.yml+++ /dev/null@@ -1,6 +0,0 @@-de:- js:- ifc_models:- models:- default: 'Standard IFC-Modelle'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-el.yml b/modules/ifc_models/config/locales/crowdin/js-el.ymldeleted file mode 100644index 9b705f36b6e..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-el.yml+++ /dev/null@@ -1,6 +0,0 @@-el:- js:- ifc_models:- models:- default: 'Προεπιλεγμένα μοντέλα IFC'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-es.yml b/modules/ifc_models/config/locales/crowdin/js-es.ymldeleted file mode 100644index 5112bb9afb8..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-es.yml+++ /dev/null@@ -1,6 +0,0 @@-es:- js:- ifc_models:- models:- default: 'Modelos IFC predeterminados'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-fi.yml b/modules/ifc_models/config/locales/crowdin/js-fi.ymldeleted file mode 100644index 6c57b6be0bd..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-fi.yml+++ /dev/null@@ -1,6 +0,0 @@-fi:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-fil.yml b/modules/ifc_models/config/locales/crowdin/js-fil.ymldeleted file mode 100644index 858de6381a3..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-fil.yml+++ /dev/null@@ -1,6 +0,0 @@-fil:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-fr.yml b/modules/ifc_models/config/locales/crowdin/js-fr.ymldeleted file mode 100644index ac324e724f4..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-fr.yml+++ /dev/null@@ -1,6 +0,0 @@-fr:- js:- ifc_models:- models:- default: 'Modèles IFC par défaut'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-hr.yml b/modules/ifc_models/config/locales/crowdin/js-hr.ymldeleted file mode 100644index 5a284cfb340..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-hr.yml+++ /dev/null@@ -1,6 +0,0 @@-hr:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-hu.yml b/modules/ifc_models/config/locales/crowdin/js-hu.ymldeleted file mode 100644index bc4553703aa..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-hu.yml+++ /dev/null@@ -1,6 +0,0 @@-hu:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-id.yml b/modules/ifc_models/config/locales/crowdin/js-id.ymldeleted file mode 100644index b51f97f4eba..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-id.yml+++ /dev/null@@ -1,6 +0,0 @@-id:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-it.yml b/modules/ifc_models/config/locales/crowdin/js-it.ymldeleted file mode 100644index 986840e2fb8..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-it.yml+++ /dev/null@@ -1,6 +0,0 @@-it:- js:- ifc_models:- models:- default: 'Modelli IFC predefiniti'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-ja.yml b/modules/ifc_models/config/locales/crowdin/js-ja.ymldeleted file mode 100644index fcb778dcb67..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-ja.yml+++ /dev/null@@ -1,6 +0,0 @@-ja:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-ko.yml b/modules/ifc_models/config/locales/crowdin/js-ko.ymldeleted file mode 100644index a266098c87e..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-ko.yml+++ /dev/null@@ -1,6 +0,0 @@-ko:- js:- ifc_models:- models:- default: '기본 IFC 모델'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-lt.yml b/modules/ifc_models/config/locales/crowdin/js-lt.ymldeleted file mode 100644index 5adc6e11478..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-lt.yml+++ /dev/null@@ -1,6 +0,0 @@-lt:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-nl.yml b/modules/ifc_models/config/locales/crowdin/js-nl.ymldeleted file mode 100644index 5ad6484728d..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-nl.yml+++ /dev/null@@ -1,6 +0,0 @@-nl:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-no.yml b/modules/ifc_models/config/locales/crowdin/js-no.ymldeleted file mode 100644index b8e0abd572e..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-no.yml+++ /dev/null@@ -1,6 +0,0 @@-"no":- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-pl.yml b/modules/ifc_models/config/locales/crowdin/js-pl.ymldeleted file mode 100644index 397a8e6668b..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-pl.yml+++ /dev/null@@ -1,6 +0,0 @@-pl:- js:- ifc_models:- models:- default: 'Domyślne modele IFC'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-pt-BR.yml b/modules/ifc_models/config/locales/crowdin/js-pt-BR.ymldeleted file mode 100644index 7c4aa337e78..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-pt-BR.yml+++ /dev/null@@ -1,6 +0,0 @@-pt-BR:- js:- ifc_models:- models:- default: 'Modelos IFC padrão'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-pt.yml b/modules/ifc_models/config/locales/crowdin/js-pt.ymldeleted file mode 100644index 7f9a5a63be7..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-pt.yml+++ /dev/null@@ -1,6 +0,0 @@-pt:- js:- ifc_models:- models:- default: 'Modelos IFC padrão'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-ro.yml b/modules/ifc_models/config/locales/crowdin/js-ro.ymldeleted file mode 100644index e551c24c58d..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-ro.yml+++ /dev/null@@ -1,6 +0,0 @@-ro:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-ru.yml b/modules/ifc_models/config/locales/crowdin/js-ru.ymldeleted file mode 100644index 1a4ed9d3885..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-ru.yml+++ /dev/null@@ -1,6 +0,0 @@-ru:- js:- ifc_models:- models:- default: 'Модели IFC по умолчанию'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-sk.yml b/modules/ifc_models/config/locales/crowdin/js-sk.ymldeleted file mode 100644index 7e18b09d122..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-sk.yml+++ /dev/null@@ -1,6 +0,0 @@-sk:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-sv.yml b/modules/ifc_models/config/locales/crowdin/js-sv.ymldeleted file mode 100644index 14e72aa241a..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-sv.yml+++ /dev/null@@ -1,6 +0,0 @@-sv:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-tr.yml b/modules/ifc_models/config/locales/crowdin/js-tr.ymldeleted file mode 100644index d0f370d120e..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-tr.yml+++ /dev/null@@ -1,6 +0,0 @@-tr:- js:- ifc_models:- models:- default: 'Varsayılan IFC modelleri'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-uk.yml b/modules/ifc_models/config/locales/crowdin/js-uk.ymldeleted file mode 100644index a289097ae79..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-uk.yml+++ /dev/null@@ -1,6 +0,0 @@-uk:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-zh-CN.yml b/modules/ifc_models/config/locales/crowdin/js-zh-CN.ymldeleted file mode 100644index 6276a3cd062..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-zh-CN.yml+++ /dev/null@@ -1,6 +0,0 @@-zh-CN:- js:- ifc_models:- models:- default: '默认 IFC 模型'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/js-zh-TW.yml b/modules/ifc_models/config/locales/crowdin/js-zh-TW.ymldeleted file mode 100644index 02f5c8263a8..00000000000--- a/modules/ifc_models/config/locales/crowdin/js-zh-TW.yml+++ /dev/null@@ -1,6 +0,0 @@-zh-TW:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/locales/crowdin/ko.yml b/modules/ifc_models/config/locales/crowdin/ko.ymldeleted file mode 100644index 76aeb780778..00000000000--- a/modules/ifc_models/config/locales/crowdin/ko.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-ko:- ifc_models:- label_ifc_models: 'IFC 모델'- label_new_ifc_model: '새 IFC 모델'- label_show_defaults: '기본값 표시'- label_default_ifc_models: '기본 IFC 모델'- label_edit_defaults: '기본값 편집'- no_defaults_warning:- title: '이 프로젝트에 대해 기본값으로 설정된 IFC 모델이 없습니다.'- check_1: '하나 이상의 IFC 모델을 업로드했는지 확인하세요.'- check_2: '하나 이상의 IFC 모델이 "기본값"으로 설정되었는지 확인하세요.'- no_results: "이 프로젝트에서 업로드된 IFC 모델이 없습니다."- processing_state:- label: '처리 중입니까?'- in_progress: '진행 중'- completed: '완료'- processing_notice:- processing_default: '다음 기본 IFC 모델이 아직 처리 중이므로 사용 가능하지 않습니다.'- flash_messages:- upload_successful: '업로드에 성공했습니다. 이제 처리되고 몇 분 후 사용 가능하게 됩니다.'- conversion:- missing_commands: "다음 IFC 컨버터 명령이 이 시스템에서 누락되었습니다: %{names}"- project_module_ifc_models: "IFC 모델"- permission_view_ifc_models: "IFC 모델 보기"- permission_manage_ifc_models: "IFC 모델 가져오기 및 관리"- extraction:- available:- ifc_convert: "IFC 변환 파이프라인 사용 가능"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC 파일"- is_default: "기본 모델"- attachments: "IFC 파일"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "ifc 파일이 첨부되지 않았습니다."- invalid_ifc_file: "제공된 파일은 유효한 IFC 파일이 아닙니다."diff --git a/modules/ifc_models/config/locales/crowdin/lt.yml b/modules/ifc_models/config/locales/crowdin/lt.ymldeleted file mode 100644index 6687060443d..00000000000--- a/modules/ifc_models/config/locales/crowdin/lt.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-lt:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'Vykdoma'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/nl.yml b/modules/ifc_models/config/locales/crowdin/nl.ymldeleted file mode 100644index cfe1bb831ec..00000000000--- a/modules/ifc_models/config/locales/crowdin/nl.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-nl:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'In behandeling'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/no.yml b/modules/ifc_models/config/locales/crowdin/no.ymldeleted file mode 100644index d557e1794cf..00000000000--- a/modules/ifc_models/config/locales/crowdin/no.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-"no":- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'Under arbeid'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/pl.yml b/modules/ifc_models/config/locales/crowdin/pl.ymldeleted file mode 100644index f88803f50d8..00000000000--- a/modules/ifc_models/config/locales/crowdin/pl.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-pl:- ifc_models:- label_ifc_models: 'Modele IFC'- label_new_ifc_model: 'Nowy model IFC'- label_show_defaults: 'Pokaż domyślne'- label_default_ifc_models: 'Domyślne modele IFC'- label_edit_defaults: 'Edytuj domyślne'- no_defaults_warning:- title: 'Żaden model IFC nie został ustawiony jako domyślny dla tego projektu.'- check_1: 'Sprawdź, czy przesłany został przez Ciebie co najmniej jeden model IFC.'- check_2: 'Sprawdź, czy co najmniej jeden model IFC jest ustawiony jako Domyślny.'- no_results: "W tym projekcie nie zostały przesłane żadne modele IFC."- processing_state:- label: 'Przetwarzanie?'- in_progress: 'W Toku'- completed: 'Ukończono'- processing_notice:- processing_default: 'Następujące domyślne modele IFC są nadal przetwarzane i w związku z tym nie są jeszcze dostępne:'- flash_messages:- upload_successful: 'Przesłanie powiodło się. Teraz zostaną przetworzone i będą gotowe do użycia za kilka minut.'- conversion:- missing_commands: "W tym systemie brakuje następujących poleceń konwertera IFC: %{names}"- project_module_ifc_models: "Modele IFC"- permission_view_ifc_models: "Wyświetl modele IFC"- permission_manage_ifc_models: "Importowanie modeli IFC i zarządzanie nimi"- extraction:- available:- ifc_convert: "Dostępny potok konwersji IFC"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "Plik IFC"- is_default: "Model domyślny"- attachments: "Plik IFC"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "Nie załączono żadnych plików IFC."- invalid_ifc_file: "Podany plik nie jest prawidłowym plikiem IFC."diff --git a/modules/ifc_models/config/locales/crowdin/pt-BR.yml b/modules/ifc_models/config/locales/crowdin/pt-BR.ymldeleted file mode 100644index 5f1822cb574..00000000000--- a/modules/ifc_models/config/locales/crowdin/pt-BR.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-pt-BR:- ifc_models:- label_ifc_models: 'Modelos IFC'- label_new_ifc_model: 'Novo modelo IFC'- label_show_defaults: 'Exibir padrões'- label_default_ifc_models: 'Modelos IFC padrão'- label_edit_defaults: 'Editar padrões'- no_defaults_warning:- title: 'Nenhum modelo IFC foi definido como padrão para este projeto.'- check_1: 'Verifique se você carregou pelo menos um modelo IFC.'- check_2: 'Verifique se pelo menos um modelo IFC está definido como "Padrão".'- no_results: "Não nenhum modelo IFC foi carregado neste projeto."- processing_state:- label: 'Processando?'- in_progress: 'Em andamento'- completed: 'Concluído'- processing_notice:- processing_default: 'Os seguintes modelos IFC padrão ainda estão sendo processados, e dessa forma, ainda não estão disponíveis:'- flash_messages:- upload_successful: 'Carregamento bem-sucedido. Agora ele será processado e ficará pronto para ser utilizado em alguns minutos.'- conversion:- missing_commands: "Os seguintes comandos de conversor IFC estão faltando neste sistema: %{names}"- project_module_ifc_models: "Modelos IFC"- permission_view_ifc_models: "Visualizar modelos IFC"- permission_manage_ifc_models: "Importar e gerenciar modelos IFC"- extraction:- available:- ifc_convert: "Canal de conversão IFC disponível"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "Arquivo IFC"- is_default: "Modelo padrão"- attachments: "Arquivo IFC"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "Nenhum arquivo ifc anexado."- invalid_ifc_file: "O arquivo fornecido não é um arquivo IFC válido."diff --git a/modules/ifc_models/config/locales/crowdin/pt.yml b/modules/ifc_models/config/locales/crowdin/pt.ymldeleted file mode 100644index fda33f8f702..00000000000--- a/modules/ifc_models/config/locales/crowdin/pt.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-pt:- ifc_models:- label_ifc_models: 'Modelos IFC'- label_new_ifc_model: 'Novo modelo IFC'- label_show_defaults: 'Mostrar padrões'- label_default_ifc_models: 'Modelos IFC padrão'- label_edit_defaults: 'Editar padrões'- no_defaults_warning:- title: 'Não foi definido nenhum modelo IFC como padrão para este projeto.'- check_1: 'Verifique se carregou pelo menos um modelo IFC.'- check_2: 'Verifique se pelo menos um modelo IFC está definido como "Padrão".'- no_results: "Não foi carregado neste projeto nenhum modelo IFC."- processing_state:- label: 'A processar?'- in_progress: 'A decorrer'- completed: 'Concluído'- processing_notice:- processing_default: 'Os seguintes modelos IFC padrão ainda estão a ser processados, e como tal, ainda não estão disponíveis:'- flash_messages:- upload_successful: 'Carregamento bem-sucedido. Agora será processado e estará pronto para utilização dentro de alguns minutos.'- conversion:- missing_commands: "Os seguintes comandos de conversor IFC estão ausentes deste sistema: %{names}"- project_module_ifc_models: "Modelos IFC"- permission_view_ifc_models: "Ver modelos IFC"- permission_manage_ifc_models: "Importar e gerir modelos IFC"- extraction:- available:- ifc_convert: "Está disponível um canal de conversão IFC"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "Ficheiro IFC"- is_default: "Modelo padrão"- attachments: "Ficheiro IFC"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "Nenhum ficheiro ifc em anexo."- invalid_ifc_file: "O ficheiro fornecido não é um ficheiro IFC válido."diff --git a/modules/ifc_models/config/locales/crowdin/ro.yml b/modules/ifc_models/config/locales/crowdin/ro.ymldeleted file mode 100644index ca83cfc6f31..00000000000--- a/modules/ifc_models/config/locales/crowdin/ro.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-ro:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'În lucru'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/ru.yml b/modules/ifc_models/config/locales/crowdin/ru.ymldeleted file mode 100644index 8900b0d7804..00000000000--- a/modules/ifc_models/config/locales/crowdin/ru.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-ru:- ifc_models:- label_ifc_models: 'Модели IFC'- label_new_ifc_model: 'Новая модель IFC'- label_show_defaults: 'Показать значения по умолчанию'- label_default_ifc_models: 'Модели IFC по умолчанию'- label_edit_defaults: 'Изменить значения по умолчанию'- no_defaults_warning:- title: 'Для этого проекта нет моделей IFC по умолчанию.'- check_1: 'Убедитесь, что вы загрузили хотя бы одну модель IFC.'- check_2: 'Убедитесь, что хотя бы одна модель IFC имеет статус "По умолчанию".'- no_results: "Модели IFC не загружались в этот проект."- processing_state:- label: 'Обработка?'- in_progress: 'В процессе'- completed: 'Выполнено'- processing_notice:- processing_default: 'Следующие модели IFC по умолчанию еще обрабатываются и поэтому недоступны:'- flash_messages:- upload_successful: 'Загрузка завершена. Через пару минут обработка завершится, и все будет готово к использованию.'- conversion:- missing_commands: "В этой системе нет следующих команд для конвертера IFC: %{names}"- project_module_ifc_models: "Модели IFC"- permission_view_ifc_models: "Просмотр моделей IFC"- permission_manage_ifc_models: "Импорт моделей IFC и управление ими"- extraction:- available:- ifc_convert: "Доступен конверсионный конвейер IFC"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "Файл IFC"- is_default: "Модель по умолчанию"- attachments: "Файл IFC"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "Нет вложенных файлов IFC."- invalid_ifc_file: "Указанный файл не является допустимым файлом IFC."diff --git a/modules/ifc_models/config/locales/crowdin/sk.yml b/modules/ifc_models/config/locales/crowdin/sk.ymldeleted file mode 100644index ad0b4302e0f..00000000000--- a/modules/ifc_models/config/locales/crowdin/sk.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-sk:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'Prebieha'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/sv.yml b/modules/ifc_models/config/locales/crowdin/sv.ymldeleted file mode 100644index 1fa52e2b4f8..00000000000--- a/modules/ifc_models/config/locales/crowdin/sv.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-sv:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'Pågående'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/tr.yml b/modules/ifc_models/config/locales/crowdin/tr.ymldeleted file mode 100644index ca34b4f6d7f..00000000000--- a/modules/ifc_models/config/locales/crowdin/tr.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-tr:- ifc_models:- label_ifc_models: 'IFC modelleri'- label_new_ifc_model: 'Yeni IFC modeli'- label_show_defaults: 'Varsayılanları göster'- label_default_ifc_models: 'Varsayılan IFC modelleri'- label_edit_defaults: 'Varsayılanları düzenle'- no_defaults_warning:- title: 'Bu proje için varsayılan olarak IFC modeli ayarlanmadı.'- check_1: 'En az bir IFC modeli yüklediğinizi kontrol edin.'- check_2: 'En az bir IFC modelinin "Varsayılan" olarak ayarlandığını kontrol edin.'- no_results: "Bu projeye hiç IFC modeli yüklenmedi."- processing_state:- label: 'İşleme?'- in_progress: 'Devam eden'- completed: 'Tamamlandı'- processing_notice:- processing_default: 'Aşağıdaki varsayılan IFC modelleri hala işlenmektedir ve bu nedenle henüz kullanılamamaktadır:'- flash_messages:- upload_successful: 'Yükleme başarılı. Şimdi işlenecek ve birkaç dakika içinde kullanıma hazır olacak.'- conversion:- missing_commands: "Bu sistemde aşağıdaki IFC dönüştürücü komutları eksik: %{names}"- project_module_ifc_models: "IFC modelleri"- permission_view_ifc_models: "IFC modellerini görüntüle"- permission_manage_ifc_models: "IFC modellerini içe aktarma ve yönetme"- extraction:- available:- ifc_convert: "IFC dönüşüm hattı mevcut"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC dosyası"- is_default: "Varsayılan model"- attachments: "IFC dosyası"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "İfc dosyası eklenmedi."- invalid_ifc_file: "Sağlanan dosya geçerli bir IFC dosyası değil."diff --git a/modules/ifc_models/config/locales/crowdin/uk.yml b/modules/ifc_models/config/locales/crowdin/uk.ymldeleted file mode 100644index e0256ddb95b..00000000000--- a/modules/ifc_models/config/locales/crowdin/uk.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-uk:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'У процесі'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/crowdin/zh-CN.yml b/modules/ifc_models/config/locales/crowdin/zh-CN.ymldeleted file mode 100644index 3e93d0d765d..00000000000--- a/modules/ifc_models/config/locales/crowdin/zh-CN.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-zh-CN:- ifc_models:- label_ifc_models: 'IFC 模型'- label_new_ifc_model: '新 IFC 模型'- label_show_defaults: '显示默认值'- label_default_ifc_models: '默认 IFC 模型'- label_edit_defaults: '编辑默认值'- no_defaults_warning:- title: '此项目未设置 IFC 模型作为默认值。'- check_1: '检查您已至少上传一个 IFC 模型。'- check_2: '检查至少有一个 IFC 模型设置为“默认”。'- no_results: "尚未在此项目中上传 IFC 模型。"- processing_state:- label: '正在处理?'- in_progress: '正在处理'- completed: '已完成'- processing_notice:- processing_default: '以下默认 IFC 模型仍在处理,因此不可用:'- flash_messages:- upload_successful: '上传成功。现在它将进行处理,将在几分钟后可用。'- conversion:- missing_commands: "此系统上缺少以下 IFC 转换器命令:%{names}"- project_module_ifc_models: "IFC 模型"- permission_view_ifc_models: "查看 IFC 模型"- permission_manage_ifc_models: "导入和管理 IFC 模型"- extraction:- available:- ifc_convert: "有可用的 IFC 转换管道"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC 文件"- is_default: "默认模型"- attachments: "IFC 文件"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "未附加 IFC 文件。"- invalid_ifc_file: "提供的文件不是有效的 IFC 文件。"diff --git a/modules/ifc_models/config/locales/crowdin/zh-TW.yml b/modules/ifc_models/config/locales/crowdin/zh-TW.ymldeleted file mode 100644index ebea0977de8..00000000000--- a/modules/ifc_models/config/locales/crowdin/zh-TW.yml+++ /dev/null@@ -1,42 +0,0 @@-#English strings go here for Rails i18n-zh-TW:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: '進行中'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/en.yml b/modules/ifc_models/config/locales/en.ymldeleted file mode 100644index e039320ff9e..00000000000--- a/modules/ifc_models/config/locales/en.yml+++ /dev/null@@ -1,44 +0,0 @@-# English strings go here for Rails i18n-en:- ifc_models:- label_ifc_models: 'IFC models'- label_new_ifc_model: 'New IFC model'- label_show_defaults: 'Show defaults'- label_default_ifc_models: 'Default IFC models'- label_edit_defaults: 'Edit defaults'- no_defaults_warning:- title: 'No IFC model was set as default for this project.'- check_1: 'Check that you have uploaded at least one IFC model.'- check_2: 'Check that at least one IFC model is set to "Default".'- no_results: "No IFC models have been uploaded in this project."- processing_state:- label: 'Processing?'- in_progress: 'In progress'- completed: 'Completed'- processing_notice:- processing_default: 'The following default IFC models are still being processed and are thus not available, yet:'- flash_messages:- upload_successful: 'Upload succeeded. It will now get processed and will be ready to use in a couple of minutes.'- conversion:- missing_commands: "The following IFC converter commands are missing on this system: %{names}"- project_module_ifc_models: "IFC models"- permission_view_ifc_models: "View IFC models"- permission_manage_ifc_models: "Import and manage IFC models"- extraction:- available:- ifc_convert: "IFC conversion pipeline available"-- activerecord:- attributes:- ifc_models/ifc_model:- ifc_attachment: "IFC file"- is_default: "Default model"- attachments: "IFC file"-- errors:- models:- ifc_models/ifc_model:- attributes:- base:- ifc_attachment_missing: "No ifc file attached."- invalid_ifc_file: "The provided file is not a valid IFC file."diff --git a/modules/ifc_models/config/locales/js-en.yml b/modules/ifc_models/config/locales/js-en.ymldeleted file mode 100644index 464a53bddb2..00000000000--- a/modules/ifc_models/config/locales/js-en.yml+++ /dev/null@@ -1,6 +0,0 @@-en:- js:- ifc_models:- models:- default: 'Default IFC models'- manage: 'Manage models'diff --git a/modules/ifc_models/config/routes.rb b/modules/ifc_models/config/routes.rbdeleted file mode 100644index 34cd6a60570..00000000000--- a/modules/ifc_models/config/routes.rb+++ /dev/null@@ -1,41 +0,0 @@-#-- encoding: UTF-8--#-- copyright-# OpenProject is a project management system.-# Copyright (C) 2012-2020 the OpenProject Foundation (OPF)-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License version 3.-#-# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang-# Copyright (C) 2010-2013 the ChiliProject Team-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License-# as published by the Free Software Foundation; either version 2-# of the License, or (at your option) any later version.-#-# This program is distributed in the hope that it will be useful,-# but WITHOUT ANY WARRANTY; without even the implied warranty of-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-# GNU General Public License for more details.-#-# You should have received a copy of the GNU General Public License-# along with this program; if not, write to the Free Software-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#-# See doc/COPYRIGHT.rdoc for more details.-#++--OpenProject::Application.routes.draw do- scope '', as: 'ifc_models' do- scope 'projects/:project_id', as: 'project' do- resources :ifc_models, controller: 'ifc_models/ifc_models' do- collection do- get 'defaults'- end- end- end- end-enddiff --git a/modules/ifc_models/lib/open_project/ifc_models.rb b/modules/ifc_models/lib/open_project/ifc_models.rbdeleted file mode 100644index 2d6fee64cdf..00000000000--- a/modules/ifc_models/lib/open_project/ifc_models.rb+++ /dev/null@@ -1,6 +0,0 @@-module OpenProject- module IFCModels- require "open_project/ifc_models/engine"- require "open_project/ifc_models"- end-enddiff --git a/modules/ifc_models/lib/open_project/ifc_models/engine.rb b/modules/ifc_models/lib/open_project/ifc_models/engine.rbdeleted file mode 100644index 737b5a056cb..00000000000--- a/modules/ifc_models/lib/open_project/ifc_models/engine.rb+++ /dev/null@@ -1,84 +0,0 @@-#-- encoding: UTF-8--#-- copyright-# OpenProject is a project management system.-# Copyright (C) 2012-2017 the OpenProject Foundation (OPF)-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License version 3.-#-# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang-# Copyright (C) 2010-2013 the ChiliProject Team-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License-# as published by the Free Software Foundation; either version 2-# of the License, or (at your option) any later version.-#-# This program is distributed in the hope that it will be useful,-# but WITHOUT ANY WARRANTY; without even the implied warranty of-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-# GNU General Public License for more details.-#-# You should have received a copy of the GNU General Public License-# along with this program; if not, write to the Free Software-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#-# See doc/COPYRIGHT.rdoc for more details.-#++--require 'open_project/plugins'--module OpenProject::IFCModels- class Engine < ::Rails::Engine- engine_name :openproject_ifc_models-- include OpenProject::Plugins::ActsAsOpEngine-- register 'openproject-ifc_models',- author_url: 'https://openproject.com',- settings: {- default: {- }- } do-- project_module :ifc_models do- permission :view_ifc_models,- { 'ifc_models/ifc_models': %i[index show defaults] }- permission :manage_ifc_models,- { 'ifc_models/ifc_models': %i[index show destroy edit update create new] },- dependencies: %i[view_ifc_models]- end- end-- assets %w(- ifc_viewer/generic.css- )-- initializer 'ifc_models.menu' do- ::Redmine::MenuManager.map(:project_menu) do |menu|- menu.push(:ifc_models,- { controller: '/ifc_models/ifc_models', action: 'defaults' },- caption: :'ifc_models.label_ifc_models',- param: :project_id,- after: :work_packages,- icon: 'icon2 icon-ifc',- badge: :label_new)-- menu.push :ifc_viewer_panels,- { controller: '/ifc_models/ifc_models', action: 'defaults' },- param: :project_id,- parent: :ifc_models,- partial: '/ifc_models/ifc_models/panels'- end- end-- config.to_prepare do- require 'open_project/ifc_models/hooks'- end-- patches %i[Project]- patch_with_namespace :BasicData, :SettingSeeder- end-enddiff --git a/modules/ifc_models/lib/open_project/ifc_models/patches/setting_seeder_patch.rb b/modules/ifc_models/lib/open_project/ifc_models/patches/setting_seeder_patch.rbdeleted file mode 100644index 5046ac782ef..00000000000--- a/modules/ifc_models/lib/open_project/ifc_models/patches/setting_seeder_patch.rb+++ /dev/null@@ -1,45 +0,0 @@-#-- copyright-# OpenProject is a project management system.-# Copyright (C) 2012-2019 the OpenProject Foundation (OPF)-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License version 3.-#-# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang-# Copyright (C) 2010-2013 the ChiliProject Team-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License-# as published by the Free Software Foundation; either version 2-# of the License, or (at your option) any later version.-#-# This program is distributed in the hope that it will be useful,-# but WITHOUT ANY WARRANTY; without even the implied warranty of-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-# GNU General Public License for more details.-#-# You should have received a copy of the GNU General Public License-# along with this program; if not, write to the Free Software-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#-# See docs/COPYRIGHT.rdoc for more details.-#++--module OpenProject::IFCModels::Patches::SettingSeederPatch- def self.included(base) # :nodoc:- base.prepend InstanceMethods- end-- module InstanceMethods- def data- original_data = super-- unless original_data['default_projects_modules'].include? 'ifc_models'- original_data['default_projects_modules'] << 'ifc_models'- end-- original_data- end- end-enddiff --git a/modules/ifc_models/lib/openproject-ifc_models.rb b/modules/ifc_models/lib/openproject-ifc_models.rbdeleted file mode 100644index 4fc6a6610f8..00000000000--- a/modules/ifc_models/lib/openproject-ifc_models.rb+++ /dev/null@@ -1 +0,0 @@-require 'open_project/ifc_models'diff --git a/modules/ifc_models/openproject-ifc_models.gemspec b/modules/ifc_models/openproject-ifc_models.gemspecdeleted file mode 100644index 47396c3cebf..00000000000--- a/modules/ifc_models/openproject-ifc_models.gemspec+++ /dev/null@@ -1,18 +0,0 @@-# encoding: UTF-8--# Describe your gem and declare its dependencies:-Gem::Specification.new do |s|- s.name = "openproject-ifc_models"- s.version = "1.0.0"- s.authors = "OpenProject GmbH"- s.email = "[email protected]"- s.homepage = "https://community.openproject.org/"- s.summary = "Save and view IFC models in OpenProject."- s.description = "This OpenProject plugin allows to store and view IFC models."-- s.files = Dir["{app,config,db,lib}/**/*", "CHANGELOG.md", "README.rdoc"]- s.test_files = Dir["spec/**/*"]-- s.add_dependency 'activerecord-import'- s.add_dependency 'rubyzip', '~> 1.2'-end