[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: -fix sort countries
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: -fix sort countries |
Date: |
Wed, 29 Jun 2022 16:54:45 +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 da024a4b -fix sort countries
da024a4b is described below
commit da024a4b92e69e4b19a9fd01eea34571eef4cbdc
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Jun 29 11:53:59 2022 -0300
-fix sort countries
---
packages/anastasis-core/src/anastasis-data.ts | 2 +-
packages/anastasis-webui/clean_and_build.sh | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/packages/anastasis-core/src/anastasis-data.ts
b/packages/anastasis-core/src/anastasis-data.ts
index fbc11034..f312cd5a 100644
--- a/packages/anastasis-core/src/anastasis-data.ts
+++ b/packages/anastasis-core/src/anastasis-data.ts
@@ -217,7 +217,7 @@ export const anastasisData = {
},
call_code: "+00",
},
- ],
+ ].sort((a, b) => a.name > b.name ? 1 : (a.name < b.name ? -1 : 0)),
},
countryDetails: {
al: {
diff --git a/packages/anastasis-webui/clean_and_build.sh
b/packages/anastasis-webui/clean_and_build.sh
index dd8d0d19..a88dc9c3 100755
--- a/packages/anastasis-webui/clean_and_build.sh
+++ b/packages/anastasis-webui/clean_and_build.sh
@@ -20,7 +20,7 @@ function build_js() {
pnpm exec esbuild --log-level=error
--define:process.env.__VERSION__=\"${VERSION}\"
--define:process.env.__GIT_HASH__=\"${GIT_HASH}\" --bundle $1 --outdir=dist
--target=es6 --loader:.svg=dataurl --format=iife --sourcemap --jsx-factory=h
--jsx-fragment=Fragment --platform=browser --minify
}
-function bundle_html() {
+function build_html() {
cat html/$1.html \
| sed -e '/ANASTASIS_SCRIPT_CONTENT/ {' -e 'r dist/main.js' -e 'd' -e
'}' \
| sed -e '/ANASTASIS_STYLE_CONTENT/ {' -e 'r dist/main.css' -e 'd' -e
'}' \
@@ -49,8 +49,8 @@ wait -n
pnpm run --silent test -- -R dot
echo html
-bundle_html ui
-bundle_html ui-dev
+build_html ui
+build_html ui-dev
if [ "WATCH" == "$1" ]; then
@@ -61,7 +61,7 @@ if [ "WATCH" == "$1" ]; then
inotifywait -e close_write -r src -q -m | while read line; do
echo $(date) $line
build_js src/main.ts
- bundle ui-dev
+ build_html ui-dev
./watch/send.sh '{"type":"RELOAD"}'
done;
fi
--
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: -fix sort countries,
gnunet <=