Commit Graph

302 Commits

Author SHA1 Message Date
wiz
e49ecd9368
Implement auto RTL support for i18n locales like Arabic, Persian, etc.
Fixes #255
2020-12-04 05:56:40 +09:00
softsimon
e35eb5aad2
Adding virtual size to transaction details.
fixes #248
2020-12-02 22:22:14 +07:00
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
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
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
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
softsimon
ddea10b160
Toggle display UTXO details and scripts for transactions
fixes #46
2020-11-15 17:58:38 +07:00
TechMiX
640a77e846 fix legend bug on resize 2020-11-13 01:23:19 +01:00
softsimon
ff8f2fafe8
Flip mempool chart by using patched chartist package by @techmix 2020-11-10 21:05:54 +07:00
wiz
6f6d7bc4d2
❤️ 2020-11-03 17:03:41 +09:00
TechMiX
411b75471c Merge branch 'master' of https://github.com/mempool/mempool 2020-10-28 22:25:33 +01:00
TechMiX
5d7a39a8f2 save the legends active status on a cache 2020-10-28 22:22:07 +01:00
softsimon
fcb51fef20
Calculate tx fees based on segwit tx sizes. 2020-10-28 20:26:48 +07:00
softsimon
29ff029b07
Updating lightning node name.
Fixing dashboard button alignment.
2020-10-27 19:27:48 +07:00
softsimon
e61574c630
Add L-BTC sponsor support. 2020-10-27 15:26:37 +07:00
softsimon
645772c01a
Fix: Segwit-tag is inconsistent when transaction contains segwit and non segwit
fixes #130
2020-10-27 02:07:39 +07:00
softsimon
6a8deff706
Adding form validators for donation form. 2020-10-26 23:23:08 +07:00
softsimon
018e95e648
Fixing missing dashboard graph labels in Firefox. 2020-10-26 23:12:32 +07:00
softsimon
99162f5ec9
Sponsor Lightning support. 2020-10-26 18:29:25 +07:00
softsimon
9d7b52a104
Removing AVG() from mysql query reducing execution time. Increasing graph data span.
fixes #106
2020-10-26 01:00:21 +07:00
TechMiX
0fe32835c9 update legend state after chart update 2020-10-23 19:03:15 +02:00
wiz
aa8d3798ea
API Docs: move Fee Estimate APIs to their own tab 2020-10-23 22:15:17 +09:00
wiz
70da8248cc
Remove last paragraph on about page 2020-10-18 20:02:48 +09:00
wiz
716b1235ee
Fix typo on about page text 2020-10-18 19:54:48 +09:00
wiz
e732f0f1dc
Tweak about page text for project description 2020-10-18 19:28:11 +09:00
softsimon
fff8120daa
Backend API to load sponsor profile photos. 2020-10-18 17:14:35 +07:00
wiz
9d4659c3ba
Add Terms of Service links with minor tweaks to text formatting 2020-10-18 16:03:03 +09:00
wiz
95bb0fc265
Fix Bisq API docs page from not expanding on load 2020-10-18 13:53:45 +09:00
wiz
fb9b3202ca
Add basic API documentation for all electrs endpoints 2020-10-18 12:56:08 +09:00
wiz
0fca6f3a3b
Tweak about page spacing and text 2020-10-17 16:13:57 +09:00
wiz
2d3ed5f8cb
Tag sponsored links with rel=sponsored, don't tag our social media links 2020-10-17 13:31:41 +09:00
wiz
988ed7e8af
Add some brief text to our about page, state Bitcoin Only policy 2020-10-17 12:25:44 +09:00
softsimon
15fdb69b96
Use Twitter API to fetch profile photos.
fixes #133
2020-10-16 16:29:54 +07:00
softsimon
55646b5732
Handle and don't crash for adress-prefix search error.
fixes #121
2020-10-12 12:57:19 +07:00
softsimon
e37a9de71d
Proxy donation requests to mempool.space when BTCPay Sponsors is disabled. 2020-10-12 10:50:10 +07:00
wiz
7673bf13b9
Update terms of service, add Sponsor Policy for inappropriate profiles 2020-10-12 08:37:56 +09:00
wiz
db16dbbc9d
Apply suggestions from code review
Co-authored-by: softsimon <softsimon@users.noreply.github.com>
2020-10-11 20:57:52 +09:00
wiz
1d8d39db6b
Only show first 8 characters of git commit hash on about page 2020-10-11 20:20:48 +09:00
wiz
024b2d58f7
Move social media icons to bottom, add terms of service links 2020-10-11 20:15:56 +09:00
wiz
bb3842fc10
Add basic Terms of Service page 2020-10-11 19:23:52 +09:00
softsimon
a8a1f4e976
About page updates.
refs  #128
2020-10-09 13:56:43 +07:00
wiz
761eff62c5
Merge pull request #129 from mempool/donations-fixes
Enhancements to the sponsorship GUI
2020-10-09 04:20:35 +09:00