Agent menu (#540)

* Add generate version module script

* Remove Fork me on GitHub banner

* Add app-version.ts

* Revert "Add app-version.ts"

This reverts commit fe1a37e631.

* Add app-version.ts

* Add agent icon class

* Move settings component under agent folder

* Add AboutComponent

* Add agent routes

* Add index.ts for agent folder

* Fix agent folder imports in shared module

* Add agent menu to side menu, with Settings and About pages under it

* Fix agent icon alignment in side menu

* Simplify About page

* Make Agent menu 0 level in side menu

* Remove bottom Settings menu

* Fix Agent menu closing if My UHK is closed in side menu

* Fix version text alignment in auto update settings

* Remove github fork ribbon styles

* use package.json instead of app-version.ts

* fix OpenUrlInNewWindow naming

* fix lint request

* fix: firmware download url calculation
This commit is contained in:
Mikko Lakomaa
2018-01-13 17:10:21 +01:00
committed by László Monda
parent fdcf64d5c6
commit 3ee6c680a1
34 changed files with 199 additions and 137 deletions
+1
View File
@@ -1,2 +1,3 @@
export * from './html-helper';
export * from './validators';
export * from './version-helper';
@@ -0,0 +1,22 @@
import { VersionInformation } from 'uhk-common';
const collectVersions = (): VersionInformation => {
const pkgJson = require('../../../../../package.json');
return {
version: pkgJson['version'],
firmwareVersion: pkgJson['firmwareVersion'],
deviceProtocolVersion: pkgJson['deviceProtocolVersion'],
moduleProtocolVersion: pkgJson['moduleProtocolVersion'],
userConfigVersion: pkgJson['userConfigVersion'],
hardwareConfigVersion: pkgJson['hardwareConfigVersion']
};
};
let versions: VersionInformation;
export const getVersions = (): VersionInformation => {
if (!versions) {
versions = collectVersions();
}
return versions;
};