Release notes section added

This commit is contained in:
Piotr Pekala 2019-06-28 00:46:44 -07:00
parent eaf38d4374
commit c1de0c9625
4 changed files with 15 additions and 1 deletions

View File

@ -18,7 +18,8 @@
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"assets": [ "assets": [
"src/assets", "src/assets",
"src/favicon.ico" "src/favicon.ico",
"src/ReleaseNotes.txt"
], ],
"styles": [ "styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css", "node_modules/bootstrap/dist/css/bootstrap.min.css",

1
src/ReleaseNotes.txt Normal file
View File

@ -0,0 +1 @@
Current version: 2019.2.0

View File

@ -9,6 +9,12 @@
</mat-expansion-panel-header> </mat-expansion-panel-header>
<div [innerHTML]="thirdpartylicenses"></div> <div [innerHTML]="thirdpartylicenses"></div>
</mat-expansion-panel> </mat-expansion-panel>
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title> Release notes </mat-panel-title>
</mat-expansion-panel-header>
<div [innerHTML]="releasenotes"></div>
</mat-expansion-panel>
</mat-accordion> </mat-accordion>
</div> </div>
</div> </div>

View File

@ -8,6 +8,7 @@ styleUrls: ['./help.component.scss']
}) })
export class HelpComponent implements OnInit { export class HelpComponent implements OnInit {
thirdpartylicenses = ''; thirdpartylicenses = '';
releasenotes = '';
constructor( constructor(
private httpClient: HttpClient private httpClient: HttpClient
@ -23,5 +24,10 @@ export class HelpComponent implements OnInit {
this.thirdpartylicenses = 'File not found'; this.thirdpartylicenses = 'File not found';
} }
}); });
this.httpClient.get('ReleaseNotes.txt', {responseType: 'text'})
.subscribe(data => {
this.releasenotes = data.replace(new RegExp('\n', 'g'), "<br />")
});
} }
} }