diff --git a/src/app/layouts/frontend-layout.component.html b/src/app/layouts/frontend-layout.component.html index 4cca73f7a2..4b6b96523b 100644 --- a/src/app/layouts/frontend-layout.component.html +++ b/src/app/layouts/frontend-layout.component.html @@ -1,2 +1,5 @@ - +
+ © 2018, 8bit Solutions LLC +
{{'versionNumber' | i18n : version}} +
diff --git a/src/app/layouts/frontend-layout.component.ts b/src/app/layouts/frontend-layout.component.ts index 85aa1dc87f..8510c1bc0e 100644 --- a/src/app/layouts/frontend-layout.component.ts +++ b/src/app/layouts/frontend-layout.component.ts @@ -4,12 +4,19 @@ import { OnInit, } from '@angular/core'; +import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; + @Component({ selector: 'app-frontend-layout', templateUrl: 'frontend-layout.component.html', }) export class FrontendLayoutComponent implements OnInit, OnDestroy { + version: string; + + constructor(private platformUtilsService: PlatformUtilsService) { } + ngOnInit() { + this.version = this.platformUtilsService.getApplicationVersion(); document.body.classList.add('layout_frontend'); } diff --git a/webpack.config.js b/webpack.config.js index 15679d50af..b9257fe1be 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -134,6 +134,7 @@ const serve = { key: fs.readFileSync('dev-server' + certSuffix + '.pem'), cert: fs.readFileSync('dev-server' + certSuffix + '.pem'), }, + hot: false, }; const config = {