Commit Graph

33 Commits

Author SHA1 Message Date
wiz
964be2a6df
Don't use PATH in sync-assets.js 2024-04-01 16:53:49 +09:00
Felipe Knorr Kuhn
933bc47b44
Add DRY_RUN and MEMPOOL_CDN options 2024-02-04 09:17:42 -08:00
Felipe Knorr Kuhn
99f7201ec5
Cache build assets to prevent rate limiting 2024-01-22 16:51:08 -08:00
Felipe Knorr Kuhn
372fb38722
Skip syncing Liquid assets if BASE_MODULE is not set to liquid 2023-09-24 10:31:14 -07:00
Felipe Knorr Kuhn
c35f8a3f08
Add SKIP_SYNC and verbosity from previous PR 2023-09-23 15:39:00 -07:00
Felipe Knorr Kuhn
4ed629a8ea
Minor improvements to sync-assets 2023-09-23 14:43:54 -07:00
Felipe Knorr Kuhn
ca69d19bf7
Use the GITHUB_SECRET to authenticate with the API
Fix the environment variable

Add extra logging when using the authentication

Use the GITHUB_TOKEN on the frontend build step
2023-07-21 18:14:32 +09:00
softsimon
aa9fd845ef
Path fix 2023-05-14 14:21:41 -05:00
softsimon
f12403747d
Adding video to sha1 check and chaining requests in promises. 2023-05-14 12:45:42 -05:00
softsimon
da3c3e8f5c
Re-use variable fix 2023-05-13 13:24:44 -05:00
softsimon
a447887901
Adding missing slash 2023-05-13 13:23:27 -05:00
softsimon
d3bd434255
Use sha hashes to compare before downloading 2023-05-12 16:01:45 -05:00
softsimon
49e057e726
Fixing trailing slash issue 2023-05-12 11:05:20 -05:00
softsimon
7f3e4eb534
Skip existing mining pool logos when syncing assets 2023-05-12 11:05:19 -05:00
hunicus
6be9f23790
Add more languages for promo captions 2023-03-18 04:57:20 -04:00
hunicus
12b605e5cc
Fetch subtitles files from github
For en, sv, and ja.
2023-03-15 23:06:10 -04:00
hunicus
cdfde05452
Make new folder for promo video assets
Video, cover image, and subtitle files.
2023-03-15 02:50:17 -04:00
hunicus
4f689885e6
Remove margin from about video 2023-03-02 23:02:35 +09:00
hunicus
a54684ad74
Add promo video to about page 2023-03-02 07:51:30 -05:00
Felipe Knorr Kuhn
7f6d6b86a4
Merge branch 'master' into nymkappa/feature/pools-json-frontend-cleanup 2023-01-11 21:38:33 -08:00
nymkappa
73c55c450c
Ignore pool logo download failure as it's not a critical error 2023-01-08 11:43:18 +01:00
nymkappa
908b92af71
Remove pools.json download from the frontend 2022-12-16 18:01:04 +01: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
84006b2012
Use our forked repo of mining pool data 2022-03-17 14:16:57 +01:00
nymkappa
c704bfedeb
Download pool logos from github 2022-02-08 12:56:26 +09:00
softsimon
766803ded1
Liquid testnet asset frontend support 2021-12-29 00:42:34 +04:00
softsimon
d841933b21
Sync blockstream asset registry when in liquid base module mode. 2021-08-05 01:31:22 +03:00
wiz
cc166cab75
Fix resource download path in frontend/sync-assets.js 2021-01-11 22:11:29 +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
wiz
8dddd6e25e
Use mempool's fork of Blockstream's Liquid asset registry db repo 2020-09-24 17:12:53 +09:00
softsimon
16603e4fc1
Throw error when failing to download json assets. 2020-05-28 01:56:32 +07:00
softsimon
0753b11840
Identify and display mining pool.
fixes #59
2020-05-10 00:35:21 +07:00