Skip to content

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

remove IFCBaseComponent

ulfertsea63b06990f7
diff --git a/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.html b/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.html
deleted file mode 100644
index ca1c48b9fcd..00000000000
--- a/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<div class="ifc-base-view--container">
- <div class="ifc-view--viewer-container">
- <ifc-viewer></ifc-viewer>
- </div>
-
- <div class="ifc-view--table-container" wp-isolated-query-space>
- <wp-embedded-table [queryProps]="queryProps"
- [configuration]="configuration"
- [externalHeight]="true">
- </wp-embedded-table>
- </div>
-</div>
diff --git a/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.sass b/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.sass
deleted file mode 100644
index 9be1e3d451c..00000000000
--- a/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.sass
+++ /dev/null
@@ -1,12 +0,0 @@
-*:host
- height: calc(100% - 60px)
-
-.ifc-base-view--container
- display: flex
- height: 100%
-
-.ifc-view--table-container
- height: 100%
- margin-left: 15px
- // Cancel out space for scroll bar and align with toolbar and header
- margin-right: -15px
diff --git a/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.ts b/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.ts
deleted file mode 100644
index e55a8650964..00000000000
--- a/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-// -- copyright
-// OpenProject is an open source project management software.
-// Copyright (C) 2012-2020 the OpenProject GmbH
-//
-// 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-2013 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.
-// ++
-
-import {ChangeDetectionStrategy, Component} from "@angular/core";
-import {DynamicBootstrapper} from "core-app/globals/dynamic-bootstrapper";
-import {WorkPackageTableConfigurationObject} from "core-components/wp-table/wp-table-configuration";
-
-@Component({
- templateUrl: './ifc-base-view.component.html',
- changeDetection: ChangeDetectionStrategy.OnPush,
- selector: 'ifc-base-view',
- styleUrls: ['./ifc-base-view.component.sass']
-})
-export class IFCBaseViewComponent {
- public queryProps:{ [key:string]:any };
- public configuration:WorkPackageTableConfigurationObject = {
- actionsColumnEnabled: false,
- columnMenuEnabled: false,
- contextMenuEnabled: false,
- inlineCreateEnabled: false,
- withFilters: true,
- showFilterButton: false,
- isCardView: true
- };
-
-private filters:any[] = [];
-
- constructor() {
- // TODO: Limit to project
- this.filters.push({ status: {
- operator: 'o',
- values: [] }});
-
- this.queryProps = {
- 'columns[]': ['id', 'subject'],
- filters: JSON.stringify(this.filters),
- sortBy: JSON.stringify([['updatedAt', 'desc']]),
- showHierarchies: false
- };
- }
-
-}
-DynamicBootstrapper.register({
- selector: 'ifc-base-view', cls: IFCBaseViewComponent
-});
diff --git a/frontend/src/app/modules/ifc_models/ifc-viewer/ifc-viewer.component.ts b/frontend/src/app/modules/ifc_models/ifc-viewer/ifc-viewer.component.ts
index 6babacb16df..c7c6f09c33b 100644
--- a/frontend/src/app/modules/ifc_models/ifc-viewer/ifc-viewer.component.ts
+++ b/frontend/src/app/modules/ifc_models/ifc-viewer/ifc-viewer.component.ts
@@ -74,6 +74,3 @@ export class IFCViewerComponent implements OnInit {
});
}
}
-DynamicBootstrapper.register({
- selector: 'ifc-viewer', cls: IFCViewerComponent
-});
\ No newline at end of file
diff --git a/frontend/src/app/modules/ifc_models/openproject-ifc-models.module.ts b/frontend/src/app/modules/ifc_models/openproject-ifc-models.module.ts
index 34c39aee3b7..c62f1bbcf71 100644
--- a/frontend/src/app/modules/ifc_models/openproject-ifc-models.module.ts
+++ b/frontend/src/app/modules/ifc_models/openproject-ifc-models.module.ts
@@ -26,7 +26,6 @@
// See doc/COPYRIGHT.rdoc for more details.
// ++
import {NgModule} from "@angular/core";
-import {IFCBaseViewComponent} from "core-app/modules/ifc_models/ifc-base-view/ifc-base-view.component";
import {OpenprojectWorkPackagesModule} from "core-app/modules/work_packages/openproject-work-packages.module";
import { Ng2StateDeclaration, UIRouterModule, UIRouter } from '@uirouter/angular';
import {IFCIndexPageComponent} from "core-app/modules/ifc_models/pages/index/ifc-index-page.component";
@@ -77,17 +76,12 @@ export function uiRouterIFCConfiguration(uiRouter:UIRouter) {
declarations: [
// Pages
IFCIndexPageComponent,
- IFCBaseViewComponent,
IFCViewerComponent
],
exports: [
- IFCBaseViewComponent,
- IFCViewerComponent
],
entryComponents: [
- IFCBaseViewComponent,
- IFCViewerComponent
]
})
export class OpenprojectIFCModelsModule {