Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…7365) * about page refactor for global usage * Development About * add storybook * fix build * fix * fix * fix imports * fix * fix lint * fix * fix * fix * fix
- Loading branch information
Showing
56 changed files
with
1,079 additions
and
777 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"APP": { | ||
"ABOUT": { | ||
"DEVELOPMENT":"Dev Mode" | ||
}, | ||
"INFO_DRAWER": { | ||
"TITLE": "Details", | ||
"COMMENTS": "Comments", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 0 additions & 62 deletions
62
lib/core/about/about-application-modules/about-application-modules.component.html
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
lib/core/about/about-application-modules/about-application-modules.component.scss
This file was deleted.
Oops, something went wrong.
107 changes: 0 additions & 107 deletions
107
lib/core/about/about-application-modules/about-application-modules.component.spec.ts
This file was deleted.
Oops, something went wrong.
78 changes: 0 additions & 78 deletions
78
lib/core/about/about-application-modules/about-application-modules.component.ts
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
lib/core/about/about-extension-list/about-extension-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<mat-table [dataSource]="data"> | ||
<ng-container *ngFor="let column of columns" [matColumnDef]="column.columnDef"> | ||
<mat-header-cell *matHeaderCellDef> | ||
{{ column.header | translate }} | ||
</mat-header-cell> | ||
<mat-cell *matCellDef="let row">{{ column.cell(row) }}</mat-cell> | ||
</ng-container> | ||
|
||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row> | ||
<mat-row *matRowDef="let row; columns: displayedColumns"></mat-row> | ||
</mat-table> |
45 changes: 45 additions & 0 deletions
45
lib/core/about/about-extension-list/about-extension-list.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/*! | ||
* @license | ||
* Copyright 2019 Alfresco Software, Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@angular/core'; | ||
import { ExtensionRef } from '@alfresco/adf-extensions'; | ||
|
||
@Component({ | ||
selector: 'adf-about-extension-list', | ||
templateUrl: './about-extension-list.component.html', | ||
encapsulation: ViewEncapsulation.None, | ||
changeDetection: ChangeDetectionStrategy.OnPush | ||
}) | ||
export class AboutExtensionListComponent { | ||
columns = [ | ||
{ | ||
columnDef: 'name', | ||
header: 'ABOUT.PLUGINS.NAME', | ||
cell: (row: ExtensionRef) => `${row.$name}` | ||
}, | ||
{ | ||
columnDef: 'version', | ||
header: 'ABOUT.PLUGINS.VERSION', | ||
cell: (row: ExtensionRef) => `${row.$version}` | ||
} | ||
]; | ||
|
||
displayedColumns = this.columns.map((x) => x.columnDef); | ||
|
||
@Input() | ||
data: Array<ExtensionRef> = []; | ||
} |
22 changes: 10 additions & 12 deletions
22
lib/core/about/about-github-link/about-github-link.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
<div class="adf-github-link-container"> | ||
<div> | ||
<h3 data-automation-id="adf-github-source-code-title">{{ 'ABOUT.SOURCE_CODE.TITLE' | translate }}</h3> | ||
<mat-card> | ||
<h3 data-automation-id="adf-github-app-title">{{application}}</h3> | ||
<p *ngIf="version" data-automation-id="adf-github-version">{{ 'ABOUT.VERSION' | translate }}: {{ version }}</p> | ||
<header data-automation-id="adf-github-source-code-title">{{ 'ABOUT.SOURCE_CODE.TITLE' | translate }}</header> | ||
<mat-card class="mat-elevation-z0"> | ||
<h3 data-automation-id="adf-github-app-title">{{application}}</h3> | ||
<p *ngIf="version" data-automation-id="adf-github-version">{{ 'ABOUT.VERSION' | translate }}: {{ version }}</p> | ||
|
||
<div *ngIf="url"> | ||
<small>{{ 'ABOUT.SOURCE_CODE.DESCRIPTION' | translate }}</small> | ||
<div data-automation-id="adf-github-url"> | ||
<a [href]="url" target="_blank">{{url}}</a> | ||
</div> | ||
<div *ngIf="url"> | ||
<small>{{ 'ABOUT.SOURCE_CODE.DESCRIPTION' | translate }}</small> | ||
<div data-automation-id="adf-github-url"> | ||
<a [href]="url" target="_blank">{{url}}</a> | ||
</div> | ||
</mat-card> | ||
</div> | ||
</div> | ||
</mat-card> | ||
</div> |
Oops, something went wrong.