mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-5845] remove Alfresco Compatibility usage (#8822)
* upgrade to latest js-api * upgrade to latest js-api * upgrade to latest js-api * upgrade to latest js-api * upgrade to latest js-api * upgrade to latest js-api * fix security concerns for execSync * security fix * fixes as per code reviews * code fixes for attach file widget dialog * code fixes * code fixes * disable ACS storage check * add the jira to the commented out block * remove useless logger call * code fixes * code fixes * code fixes * code and typing fixes * fix lint * disable the code * try other fixes, add missing headers * dump error to console * replace test file with in-memory stream * code fixes * simplify checks * disable upload * remove useless test and ng-mocks dependency
This commit is contained in:
@@ -17,12 +17,10 @@
|
||||
|
||||
import { PluginInterface } from './plugin-model';
|
||||
import { logger } from '../logger';
|
||||
import { AlfrescoApi } from '@alfresco/js-api';
|
||||
|
||||
export class PluginConfiguration {
|
||||
constructor(
|
||||
private plugInInfo: PluginInterface,
|
||||
private alfrescoJsApi: any
|
||||
) {}
|
||||
constructor(private plugInInfo: PluginInterface, private alfrescoJsApi: AlfrescoApi) {}
|
||||
|
||||
async getAppConfig(url: string) {
|
||||
return this.callCustomApi(url);
|
||||
@@ -52,10 +50,7 @@ export class PluginConfiguration {
|
||||
|
||||
return response;
|
||||
} catch (error) {
|
||||
logger.error(
|
||||
`${this.plugInInfo.host} is not reachable error: `,
|
||||
error
|
||||
);
|
||||
logger.error(`${this.plugInInfo.host} is not reachable error: `, error);
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user