mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2240] fix e2e and test in demo shell (#3035)
* fix e2e and test in demo shell * test single run demo shell conf * fix script e2e * fix test lint problems * remove async from nested test * fix pdf test * modify url load pdf strategy test * SimpleChange import * pdf viewer test fix * remove force closing * refactor pdf viewer -remove promise approach -add event rendered -add destroy worker * increment timeout * use proxy files * remove require * fix viewer component test * remove last require * prefer use of done for txt viewer test
This commit is contained in:
@@ -33,29 +33,6 @@ export class BpmProductVersionModel {
|
||||
}
|
||||
}
|
||||
|
||||
export class EcmProductVersionModel {
|
||||
edition: string;
|
||||
version: VersionModel;
|
||||
license: LicenseModel;
|
||||
status: VersionStatusModel;
|
||||
modules: VersionModuleModel[] = [];
|
||||
|
||||
constructor(obj?: any) {
|
||||
if (obj && obj.entry && obj.entry.repository) {
|
||||
this.edition = obj.entry.repository.edition || null;
|
||||
this.version = new VersionModel(obj.entry.repository.version);
|
||||
this.license = new LicenseModel(obj.entry.repository.license);
|
||||
this.status = new VersionStatusModel(obj.entry.repository.status);
|
||||
if (obj.entry.repository.modules) {
|
||||
obj.entry.repository.modules.forEach((module) => {
|
||||
this.modules.push(new VersionModuleModel(module));
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export class VersionModel {
|
||||
major: string;
|
||||
minor: string;
|
||||
@@ -139,3 +116,26 @@ export class VersionModuleModel {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class EcmProductVersionModel {
|
||||
edition: string;
|
||||
version: VersionModel;
|
||||
license: LicenseModel;
|
||||
status: VersionStatusModel;
|
||||
modules: VersionModuleModel[] = [];
|
||||
|
||||
constructor(obj?: any) {
|
||||
if (obj && obj.entry && obj.entry.repository) {
|
||||
this.edition = obj.entry.repository.edition || null;
|
||||
this.version = new VersionModel(obj.entry.repository.version);
|
||||
this.license = new LicenseModel(obj.entry.repository.license);
|
||||
this.status = new VersionStatusModel(obj.entry.repository.status);
|
||||
if (obj.entry.repository.modules) {
|
||||
obj.entry.repository.modules.forEach((module) => {
|
||||
this.modules.push(new VersionModuleModel(module));
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user