Commit Graph

176 Commits

Author SHA1 Message Date
softsimon
50cc424679
Correcting all Lightning explorer i18n and extract
fixes  #2533
2022-10-07 00:54:33 +04:00
softsimon
611d86f3f7
Require the resources path as input to sync assets 2022-09-27 01:14:29 +04:00
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
nymkappa
c839abb479
Create world map of clearnet LN nodes and channels 2022-07-21 22:43:12 +02:00
wiz
a638369a57
Bump version to v2.5.0-dev 2022-07-10 14:53:57 +02:00
softsimon
2d6f4d3bdb
Revert: Angular 14 upgrade 2022-07-08 16:45:24 +02:00
softsimon
63939981c1
Angular 14 Upgrade 2022-07-08 10:44:07 +02:00
softsimon
5867c79a1f
Moving ngx-bootrap-multiselect to the project 2022-07-07 20:14:58 +02:00
wiz
cb4dac3506
Merge remote-tracking branch 'origin/master' into knorrium/prettier 2022-07-07 14:13:06 +02:00
Felipe Knorr Kuhn
aae2dec16d
Add editorconfig and prettier integration with eslint 2022-07-07 03:02:02 -07:00
Felipe Knorr Kuhn
ae3f8b8bd5
Merge branch 'master' into update_cypress 2022-07-06 14:33:17 -07:00
Felipe Knorr Kuhn
f4e0b1125c
Disable Scarf dependency from ngx-infinite-scroll 2022-07-06 13:50:02 -07:00
Felipe Knorr Kuhn
1c018d18bd
Update Cypress related dependencies 2022-07-06 13:24:04 -07:00
Felipe Knorr Kuhn
a2e2b36a76
Remove frontend dependencies and old tests 2022-07-06 13:13:59 -07:00
softsimon
2b2f4f05b6
Upgrading frontend npm packages 2022-07-06 20:47:10 +02:00
Felipe Knorr Kuhn
a16eb6e804
Add eslint to the frontend 2022-07-05 04:29:46 -07:00
Felipe Knorr Kuhn
19ae01defb
Various typing and build fixes to enable CI 2022-06-27 21:28:21 -07:00
wiz
b9f0e63341
Bump version numbers to v2.4.1-dev 2022-06-10 22:43:57 +09:00
wiz
f901f06992
Release v2.4.0 2022-06-09 23:10:18 +09:00
Felipe Knorr Kuhn
69713ae156
Update to Cypress v10 2022-06-03 20:46:33 -07:00
softsimon
d542671993
Updating some more packages 2022-05-31 02:21:05 +04:00
softsimon
3935aef841
Upgrading packages 2022-05-31 02:21:05 +04:00
softsimon
e5470b9e40
Angular 13.3.10 update 2022-05-26 18:31:11 +04:00
Felipe Knorr Kuhn
1da44cd4a6
Upgrade Cypress to v9.6.1 2022-05-18 22:01:28 -07:00
softsimon
9dcf421216
Upgrading npm packages and 2022-05-02 20:04:04 +04:00
softsimon
bc9063e490
Npm run start broke 2022-04-06 15:40:26 +04:00
nymkappa
6d876ad219
Update addresses button 2022-04-06 15:02:24 +09:00
Felipe Knorr Kuhn
a69719ad36
Update Cypress to v9.5.2 2022-03-19 22:33:56 -07:00
softsimon
204e1c2a84
Npm install 2022-02-23 21:07:49 +04:00
softsimon
ab7b66c9a8
Bumping echarts 2022-02-23 20:52:38 +04:00
Felipe Knorr Kuhn
30e41007a2
Update Cypress to v9.5.0 2022-02-22 22:14:59 -08: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
e2dfdc0064
Merge pull request #1175 from knorrium/update_to_cypress_931
Update Cypress to v9.3.1
2022-01-21 15:37:54 +04:00
Felipe Knorr Kuhn
9f2d0c5172
Update config script defaults 2022-01-20 21:29:45 -08:00
Felipe Knorr Kuhn
80e4141612
Update Cypress to v9.3.1 2022-01-20 21:27:52 -08:00
wiz
dbdc87eeae
Bump version number to v2.4.0-dev 2022-01-16 15:41:23 +09:00
wiz
b9067ed912
Release v2.3.0 2022-01-16 15:36:48 +09:00
softsimon
2f5cad9d0a
Bumping minor Angular version and major ngBootstrap 2022-01-12 02:42:33 +04:00
softsimon
dc06a3f62a
Bumping mempool.js lib to 2.3.0 2022-01-10 15:55:18 +04:00
softsimon
e332789afc
Bumping mempool.js to 2.3.0-dev1 and removing unused tsc build step 2021-12-22 19:33:10 +04:00
softsimon
c29311d831
Upgrading mempool-js with separated Liquid and Bisq 2021-12-20 23:48:26 +04:00
wiz
52397cb341
Merge pull request #993 from mempool/simon/angular-13
Upgrading frontend to Angular 13
2021-12-09 10:16:54 +00:00
softsimon
ed9b46bae0
Upgrading frontend to Angular 13 2021-12-08 22:08:20 +04:00
Felipe Knorr Kuhn
9ac77f7113
Update Cypress dependencies 2021-12-07 22:25:10 -08:00
wiz
41c61ef506
Move npm deps in package.json to fix npm install --prod 2021-12-07 10:42:06 +00:00
softsimon
bbee2dcb5b
Upgrading to Angular 12 and NgBootstrap 10 2021-09-22 23:57:05 +04:00
Miguel Medeiros
9b956ff88d
Add new component incoming-transactions-graph;
Refactor component mempool-graph;
Refactor component fee-distribution-graph;
Add incoming-transactions-graph to dashboard;
Add incoming-transactions-graph to statistics;
Add incoming-transactions-graph to television;
Add mempool-graph to dashboard;
Add mempool-graph to statistics;
Add mempool-graph to television;
Remove chartist.component;
2021-09-14 22:35:47 -03:00
Miguel Medeiros
1a98a14541
Add echart module. 2021-09-14 22:35:47 -03:00
wiz
1696623e2f
Bump version to v2.3.0-dev after shipping v2.2.2 2021-09-09 07:27:01 +09:00
wiz
251a1af442
Bump version number for v2.2.2 release 2021-09-09 07:23:36 +09:00
Felipe Knorr Kuhn
3f290dae06
Upgrade Cypress to v8.3.1 2021-09-01 21:08:10 -07:00
Felipe Knorr Kuhn
7e4c51f47f Add new config targets for the multisite setup 2021-08-17 15:49:58 -07:00
Felipe Knorr Kuhn
250ea09c7e Run generate config before running e2e tests locally 2021-08-17 13:01:36 -07:00
wiz
7e273ce63d
Bump version tags to v2.2.2-dev 2021-08-13 07:56:14 +09:00
wiz
af5e0d7cd6
Bump version to v2.2.1 2021-08-13 07:45:47 +09:00
softsimon
a265787cd4
Bumping mempool.js. 2021-08-04 14:34:05 +03:00
softsimon
d92827a411
Upgrade deprecated xi18n command to extract-i18n. 2021-08-02 14:49:02 +03:00
Felipe Knorr Kuhn
9e46cde9b7
Updates to the e2e suite (#659)
* initial version of the update config script

* fix duplicated content

* update cypress ci settings

* add workflow to run e2e tests when pushing

* record cypress results to the dashboard

* pull the cypress record key and project id from the secrets

* add start-server-and-test to replace concurrently

* replace concurrently with start-server-and-test

* remove concurrently

* add new cypress target to record

* update cypress to 7.7.0

* add tests for signet

* add tests for testnet

* run tests on chrome and firefox

* update test matrix: add edge and run firefox on container

* fix copypasta

* update docker image for firefox

* fix task name again

* fix edge tests task name

* improve bisq tests

* update workflow config

* enable cypress debug logs

* add a manual trigger for the e2e tests

* add config:defaults target

* use more of the GHA options

* fix config command

* add cypress-fail-on-console-error

* upgrade cypress to v8.0.0

* add helper to wait for the loader skeleton to be gone

* use skeleton waiter on the tests

* remove manual test trigger

* fix tv test when only one mempool block is available

* add waiter for pagination

* add extra steps to debug firefox launch issue

* remove whoami step

* Revert "upgrade cypress to v8.0.0"

This reverts commit cb3ff7d906.

* remove userinfo debug step

* enable test retries in run mode

* update proxy config to reduce ECONNRESET errors

* add mock-socket dev dependency

* add helpers to mock websockets and detect page idleness

* stabilize mainnet tests

* fix tv mode test on Liquid

* add basic tests for the mainnet status page

* cleanup mainnet tests

* update bisq tests

* update signet tests

* update testnet tests

* add initial support for parameterized websocket mocks

* move testing dependencies to optionalDependencies

* comment out mempool size check until the live updates are fixed

* comment out tx regex test

* update fixture for the new difficulty adjustment component

* fix the assertions on the status page
2021-07-25 21:03:47 +03:00
softsimon
195b9bf542
Bumping the mempool-js lib. 2021-07-25 02:32:31 +03:00
wiz
1d29fad986
Bump version to v2.2.1-dev 2021-07-03 14:49:59 -07:00
wiz
eb6db6caf3
Bump version for v2.2.0 release 2021-07-03 14:36:10 -07:00
Felipe Knorr Kuhn
4c7d0cd2e5
Generate config on serve and updated git revision method (#587)
* run generate-config on serve

* write the config file only if settings have changed

* read the git commit hash from the current branch, not master

* git sha is now short by default, no need to trim on the about component
2021-06-16 13:47:05 -05:00
softsimon
c80532b420
Bumping mempool.js lib. 2021-06-13 15:39:40 -05:00
Felipe Knorr Kuhn
8385c50605
Update test dependencies (#572)
* move Cypress to the optionalDependencies section

* remove protractor

* remove dead protractor test files
2021-06-11 23:06:55 -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
softsimon
edad15da0d
Upgrading mempool.js 2021-05-21 03:30:39 +04:00
softsimon
b8fe7b621c
Merge branch 'master' into simon/bisq-dashboard
# Conflicts:
#	frontend/package-lock.json
#	frontend/src/app/components/master-page/master-page.component.html
2021-04-23 15:35:35 +04:00
Felipe Knorr Kuhn
e62ee72149 bind the server to 0.0.0.0 to allow it to be reachable by other devices 2021-04-17 15:53:22 -07:00
Felipe Knorr Kuhn
f6ea45b61f add new configuration and targets to point the frontend to staging 2021-04-17 14:52:16 -07:00
wiz
90b06833ba
Rename frontend npm dep @mempool/mempool-js to @mempool/mempool.js 2021-04-17 12:58:27 +09:00
softsimon
fd0ffd2a39
Upgrading mempool-js to v2.3. 2021-04-15 00:57:10 +04:00
softsimon
3dbddedf91
Remove 'v' from version. 2021-04-13 18:12:32 +04:00
softsimon
e255bec7ad
Updating versions to v2.2.0-dev 2021-04-13 16:53:42 +04:00
softsimon
344d1247bd
Updated package.json. 2021-04-13 11:30:53 +04:00
softsimon
fcf7955d63
Merge branch 'master' into simon/bisq-dashboard
# Conflicts:
#	frontend/package-lock.json
#	frontend/package.json
2021-04-12 22:22:50 +04:00
softsimon
7a4ad0ee2f
Including gitCommit and version in frontend build. Backend now sending a backendInfo object containing commit, version and hostname. All printed on About page. 2021-04-12 22:17:13 +04:00
softsimon
979b870c9c
Bump mempool-js version to 2.2.1 2021-04-10 18:58:20 +04:00
softsimon
041aa2a163
Build mempool-js as standalone. 2021-04-10 18:51:13 +04:00
wiz
0c2d88960c
Publish mempool-js output as mempool.js instead of .min.js 2021-04-09 12:01:21 +09:00
softsimon
e3e1cddd2f
Build mempool-js to root www folder. 2021-04-09 01:22:24 +04:00
softsimon
4a907f9dc6
Upgrading all front and backend dependencies, including Angular 11.
fixes #429
2021-04-07 16:18:55 +04:00
softsimon
1ae002385d
Merge branch 'simon/cpfp-frontend' into simon/bisq-dashboard
* simon/cpfp-frontend: (46 commits)
  Bugfix: Don't extend already extended transactions to not override the firstSeen property. fixes #390
  Shuffle mempool transactions before saving disk cache. (#398)
  Adding missing return after expressjs response.
  CPFP support (#395)
  Round sat/vB in fee rating tooltip. fixes #364
  Add the GNU AGPLv3 logo to About page
  Update package.json license tags
  Add recommended fee percentile config (#394)
  Fix typo in README (#392)
  Fix icon for Specter Wallet on About page
  Add link to Specter Wallet on our About page
  Add link to WARden Portfolio app as Community Integration on About page
  Delete MIT+CC license from Terms of Service, add AGPLv3 to About page
  Change mempool project license to GNU Affero General Public License v3
  Lower volume for sound effects (#385)
  Improve grammar, layout, and formatting of Terms of Service page
  Display all Project Contributors on About page using GitHub API (#382)
  Modify nginx.conf to cache HTML for 10m and static resources for 1h
  Proxy /api/v1/contributors from mempool.space, also fix HTTP headers
  Add link to Bisq's GitHub repo on About page
  ...
2021-03-21 06:12:41 +07:00
wiz
8b5d3dabe7
Update package.json license tags 2021-03-18 16:30:10 +09:00
softsimon
eeb7447988
Bisq markets dashboard. Base views. WIP. 2021-02-27 04:19:56 +07:00
wiz
29e0c337fe
Fix pathname of frontend build output folder in npm run sync-assets 2021-01-11 22:05:39 +09:00
wiz
217666f455
Copy /en-US/resources files into top-level /resources/ after frontend build 2021-01-11 21:46:16 +09:00
wiz
87fbdc063b
Rewrite server.ts again to properly add i18n support into SSR mode 2020-12-23 18:04:30 +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
9ebb9a5d65
Use --force when running tx pull for Transifex strings 2020-12-05 00:12:08 +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
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
f9c2bc1fb5
Merge commit 'f151eb81c812a62d1d5c57ee91620a3dd9ae5068' into simon/angular-universal
* commit 'f151eb81c812a62d1d5c57ee91620a3dd9ae5068':
  Upgrade angular from 10.0.4 to 10.2.3, typescript from 3.9.7 to 4.0.5
  Modify /bisq/api/v1/markets/markets to only return active markets
  Remove unnecessary @types/axios dependency.
  Same npm fix for running `tsc` from `./node_modules` for backend
  Set npm to run `ng` and `tsc` binaries from `./node_modules/` path

# Conflicts:
#	frontend/package-lock.json
#	frontend/package.json
2020-11-28 02:21:12 +07:00
wiz
9b89d9977f
Upgrade angular from 10.0.4 to 10.2.3, typescript from 3.9.7 to 4.0.5 2020-11-28 04:04:45 +09:00
wiz
e51a4ce028
Set npm to run ng and tsc binaries from ./node_modules/ path 2020-11-23 17:19:16 +09:00
softsimon
c36addd8c1
Frontend config support for AU. New absolute server url settings.
refs #104
2020-11-23 02:30:46 +07:00
softsimon
f8ffd6ec6b
Merge branch 'master' into simon/angular-universal
* master:
  Add the Commons Clause License Condition v1.0 to our MIT License
  fix legend bug on resize
  Correcting new chartist import path.
  Flip mempool chart by using patched chartist package by @techmix

# Conflicts:
#	frontend/package-lock.json
2020-11-15 02:51:00 +07:00
softsimon
ff8f2fafe8
Flip mempool chart by using patched chartist package by @techmix 2020-11-10 21:05:54 +07:00
wiz
0361044352
Various fixes (lol) 2020-11-08 01:16:09 +09:00
softsimon
14c9d0c409
angular universal WIP
refs #104
2020-11-07 04:30:52 +07:00