Commit Graph
150 Commits
Author SHA1 Message Date
wiz 6b28235e26 Bump version string on about page to 2.1-SNAPSHOT 2021-01-12 18:10:48 +09:00
softsimon d5952fdb45 i18n: Added "miner identification" and updated "navigate to sponsor" 2020-12-04 23:07:53 +07:00
wiz c18d983b5b More fixes for RTL 2020-12-04 22:54:09 +09:00
wiz 46ad261d84 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
wiz a89d427098 ❤️ 2020-11-03 17:03:41 +09:00
softsimon 35186c517f Updating lightning node name.
Fixing dashboard button alignment.
2020-10-27 19:27:48 +07:00
softsimon 91f9bb3e5f Add L-BTC sponsor support. 2020-10-27 15:26:37 +07:00
softsimon cd3ffba248 Adding form validators for donation form. 2020-10-26 23:23:08 +07:00
softsimon a3457a723a Sponsor Lightning support. 2020-10-26 18:29:25 +07:00
wiz 7f3d871063 Remove last paragraph on about page 2020-10-18 20:02:48 +09:00
wiz 83ccdf5ba3 Fix typo on about page text 2020-10-18 19:54:48 +09:00
wiz f4d7ff6c75 Tweak about page text for project description 2020-10-18 19:28:11 +09:00
softsimon 69695c5a00 Backend API to load sponsor profile photos. 2020-10-18 17:14:35 +07:00
wiz e32e2a8a24 Add Terms of Service links with minor tweaks to text formatting 2020-10-18 16:03:03 +09:00
wiz a810e920c3 Tweak about page spacing and text 2020-10-17 16:13:57 +09:00
wiz ca6f369a7a Tag sponsored links with rel=sponsored, don't tag our social media links 2020-10-17 13:31:41 +09:00
wiz 3883506921 Add some brief text to our about page, state Bitcoin Only policy 2020-10-17 12:25:44 +09:00
softsimon 9a6e7fdc87 Use Twitter API to fetch profile photos.
fixes #133
2020-10-16 16:29:54 +07:00
wizandsoftsimon 3f68af89f8 Apply suggestions from code review
Co-authored-by: softsimon <softsimon@users.noreply.github.com>
2020-10-11 20:57:52 +09:00
wiz dc1a81cb6e Only show first 8 characters of git commit hash on about page 2020-10-11 20:20:48 +09:00
wiz eb4a35bda6 Move social media icons to bottom, add terms of service links 2020-10-11 20:15:56 +09:00
softsimon be021dae4b About page updates.
refs  #128
2020-10-09 13:56:43 +07:00
wiz 91598838df Use higher resolution profile photos and other minor tweaks 2020-10-09 04:19:32 +09:00
softsimon aaf107a888 Enhancements to the sponsorship GUI
fixes  #128
2020-10-08 17:51:10 +07:00
softsimon 1b83260a62 Don't allow invoices lower than 0.001 and require 0.01 for sponsorship.
refs #122
2020-10-08 00:20:42 +07:00
softsimon f781c73db1 Addig fronend flag (SPONSORS_ENABLED) to enable Sponsors in the gui.
refs #122
2020-10-07 23:30:45 +07:00
softsimon 3e71b5e465 Moving API docs to separate /api page. 2020-10-07 23:24:01 +07:00
softsimon eee4494d88 Set 0.01 BTC as minimum donation limit
refs #122
2020-10-07 20:19:22 +07:00
softsimon 5859f4ff9b Custom BTCPay donation integration
fixes #122
2020-10-07 20:15:42 +07:00
wiz 90cb1764cd Add btcpay donation iframe widget on about page for testing 2020-09-30 22:27:13 +09:00
softsimon 17fc486a60 Return HTTP 503 from Fee Api when mempool is still syncing.
Fix for displaying git commit on About page.
2020-08-12 13:33:58 +07:00
softsimon 17a2121b7e Add commit hash to the bottom of the about page
fixes #102
2020-08-10 14:59:29 +07:00
softsimon 993719f4a0 Re-adding design credits. 2020-07-23 22:21:46 +07:00
softsimon a3638c1921 Updated api docs. 2020-07-19 13:48:05 +07:00
softsimon 7cb47132b6 Adding Bisq API to About page.
Watching partent bisq dump folder.
2020-07-18 12:59:12 +07:00
softsimon 191f988937 Table design and responsiveness updates. 2020-07-18 11:04:04 +07:00
wiz e25ca3cbc5 Rename API endpoints in frontend and nginx.conf to match blockstream 2020-07-06 00:15:16 +09:00
softsimon e5dfeed63c Fix address tracking issues. 2020-05-20 17:00:50 +07:00
softsimon f2fe82d505 Renaming file assets folder to resources to not confuse with Liquid assets. 2020-05-02 16:59:14 +07:00
softsimon 9aaa021d08 Mobile view design updates. 2020-03-25 02:55:26 +07:00
softsimon c7ddeecd18 General responsive improvments. 2020-03-05 16:13:46 +07:00
softsimon f96728292c Improvments to responsiveness 2020-03-03 17:47:01 +07:00
softsimon 453482d834 Updating to new github url. 2020-03-01 22:56:14 +07:00
softsimon 12c9b80a64 Address tracking and notification sounds. 2020-02-26 04:29:57 +07:00
Simon Lindh 94b7f6e0e4 Design updates. 2020-02-26 03:39:22 +09:00
wiz aa2e302a03 Simplify contributor roles on team page 2020-02-26 03:38:30 +09:00
Simon Lindh 90a1fcaf8d Various fixes and design updates. 2020-02-26 03:37:00 +09:00
Simon Lindh c550c888a4 Footer and header design updates. 2020-02-26 03:34:20 +09:00
Simon Lindh 98391580b3 Refactor. API explanations. UX revamp. 2020-02-26 03:26:16 +09:00
Simon Lindh 43f41b8aab New base code for mempool blockchain explorerer 2020-02-26 03:19:26 +09:00