add version text
This commit is contained in:
parent
93e8010b5a
commit
7c04fbd806
3
packages/demobank-ui/src/declaration.d.ts
vendored
3
packages/demobank-ui/src/declaration.d.ts
vendored
@ -421,3 +421,6 @@ namespace SandboxBackend {
|
|||||||
type CashoutStatusResponseWithId = CashoutStatusResponse & { id: string };
|
type CashoutStatusResponseWithId = CashoutStatusResponse & { id: string };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare const __VERSION__: string;
|
||||||
|
declare const __GIT_HASH__: string;
|
||||||
|
@ -27,6 +27,14 @@ import { useSettings } from "../hooks/settings.js";
|
|||||||
import { ErrorMessage, onNotificationUpdate } from "../hooks/notification.js";
|
import { ErrorMessage, onNotificationUpdate } from "../hooks/notification.js";
|
||||||
|
|
||||||
const IS_PUBLIC_ACCOUNT_ENABLED = false;
|
const IS_PUBLIC_ACCOUNT_ENABLED = false;
|
||||||
|
const GIT_HASH = typeof __GIT_HASH__ !== "undefined" ? __GIT_HASH__ : undefined;
|
||||||
|
const VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : undefined;
|
||||||
|
|
||||||
|
const versionText = VERSION
|
||||||
|
? GIT_HASH
|
||||||
|
? `Version ${VERSION} (${GIT_HASH.substring(0, 8)})`
|
||||||
|
: VERSION
|
||||||
|
: "";
|
||||||
|
|
||||||
const logger = new Logger("BankFrame");
|
const logger = new Logger("BankFrame");
|
||||||
|
|
||||||
@ -156,7 +164,9 @@ export function BankFrame({
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div style="flex-grow:1" />
|
<div style="flex-grow:1" />
|
||||||
<p>Copyright © 2014—2022 Taler Systems SA</p>
|
<p>
|
||||||
|
Copyright © 2014—2022 Taler Systems SA. {versionText}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
|
Loading…
Reference in New Issue
Block a user