web: Expose debug info, fix view on mobile.
This commit is contained in:
17
web/src/version-info.ts
Normal file
17
web/src/version-info.ts
Normal file
@ -0,0 +1,17 @@
|
||||
export interface VersionInfo {
|
||||
version: string;
|
||||
hash: string;
|
||||
raw: string;
|
||||
}
|
||||
|
||||
const gitVersion: { hash: string; raw: string } = process.env
|
||||
.VUE_APP_HFF_ENTRY_FORMS_GIT_HASH
|
||||
? JSON.parse(process.env.VUE_APP_HFF_ENTRY_FORMS_GIT_HASH)
|
||||
: { hash: 'missing', raw: 'missing' };
|
||||
|
||||
export const VERSION: VersionInfo = {
|
||||
...gitVersion,
|
||||
version: process.env.VUE_APP_HFF_ENTRY_FORMS_VERSION || 'unavailable',
|
||||
};
|
||||
|
||||
export default VERSION;
|
Reference in New Issue
Block a user