36 Commits

Author SHA1 Message Date
Miguel Medeiros
a0624df06b
Change websocket examples. 2021-09-03 20:13:31 -03:00
Miguel Medeiros
1eedcf900b
Fix transaction post curl example. 2021-09-03 19:43:28 -03:00
Miguel Medeiros
80047313e7
Remove unused variables. 2021-09-03 16:50:45 -03:00
Miguel Medeiros
71229b94c8
Set default active tab to liquid network. 2021-09-03 16:48:37 -03:00
Miguel Medeiros
c256daf8c8
Fix document location protocol for curl url. 2021-09-03 16:22:39 -03:00
Miguel Medeiros
ba0fb996d2
Fix curl placeholder url depending on base_module.
Fix currencies wrapper url variable name.
2021-09-03 16:02:05 -03:00
Miguel Medeiros
5977e96034
Fix typo variable name. 2021-09-03 14:35:06 -03:00
Miguel Medeiros
a151c5cddd
Add template to documentation.
Add support for BASE_MODULE=[mempool, bisq, liquid].
 Add print results do CommonJS examples.
 Add support for custom domains.
 Remove basecurrency from /volume endpoint.
2021-09-03 07:04:19 -03:00
softsimon
9d75c47792
Merge branch 'master' into simon/configurable-main-module
# Conflicts:
#	frontend/src/app/components/api-docs/api-docs.component.ts
#	frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.ts
#	frontend/src/app/components/master-page/master-page.component.html
#	frontend/src/app/components/mempool-blocks/mempool-blocks.component.html
#	frontend/src/app/components/mempool-blocks/mempool-blocks.component.ts
#	frontend/src/app/dashboard/dashboard.component.html
2021-08-13 17:16:14 +03:00
Miguel Medeiros
f3b470b63e
Fix API docs example for POST /tx endpoint (#707)
* Fix post transactions example.
* Fix post tx endpoint.
2021-08-12 20:41:23 +09:00
Miguel Medeiros
d76f42296a
Add new documentation for Liquid and Bisq. 2021-08-12 01:19:40 +09:00
wiz
10fa39634e
Update our Terms of Service, split Privacy Policy into its own page 2021-08-03 12:20:51 +09:00
wiz
d061f7589c
Update our Terms of Service, split Privacy Policy into its own page 2021-08-02 20:48:10 +09:00
softsimon
a00aa27ae4
Fix API doc page for Bisq. 2021-07-29 16:14:36 +03:00
softsimon
b8a110a772
Liquid fixes for latest transactions and API Doc. 2021-07-29 13:06:08 +03:00
Miguel Medeiros
11f5e99187
Doc: Add new endpoints to api documentation. (#654)
* Add difficulty adjustment api doc.
Change fee tab to general tab.

* Add block header examples.

* Change tab orders.
Add fees tabs.
Change CPFP instructions to Transactions tab.

* Reorder alphabetically.
Fix typo.
2021-07-24 23:00:11 +03:00
Rishabh
2e54f4ca94
Added missing block header API (#630)
* header API frontend

* Block Header API endpoint added to Node.js backend

* updated package-lock.json

Co-authored-by: Rishabh <rishabh@Rajeshs-MacBook-Pro.local>
2021-07-19 02:26:16 +03:00
softsimon
853e2fcb8f
Minor fixes to difficulty adjustment api. 2021-07-19 00:50:09 +03:00
Priyansh
9e0a5300b0
Expose the difficulty adjustment information in an API #622 (#628)
* Added difficulty adjustment information API

* Added Difficulty API in API docs frontend

* Added link to API

* Updated the API implementation of difficulty-adjustment

* Updated API End Point in frontend

* Updated sample API response in frontend
2021-07-19 00:45:45 +03:00
softsimon
3f03c9c2b6
Swap location of API doc tabs. 2021-06-12 17:18:59 -05:00
softsimon
49810b6a47
Added new i18n strings 2021-06-11 14:54:57 -05:00
softsimon
8f74ef58f8
i18n fixes. 2021-06-10 15:38:15 -05:00
softsimon
e857dbc874
I18n space fix. 2021-06-08 22:38:48 -05:00
softsimon
a10cd09ba8
I18n space fix. 2021-06-08 22:37:23 -05:00
Miguel Medeiros
353b0e8729
New API docummentation. (#544)
* Install hljs package.

* Add highlight.js stylesheet and js to index.html.

* Add new instructions for API documentation.

* Add network value to code-template component.

* Add curl examples.

* Fix tab order of bisq api page.

* Add esmodules instalation instructions.
Add external links to repositories.

* Add self-hosted hljs styles.

* Add response code examples.
Add dynamic networks to curl examples.
Remove reponse code box if not needed.

* Self hosted highlight.min.js.

* Bumping "ws" dependency to fix vulnerability.

* npm audit fix

* npm audit fix

* Remove Hightlight.js dependency.
Add new style to code-template-component.

* Remove hljs css.

* Change NgbModule and NgbAccordionModule  to shared

* Fix NgbAccordionModule import.
2021-06-06 16:06:56 -04:00
softsimon
f566eae471
Fixed api docs typo. 2021-04-26 02:40:30 +04:00
wiz
68be897379
Fix typo in API documentation for /api/block/:hash/raw method 2021-04-09 21:59:21 +09:00
softsimon
d3c53c7406
CPFP support (#395)
* CPFP support.

fixes #5
fixes #353
fixes #360

* Use effectiveFeePerVsize for mempool statistics.

* Renaming endpoint cpfp-info to just cpfp.

* Renaming decended to BestDescendant.

* Updating language file with new strings.
2021-03-18 23:47:40 +07:00
softsimon
fb11d73751
i18n all the remaining strings. 2020-12-03 18:34:19 +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
wiz
aa8d3798ea
API Docs: move Fee Estimate APIs to their own tab 2020-10-23 22:15:17 +09: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
softsimon
784f00b725
Enhancements to the sponsorship GUI
fixes  #128
2020-10-08 17:51:10 +07:00
softsimon
b6738dd9e8
Moving API docs to separate /api page. 2020-10-07 23:24:01 +07:00