54 Commits

Author SHA1 Message Date
softsimon
149c4e2bf0 Proxy config for running esplora locally 2022-11-20 12:35:32 +09:00
Erik Arvstedt
92233bec63 frontend: Don't copy resources to language dirs
Since 355e89ce5, the frontend references resources via root-relative URLs.
This means that `resources` dirs in the language dirs are no longer
accessed and can be removed.

Achieve this by defining a specific `assets` production config that
doesn't include `src/resources`.

As of fd35c8f4a, this shrinks the frontend size by 55% (279M -> 124M).

Also, the nginx location configs now can be simplified.
2022-09-09 14:42:55 +02:00
Felipe Knorr Kuhn
4b296f8d92 Remove frontend dependencies and old tests 2022-07-06 13:13:59 -07:00
Felipe Knorr Kuhn
b53da36997 Add new targets to run locally hitting the staging backends 2022-02-06 15:12:03 -08:00
softsimon
55244ff0a1 Adding a "mixed" dev proxy 2022-02-05 13:05:52 +04:00
softsimon
383f7803c8 Upgrading frontend to Angular 13 2021-12-08 22:08:20 +04:00
wiz
53820f62cb Enable i18n locale Thai (th) 2021-11-17 21:03:35 +09:00
Felipe Knorr Kuhn
0b1c1e3f4c Set the local target to use the new local proxy config 2021-11-14 15:41:28 -08:00
Felipe Knorr Kuhn
8bc0a4d873 Update references to the JS proxy config 2021-10-22 11:52:23 -07:00
softsimon
8be71577cc Upgrading to Angular 12 and NgBootstrap 10 2021-09-22 23:57:05 +04:00
softsimon
b6052563c3 Merge pull request #792 from mempool/i18n/add-macedonian
Add new locale: Macedonian (mk)
2021-09-17 13:54:03 +04:00
wiz
d63e4f878a Add new locale: Macedonian (mk) 2021-09-17 15:03:52 +09:00
wiz
0e508e6b0f Add new locale: Romanian (ro) 2021-09-17 15:02:15 +09:00
Felipe Knorr Kuhn
da4db3374c Update local-prod target to use the new JS dev proxy 2021-08-17 13:01:04 -07:00
wiz
7082eea4be Enable 'ca' locale for Catalan 2021-08-08 01:05:42 +09:00
Felipe Knorr Kuhn
d5bf49dda0 make serve:local-prod target not verbose 2021-08-03 21:19:25 -07:00
Priyansh
c7fe4765d0 Raw Hex of Objects in Details Tab #616 (#682)
* Added Block Hex in Details

* Added Raw Tx in Transaction Details

