Fix require statements that can be imports

pull/8529/head
Oliver Günther 4 years ago
parent e15595e23c
commit e2e172b008
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 8
      frontend/src/app/init-globals.ts
  2. 3
      frontend/src/app/modules/bim/bcf/api/bcf-api-request.service.ts
  3. 6
      frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tooltips.sass
  4. 3
      frontend/src/app/modules/global_search/input/global-search-input.component.ts
  5. 1
      frontend/src/tsconfig.app.json
  6. 3
      frontend/src/typings/shims.d.ts
  7. 2
      frontend/tsconfig.test.json

@ -30,7 +30,7 @@ import 'hammerjs';
// Global scripts previously part of the application.js
// Avoid require.context since that crashes angular regularly
require('./globals/dynamic-bootstrapper');
require('./globals/global-listeners');
require('./globals/openproject');
require('./globals/tree-menu');
import './globals/dynamic-bootstrapper';
import './globals/global-listeners';
import './globals/openproject';
import './globals/tree-menu';

@ -2,7 +2,7 @@ import {HttpClient, HttpErrorResponse, HttpParams} from "@angular/common/http";
import {Injector} from "@angular/core";
import {TypedJSON} from "typedjson";
import {Constructor} from "@angular/cdk/table";
import {Observable} from "rxjs";
import {Observable, throwError} from "rxjs";
import {
HTTPClientHeaders,
HTTPClientOptions,
@ -11,7 +11,6 @@ import {
} from "core-app/modules/hal/http/http.interfaces";
import {URLParamsEncoder} from "core-app/modules/hal/services/url-params-encoder";
import {catchError, map} from "rxjs/operators";
import {throwError} from "rxjs/internal/observable/throwError";
import {InjectField} from "core-app/helpers/angular/inject-field.decorator";
export class BcfApiRequestService<T> {

@ -3,7 +3,11 @@
.xeokit-toolbar [data-tippy-content]
@extend .tooltip--bottom
&:after
@extend [data-tooltip]:after
position: absolute
visibility: hidden
z-index: 99999
box-sizing: content-box
transform: translate3d(0, 0, 0)
content: attr(data-tippy-content)
opacity: 1
left: 0

@ -49,11 +49,10 @@ import {DeviceService} from "core-app/modules/common/browser/device.service";
import {NgSelectComponent} from "@ng-select/ng-select";
import {Observable, of} from "rxjs";
import {Highlighting} from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
import {map, tap, take, filter} from "rxjs/internal/operators";
import {HalResourceNotificationService} from "core-app/modules/hal/services/hal-resource-notification.service";
import {DebouncedRequestSwitchmap, errorNotificationHandler} from "core-app/helpers/rxjs/debounced-input-switchmap";
import {LinkHandling} from "core-app/modules/common/link-handling/link-handling";
import {APIV3Service} from "core-app/modules/apiv3/api-v3.service";
import {filter, map, take, tap} from "rxjs/operators";
export const globalSearchSelector = 'global-search-input';

@ -13,7 +13,6 @@
],
"include": [
"**/*.d.ts",
"app/globals/**/*.ts",
"app/modules/augmenting/dynamic-scripts/*.ts"
]
}

@ -22,7 +22,9 @@ import * as TLodash from 'lodash';
import * as TMoment from 'moment';
import {GlobalI18n} from "core-app/modules/common/i18n/i18n.service";
import {Dragula} from "dragula";
import {Screenfull} from "screenfull";
declare module 'observable-array';
declare module 'dom-autoscroller';
declare module 'core-vendor/enjoyhint';
@ -40,6 +42,7 @@ declare global {
OpenProject:OpenProject;
ErrorReporter:ErrorReporter;
onboardingTourInstance:any;
screenfull:Screenfull;
}
interface JQuery {

@ -10,6 +10,6 @@
},
"files": [
"app/components/**/*.test.ts",
"app/typings/*"
]
}

Loading…
Cancel
Save