[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:
Eugenio Romano
2021-11-23 10:30:10 +00:00
committed by GitHub
parent dcb966f391
commit c8688bf0bf
56 changed files with 1079 additions and 777 deletions

View File

@@ -1,5 +1,8 @@
{
"APP": {
"ABOUT": {
"DEVELOPMENT":"Dev Mode"
},
"INFO_DRAWER": {
"TITLE": "Details",
"COMMENTS": "Comments",

View File

@@ -1,11 +1,4 @@
<adf-about-github-link [application]="application" [url]="url" [version]="version"></adf-about-github-link>
<mat-slide-toggle [(ngModel)]="dev">{{'APP.ABOUT.DEVELOPMENT' | translate }}</mat-slide-toggle>
<adf-about-server-settings></adf-about-server-settings>
<adf-about [dev]="dev" [pkg]="pkg"> </adf-about>
<adf-about-product-version> </adf-about-product-version>
<adf-about-application-modules
[dependencies]="dependencies"
[showExtensions]="showExtensions"
>
</adf-about-application-modules>

View File

@@ -15,27 +15,20 @@
* limitations under the License.
*/
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
import pkg from '../../../../../package.json';
import { AppConfigService } from '@alfresco/adf-core';
@Component({
selector: 'app-about-page',
templateUrl: './about.component.html',
styleUrls: ['./about.component.scss']
})
export class AboutComponent implements OnInit {
url = `https://github.com/Alfresco/${pkg.name}/commits/${pkg.commit}`;
version = pkg.version;
dependencies = pkg.dependencies;
showExtensions = true;
application = '';
export class AboutComponent {
pkg: any;
dev: true;
constructor(private appConfigService: AppConfigService) {}
ngOnInit() {
this.application = this.appConfigService.get<string>(
'application.name'
);
constructor() {
this.pkg = pkg;
}
}