mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[AD-4222] e2e compilation fixes (#4426)
* Run tsc on the e2e folder and as part of the sh script * in progress * in progress * in progress * in progress * in progress * in progress * fixing compile errors * fixing compile errors. * Fix the apiService and exclude nodemodules * Add semicolumn * fix import * fix configuration test package * fix * fix errors * fix typescript * restore packages.json * fix errors after rebase * fix type prolems and add protracotr path mapping * remove undefined
This commit is contained in:
committed by
Eugenio Romano
parent
f891ea3df5
commit
fc2132e248
@@ -17,21 +17,20 @@
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import TestConfig = require('../../test.config');
|
||||
import { AlfrescoApiConfig } from '@alfresco/js-api/src/alfrescoApiConfig';
|
||||
|
||||
export class ApiService {
|
||||
|
||||
HOST_SSO = TestConfig.adf.hostSso;
|
||||
HOST_BPM = TestConfig.adf.hostBPM;
|
||||
HOST_IDENTITY = TestConfig.adf.hostIdentity;
|
||||
HOST_SSO: string = TestConfig.adf.hostSso;
|
||||
HOST_BPM: string = TestConfig.adf.hostBPM;
|
||||
HOST_IDENTITY: string = TestConfig.adf.hostIdentity;
|
||||
|
||||
apiService = new AlfrescoApi({
|
||||
config: AlfrescoApiConfig = {
|
||||
provider: 'BPM',
|
||||
bpmHost: `${this.HOST_BPM}`,
|
||||
identityHost: `${this.HOST_IDENTITY}`,
|
||||
hostBpm: this.HOST_BPM,
|
||||
authType: 'OAUTH',
|
||||
oauth2: {
|
||||
host: `${this.HOST_SSO}`,
|
||||
authType: '/protocol/openid-connect/token',
|
||||
host: this.HOST_SSO,
|
||||
clientId: 'activiti',
|
||||
scope: 'openid',
|
||||
secret: '',
|
||||
@@ -41,7 +40,9 @@ export class ApiService {
|
||||
redirectUriLogout: '/logout'
|
||||
}
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
apiService: any = new AlfrescoApi(this.config);
|
||||
|
||||
async login(username, password) {
|
||||
await this.apiService.login(username, password);
|
||||
|
||||
@@ -17,15 +17,11 @@
|
||||
|
||||
import { ApiService } from '../APS-cloud/apiservice';
|
||||
import { Util } from '../../util/util';
|
||||
import { AppConfigService } from '@alfresco/adf-core';
|
||||
|
||||
export class GroupIdentity {
|
||||
|
||||
api: ApiService = new ApiService();
|
||||
|
||||
constructor(appConfig: AppConfigService) {
|
||||
}
|
||||
|
||||
async init(username, password) {
|
||||
await this.api.login(username, password);
|
||||
}
|
||||
|
||||
@@ -17,15 +17,11 @@
|
||||
|
||||
import { ApiService } from '../APS-cloud/apiservice';
|
||||
import { Util } from '../../util/util';
|
||||
import { AppConfigService } from '@alfresco/adf-core';
|
||||
|
||||
export class Identity {
|
||||
|
||||
api: ApiService = new ApiService();
|
||||
|
||||
constructor(appConfig: AppConfigService) {
|
||||
}
|
||||
|
||||
async init(username, password) {
|
||||
await this.api.login(username, password);
|
||||
}
|
||||
|
||||
@@ -16,15 +16,11 @@
|
||||
*/
|
||||
|
||||
import { ApiService } from '../APS-cloud/apiservice';
|
||||
import { AppConfigService } from '@alfresco/adf-core';
|
||||
|
||||
export class Roles {
|
||||
|
||||
api: ApiService = new ApiService();
|
||||
|
||||
constructor(appConfig: AppConfigService) {
|
||||
}
|
||||
|
||||
async init(username, password) {
|
||||
await this.api.login(username, password);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ let JS_BIND_INPUT = function (target) {
|
||||
};
|
||||
|
||||
let JS_BIND_INPUT_FOLDER = function (target) {
|
||||
let input = document.createElement('input');
|
||||
let input: any = document.createElement('input');
|
||||
input.type = 'file';
|
||||
input.style.display = 'none';
|
||||
input.multiple = true;
|
||||
|
||||
Reference in New Issue
Block a user