-
Notifications
You must be signed in to change notification settings - Fork 151
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
* upgrade to latest adf-extensions * switch to ADF RepositoryState * show extensions on About page, i18n fixes * update docs * cleanup about styles * greatly simplify app dependencies rendering * fix linting * fix tests
- Loading branch information
1 parent
3061bc4
commit 1c7f31e
Showing
27 changed files
with
6,110 additions
and
151 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 |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
/dist | ||
/tmp | ||
/out-tsc | ||
/src/versions.json | ||
|
||
# dependencies | ||
/node_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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,38 +1,126 @@ | ||
<app-page-layout> | ||
|
||
<app-page-layout-content [scrollable]="true"> | ||
<div class="main-content"> | ||
<article class="padding"> | ||
<header class="header padding-left">Alfresco Content Application</header> | ||
<p class="padding-left"> version: {{ releaseVersion }} </p> | ||
<article> | ||
<header>{{ 'application.name' | adfAppConfig }}</header> | ||
<p>{{ 'APP.ABOUT.VERSION' | translate }} {{ releaseVersion }}</p> | ||
</article> | ||
|
||
<article *ngIf="repository" class="padding"> | ||
<header class="header padding-left">Alfresco Content Services</header> | ||
<p class="padding-left"> version: {{ repository.edition }} {{ repository.version.display }} </p> | ||
<article> | ||
<header>{{ 'APP.ABOUT.PLUGINS.TITLE' | translate }}</header> | ||
<div> | ||
<mat-table [dataSource]="extensions$ | async"> | ||
<ng-container matColumnDef="$id"> | ||
<mat-header-cell *matHeaderCellDef | ||
>{{ 'APP.ABOUT.PLUGINS.ID' | translate }} | ||
</mat-header-cell> | ||
<mat-cell *matCellDef="let element">{{ element.$id }}</mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="$name"> | ||
<mat-header-cell *matHeaderCellDef>{{ | ||
'APP.ABOUT.PLUGINS.NAME' | translate | ||
}}</mat-header-cell> | ||
<mat-cell *matCellDef="let element">{{ element.$name }}</mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="$version"> | ||
<mat-header-cell *matHeaderCellDef>{{ | ||
'APP.ABOUT.PLUGINS.VERSION' | translate | ||
}}</mat-header-cell> | ||
<mat-cell *matCellDef="let element">{{ | ||
element.$version | ||
}}</mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="$vendor"> | ||
<mat-header-cell *matHeaderCellDef>{{ | ||
'APP.ABOUT.PLUGINS.VENDOR' | translate | ||
}}</mat-header-cell> | ||
<mat-cell *matCellDef="let element">{{ | ||
element.$vendor | ||
}}</mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="$license"> | ||
<mat-header-cell *matHeaderCellDef>{{ | ||
'APP.ABOUT.PLUGINS.LICENSE' | translate | ||
}}</mat-header-cell> | ||
<mat-cell *matCellDef="let element">{{ | ||
element.$license | ||
}}</mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="$runtime"> | ||
<mat-header-cell *matHeaderCellDef>{{ | ||
'APP.ABOUT.PLUGINS.RUNTIME' | translate | ||
}}</mat-header-cell> | ||
<mat-cell *matCellDef="let element">{{ | ||
element.$runtime | ||
}}</mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="$description"> | ||
<mat-header-cell *matHeaderCellDef>{{ | ||
'APP.ABOUT.PLUGINS.DESCRIPTION' | translate | ||
}}</mat-header-cell> | ||
<mat-cell *matCellDef="let element">{{ | ||
element.$description | ||
}}</mat-cell> | ||
</ng-container> | ||
|
||
<mat-header-row | ||
*matHeaderRowDef="extensionColumns" | ||
></mat-header-row> | ||
<mat-row *matRowDef="let row; columns: extensionColumns"></mat-row> | ||
</mat-table> | ||
</div> | ||
</article> | ||
|
||
<article *ngIf="repository"> | ||
<header>Alfresco Content Services</header> | ||
<p> | ||
{{ 'APP.ABOUT.VERSION' | translate }} {{ repository.edition }} | ||
{{ repository.version.display }} | ||
</p> | ||
</article> | ||
|
||
<article class="padding-top-bottom" *ngIf="license"> | ||
<header class="header padding-left-right">License</header> | ||
<article *ngIf="license"> | ||
<header>{{ 'APP.ABOUT.LICENSE.TITLE' | translate }}</header> | ||
<adf-datatable [data]="license"></adf-datatable> | ||
</article> | ||
|
||
<article class="padding-top-bottom"> | ||
<header class="header padding-left-right">Status</header> | ||
<article> | ||
<header>{{ 'APP.ABOUT.STATUS.TITLE' | translate }}</header> | ||
<adf-datatable [data]="status"></adf-datatable> | ||
</article> | ||
|
||
<article class="padding-top-bottom"> | ||
<header class="header padding-left-right">Modules</header> | ||
<article> | ||
<header>{{ 'APP.ABOUT.MODULES.TITLE' | translate }}</header> | ||
<adf-datatable [data]="modules"></adf-datatable> | ||
</article> | ||
|
||
<article> | ||
<header class="header padding-left-right">Packages</header> | ||
<small class="padding-left-right">Current project is using the following ADF libraries:</small> | ||
<adf-datatable [data]="data"></adf-datatable> | ||
<header>{{ 'APP.ABOUT.PACKAGES.TITLE' | translate }}</header> | ||
<mat-table [dataSource]="dependencyEntries"> | ||
<ng-container matColumnDef="name"> | ||
<mat-header-cell *matHeaderCellDef>{{ | ||
'APP.ABOUT.PACKAGES.NAME' | translate | ||
}}</mat-header-cell> | ||
<mat-cell *matCellDef="let element">{{ element.name }}</mat-cell> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="version"> | ||
<mat-header-cell *matHeaderCellDef>{{ | ||
'APP.ABOUT.PACKAGES.VERSION' | translate | ||
}}</mat-header-cell> | ||
<mat-cell *matCellDef="let element">{{ element.version }}</mat-cell> | ||
</ng-container> | ||
|
||
<mat-header-row *matHeaderRowDef="dependencyColumns"></mat-header-row> | ||
<mat-row *matRowDef="let row; columns: dependencyColumns"></mat-row> | ||
</mat-table> | ||
</article> | ||
</div> | ||
</app-page-layout-content> | ||
|
||
</app-page-layout> |
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,39 +1,29 @@ | ||
@mixin aca-about-component-theme($theme) { | ||
$foreground: map-get($theme, foreground); | ||
|
||
article { | ||
color: mat-color($foreground, text, 0.54); | ||
} | ||
|
||
article:first-of-type { | ||
padding-bottom: 0; | ||
} | ||
|
||
article:last-of-type { | ||
margin-bottom: 50px; | ||
} | ||
|
||
header { | ||
line-height: 24px; | ||
font-size: 14px; | ||
font-weight: 800; | ||
letter-spacing: -0.2px; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
color: mat-color($foreground, text, 0.87); | ||
} | ||
|
||
.padding { | ||
padding: 25px; | ||
} | ||
|
||
.padding-top-bottom { | ||
padding: 25px 0 25px 0; | ||
} | ||
|
||
.padding-left-right { | ||
padding: 0 25px 0 25px; | ||
.app-about { | ||
.main-content { | ||
padding: 10px; | ||
|
||
article { | ||
color: mat-color($foreground, text, 0.54); | ||
padding: 25px 0 25px 0; | ||
|
||
& > header { | ||
line-height: 24px; | ||
font-size: 14px; | ||
font-weight: 800; | ||
letter-spacing: -0.2px; | ||
} | ||
} | ||
|
||
article:first-of-type { | ||
padding-bottom: 0; | ||
} | ||
|
||
article:last-of-type { | ||
margin-bottom: 50px; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.