-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(*): add types for app environment and config
* refactor(portal): subtitute authconfig by authservice check. * refactor(environment): now based on env from igo2-lib * feat(app): add function to compute app version * feat(*): substitute default value calculation to the getConfig method * refactor(*): minor interface changes * feat(app): adding environnement for app extending the lib * refactor(portal): simplify config handling
- Loading branch information
Showing
15 changed files
with
156 additions
and
287 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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ConfigService, version } from '@igo2/core'; | ||
|
||
export function getAppVersion(configService: ConfigService): string { | ||
return ( | ||
configService.getConfig('version.app') || | ||
configService.getConfig('version.lib') || | ||
version.lib | ||
); | ||
} |
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
Oops, something went wrong.