mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-3317] Split About component into smaller components (#5708)
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
<adf-about-github-link
|
||||
[url]="url"
|
||||
[version]="version">
|
||||
</adf-about-github-link>
|
||||
<adf-about-github-link [application]="application" [url]="url" [version]="version"></adf-about-github-link>
|
||||
|
||||
<adf-about-product-version>
|
||||
</adf-about-product-version>
|
||||
<adf-about-server-settings></adf-about-server-settings>
|
||||
|
||||
<adf-about-product-version> </adf-about-product-version>
|
||||
|
||||
<adf-about-application-modules
|
||||
[dependencies]="dependencies"
|
||||
[showExtensions]="showExtensions">
|
||||
[showExtensions]="showExtensions"
|
||||
>
|
||||
</adf-about-application-modules>
|
||||
|
@@ -15,22 +15,32 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Component } from '@angular/core';
|
||||
import { name, version, commit, dependencies } from '../../../../../package.json';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {
|
||||
name,
|
||||
version,
|
||||
commit,
|
||||
dependencies
|
||||
} 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 {
|
||||
|
||||
export class AboutComponent implements OnInit {
|
||||
url = `https://github.com/Alfresco/${name}/commits/${commit}`;
|
||||
version = version;
|
||||
dependencies = dependencies;
|
||||
showExtensions = true;
|
||||
application = '';
|
||||
|
||||
constructor() {
|
||||
constructor(private appConfigService: AppConfigService) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.application = this.appConfigService.get<string>(
|
||||
'application.name'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user