gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: fix last commit


From: gnunet
Subject: [taler-wallet-core] branch master updated: fix last commit
Date: Thu, 15 Feb 2024 21:19:08 +0100

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 2c17e98c3 fix last commit
2c17e98c3 is described below

commit 2c17e98c336d96f955ec82ad0a1b164e3da90103
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Feb 15 17:18:59 2024 -0300

    fix last commit
---
 .../src/pages/AntiMoneyLaunderingForm.tsx                |  9 ++++-----
 packages/aml-backoffice-ui/src/pages/CaseDetails.tsx     |  4 +++-
 packages/challenger-ui/README.md                         |  4 ++--
 packages/challenger-ui/create_must.sh                    | 16 +++++++++++-----
 4 files changed, 20 insertions(+), 13 deletions(-)

diff --git a/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.tsx 
b/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.tsx
index 21faff058..bab672192 100644
--- a/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.tsx
+++ b/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.tsx
@@ -3,6 +3,8 @@ import {
   AmountJson,
   Amounts,
   Codec,
+  OperationFail,
+  OperationOk,
   OperationResult,
   buildCodecForObject,
   codecForNumber,
@@ -49,7 +51,7 @@ export function AntiMoneyLaunderingForm({
     <DefaultForm
       initial={initial}
       form={theForm.impl(initial)}
-      onUpdate={() => {}}
+      onUpdate={() => { }}
       onSubmit={(formValue) => {
         if (formValue.state === undefined || formValue.threshold === undefined)
           return;
@@ -113,10 +115,7 @@ type ParseJustificationFail =
 export function parseJustification(
   s: string,
   listOfAllKnownForms: FormMetadata<any>[],
-): OperationResult<
-  { justification: Justification; metadata: FormMetadata<any> },
-  ParseJustificationFail
-> {
+): OperationOk<{ justification: Justification; metadata: FormMetadata<any> }> 
| OperationFail<ParseJustificationFail> {
   try {
     const justification = JSON.parse(s);
     const info = codecForSimpleFormMetadata().decode(justification);
diff --git a/packages/aml-backoffice-ui/src/pages/CaseDetails.tsx 
b/packages/aml-backoffice-ui/src/pages/CaseDetails.tsx
index 3da3c21ea..0875f047b 100644
--- a/packages/aml-backoffice-ui/src/pages/CaseDetails.tsx
+++ b/packages/aml-backoffice-ui/src/pages/CaseDetails.tsx
@@ -67,8 +67,10 @@ function titleForJustification(op: ReturnType<typeof 
parseJustification>, i18n:
     case "id-not-found": return "error: justification form's id not found" as 
TranslatedString
     case "version-not-found": return "error: justification form's version not 
found" as TranslatedString
     case "form-not-found": return `error: justification form not found` as 
TranslatedString
+    default: {
+      assertUnreachable(op.case)
+    }
   }
-  assertUnreachable(op.case)
 }
 
 export function getEventsFromAmlHistory(
diff --git a/packages/challenger-ui/README.md b/packages/challenger-ui/README.md
index 855addd74..ac589ace6 100644
--- a/packages/challenger-ui/README.md
+++ b/packages/challenger-ui/README.md
@@ -1,4 +1,4 @@
-# Taler Exchange Backoffice UI
+# Challenger Backoffice UI
 
-Web-based user interface for the GNU Taler exchange.
+Web-based user interface for the GNU Challenger.
 
diff --git a/packages/challenger-ui/create_must.sh 
b/packages/challenger-ui/create_must.sh
index 1a92dd302..a4d78b2cc 100755
--- a/packages/challenger-ui/create_must.sh
+++ b/packages/challenger-ui/create_must.sh
@@ -1,19 +1,25 @@
 #!/bin/bash
+# This file is in the public domain.
+
+# After the compilation succeeded
+# some changes needs to be made
+# in the html/js files to match the
+# what the service expects
 
 cd dist/prod
 
 for file in *.html; do
 
-  #remove the js reference used for dev
+  # 1. remove the js reference used for dev
   sed /main.js/d -i $file
 
-  #change the location of css since challenger backend
-  #wants them in the root path
+  # 2. change the location of css since 
+  #challenger backend wants them in the root path
   sed 's/="main.css"/="..\/main.css"/' -i $file
 
-  #rename the extension to must template
+  # 3. rename the extension to must template
   mv $file ${file:0:-5}.en.must
 done
 
 #delete unused files
-rm main.js main.js.map main.css.map
+rm *.js *.map

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]