Commit Graph

53 Commits

Author SHA1 Message Date
Erik Arvstedt
22def9b01c
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
a2e2b36a76
Remove frontend dependencies and old tests 2022-07-06 13:13:59 -07:00
Felipe Knorr Kuhn
18a7b13077
Add new targets to run locally hitting the staging backends 2022-02-06 15:12:03 -08:00
softsimon
a45c371e27
Adding a "mixed" dev proxy 2022-02-05 13:05:52 +04:00
softsimon
ed9b46bae0
Upgrading frontend to Angular 13 2021-12-08 22:08:20 +04:00
wiz
836f0f065d
Enable i18n locale Thai (th) 2021-11-17 21:03:35 +09:00
Felipe Knorr Kuhn
14d015a904
Set the local target to use the new local proxy config 2021-11-14 15:41:28 -08:00
Felipe Knorr Kuhn
40914236d4
Update references to the JS proxy config 2021-10-22 11:52:23 -07:00
softsimon
bbee2dcb5b
Upgrading to Angular 12 and NgBootstrap 10 2021-09-22 23:57:05 +04:00
softsimon
07ba2f6ecc
Merge pull request #792 from mempool/i18n/add-macedonian
Add new locale: Macedonian (mk)
2021-09-17 13:54:03 +04:00
wiz
d22dc0888a
Add new locale: Macedonian (mk) 2021-09-17 15:03:52 +09:00
wiz
75fb27c690
Add new locale: Romanian (ro) 2021-09-17 15:02:15 +09:00
Felipe Knorr Kuhn
648d59631b Update local-prod target to use the new JS dev proxy 2021-08-17 13:01:04 -07:00
wiz
7d3757676f
Enable 'ca' locale for Catalan 2021-08-08 01:05:42 +09:00
Felipe Knorr Kuhn
508c8b0be3 make serve:local-prod target not verbose 2021-08-03 21:19:25 -07:00
Priyansh
43e222b9df
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
775323de3e
Removing angular CLI analytics. 2021-07-22 15:37:40 +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
cdfc03f352
Adding Hindi 2021-07-13 11:49:04 +03:00
wiz
74c49b9ae7
Enable i18n locale for Russian (ru) 2021-06-13 15:05:21 -05:00
softsimon
2475c67d5b
Use default proxy config for local proxy conf. 2021-06-10 09:55:19 -05:00
Felipe Knorr Kuhn
1bd0c40c15
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
6dbfcc9d1a
Enable i18n for Polish language 2021-04-26 05:43:47 +09:00
softsimon
e731077077
extractCss is deprecated and always defaults to true. 2021-04-07 17:36:20 +04:00
softsimon
26b4bd899b
Adding Hebrew language 2021-02-25 17:22:03 +07:00
softsimon
a3d9e87f0e
Adding Hebrew language 2021-02-25 17:16:22 +07:00
softsimon
47dd1f2d0b
Adding Italian language. Updating nginx conf with some missing languages. 2021-01-27 20:24:32 +07:00
softsimon
6507b5e003
Adding hungarian language. 2021-01-24 04:19:50 +07:00
wiz
87fbdc063b
Rewrite server.ts again to properly add i18n support into SSR mode 2020-12-23 18:04:30 +09:00
wiz
ff0d1a7589
Merge remote-tracking branch 'origin/master' into simon/angular-universal 2020-12-22 06:14:12 +09:00
softsimon
d0e0ab7c24
i18n: Enabling Vietnamese 2020-12-10 11:51:27 +07:00
softsimon
d8e1023848
i18n: Enabling Finnish 2020-12-09 23:20:37 +07:00
softsimon
c9f485a775
i18n: Disabling vietnamese again 2020-12-09 23:20:10 +07:00
wiz
29b9fec3b9
Enable 'ko' locale for Korean in angular.json 2020-12-08 15:57:46 +09:00
softsimon
f9e8dfb079
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
a2740aaa02
Enable 'ka' locale for Georgian 2020-12-07 00:20:05 +09:00
wiz
73db9c5023
Enable 'ar' locale for Arabic 2020-12-04 04:11:14 +09:00
wiz
a831d04694
Fix incorrectly used 'nn' locale, rename it to 'nb' instead 2020-12-03 22:37:06 +09:00
wiz
83501cfdbe
Enable locale 'vi' for Vietnamese 2020-12-03 10:16:02 +09:00
softsimon
2bba51e6c1
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
d3cb1d607b
Update list of supported locales 2020-12-02 21:33:53 +09:00
wiz
9148d30fcc
Enable 'fr' locale for French 2020-12-02 20:35:46 +09: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
14c9d0c409
angular universal WIP
refs #104
2020-11-07 04:30:52 +07:00
softsimon
4e8908925c
Adding robots.txt 2020-08-26 17:05:29 +07:00
softsimon
0a264a7078
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
6a51162f99
Renaming file assets folder to resources to not confuse with Liquid assets. 2020-05-02 16:59:14 +07:00
softsimon
7e7b536acb
Renaming angular project to 'mempool' from 'mempoolspace' 2020-04-28 00:14:29 +07:00
Simon Lindh
ac95c09ea6
New base code for mempool blockchain explorerer 2020-02-26 03:19:26 +09:00
Simon Lindh
d1fce86adb Renamed the electrs backend support to 'electrs'. 2019-12-06 22:37:07 +01:00