forked from philorg/treetrail-frontend
Add client version
This commit is contained in:
parent
963d3437c0
commit
5409616530
4 changed files with 7 additions and 6 deletions
|
@ -4,7 +4,7 @@
|
|||
</mat-card-title>
|
||||
<mat-card-content>
|
||||
<h2>Version</h2>
|
||||
<!--<p><span class='h'>Client: </span>{{ version }}></p>-->
|
||||
<p><span class='h'>Client: </span>{{ version }}></p>
|
||||
<p><span class='h'>Server: </span>{{ (configService.conf | async).bootstrap.server.version }}</p>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
|
@ -1,8 +1,7 @@
|
|||
import { Component, OnInit } from '@angular/core'
|
||||
|
||||
import { ConfigService } from '../config.service'
|
||||
// TODO: get the dynamic version from the git tags
|
||||
//import packageJson from '../../../package.json'
|
||||
import versionJson from '../../version.json'
|
||||
|
||||
@Component({
|
||||
selector: 'app-about',
|
||||
|
@ -14,7 +13,7 @@ export class AboutComponent implements OnInit {
|
|||
public configService: ConfigService,
|
||||
) { }
|
||||
|
||||
//public version: string = packageJson.version
|
||||
public version: string = versionJson.version
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
|
3
src/version.json
Normal file
3
src/version.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"version": "0.0.0"
|
||||
}
|
|
@ -15,9 +15,8 @@
|
|||
"importHelpers": true,
|
||||
"target": "ES2022",
|
||||
"module": "es2020",
|
||||
// TODO: get the dynamic version from the git tags
|
||||
//"allowSyntheticDefaultImports": true,
|
||||
//"resolveJsonModule": true,
|
||||
"resolveJsonModule": true,
|
||||
"lib": [
|
||||
"es2019",
|
||||
"dom"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue