[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 03/07: switch to __-wrapped placeholders
From: |
gnunet |
Subject: |
[libeufin] 03/07: switch to __-wrapped placeholders |
Date: |
Tue, 10 May 2022 12:41:29 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit 87323259c859c52578b63b068fbfc0bb8489924c
Author: ms <ms@taler.net>
AuthorDate: Mon May 9 12:03:33 2022 +0200
switch to __-wrapped placeholders
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index a75184f3..91615a08 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -144,9 +144,9 @@ class Config : CliktCommand(
private val bankDebtLimitOption by
option("--bank-debt-limit").int().default(1000000)
private val usersDebtLimitOption by
option("--users-debt-limit").int().default(1000)
private val allowRegistrationsOption by option(
- "--allow-registrations",
+ "--with-registrations",
help = "(default: true)" /* mentioning here as help message did not.
*/
- ).flag(default = true)
+ ).flag("--without-registrations", default = true)
private val withSignupBonusOption by option(
"--with-signup-bonus",
help = "Award new customers with 100 units of currency!"
@@ -1005,21 +1005,21 @@ val sandboxApp: Application.() -> Unit = {
var content = String(spa.readBytes(), Charsets.UTF_8)
val landingUrl = System.getenv(
"TALER_ENV_URL_INTRO") ?: "https://demo.taler.net/"
- content = content.replace("%DEMO_SITE_LANDING_URL%",
landingUrl)
+ content = content.replace("__DEMO_SITE_LANDING_URL__",
landingUrl)
val bankUrl = System.getenv(
"TALER_ENV_URL_BANK") ?:
"https://demo.taler.net/sandbox/demobanks/default/"
- content = content.replace("%DEMO_SITE_BANK_URL%", bankUrl)
+ content = content.replace("__DEMO_SITE_BANK_URL__", bankUrl)
val blogUrl = System.getenv(
"TALER_ENV_URL_MERCHANT_BLOG") ?:
"https://demo.taler.net/blog/"
- content = content.replace("%DEMO_SITE_BLOG_URL%", blogUrl)
+ content = content.replace("__DEMO_SITE_BLOG_URL__", blogUrl)
val donationsUrl = System.getenv(
"TALER_ENV_URL_MERCHANT_DONATIONS") ?:
"https://demo.taler.net/donations/"
- content = content.replace("%DEMO_SITE_DONATIONS_URL%",
donationsUrl)
+ content = content.replace("__DEMO_SITE_DONATIONS_URL__",
donationsUrl)
val surveyUrl = System.getenv(
"TALER_ENV_URL_MERCHANT_SURVEY") ?:
"https://demo.taler.net/survey/"
- content = content.replace("%DEMO_SITE_SURVEY_URL%", surveyUrl)
+ content = content.replace("__DEMO_SITE_SURVEY_URL__",
surveyUrl)
content = content.replace(
- "%LIBEUFIN_UI_ALLOW_REGISTRATIONS%",
+ "__LIBEUFIN_UI_ALLOW_REGISTRATIONS__",
demobank.allowRegistrations.toString()
)
call.respondText(content, ContentType.Text.Html)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libeufin] branch master updated (eb937c60 -> 12138ed7), gnunet, 2022/05/10
- [libeufin] 03/07: switch to __-wrapped placeholders,
gnunet <=
- [libeufin] 01/07: Make registrations optional., gnunet, 2022/05/10
- [libeufin] 02/07: extend --override help message, gnunet, 2022/05/10
- [libeufin] 05/07: --override option affects now only the registration policy., gnunet, 2022/05/10
- [libeufin] 06/07: help message, gnunet, 2022/05/10
- [libeufin] 04/07: SPA, gnunet, 2022/05/10
- [libeufin] 07/07: help message, gnunet, 2022/05/10