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
[#42157] List file links
Andreas Pfohl566f7762efa9
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex d9470dec180..f4800d3ca61 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -505,6 +505,7 @@ en:label_custom_queries: "Private views"label_columns: "Columns"label_attachments: Attachments+ label_file_links: File Linkslabel_drop_files: Drop files herelabel_drop_files_hint: or click to add fileslabel_drop_folders_hint: You cannot upload folders as an attachment. Please select single files.diff --git a/frontend/src/app/core/state/file-links/file-link.model.ts b/frontend/src/app/core/state/file-links/file-link.model.tsnew file mode 100644index 00000000000..fe53ff0fe08--- /dev/null+++ b/frontend/src/app/core/state/file-links/file-link.model.ts@@ -0,0 +1,62 @@+// -- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2012-2022 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 COPYRIGHT and LICENSE files for more details.+//++++import { ID } from '@datorama/akita';+import {+ IHalResourceLink,+ IHalResourceLinks,+} from 'core-app/core/state/hal-resource';++export interface IFileLinkHalResourceLinks extends IHalResourceLinks {+ self:IHalResourceLink;+ storage?:IHalResourceLink;+ container:IHalResourceLink;+ creator:IHalResourceLink;+ delete?:IHalResourceLink;+ originOpen:IHalResourceLink;+ staticOriginOpen:IHalResourceLink;+ originOpenLocation:IHalResourceLink;+ staticOriginOpenLocation:IHalResourceLink;+}++interface IFileLinkOriginData {+ name:string;+ mimeType?:string;+ size?:number;+ createdAt?:string;+ lastModifiedAt?:string;+ createdByName?:string;+ lastModifiedByName?:string;+}++export interface IFileLink {+ id:ID;+ originData:IFileLinkOriginData;++ _links?:IFileLinkHalResourceLinks;+}diff --git a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/files-tab/op-files-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/files-tab/op-files-tab.component.tsindex 7c46f98da4a..2515becfef3 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/files-tab/op-files-tab.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/files-tab/op-files-tab.component.ts@@ -43,6 +43,9 @@ export class WorkPackageFilesTabComponent {attachments: {label: this.I18n.t('js.label_attachments'),},+ file_links: {+ label: this.I18n.t('js.label_file_links'),+ },};constructor(diff --git a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/files-tab/op-files-tab.html b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/files-tab/op-files-tab.htmlindex 1de70b40bcd..c2ee31a6cf2 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/files-tab/op-files-tab.html+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/files-tab/op-files-tab.html@@ -1,12 +1,24 @@<div class="work-packages--attachments-container">- <!-- The condition below will get replaced when implementing #41905. -->- <div *ngIf="false" class="attributes-group--header">- <div class="attributes-group--header-container">- <h3 class="attributes-group--header-text" [textContent]="text.attachments.label"></h3>+ <div>+ <!-- The condition below will get replaced when implementing #41905. -->+ <div *ngIf="true" class="attributes-group--header">+ <div class="attributes-group--header-container">+ <h3 class="attributes-group--header-text" [textContent]="text.attachments.label"></h3>+ </div></div>++ <op-attachment-list [resource]="workPackage"></op-attachment-list>++ <op-attachments-upload [resource]="workPackage"></op-attachments-upload></div>- <op-attachment-list [resource]="workPackage"></op-attachment-list>+ <div *ngIf="true">+ <div class="attributes-group--header">+ <div class="attributes-group--header-container">+ <h3 class="attributes-group--header-text" [textContent]="text.file_links.label"></h3>+ </div>+ </div>- <op-attachments-upload [resource]="workPackage"></op-attachments-upload>+ <op-file-link-list [resource]="workPackage"></op-file-link-list>+ </div></div>diff --git a/frontend/src/app/features/work-packages/openproject-work-packages.module.ts b/frontend/src/app/features/work-packages/openproject-work-packages.module.tsindex 96273503a9d..e08c9ba5ff7 100644--- a/frontend/src/app/features/work-packages/openproject-work-packages.module.ts+++ b/frontend/src/app/features/work-packages/openproject-work-packages.module.ts@@ -31,148 +31,369 @@ import { OPSharedModule } from 'core-app/shared/shared.module';import { OpenprojectFieldsModule } from 'core-app/shared/components/fields/openproject-fields.module';import { OpenprojectModalModule } from 'core-app/shared/components/modal/modal.module';import { HookService } from 'core-app/features/plugins/hook-service';-import { WorkPackageEmbeddedTableComponent } from 'core-app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component';-import { WorkPackageEmbeddedTableEntryComponent } from 'core-app/features/work-packages/components/wp-table/embedded/wp-embedded-table-entry.component';-import { WorkPackageTablePaginationComponent } from 'core-app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component';-import { WorkPackageTimelineTableController } from 'core-app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive';-import { WorkPackageInlineCreateComponent } from 'core-app/features/work-packages/components/wp-inline-create/wp-inline-create.component';-import { OpTypesContextMenuDirective } from 'core-app/shared/components/op-context-menu/handlers/op-types-context-menu.directive';-import { OpColumnsContextMenu } from 'core-app/shared/components/op-context-menu/handlers/op-columns-context-menu.directive';-import { OpSettingsMenuDirective } from 'core-app/shared/components/op-context-menu/handlers/op-settings-dropdown-menu.directive';-import { WorkPackageStatusDropdownDirective } from 'core-app/shared/components/op-context-menu/handlers/wp-status-dropdown-menu.directive';-import { WorkPackageCreateSettingsMenuDirective } from 'core-app/shared/components/op-context-menu/handlers/wp-create-settings-menu.directive';-import { WorkPackageSingleContextMenuDirective } from 'core-app/shared/components/op-context-menu/wp-context-menu/wp-single-context-menu';-import { WorkPackageTimelineHeaderController } from 'core-app/features/work-packages/components/wp-table/timeline/header/wp-timeline-header.directive';-import { WorkPackageTableTimelineRelations } from 'core-app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-relations.directive';-import { WorkPackageTableTimelineStaticElements } from 'core-app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive';-import { WorkPackageTableTimelineGrid } from 'core-app/features/work-packages/components/wp-table/timeline/grid/wp-timeline-grid.directive';-import { WorkPackageTimelineButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component';-import { WorkPackageOverviewTabComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component';-import { WorkPackageStatusButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component';-import { WorkPackageReplacementLabelComponent } from 'core-app/features/work-packages/components/wp-edit/wp-edit-field/wp-replacement-label.component';-import { NewestActivityOnOverviewComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.component';-import { WorkPackageActivityTabComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.component';+import {+ WorkPackageEmbeddedTableComponent,+} from 'core-app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component';+import {+ WorkPackageEmbeddedTableEntryComponent,+} from 'core-app/features/work-packages/components/wp-table/embedded/wp-embedded-table-entry.component';+import {+ WorkPackageTablePaginationComponent,+} from 'core-app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component';+import {+ WorkPackageTimelineTableController,+} from 'core-app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive';+import {+ WorkPackageInlineCreateComponent,+} from 'core-app/features/work-packages/components/wp-inline-create/wp-inline-create.component';+import {+ OpTypesContextMenuDirective,+} from 'core-app/shared/components/op-context-menu/handlers/op-types-context-menu.directive';+import {+ OpColumnsContextMenu,+} from 'core-app/shared/components/op-context-menu/handlers/op-columns-context-menu.directive';+import {+ OpSettingsMenuDirective,+} from 'core-app/shared/components/op-context-menu/handlers/op-settings-dropdown-menu.directive';+import {+ WorkPackageStatusDropdownDirective,+} from 'core-app/shared/components/op-context-menu/handlers/wp-status-dropdown-menu.directive';+import {+ WorkPackageCreateSettingsMenuDirective,+} from 'core-app/shared/components/op-context-menu/handlers/wp-create-settings-menu.directive';+import {+ WorkPackageSingleContextMenuDirective,+} from 'core-app/shared/components/op-context-menu/wp-context-menu/wp-single-context-menu';+import {+ WorkPackageTimelineHeaderController,+} from 'core-app/features/work-packages/components/wp-table/timeline/header/wp-timeline-header.directive';+import {+ WorkPackageTableTimelineRelations,+} from 'core-app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-relations.directive';+import {+ WorkPackageTableTimelineStaticElements,+} from 'core-app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive';+import {+ WorkPackageTableTimelineGrid,+} from 'core-app/features/work-packages/components/wp-table/timeline/grid/wp-timeline-grid.directive';+import {+ WorkPackageTimelineButtonComponent,+} from 'core-app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component';+import {+ WorkPackageOverviewTabComponent,+} from 'core-app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component';+import {+ WorkPackageStatusButtonComponent,+} from 'core-app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component';+import {+ WorkPackageReplacementLabelComponent,+} from 'core-app/features/work-packages/components/wp-edit/wp-edit-field/wp-replacement-label.component';+import {+ NewestActivityOnOverviewComponent,+} from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.component';+import {+ WorkPackageActivityTabComponent,+} from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.component';import { OpenprojectAttachmentsModule } from 'core-app/shared/components/attachments/openproject-attachments.module';-import { WpCustomActionComponent } from 'core-app/features/work-packages/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component';-import { WpCustomActionsComponent } from 'core-app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component';-import { WorkPackageRelationsTabComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.component';-import { WorkPackageRelationsComponent } from 'core-app/features/work-packages/components/wp-relations/wp-relations.component';-import { WorkPackageRelationsGroupComponent } from 'core-app/features/work-packages/components/wp-relations/wp-relations-group/wp-relations-group.component';-import { WorkPackageRelationRowComponent } from 'core-app/features/work-packages/components/wp-relations/wp-relation-row/wp-relation-row.component';-import { WorkPackageRelationsCreateComponent } from 'core-app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component';-import { WorkPackageRelationsHierarchyComponent } from 'core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive';-import { WorkPackageCreateButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.component';-import { WorkPackageFilterButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.component';-import { WorkPackageDetailsViewButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-details-view-button/wp-details-view-button.component';-import { WorkPackageFoldToggleButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-fold-toggle-button/wp-fold-toggle-button.component';-import { WpTableConfigurationModalComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal';-import { WpTableConfigurationColumnsTabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/columns-tab.component';-import { WpTableConfigurationDisplaySettingsTabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component';-import { WpTableConfigurationFiltersTab } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/filters-tab.component';-import { WpTableConfigurationSortByTabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/sort-by-tab.component';-import { WpTableConfigurationTimelinesTabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component';-import { WpTableConfigurationHighlightingTabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component';-import { WpTableConfigurationRelationSelectorComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration-relation-selector';-import { WorkPackageWatchersTabComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.component';-import { WorkPackageWatcherEntryComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.component';-import { WorkPackageNewSplitViewComponent } from 'core-app/features/work-packages/components/wp-new/wp-new-split-view.component';-import { WorkPackageNewFullViewComponent } from 'core-app/features/work-packages/components/wp-new/wp-new-full-view.component';-import { EmbeddedTablesMacroComponent } from 'core-app/features/work-packages/components/wp-table/embedded/embedded-tables-macro.component';+import {+ WpCustomActionComponent,+} from 'core-app/features/work-packages/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component';+import {+ WpCustomActionsComponent,+} from 'core-app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component';+import {+ WorkPackageRelationsTabComponent,+} from 'core-app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.component';+import {+ WorkPackageRelationsComponent,+} from 'core-app/features/work-packages/components/wp-relations/wp-relations.component';+import {+ WorkPackageRelationsGroupComponent,+} from 'core-app/features/work-packages/components/wp-relations/wp-relations-group/wp-relations-group.component';+import {+ WorkPackageRelationRowComponent,+} from 'core-app/features/work-packages/components/wp-relations/wp-relation-row/wp-relation-row.component';+import {+ WorkPackageRelationsCreateComponent,+} from 'core-app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component';+import {+ WorkPackageRelationsHierarchyComponent,+} from 'core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive';+import {+ WorkPackageCreateButtonComponent,+} from 'core-app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.component';+import {+ WorkPackageFilterButtonComponent,+} from 'core-app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.component';+import {+ WorkPackageDetailsViewButtonComponent,+} from 'core-app/features/work-packages/components/wp-buttons/wp-details-view-button/wp-details-view-button.component';+import {+ WorkPackageFoldToggleButtonComponent,+} from 'core-app/features/work-packages/components/wp-buttons/wp-fold-toggle-button/wp-fold-toggle-button.component';+import {+ WpTableConfigurationModalComponent,+} from 'core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal';+import {+ WpTableConfigurationColumnsTabComponent,+} from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/columns-tab.component';+import {+ WpTableConfigurationDisplaySettingsTabComponent,+} from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component';+import {+ WpTableConfigurationFiltersTab,+} from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/filters-tab.component';+import {+ WpTableConfigurationSortByTabComponent,+} from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/sort-by-tab.component';+import {+ WpTableConfigurationTimelinesTabComponent,+} from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component';+import {+ WpTableConfigurationHighlightingTabComponent,+} from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component';+import {+ WpTableConfigurationRelationSelectorComponent,+} from 'core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration-relation-selector';+import {+ WorkPackageWatchersTabComponent,+} from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.component';+import {+ WorkPackageWatcherEntryComponent,+} from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.component';+import {+ WorkPackageNewSplitViewComponent,+} from 'core-app/features/work-packages/components/wp-new/wp-new-split-view.component';+import {+ WorkPackageNewFullViewComponent,+} from 'core-app/features/work-packages/components/wp-new/wp-new-full-view.component';+import {+ EmbeddedTablesMacroComponent,+} from 'core-app/features/work-packages/components/wp-table/embedded/embedded-tables-macro.component';import { OpenprojectEditorModule } from 'core-app/shared/components/editor/openproject-editor.module';-import { WorkPackageTableSumsRowController } from 'core-app/features/work-packages/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive';-import { ExternalQueryConfigurationComponent } from 'core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.component';-import { ExternalQueryConfigurationService } from 'core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.service';-import { ExternalRelationQueryConfigurationComponent } from 'core-app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.component';-import { ExternalRelationQueryConfigurationService } from 'core-app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.service';-import { WorkPackagesListInvalidQueryService } from 'core-app/features/work-packages/components/wp-list/wp-list-invalid-query.service';+import {+ WorkPackageTableSumsRowController,+} from 'core-app/features/work-packages/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive';+import {+ ExternalQueryConfigurationComponent,+} from 'core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.component';+import {+ ExternalQueryConfigurationService,+} from 'core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.service';+import {+ ExternalRelationQueryConfigurationComponent,+} from 'core-app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.component';+import {+ ExternalRelationQueryConfigurationService,+} from 'core-app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.service';+import {+ WorkPackagesListInvalidQueryService,+} from 'core-app/features/work-packages/components/wp-list/wp-list-invalid-query.service';import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';-import { WorkPackageWatchersService } from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watchers.service';-import { WorkPackagesActivityService } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service';+import {+ WorkPackageWatchersService,+} from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watchers.service';+import {+ WorkPackagesActivityService,+} from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import { WorkPackageChildrenQueryComponent } from 'core-app/features/work-packages/components/wp-relations/embedded/children/wp-children-query.component';-import { WpRelationInlineAddExistingComponent } from 'core-app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component';-import { WorkPackageRelationQueryComponent } from 'core-app/features/work-packages/components/wp-relations/embedded/relations/wp-relation-query.component';+import {+ WorkPackageChildrenQueryComponent,+} from 'core-app/features/work-packages/components/wp-relations/embedded/children/wp-children-query.component';+import {+ WpRelationInlineAddExistingComponent,+} from 'core-app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component';+import {+ WorkPackageRelationQueryComponent,+} from 'core-app/features/work-packages/components/wp-relations/embedded/relations/wp-relation-query.component';import { WorkPackagesBaseComponent } from 'core-app/features/work-packages/routing/wp-base/wp--base.component';-import { WorkPackageSplitViewComponent } from 'core-app/features/work-packages/routing/wp-split-view/wp-split-view.component';-import { WorkPackagesFullViewComponent } from 'core-app/features/work-packages/routing/wp-full-view/wp-full-view.component';+import {+ WorkPackageSplitViewComponent,+} from 'core-app/features/work-packages/routing/wp-split-view/wp-split-view.component';+import {+ WorkPackagesFullViewComponent,+} from 'core-app/features/work-packages/routing/wp-full-view/wp-full-view.component';import { QueryFiltersService } from 'core-app/features/work-packages/components/wp-query/query-filters.service';-import { WorkPackageCardViewComponent } from 'core-app/features/work-packages/components/wp-card-view/wp-card-view.component';-import { WorkPackageRelationsService } from 'core-app/features/work-packages/components/wp-relations/wp-relations.service';+import {+ WorkPackageCardViewComponent,+} from 'core-app/features/work-packages/components/wp-card-view/wp-card-view.component';+import {+ WorkPackageRelationsService,+} from 'core-app/features/work-packages/components/wp-relations/wp-relations.service';import { OpenprojectBcfModule } from 'core-app/features/bim/bcf/openproject-bcf.module';-import { WorkPackageRelationsAutocompleteComponent } from 'core-app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.component';-import { CustomDateActionAdminComponent } from 'core-app/features/work-packages/components/wp-custom-actions/date-action/custom-date-action-admin.component';-import { WorkPackagesTableConfigMenuComponent } from 'core-app/features/work-packages/components/wp-table/config-menu/config-menu.component';-import { WorkPackageViewToggleButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-view-toggle-button/work-package-view-toggle-button.component';-import { WorkPackageViewDropdownMenuDirective } from 'core-app/shared/components/op-context-menu/handlers/wp-view-dropdown-menu.directive';+import {+ WorkPackageRelationsAutocompleteComponent,+} from 'core-app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.component';+import {+ CustomDateActionAdminComponent,+} from 'core-app/features/work-packages/components/wp-custom-actions/date-action/custom-date-action-admin.component';+import {+ WorkPackagesTableConfigMenuComponent,+} from 'core-app/features/work-packages/components/wp-table/config-menu/config-menu.component';+import {+ WorkPackageViewToggleButtonComponent,+} from 'core-app/features/work-packages/components/wp-buttons/wp-view-toggle-button/work-package-view-toggle-button.component';+import {+ WorkPackageViewDropdownMenuDirective,+} from 'core-app/shared/components/op-context-menu/handlers/wp-view-dropdown-menu.directive';import { HalEventsService } from 'core-app/features/hal/services/hal-events.service';import { OpenprojectProjectsModule } from 'core-app/features/projects/openproject-projects.module';-import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';-import { WorkPackageEditActionsBarComponent } from 'core-app/features/work-packages/components/edit-actions-bar/wp-edit-actions-bar.component';+import {+ WorkPackageNotificationService,+} from 'core-app/features/work-packages/services/notifications/work-package-notification.service';+import {+ WorkPackageEditActionsBarComponent,+} from 'core-app/features/work-packages/components/edit-actions-bar/wp-edit-actions-bar.component';import { HalResource } from 'core-app/features/hal/resources/hal-resource';import { WorkPackageChangeset } from 'core-app/features/work-packages/components/wp-edit/work-package-changeset';-import { WorkPackageSingleCardComponent } from 'core-app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component';-import { WorkPackageListViewComponent } from 'core-app/features/work-packages/routing/wp-list-view/wp-list-view.component';-import { PartitionedQuerySpacePageComponent } from 'core-app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component';-import { WorkPackageViewPageComponent } from 'core-app/features/work-packages/routing/wp-view-page/wp-view-page.component';-import { WorkPackageSettingsButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-settings-button/wp-settings-button.component';+import {+ WorkPackageSingleCardComponent,+} from 'core-app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component';+import {+ WorkPackageListViewComponent,+} from 'core-app/features/work-packages/routing/wp-list-view/wp-list-view.component';+import {+ PartitionedQuerySpacePageComponent,+} from 'core-app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component';+import {+ WorkPackageViewPageComponent,+} from 'core-app/features/work-packages/routing/wp-view-page/wp-view-page.component';+import {+ WorkPackageSettingsButtonComponent,+} from 'core-app/features/work-packages/components/wp-buttons/wp-settings-button/wp-settings-button.component';import { BackButtonComponent } from 'core-app/features/work-packages/components/back-routing/back-button.component';import { WorkPackagesTableComponent } from 'core-app/features/work-packages/components/wp-table/wp-table.component';-import { WorkPackageGroupToggleDropdownMenuDirective } from 'core-app/shared/components/op-context-menu/handlers/wp-group-toggle-dropdown-menu.directive';-import { OpenprojectAutocompleterModule } from 'core-app/shared/components/autocompleter/openproject-autocompleter.module';+import {+ WorkPackageGroupToggleDropdownMenuDirective,+} from 'core-app/shared/components/op-context-menu/handlers/wp-group-toggle-dropdown-menu.directive';+import {+ OpenprojectAutocompleterModule,+} from 'core-app/shared/components/autocompleter/openproject-autocompleter.module';import { OpWpTabsModule } from 'core-app/features/work-packages/components/wp-tabs/wp-tabs.module';-import { EditFieldControlsModule } from 'core-app/shared/components/fields/edit/field-controls/edit-field-controls.module';+import {+ EditFieldControlsModule,+} from 'core-app/shared/components/fields/edit/field-controls/edit-field-controls.module';import { DatePickerModalComponent } from 'core-app/shared/components/datepicker/datepicker.modal';import { WpTableExportModalComponent } from 'core-app/shared/components/modals/export-modal/wp-table-export.modal';-import { WpButtonMacroModalComponent } from 'core-app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal';+import {+ WpButtonMacroModalComponent,+} from 'core-app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal';import { QuerySharingModalComponent } from 'core-app/shared/components/modals/share-modal/query-sharing.modal';import { SaveQueryModalComponent } from 'core-app/shared/components/modals/save-modal/save-query.modal';import { QuerySharingFormComponent } from 'core-app/shared/components/modals/share-modal/query-sharing-form.component';import { WpDestroyModalComponent } from 'core-app/shared/components/modals/wp-destroy-modal/wp-destroy.modal';-import { WorkPackageTypeStatusComponent } from 'core-app/features/work-packages/components/wp-type-status/wp-type-status.component';-import { WorkPackageIsolatedQuerySpaceDirective } from 'core-app/features/work-packages/directives/query-space/wp-isolated-query-space.directive';-import { WorkPackageBreadcrumbParentComponent } from 'core-app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb-parent.component';-import { WorkPackageSubjectComponent } from 'core-app/features/work-packages/components/wp-subject/wp-subject.component';-import { WorkPackageBreadcrumbComponent } from 'core-app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.component';+import {+ WorkPackageTypeStatusComponent,+} from 'core-app/features/work-packages/components/wp-type-status/wp-type-status.component';+import {+ WorkPackageIsolatedQuerySpaceDirective,+} from 'core-app/features/work-packages/directives/query-space/wp-isolated-query-space.directive';+import {+ WorkPackageBreadcrumbParentComponent,+} from 'core-app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb-parent.component';+import {+ WorkPackageSubjectComponent,+} from 'core-app/features/work-packages/components/wp-subject/wp-subject.component';+import {+ WorkPackageBreadcrumbComponent,+} from 'core-app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.component';import { UserLinkComponent } from 'core-app/shared/components/user-link/user-link.component';-import { WorkPackageCommentComponent } from 'core-app/features/work-packages/components/work-package-comment/work-package-comment.component';-import { WorkPackageWatcherButtonComponent } from 'core-app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component';-import { WorkPackageCommentFieldComponent } from 'core-app/features/work-packages/components/work-package-comment/wp-comment-field.component';+import {+ WorkPackageCommentComponent,+} from 'core-app/features/work-packages/components/work-package-comment/work-package-comment.component';+import {+ WorkPackageWatcherButtonComponent,+} from 'core-app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component';+import {+ WorkPackageCommentFieldComponent,+} from 'core-app/features/work-packages/components/work-package-comment/wp-comment-field.component';import { WpResizerDirective } from 'core-app/shared/components/resizer/resizer/wp-resizer.component';import {GroupDescriptor,WorkPackageSingleViewComponent,} from 'core-app/features/work-packages/components/wp-single-view/wp-single-view.component';-import { WorkPackageIsolatedGraphQuerySpaceDirective } from 'core-app/features/work-packages/directives/query-space/wp-isolated-graph-query-space.directive';-import { RevisionActivityComponent } from 'core-app/features/work-packages/components/wp-activity/revision/revision-activity.component';-import { WorkPackageCopySplitViewComponent } from 'core-app/features/work-packages/components/wp-copy/wp-copy-split-view.component';-import { WorkPackageFormAttributeGroupComponent } from 'core-app/features/work-packages/components/wp-form-group/wp-attribute-group.component';+import {+ WorkPackageIsolatedGraphQuerySpaceDirective,+} from 'core-app/features/work-packages/directives/query-space/wp-isolated-graph-query-space.directive';+import {+ RevisionActivityComponent,+} from 'core-app/features/work-packages/components/wp-activity/revision/revision-activity.component';+import {+ WorkPackageCopySplitViewComponent,+} from 'core-app/features/work-packages/components/wp-copy/wp-copy-split-view.component';+import {+ WorkPackageFormAttributeGroupComponent,+} from 'core-app/features/work-packages/components/wp-form-group/wp-attribute-group.component';import { WorkPackagesGridComponent } from 'core-app/features/work-packages/components/wp-grid/wp-grid.component';-import { ActivityEntryComponent } from 'core-app/features/work-packages/components/wp-activity/activity-entry.component';+import {+ ActivityEntryComponent,+} from 'core-app/features/work-packages/components/wp-activity/activity-entry.component';import { ActivityLinkComponent } from 'core-app/features/work-packages/components/wp-activity/activity-link.component';-import { UserActivityComponent } from 'core-app/features/work-packages/components/wp-activity/user/user-activity.component';-import { WorkPackageSplitViewToolbarComponent } from 'core-app/features/work-packages/components/wp-details/wp-details-toolbar.component';-import { WorkPackageCopyFullViewComponent } from 'core-app/features/work-packages/components/wp-copy/wp-copy-full-view.component';+import {+ UserActivityComponent,+} from 'core-app/features/work-packages/components/wp-activity/user/user-activity.component';+import {+ WorkPackageSplitViewToolbarComponent,+} from 'core-app/features/work-packages/components/wp-details/wp-details-toolbar.component';+import {+ WorkPackageCopyFullViewComponent,+} from 'core-app/features/work-packages/components/wp-copy/wp-copy-full-view.component';import { OpenprojectTabsModule } from 'core-app/shared/components/tabs/openproject-tabs.module';import { TimeEntryChangeset } from 'core-app/features/work-packages/helpers/time-entries/time-entry-changeset';-import { AttachmentsUploadComponent } from 'core-app/shared/components/attachments/attachments-upload/attachments-upload.component';-import { AttachmentListComponent } from 'core-app/shared/components/attachments/attachment-list/attachment-list.component';-import { QueryFiltersComponent } from 'core-app/features/work-packages/components/filters/query-filters/query-filters.component';-import { FilterDateTimesValueComponent } from 'core-app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component';-import { FilterSearchableMultiselectValueComponent } from 'core-app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component';-import { QueryFilterComponent } from 'core-app/features/work-packages/components/filters/query-filter/query-filter.component';-import { FilterDatesValueComponent } from 'core-app/features/work-packages/components/filters/filter-dates-value/filter-dates-value.component';-import { FilterStringValueComponent } from 'core-app/features/work-packages/components/filters/filter-string-value/filter-string-value.component';-import { FilterDateValueComponent } from 'core-app/features/work-packages/components/filters/filter-date-value/filter-date-value.component';-import { FilterDateTimeValueComponent } from 'core-app/features/work-packages/components/filters/filter-date-time-value/filter-date-time-value.component';-import { FilterToggledMultiselectValueComponent } from 'core-app/features/work-packages/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component';-import { WorkPackageFilterByTextInputComponent } from 'core-app/features/work-packages/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.component';-import { FilterIntegerValueComponent } from 'core-app/features/work-packages/components/filters/filter-integer-value/filter-integer-value.component';-import { WorkPackageFilterContainerComponent } from 'core-app/features/work-packages/components/filters/filter-container/filter-container.directive';-import { FilterBooleanValueComponent } from 'core-app/features/work-packages/components/filters/filter-boolean-value/filter-boolean-value.component';-import { WorkPackageMarkNotificationButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component';-import { WorkPackageFilesTabComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/files-tab/op-files-tab.component';+import {+ AttachmentsUploadComponent,+} from 'core-app/shared/components/attachments/attachments-upload/attachments-upload.component';+import {+ AttachmentListComponent,+} from 'core-app/shared/components/attachments/attachment-list/attachment-list.component';+import {+ QueryFiltersComponent,+} from 'core-app/features/work-packages/components/filters/query-filters/query-filters.component';+import {+ FilterDateTimesValueComponent,+} from 'core-app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component';+import {+ FilterSearchableMultiselectValueComponent,+} from 'core-app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component';+import {+ QueryFilterComponent,+} from 'core-app/features/work-packages/components/filters/query-filter/query-filter.component';+import {+ FilterDatesValueComponent,+} from 'core-app/features/work-packages/components/filters/filter-dates-value/filter-dates-value.component';+import {+ FilterStringValueComponent,+} from 'core-app/features/work-packages/components/filters/filter-string-value/filter-string-value.component';+import {+ FilterDateValueComponent,+} from 'core-app/features/work-packages/components/filters/filter-date-value/filter-date-value.component';+import {+ FilterDateTimeValueComponent,+} from 'core-app/features/work-packages/components/filters/filter-date-time-value/filter-date-time-value.component';+import {+ FilterToggledMultiselectValueComponent,+} from 'core-app/features/work-packages/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component';+import {+ WorkPackageFilterByTextInputComponent,+} from 'core-app/features/work-packages/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.component';+import {+ FilterIntegerValueComponent,+} from 'core-app/features/work-packages/components/filters/filter-integer-value/filter-integer-value.component';+import {+ WorkPackageFilterContainerComponent,+} from 'core-app/features/work-packages/components/filters/filter-container/filter-container.directive';+import {+ FilterBooleanValueComponent,+} from 'core-app/features/work-packages/components/filters/filter-boolean-value/filter-boolean-value.component';+import {+ WorkPackageMarkNotificationButtonComponent,+} from 'core-app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component';+import {+ WorkPackageFilesTabComponent,+} from 'core-app/features/work-packages/components/wp-single-view-tabs/files-tab/op-files-tab.component';import { WorkPackagesQueryViewService } from 'core-app/features/work-packages/components/wp-list/wp-query-view.service';import isNewResource from 'core-app/features/hal/helpers/is-new-resource';+import { OpenprojectFileLinksModule } from 'core-app/shared/components/file-links/openproject-file-links.module';@NgModule({imports: [@@ -197,6 +418,7 @@ import isNewResource from 'core-app/features/hal/helpers/is-new-resource';EditFieldControlsModule,OpenprojectTabsModule,+ OpenprojectFileLinksModule,],providers: [// Notification service@@ -452,9 +674,11 @@ export class OpenprojectWorkPackagesModule {hookService.register('attributeGroupComponent', (group:GroupDescriptor, workPackage:WorkPackageResource) => {if (group.type === 'WorkPackageFormAttributeGroup') {return WorkPackageFormAttributeGroupComponent;- } if (!isNewResource(workPackage) && group.type === 'WorkPackageFormChildrenQueryGroup') {+ }+ if (!isNewResource(workPackage) && group.type === 'WorkPackageFormChildrenQueryGroup') {return WorkPackageChildrenQueryComponent;- } if (!isNewResource(workPackage) && group.type === 'WorkPackageFormRelationQueryGroup') {+ }+ if (!isNewResource(workPackage) && group.type === 'WorkPackageFormRelationQueryGroup') {return WorkPackageRelationQueryComponent;}return null;diff --git a/frontend/src/app/shared/components/attachments/openproject-attachments.module.ts b/frontend/src/app/shared/components/attachments/openproject-attachments.module.tsindex cc334e6db35..63e5c70dcb2 100644--- a/frontend/src/app/shared/components/attachments/openproject-attachments.module.ts+++ b/frontend/src/app/shared/components/attachments/openproject-attachments.module.ts@@ -56,6 +56,7 @@ import { AuthoringComponent } from './authoring/authoring.component';AttachmentsComponent,AuthoringComponent,+ AttachmentListItemComponent,],})export class OpenprojectAttachmentsModule {diff --git a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.component.ts b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.component.tsnew file mode 100644index 00000000000..392d55be1ec--- /dev/null+++ b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.component.ts@@ -0,0 +1,46 @@+// -- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2012-2022 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 COPYRIGHT and LICENSE files for more details.+//++++import {+ ChangeDetectionStrategy, Component, Input,+} from '@angular/core';+import { HalResource } from 'core-app/features/hal/resources/hal-resource';+import { IFileLink } from 'core-app/core/state/file-links/file-link.model';++@Component({+ selector: 'op-file-link-list-item',+ templateUrl: './file-link-list-item.html',+ changeDetection: ChangeDetectionStrategy.OnPush,+})+export class FileLinkListItemComponent {+ @Input() public resource:HalResource;++ @Input() public fileLink:IFileLink;++ @Input() public index:number;+}diff --git a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.html b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.htmlnew file mode 100644index 00000000000..dba6d697bb5--- /dev/null+++ b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.html@@ -0,0 +1,3 @@+<li>+ <span [textContent]="fileLink.originData.name"></span>+</li>\ No newline at end of filediff --git a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.tsnew file mode 100644index 00000000000..4e0ddae3c27--- /dev/null+++ b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts@@ -0,0 +1,53 @@+// -- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2012-2022 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 COPYRIGHT and LICENSE files for more details.+//++++import {+ ChangeDetectionStrategy, Component, Input, OnInit,+} from '@angular/core';+import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';+import { HalResource } from 'core-app/features/hal/resources/hal-resource';+import { Observable, of } from 'rxjs';+import { IFileLink } from 'core-app/core/state/file-links/file-link.model';++@Component({+ selector: 'op-file-link-list',+ templateUrl: './file-link-list.html',+ changeDetection: ChangeDetectionStrategy.OnPush,+})+export class FileLinkListComponent extends UntilDestroyedMixin implements OnInit {+ @Input() public resource:HalResource;++ $fileLinks:Observable<IFileLink[]>;++ ngOnInit():void {+ this.$fileLinks = of([+ { id: 1, originData: { name: 'awesome.png' } },+ { id: 2, originData: { name: 'logo.png' } },+ ]);+ }+}diff --git a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.html b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.htmlnew file mode 100644index 00000000000..32343fed44d--- /dev/null+++ b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.html@@ -0,0 +1,9 @@+<div class="work-package--attachments--files" *ngIf="resource">+ <ul class="form--selected-value--list"+ *ngFor="let fileLink of $fileLinks | async; let i = index;">+ <op-file-link-list-item [fileLink]="fileLink"+ [resource]="resource"+ [index]="i">+ </op-file-link-list-item>+ </ul>+</div>\ No newline at end of filediff --git a/frontend/src/app/shared/components/file-links/openproject-file-links.module.ts b/frontend/src/app/shared/components/file-links/openproject-file-links.module.tsnew file mode 100644index 00000000000..e701b14aac1--- /dev/null+++ b/frontend/src/app/shared/components/file-links/openproject-file-links.module.ts@@ -0,0 +1,51 @@+// -- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2012-2022 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 COPYRIGHT and LICENSE files for more details.+//++++import { NgModule } from '@angular/core';+import { CommonModule } from '@angular/common';+import { IconModule } from 'core-app/shared/components/icon/icon.module';++import { FileLinkListComponent } from 'core-app/shared/components/file-links/file-link-list/file-link-list.component';+import { FileLinkListItemComponent } from 'core-app/shared/components/file-links/file-link-list/file-link-list-item.component';++@NgModule({+ imports: [+ CommonModule,+ IconModule,+ ],+ declarations: [+ FileLinkListComponent,+ FileLinkListItemComponent,+ ],+ exports: [+ FileLinkListComponent,+ FileLinkListItemComponent,+ ],+})+export class OpenprojectFileLinksModule {+}