Commit Graph

678 Commits

Author SHA1 Message Date
softsimon
3f990ff706
Corrected some missing spaces on transactions page and a blank render bug when confirmation time is below 1 minute. 2020-12-02 17:03:04 +07:00
wiz
4658b47007
Implement i18n support in frontend using Angular + Transifex + NGINX
This PR adds basic i18n support into the mempool frontend, together with
a smooth workflow for developers and translators to collaborate:

* Using the existing @angular/localize module, developers add i18n
metadata to any frontend strings their new features or changes modify

* Using the new npm script `i18n-extract-from-source`, developers
extract the i18n data from source code into `src/locale/messages.xlf`

* After pushing the updated `src/locale/messages.xlf` to GitHub, the
Transifex service will update its database from the new source data

* Using the Transifex website UI, translators can work together to
translate all the mempool frontend strings into their native languages

* Using the new npm script `i18n-pull-from-transifex`, developers can
pull in completed translations from Transifex, and commit them into git.

This flow requires an API key from Transifex, which can be obtained at
https://www.transifex.com/user/settings/api/ to be used with the python
script installed by `pip install transifex-client` - after preparing
these, run the npm script which will ask you for the API key the first
time. When downloading is complete, you can test building the frontend,
and if successful, commit the new strings files into git.

This PR implements a new locale selector in the footer of the homepage
dashboard, and includes WIP translations for the following languages:

* Czech (cs)
* German (de)
* Japanese (ja)
* Norwegian (nn)
* Spanish (es)
* Swedish (sv)
* Ukrainian (uk)
* Persian (fa)
* Portugese (pt)
* Turkish (tr)
* Dutch (nl)
* French (fr)
* Chinese (zh)
* Slovenian (sl)
* Korean (ko)
* Polish (pl)

The user-agent's `Accept-Language` header is used to automatically
detect their preferred language, which can be manually overriden by the
pull-down selector, which saves their preference to a cookie, which is
used by nginx to serve the correct HTML bundle to the user.

Remaining tasks include adding i18n metadata for strings in the Bisq and
Liquid frontend code, mouseover hover tooltip strings, hard-coded og
metadata inside HTML templates, and many other places. This will be done
in a separate PR.

When upgrading to add i18n support, mempool instance operators must take
care to install the new nginx.conf and nginx-mempool.conf files, and
tweak for their specific site configuration.

