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
Correct module import of observable-array
Oliver Günthere15595e23c02
diff --git a/frontend/src/app/modules/hal/helpers/hal-resource-builder.ts b/frontend/src/app/modules/hal/helpers/hal-resource-builder.tsindex cc6244df40a..f2d3b6437e4 100644--- a/frontend/src/app/modules/hal/helpers/hal-resource-builder.ts+++ b/frontend/src/app/modules/hal/helpers/hal-resource-builder.ts@@ -3,7 +3,7 @@ import {OpenprojectHalModuleHelpers} from 'core-app/modules/hal/helpers/lazy-accimport {HalResourceService} from 'core-app/modules/hal/services/hal-resource.service';import {HalLink} from 'core-app/modules/hal/hal-link/hal-link';-const ObservableArray:any = require('observable-array');+import * as ObservableArray from 'observable-array';interface HalSource {_links:any;diff --git a/frontend/src/app/modules/hal/services/hal-resource.service.ts b/frontend/src/app/modules/hal/services/hal-resource.service.tsindex 94333552545..495b9458618 100644--- a/frontend/src/app/modules/hal/services/hal-resource.service.ts+++ b/frontend/src/app/modules/hal/services/hal-resource.service.ts@@ -28,13 +28,11 @@import {Injectable, Injector} from '@angular/core';import {HttpClient, HttpErrorResponse, HttpParams} from '@angular/common/http';-import {throwError} from 'rxjs/internal/observable/throwError';import {catchError, map} from 'rxjs/operators';-import {Observable} from 'rxjs';+import {Observable, throwError} from 'rxjs';import {HalResource, HalResourceClass} from 'core-app/modules/hal/resources/hal-resource';import {CollectionResource} from 'core-app/modules/hal/resources/collection-resource';import {HalLink, HalLinkInterface} from 'core-app/modules/hal/hal-link/hal-link';-import {initializeHalProperties} from 'core-app/modules/hal/helpers/hal-resource-builder';import {URLParamsEncoder} from 'core-app/modules/hal/services/url-params-encoder';import {ErrorResource} from "core-app/modules/hal/resources/error-resource";import * as Pako from 'pako';@@ -45,6 +43,7 @@ import {HTTPSupportedMethods} from "core-app/modules/hal/http/http.interfaces";import {whenDebugging} from "core-app/helpers/debug_output";+import {initializeHalProperties} from "../helpers/hal-resource-builder";export interface HalResourceFactoryConfigInterface {cls?:any;diff --git a/frontend/src/typings/observable-array.d.ts b/frontend/src/typings/observable-array.d.tsindex 49771e8c3ff..4467de5ee58 100644--- a/frontend/src/typings/observable-array.d.ts+++ b/frontend/src/typings/observable-array.d.ts@@ -1,58 +1 @@-// Declare some globals-// to work around previously magical global constants-// provided by typings@global--// Active issue-// https://github.com/Microsoft/TypeScript/issues/10178--/// <reference path="../../node_modules/@types/jquery/index.d.ts" />-/// <reference path="../../node_modules/@types/jqueryui/index.d.ts" />-/// <reference path="../../node_modules/@types/mousetrap/index.d.ts" />-/// <reference path="../../node_modules/@types/moment-timezone/index.d.ts" />-/// <reference path="../../node_modules/@types/urijs/index.d.ts" />-/// <reference path="../../node_modules/@types/webpack-env/index.d.ts" />-/// <reference path="../../node_modules/@types/es6-shim/index.d.ts" />-/// <reference path="../../node_modules/@types/dragula/index.d.ts" />--import {ErrorReporter} from "core-app/sentry/sentry-reporter";-import {Injector} from '@angular/core';--import {OpenProject} from 'core-app/globals/openproject';-import * as TLodash from 'lodash';-import * as TMoment from 'moment';-import {GlobalI18n} from "core-app/modules/common/i18n/i18n.service";-import {Dragula} from "dragula";--declare module 'observable-array';-declare module 'dom-autoscroller';-declare module 'core-vendor/enjoyhint';--declare global {- const _:typeof TLodash;- const moment:typeof TMoment;- const I18n:GlobalI18n;- const dragula:Dragula;-}--declare global {- interface Window {- appBasePath:string;- ng2Injector:Injector;- OpenProject:OpenProject;- ErrorReporter:ErrorReporter;- onboardingTourInstance:any;- }-- interface JQuery {- topShelf:any;- mark:any;- tablesorter:any;- }-- interface JQueryStatic {- metadata:any;- tablesorter:any;- }-}--export {};+declare module 'observable-array';\ No newline at end of file