[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: add version text
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: add version text |
Date: |
Wed, 26 Apr 2023 19:54:14 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 7c04fbd80 add version text
7c04fbd80 is described below
commit 7c04fbd806998fc4fa2690ff8d462542375c4d78
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Apr 26 14:54:07 2023 -0300
add version text
---
packages/demobank-ui/src/declaration.d.ts | 3 +++
packages/demobank-ui/src/pages/BankFrame.tsx | 12 +++++++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/packages/demobank-ui/src/declaration.d.ts
b/packages/demobank-ui/src/declaration.d.ts
index a37485272..462287c59 100644
--- a/packages/demobank-ui/src/declaration.d.ts
+++ b/packages/demobank-ui/src/declaration.d.ts
@@ -421,3 +421,6 @@ namespace SandboxBackend {
type CashoutStatusResponseWithId = CashoutStatusResponse & { id: string };
}
}
+
+declare const __VERSION__: string;
+declare const __GIT_HASH__: string;
diff --git a/packages/demobank-ui/src/pages/BankFrame.tsx
b/packages/demobank-ui/src/pages/BankFrame.tsx
index d8942a8e7..b1f3a7c5a 100644
--- a/packages/demobank-ui/src/pages/BankFrame.tsx
+++ b/packages/demobank-ui/src/pages/BankFrame.tsx
@@ -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 © 2014—2022 Taler Systems SA</p>
+ <p>
+ Copyright © 2014—2022 Taler Systems SA. {versionText}
+ </p>
</div>
</section>
</Fragment>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: add version text,
gnunet <=