mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-4382 ] About Page refactoring to use it across all the platform (#7365)
* about page refactor for global usage * Development About * add storybook * fix build * fix * fix * fix imports * fix * fix lint * fix * fix * fix * fix
This commit is contained in:
@@ -32,110 +32,3 @@ export class BpmProductVersionModel {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class VersionModel {
|
||||
major: string;
|
||||
minor: string;
|
||||
patch: string;
|
||||
hotfix: string;
|
||||
schema: number;
|
||||
label: string;
|
||||
display: string;
|
||||
|
||||
constructor(obj?: any) {
|
||||
if (obj) {
|
||||
this.major = obj.major || null;
|
||||
this.minor = obj.minor || null;
|
||||
this.patch = obj.patch || null;
|
||||
this.hotfix = obj.hotfix || null;
|
||||
this.schema = obj.schema || null;
|
||||
this.label = obj.label || null;
|
||||
this.display = obj.display || null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class LicenseModel {
|
||||
issuedAt: string;
|
||||
expiresAt: string;
|
||||
remainingDays: number;
|
||||
holder: string;
|
||||
mode: string;
|
||||
isClusterEnabled: boolean;
|
||||
isCryptodocEnabled: boolean;
|
||||
|
||||
constructor(obj?: any) {
|
||||
if (obj) {
|
||||
this.issuedAt = obj.issuedAt || null;
|
||||
this.expiresAt = obj.expiresAt || null;
|
||||
this.remainingDays = obj.remainingDays || null;
|
||||
this.holder = obj.holder || null;
|
||||
this.mode = obj.mode || null;
|
||||
this.isClusterEnabled = !!obj.isClusterEnabled;
|
||||
this.isCryptodocEnabled = !!obj.isCryptodocEnabled;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class VersionStatusModel {
|
||||
isReadOnly: boolean;
|
||||
isAuditEnabled: boolean;
|
||||
isQuickShareEnabled: boolean;
|
||||
isThumbnailGenerationEnabled: boolean;
|
||||
|
||||
constructor(obj?: any) {
|
||||
if (obj) {
|
||||
this.isReadOnly = !!obj.isReadOnly;
|
||||
this.isAuditEnabled = !!obj.isAuditEnabled;
|
||||
this.isQuickShareEnabled = !!obj.isQuickShareEnabled;
|
||||
this.isThumbnailGenerationEnabled = !!obj.isThumbnailGenerationEnabled;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class VersionModuleModel {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
version: string;
|
||||
installDate: string;
|
||||
installState: string;
|
||||
versionMin: string;
|
||||
versionMax: string;
|
||||
|
||||
constructor(obj?: any) {
|
||||
if (obj) {
|
||||
this.id = obj.id || null;
|
||||
this.title = obj.title || null;
|
||||
this.description = obj.description || null;
|
||||
this.version = obj.version || null;
|
||||
this.installDate = obj.installDate || null;
|
||||
this.installState = obj.installState || null;
|
||||
this.versionMin = obj.versionMin || null;
|
||||
this.versionMax = obj.versionMax || null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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