[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated (20b0b31a -> 67493d98)
From: |
gnunet |
Subject: |
[libeufin] branch master updated (20b0b31a -> 67493d98) |
Date: |
Thu, 26 May 2022 12:02:01 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a change to branch master
in repository libeufin.
from 20b0b31a fix config show
new da2ed835 Give option to set Web page title.
new 67493d98 fix help message
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt | 2 ++
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 12 +++++++++++-
sandbox/src/main/resources/static/spa.html | 2 +-
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
index c2dd5662..27f5d3d0 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
@@ -98,6 +98,7 @@ object DemobankConfigsTable : LongIdTable() {
val name = text("hostname")
val suggestedExchangeBaseUrl = text("suggestedExchangeBaseUrl").nullable()
val suggestedExchangePayto = text("suggestedExchangePayto").nullable()
+ val uiTitle = text("uiTitle")
}
class DemobankConfigEntity(id: EntityID<Long>) : LongEntity(id) {
@@ -110,6 +111,7 @@ class DemobankConfigEntity(id: EntityID<Long>) :
LongEntity(id) {
var name by DemobankConfigsTable.name
var suggestedExchangeBaseUrl by
DemobankConfigsTable.suggestedExchangeBaseUrl
var suggestedExchangePayto by DemobankConfigsTable.suggestedExchangePayto
+ var uiTitle by DemobankConfigsTable.uiTitle
}
/**
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index df53a5d9..5b44fc5d 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -144,6 +144,9 @@ class Config : CliktCommand(
"--show",
help = "Only show values, other options will be ignored."
).flag("--no-show", default = false)
+ private val uiTitleOption by option(
+ "--ui-title", help = "Title of the Web UI"
+ ).default("Demo Bank")
private val currencyOption by option("--currency").default("EUR")
private val bankDebtLimitOption by
option("--bank-debt-limit").int().default(1000000)
private val usersDebtLimitOption by
option("--users-debt-limit").int().default(1000)
@@ -178,6 +181,7 @@ class Config : CliktCommand(
val allowRegistrations =
maybeDemobank.demoBank.allowRegistrations
val name = maybeDemobank.demoBank.name //
always 'default'
val withSignupBonus =
maybeDemobank.demoBank.withSignupBonus
+ val uiTitle = maybeDemobank.demoBank.uiTitle
})
)
return@transaction
@@ -193,6 +197,7 @@ class Config : CliktCommand(
allowRegistrations = allowRegistrationsOption
name = nameArgument
this.withSignupBonus = withSignupBonusOption
+ uiTitle = uiTitleOption
}
BankAccountEntity.new {
iban = getIban()
@@ -210,6 +215,7 @@ class Config : CliktCommand(
maybeDemobank.demoBank.allowRegistrations =
allowRegistrationsOption
maybeDemobank.demoBank.withSignupBonus = withSignupBonusOption
maybeDemobank.demoBank.name = nameArgument
+ maybeDemobank.demoBank.uiTitle = uiTitleOption
}
}
}
@@ -288,7 +294,7 @@ class MakeTransaction : CliktCommand("Wire-transfer money
between Sandbox bank a
val demobank = getDemobank("default")
if (demobank == null) {
println("Sandbox cannot operate without a 'default' demobank.")
- println("Please make one with the 'libeufin-cli config' command.")
+ println("Please make one with the 'libeufin-sandbox config'
command.")
exitProcess(1)
}
try {
@@ -1045,6 +1051,10 @@ val sandboxApp: Application.() -> Unit = {
"__LIBEUFIN_UI_ALLOW_REGISTRATIONS__",
demobank.allowRegistrations.toString()
)
+ content = content.replace(
+ "__LIBEUFIN_UI_BANK_NAME__",
+ demobank.uiTitle
+ )
call.respondText(content, ContentType.Text.Html)
return@get
}
diff --git a/sandbox/src/main/resources/static/spa.html
b/sandbox/src/main/resources/static/spa.html
index 61d2496e..fc04a95c 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.
- [libeufin] branch master updated (20b0b31a -> 67493d98),
gnunet <=