* Backend Updates
2021-08-03 14:27:02 +03:00
softsimon
5fb53338fb Removing angular CLI analytics. 2021-07-22 15:37:40 +03:00
Priyansh
1d567888ba 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
5d752be244 Adding Hindi 2021-07-13 11:49:04 +03:00
wiz
1818d16ead Enable i18n locale for Russian (ru) 2021-06-13 15:05:21 -05:00
softsimon
0e9db6c0f4 Use default proxy config for local proxy conf. 2021-06-10 09:55:19 -05:00
Felipe Knorr Kuhn
5b4b5c9bb0 New e2e test suite (#555)
* add @cypress/schematic as a dev dependency

* replace protractor with cypress

* remove the boilerplate test

* add the cypress-wait-until helper library

* add cypress-wait-until to all tests

* add signet to stg proxy config

* add proxy config for production

* add environment configs to angular.json

* update e2e target to use the production proxy

* update serve and start scripts to use the new environment config

* add the concurrently lib to the dev dependencies

* fix missing import

* ignore videos and screenshots saved by the e2e suite

* add fixtures for the tests

* update cypress npm scripts to use concurrently

* add some e2e tests
2021-06-07 10:36:41 -04:00
wiz
109c652dd0 Enable i18n for Polish language 2021-04-26 05:43:47 +09:00
softsimon
68acc8251f extractCss is deprecated and always defaults to true. 2021-04-07 17:36:20 +04:00
softsimon
a000c05715 Adding Hebrew language 2021-02-25 17:22:03 +07:00
softsimon
7c74440c00 Adding Hebrew language 2021-02-25 17:16:22 +07:00
softsimon
02c4ad2688 Adding Italian language. Updating nginx conf with some missing languages. 2021-01-27 20:24:32 +07:00
softsimon
6e5404f2a3 Adding hungarian language. 2021-01-24 04:19:50 +07:00
wiz
767d993611 Rewrite server.ts again to properly add i18n support into SSR mode 2020-12-23 18:04:30 +09:00
wiz
3c00eeac27 Merge remote-tracking branch 'origin/master' into simon/angular-universal 2020-12-22 06:14:12 +09:00
softsimon
ae222f644c i18n: Enabling Vietnamese 2020-12-10 11:51:27 +07:00
softsimon
3244de272a i18n: Enabling Finnish 2020-12-09 23:20:37 +07:00
softsimon
9f7a2dfb2b i18n: Disabling vietnamese again 2020-12-09 23:20:10 +07:00
wiz
437d6ce062 Enable 'ko' locale for Korean in angular.json 2020-12-08 15:57:46 +09:00
softsimon
69b121ddb0 Merge branch 'master' into simon/angular-universal
* master: (42 commits)
  i18n: Added missing Bisq translations. Minor missing space and character fixes.
  add missing 'sat/vb' string for i18n
  i18n: Removed CR from "In X minutes" translation
  i18n: Updated strings for "x confirmations", "x transactions", "x blocks" and "block ETA". Peg-out, and bisq headers.
  Update translation strings from Transifex
  Enable 'ka' locale for Georgian
  Update translation strings from Transifex
  Disable Vietnamese locale 'vi' until translations are completed
  Update translation strings from Transifex
  add 'sat' string for i18n
  Update translation strings from Transifex
  Update translation strings from Transifex
  i18n update
  Remove extra garbage characters from OP_RETURN tooltip. fixes #254
  Fix for changing locale on other networks than mainnet. fixes #253
  i18n: Asset search box
  Update translation strings from Transifex
  i18n: Added X of X transaction. Flipped collapse/expand
  i18n: Added "miner identification" and updated "navigate to sponsor"
  Update translations from Transifex
  ...

# Conflicts:
#	frontend/src/app/components/app/app.component.ts
#	frontend/src/app/components/mempool-block/mempool-block.component.ts
2020-12-08 00:11:38 +07:00
wiz
b170df0dfc Enable 'ka' locale for Georgian 2020-12-07 00:20:05 +09:00
wiz
384b541a3d Enable 'ar' locale for Arabic 2020-12-04 04:11:14 +09:00
wiz
fb189c9f3d Fix incorrectly used 'nn' locale, rename it to 'nb' instead 2020-12-03 22:37:06 +09:00
wiz
e4b5305936 Enable locale 'vi' for Vietnamese 2020-12-03 10:16:02 +09:00
softsimon
787cee0d7a Merge branch 'master' into simon/angular-universal
* master:
  Update list of supported locales
  Add one more fix to nginx.conf for i18n
  Remove unused i18n tags in frontend/src/index.html
  Update translations from Transifex
  Enable 'fr' locale for French
  Corrected some missing spaces on transactions page and a blank render bug when confirmation time is below 1 minute.
  Implement i18n support in frontend using Angular + Transifex + NGINX

# Conflicts:
#	frontend/src/app/app.constants.ts
#	frontend/sync-assets.js
2020-12-02 20:05:49 +07:00
wiz
1898dba1fc Update list of supported locales 2020-12-02 21:33:53 +09:00
wiz
c4da29a847 Enable 'fr' locale for French 2020-12-02 20:35:46 +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
softsimon
dfad5ede74 angular universal WIP
refs #104
2020-11-07 04:30:52 +07:00
softsimon
5e0341dd7a Adding robots.txt 2020-08-26 17:05:29 +07:00
softsimon
b2889abfa9 Adding support for optional frontend config.
Dropdown network selector is hidden by default, and enabled using config.
fixes #79
2020-06-22 22:10:49 +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
b8b5e003e7 Renaming angular project to 'mempool' from 'mempoolspace' 2020-04-28 00:14:29 +07:00
Simon Lindh
43f41b8aab New base code for mempool blockchain explorerer 2020-02-26 03:19:26 +09:00