[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: support optional content in the UI
From: |
gnunet |
Subject: |
[libeufin] branch master updated: support optional content in the UI |
Date: |
Thu, 26 May 2022 15:10:22 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new be42c5ab support optional content in the UI
be42c5ab is described below
commit be42c5ab68a17d17cacb52920af70934c7b6079d
Author: ms <ms@taler.net>
AuthorDate: Thu May 26 15:10:18 2022 +0200
support optional content in the UI
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 4 ++++
sandbox/src/main/resources/static/spa.html | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 5b44fc5d..5b061c1a 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -1032,6 +1032,10 @@ val sandboxApp: Application.() -> Unit = {
if (spa == null) throw internalServerError("SPA not found!")
// load whole SPA from disk. Now <200KB, fine to block-read
it.
var content = String(spa.readBytes(), Charsets.UTF_8)
+ content = content.replace(
+ "__LIBEUFIN_UI_IS_DEMO__",
+ demobank.withSignupBonus.toString()
+ )
val landingUrl = System.getenv(
"TALER_ENV_URL_INTRO") ?: "https://demo.taler.net/"
content = content.replace("__DEMO_SITE_LANDING_URL__",
landingUrl)
diff --git a/sandbox/src/main/resources/static/spa.html
b/sandbox/src/main/resources/static/spa.html
index fc04a95c..a7ced233 100644
--- a/sandbox/src/main/resources/static/spa.html
+++ b/sandbox/src/main/resources/static/spa.html
@@ -6,4 +6,4 @@ https://github.com/yahoo/pure/blob/master/LICENSE.md
*//*!
normalize.css v^3.0 | MIT License | git.io/normalize
Copyright (c) Nicolas Gallagher and Jonathan Neal
-*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css
*/html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[
[...]
\ No newline at end of file
+*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css
*/html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[
[...]
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: support optional content in the UI,
gnunet <=