[ADF-5331] - Alpha ADF/JS-API update has been successfully created. (#6639)

* remove unused script
refactor the alpha build to use the JS-API in the branch all the time

* use alpha build number

* rewire maxretry

* Delete check-js-api-version.js
This commit is contained in:
Eugenio Romano
2021-02-08 16:00:44 +00:00
committed by GitHub
parent 94ec7d06a7
commit 2071596fe6
14 changed files with 278 additions and 795 deletions

View File

@@ -243,14 +243,15 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
};
constructor(private apiService: AlfrescoApiService,
private viewUtils: ViewUtilService,
private viewUtilService: ViewUtilService,
private logService: LogService,
private extensionService: AppExtensionService,
private el: ElementRef) {
viewUtilService.maxRetries = this.maxRetries;
}
isSourceDefined(): boolean {
return (this.urlFile || this.blobFile || this.nodeId || this.sharedLinkId) ? true : false;
return !!(this.urlFile || this.blobFile || this.nodeId || this.sharedLinkId);
}
ngOnInit() {
@@ -261,12 +262,12 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
);
this.subscriptions.push(
this.viewUtils.viewerTypeChange.subscribe((type: string) => {
this.viewUtilService.viewerTypeChange.subscribe((type: string) => {
this.viewerType = type;
})
);
this.subscriptions.push(
this.viewUtils.urlFileContentChange.subscribe((content: string) => {
this.viewUtilService.urlFileContentChange.subscribe((content: string) => {
this.urlFileContent = content;
})
);
@@ -410,9 +411,9 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
if (this.viewerType === 'unknown') {
if (versionData) {
setupNode = this.viewUtils.displayNodeRendition(nodeData.id, versionData.id);
setupNode = this.viewUtilService.displayNodeRendition(nodeData.id, versionData.id);
} else {
setupNode = this.viewUtils.displayNodeRendition(nodeData.id);
setupNode = this.viewUtilService.displayNodeRendition(nodeData.id);
}
}
@@ -620,7 +621,7 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
this.print.next(args);
if (!args.defaultPrevented) {
this.viewUtils.printFileGeneric(this.nodeId, this.mimeType);
this.viewUtilService.printFileGeneric(this.nodeId, this.mimeType);
}
}
}