parent
a913099667
commit
ce0840b18c
@ -1,4 +1,4 @@ |
||||
.bim--bcf-issues |
||||
.bcf--issues |
||||
display: flex |
||||
flex-direction: row |
||||
flex-wrap: wrap |
@ -1,4 +1,4 @@ |
||||
module ::Bim |
||||
module ::Bcf |
||||
class BaseController < ApplicationController |
||||
end |
||||
end |
@ -1,5 +1,5 @@ |
||||
module Bim |
||||
module Bcf |
||||
def self.table_name_prefix |
||||
'bim_' |
||||
'bcf_' |
||||
end |
||||
end |
@ -1,9 +1,9 @@ |
||||
module Bim |
||||
class BcfComment < ActiveRecord::Base |
||||
module Bcf |
||||
class Comment < ActiveRecord::Base |
||||
include InitializeWithUuid |
||||
|
||||
belongs_to :journal |
||||
belongs_to :issue, foreign_key: :issue_id, class_name: "Bim::BcfIssue" |
||||
belongs_to :issue, foreign_key: :issue_id, class_name: "Bcf::Issue" |
||||
|
||||
validates_presence_of :uuid |
||||
|
@ -1,4 +1,4 @@ |
||||
module Bim |
||||
module Bcf |
||||
|
||||
## |
||||
# Module to set an initial UUID on the model |
@ -1,17 +1,17 @@ |
||||
module Bim |
||||
class BcfViewpoint < ActiveRecord::Base |
||||
module Bcf |
||||
class Viewpoint < ActiveRecord::Base |
||||
include InitializeWithUuid |
||||
|
||||
acts_as_attachable view_permission: :view_linked_issues, |
||||
delete_permission: :manage_bim, |
||||
add_on_new_permission: :manage_bim, |
||||
add_on_persisted_permission: :manage_bim |
||||
delete_permission: :manage_bcf, |
||||
add_on_new_permission: :manage_bcf, |
||||
add_on_persisted_permission: :manage_bcf |
||||
|
||||
def self.has_uuid?(uuid) |
||||
where(uuid: uuid).exists? |
||||
end |
||||
|
||||
belongs_to :issue, foreign_key: :issue_id, class_name: "Bim::BcfIssue" |
||||
belongs_to :issue, foreign_key: :issue_id, class_name: "Bcf::Issue" |
||||
delegate :project, :project_id, to: :issue, allow_nil: true |
||||
|
||||
def snapshot |
@ -0,0 +1,6 @@ |
||||
module OpenProject |
||||
module Bcf |
||||
require "open_project/bcf/engine" |
||||
require "open_project/bcf/bcf_xml" |
||||
end |
||||
end |
@ -1,4 +1,4 @@ |
||||
module OpenProject::Bim |
||||
module OpenProject::Bcf |
||||
module Bcf |
||||
require_relative './bcf_xml/importer' |
||||
end |
@ -1,6 +1,6 @@ |
||||
## |
||||
# Helper class to provide uploads from IO streams. |
||||
module OpenProject::Bim::BcfXml |
||||
module OpenProject::Bcf::BcfXml |
||||
class FileEntry < StringIO |
||||
|
||||
def initialize(stream, filename:) |
@ -1,7 +1,7 @@ |
||||
require 'activerecord-import' |
||||
require_relative 'issue_reader' |
||||
|
||||
module OpenProject::Bim::BcfXml |
||||
module OpenProject::Bcf::BcfXml |
||||
class Importer |
||||
|
||||
attr_reader :project, :zip, :current_user |
@ -1,4 +1,4 @@ |
||||
module OpenProject::Bim::Patches |
||||
module OpenProject::Bcf::Patches |
||||
module Api::V3::ExportFormats |
||||
def representation_formats |
||||
super + [representation_format_bcf] |
@ -1,7 +1,7 @@ |
||||
require 'open_project/version' |
||||
|
||||
module OpenProject |
||||
module Bim |
||||
module Bcf |
||||
VERSION = ::OpenProject::VERSION.to_semver |
||||
end |
||||
end |
@ -0,0 +1 @@ |
||||
require 'open_project/bcf' |
@ -1,6 +0,0 @@ |
||||
module OpenProject |
||||
module Bim |
||||
require "open_project/bim/engine" |
||||
require "open_project/bim/bcf" |
||||
end |
||||
end |
@ -1 +0,0 @@ |
||||
require 'open_project/bim' |
Loading…
Reference in new issue