Fixes #81
2020-12-02 04:19:33 +09:00
softsimon
f151eb81c8
Merge pull request #195 from mempool/wiz/angular-10.2.3
Upgrade angular from 10.0.4 to 10.2.3, typescript from 3.9.7 to 4.0.5
2020-11-28 02:09:52 +07:00
wiz
9b89d9977f
Upgrade angular from 10.0.4 to 10.2.3, typescript from 3.9.7 to 4.0.5 2020-11-28 04:04:45 +09:00
softsimon
c7abb7a08a
Merge pull request #189 from mempool/only-return-active-bisq-markets
Modify /bisq/api/v1/markets/markets to only return active markets
2020-11-23 22:02:13 +07:00
wiz
d613aec395
Modify /bisq/api/v1/markets/markets to only return active markets
As per https://github.com/bisq-network/bisq/issues/4826 and https://github.com/bisq-network/bisq/pull/4831
2020-11-23 22:46:14 +09:00
softsimon
9e716aa913
Remove unnecessary @types/axios dependency. 2020-11-23 18:36:55 +07:00
wiz
824bc21035
Same npm fix for running tsc from ./node_modules for backend 2020-11-23 17:26:22 +09:00
wiz
e51a4ce028
Set npm to run ng and tsc binaries from ./node_modules/ path 2020-11-23 17:19:16 +09:00
wiz
fdf9cf7977
Merge pull request #186 from mempool/simon/update-pricefeed
Replace opennode usd price source with wiz api.
2020-11-23 16:06:15 +09:00
softsimon
bd67eec777
correcting merge 2020-11-23 11:46:04 +07:00
wiz
2fd559a7e1
Merge pull request #185 from mempool/simon/liquid-fixes
Liquid asset display bug fixes
2020-11-23 10:11:43 +09:00
wiz
9059c0c7e4
Merge remote-tracking branch 'origin/master' into simon/update-pricefeed 2020-11-23 09:56:23 +09:00
wiz
8fab153fb0
Remove extra space in price server URL 2020-11-23 09:48:06 +09:00
wiz
827c5d12a3
Modify upgrade script to append repo before tag name 2020-11-23 09:46:50 +09:00
softsimon
c0d2430a84
Merge "getInitData" method from simon/angular-universal. 2020-11-23 02:38:56 +07:00
softsimon
1521d47cc7
Replace opennode usd price source with wiz api.
fixes #166
2020-11-22 16:48:55 +07:00
softsimon
6bc6966019
Display confidential instead of nothing for confidential assets.
fixes #110
2020-11-22 16:30:36 +07:00
softsimon
01689c8433
Detect confidential assets and display properly.
fixes #109
2020-11-22 16:19:57 +07:00
softsimon
11d67cf756
Allow searching for and viewing assets not in the asset registry.
fixes #111
2020-11-22 16:03:23 +07:00
wiz
30fb0bad78
Tweak ASM opcode styling colors 2020-11-21 18:17:29 +09:00
softsimon
742ce7c429
Merge pull request #184 from mempool/wiz/style-asm-opcodes
Add some color and styling to the Bitcoin ASM opcodes
2020-11-21 03:33:54 +07:00
wiz
9e83fdc9f2
Add some color and styling to the Bitcoin ASM opcodes
Fixes #164
2020-11-21 05:29:50 +09:00
softsimon
9f9c0b1114
Correcting title text on graph invert button. 2020-11-16 21:58:16 +07:00
wiz
ab6ed227e3
Modify upgrade script to include "tag @ hash" in notification msg 2020-11-16 23:44:32 +09:00
wiz
e029f91d4c
Merge pull request #162 from mempool/simon/graph-inverter
Adding a button to invert the graph globally.
2020-11-16 21:37:57 +09:00
softsimon
ca540d902a
Adding a button to invert the graph globally. 2020-11-16 19:27:06 +07:00
softsimon
76238f5943
Display P2PK instead of OP_RETURN
fixes #161
2020-11-16 16:21:37 +07:00
softsimon
d9803e3f3d
Improved utxo script design.
fixes #46
2020-11-16 02:25:10 +07:00
softsimon
c9e63a723a
Adding prevout script. Fixed padding.
refs #46
2020-11-16 02:02:16 +07:00
softsimon
4136e8d332
Correcting details button padding on mobile. 2020-11-16 01:10:07 +07:00
wiz
ffb08e5e01
Fix nginx.conf reverse proxy cache URL path for sponsor images 2020-11-16 00:43:10 +09:00
wiz
c24e44f6fa
Merge pull request #158 from mempool/simon/axios
Replacing request.js with axios
2020-11-16 00:37:43 +09:00
wiz
1676a78c13
Merge remote-tracking branch 'origin/master' into simon/axios 2020-11-15 22:17:11 +09:00
wiz
379db7b211
Merge pull request #159 from mempool/simon/utxo-details
Toggle display UTXO details and scripts for transactions
2020-11-15 22:11:44 +09:00
softsimon
e01718db22
Merge pull request #160 from mempool/wiz/upgrade-package-lock-json
Upgrade backend/package-lock.json to version 2
2020-11-15 19:26:18 +07:00
wiz
df81035ebc
Add missing "engines" metadata into package-lock.json 2020-11-15 21:17:24 +09:00
wiz
0b35f784c4
Upgrade backend/package-lock.json to version 2 2020-11-15 20:47:36 +09:00
softsimon
ddea10b160
Toggle display UTXO details and scripts for transactions
fixes #46
2020-11-15 17:58:38 +07:00
softsimon
0616b3c3b0
Axios error handle sponsor proxy requests. 2020-11-15 14:31:34 +07:00
softsimon
e7ddedaeb6
Replacing request.js with axios
fixes #153
2020-11-15 14:22:47 +07:00
wiz
12b3ecd078
Add basic websocket error handler as emergency fix for site crashing 2020-11-15 11:44:16 +09:00
softsimon
1e39daafb3
Merge pull request #154 from TechMiX/fixGraphLegendBug
Fix graph legend bug on resize
2020-11-15 00:39:22 +07:00
wiz
c03f5d8393
Merge pull request #155 from mempool/add-commons-clause-license-condition
Add the Commons Clause License Condition v1.0 to our MIT License
2020-11-15 00:15:16 +09:00
wiz
65c29ddff2
Add the Commons Clause License Condition v1.0 to our MIT License 2020-11-14 22:39:03 +09:00
TechMiX
640a77e846 fix legend bug on resize 2020-11-13 01:23:19 +01:00
softsimon
5aa17e001c
Correcting new chartist import path. 2020-11-10 21:09:50 +07:00
softsimon
ff8f2fafe8
Flip mempool chart by using patched chartist package by @techmix 2020-11-10 21:05:54 +07:00
wiz
b89a549a75
Enable nginx reverse proxy cache for sponsor profile images + misc tweaks 2020-11-06 14:09:04 +09:00
wiz
203374bce2
Update Bisq price API: markets.bisq.network -> bisq.markets 2020-11-05 13:59:58 +09:00