add version text

This commit is contained in:
Sebastian 2023-04-26 14:54:07 -03:00
parent 93e8010b5a
commit 7c04fbd806
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069
2 changed files with 14 additions and 1 deletions

View File

@ -421,3 +421,6 @@ namespace SandboxBackend {
type CashoutStatusResponseWithId = CashoutStatusResponse & { id: string };
}
}
declare const __VERSION__: string;
declare const __GIT_HASH__: string;

View File

@ -27,6 +27,14 @@ import { useSettings } from "../hooks/settings.js";
import { ErrorMessage, onNotificationUpdate } from "../hooks/notification.js";
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");
@ -156,7 +164,9 @@ export function BankFrame({
</p>
</div>
<div style="flex-grow:1" />
<p>Copyright &copy; 2014&mdash;2022 Taler Systems SA</p>
<p>
Copyright &copy; 2014&mdash;2022 Taler Systems SA. {versionText}
</p>
</div>
</section>
</Fragment>