-fix sort countries
This commit is contained in:
parent
257f4e9a8e
commit
da024a4b92
@ -217,7 +217,7 @@ export const anastasisData = {
|
|||||||
},
|
},
|
||||||
call_code: "+00",
|
call_code: "+00",
|
||||||
},
|
},
|
||||||
],
|
].sort((a, b) => a.name > b.name ? 1 : (a.name < b.name ? -1 : 0)),
|
||||||
},
|
},
|
||||||
countryDetails: {
|
countryDetails: {
|
||||||
al: {
|
al: {
|
||||||
|
@ -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
|
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 \
|
cat html/$1.html \
|
||||||
| sed -e '/ANASTASIS_SCRIPT_CONTENT/ {' -e 'r dist/main.js' -e 'd' -e '}' \
|
| 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 '}' \
|
| 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
|
pnpm run --silent test -- -R dot
|
||||||
|
|
||||||
echo html
|
echo html
|
||||||
bundle_html ui
|
build_html ui
|
||||||
bundle_html ui-dev
|
build_html ui-dev
|
||||||
|
|
||||||
if [ "WATCH" == "$1" ]; then
|
if [ "WATCH" == "$1" ]; then
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ if [ "WATCH" == "$1" ]; then
|
|||||||
inotifywait -e close_write -r src -q -m | while read line; do
|
inotifywait -e close_write -r src -q -m | while read line; do
|
||||||
echo $(date) $line
|
echo $(date) $line
|
||||||
build_js src/main.ts
|
build_js src/main.ts
|
||||||
bundle ui-dev
|
build_html ui-dev
|
||||||
./watch/send.sh '{"type":"RELOAD"}'
|
./watch/send.sh '{"type":"RELOAD"}'
|
||||||
done;
|
done;
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user