web: Expose debug info, fix view on mobile.

This commit is contained in:
2021-10-27 14:02:38 -05:00
parent 21304533f9
commit 3553ce4ea1
15 changed files with 215 additions and 12 deletions

17
web/src/version-info.ts Normal file
View 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;