Commit Graph

630 Commits

Author SHA1 Message Date
TechMiX
306197c6e9 fix blockchain scrolling on mobile mode when RTL layout 2020-12-09 21:46:13 +01:00
softsimon
56556b6c52
Updated strings from transifex. 2020-12-09 23:55:17 +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
TechMiX
e6be450aaa add left-to-right mark character to amount component 2020-12-09 02:33:20 +01:00
TechMiX
c1bcf49f37 reverse all text-aligns in rtl-layout 2020-12-09 02:23:53 +01:00
TechMiX
c4734357c4 add text-align for Details title + swap text-left class with style so that it always remains aligned to left 2020-12-09 02:22:16 +01:00
TechMiX
e0adc505db add rtl-layout class to base component 2020-12-09 01:57:18 +01:00
softsimon
260735665b
Status view live data now works again... 2020-12-09 01:37:14 +07:00
softsimon
5b8bcd5b7d
i18n: Fixed stacked mempool block issue and enabled vietnamese. 2020-12-09 01:31:49 +07:00
softsimon
0a6f6a14b6
Pulled new strings from transifex. 2020-12-09 01:17:22 +07:00
softsimon
8e5efc47cd
i18n: reuse vB/s string 2020-12-08 18:40:00 +07:00
softsimon
eb9aaac0aa
i18n: Fixed translations for the footer component. Merged some duplicates. 2020-12-08 18:24:02 +07:00
wiz
06a0abdb79
Enable 'ko' locale for Korean in app.constants.ts 2020-12-08 15:59:00 +09:00
wiz
29b9fec3b9
Enable 'ko' locale for Korean in angular.json 2020-12-08 15:57:46 +09:00
softsimon
40ac83ee88
Update strings from transifex. 2020-12-08 11:58:43 +07:00
softsimon
5659a8c086
Correcting merge conflict. 2020-12-08 11:57:03 +07: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
softsimon
ae886e14b8
i18n: Added missing Bisq translations. Minor missing space and character fixes. 2020-12-07 17:35:05 +07:00
TechMiX
91cb2adb95 add missing 'sat/vb' string for i18n 2020-12-07 00:07:16 +01:00
softsimon
f70f94fede
i18n: Removed CR from "In X minutes" translation 2020-12-07 00:23:13 +07:00
softsimon
e2d19a174e
i18n: Updated strings for "x confirmations", "x transactions", "x blocks" and "block ETA". Peg-out, and bisq headers. 2020-12-06 23:44:08 +07:00
wiz
c19e21449d
Merge pull request #262 from TechMiX/addMissingTranslatableString
add 'sat' string for i18n
2020-12-07 01:07:05 +09:00
wiz
c819ddc64a
Update translation strings from Transifex 2020-12-07 00:20:22 +09:00
wiz
a2740aaa02
Enable 'ka' locale for Georgian 2020-12-07 00:20:05 +09:00
wiz
8d565f5c62
Update translation strings from Transifex 2020-12-06 03:44:29 +09:00
wiz
f93e1c460a
Disable Vietnamese locale 'vi' until translations are completed 2020-12-06 03:40:04 +09:00
wiz
0247c7137e
Update translation strings from Transifex 2020-12-06 01:12:33 +09:00
TechMiX
159d9c71a1 add 'sat' string for i18n 2020-12-05 14:59:08 +01:00
wiz
805636229a
Update translation strings from Transifex 2020-12-05 22:42:48 +09:00
wiz
c5cd80ac48
Update translation strings from Transifex 2020-12-05 21:57:51 +09:00
softsimon
94a5e8edae
i18n update 2020-12-05 11:58:22 +07:00
softsimon
1af1f7211e
Remove extra garbage characters from OP_RETURN tooltip.
fixes #254
2020-12-05 02:32:16 +07:00
softsimon
4d54723472
Fix for changing locale on other networks than mainnet.
fixes #253
2020-12-05 02:08:54 +07:00
softsimon
1fc1b4b86e
i18n: Asset search box 2020-12-05 02:01:31 +07:00
wiz
5774b395a7
Update translation strings from Transifex 2020-12-05 02:39:50 +09:00
softsimon
f4c27e4c26
i18n: Added X of X transaction. Flipped collapse/expand 2020-12-05 00:16:23 +07:00
softsimon
336e45a7b1
i18n: Added "miner identification" and updated "navigate to sponsor" 2020-12-04 23:07:53 +07:00
wiz
6acacc7792
Update translations from Transifex 2020-12-05 00:36:00 +09:00
softsimon
10b9778b3c
Adding missing Asset page strings. Fixed block title translations. 2020-12-04 22:30:09 +07:00
wiz
9ebb9a5d65
Use --force when running tx pull for Transifex strings 2020-12-05 00:12:08 +09:00
wiz
6476d1e77c
Update translations from Transifex 2020-12-05 00:11:40 +09:00
softsimon
67df21fe50
Fixing about-link title translation. 2020-12-04 21:49:03 +07:00
softsimon
ea496915c4
Updated messages.xlf 2020-12-04 21:38:14 +07:00
softsimon
035f9a4d67
Merge commit '768fbdfbfa8e0064b86e168c59762909f4c1763b' into simon/i18n-everything
* commit '768fbdfbfa8e0064b86e168c59762909f4c1763b':
  Update translated strings from Transifex
  More fixes for RTL
  Always render app-mempool-graph using LTR
  Implement auto RTL support for i18n locales like Arabic, Persian, etc.
  Update extracted i18n strings from source
  Enable 'ar' locale for Arabic
  Update translated strings from Transifex
  Fix incorrectly used 'nn' locale, rename it to 'nb' instead
  Update transifex-client configuration to use master branch

# Conflicts:
#	frontend/src/locale/messages.xlf
2020-12-04 21:30:51 +07:00
softsimon
232fc65af2
i18n correcctions based on feedback. Added even more missing i18n strings. 2020-12-04 21:29:31 +07:00
wiz
768fbdfbfa
Update translated strings from Transifex 2020-12-04 23:03:52 +09:00
wiz
92d163f495
More fixes for RTL 2020-12-04 22:54:09 +09:00
wiz
62363802be
Always render app-mempool-graph using LTR 2020-12-04 22:41:58 +09:00
wiz
e49ecd9368
Implement auto RTL support for i18n locales like Arabic, Persian, etc.
Fixes #255
2020-12-04 05:56:40 +09:00
wiz
ea521651fd
Update extracted i18n strings from source 2020-12-04 04:11:35 +09:00
wiz
73db9c5023
Enable 'ar' locale for Arabic 2020-12-04 04:11:14 +09:00
wiz
cc451d29ab
Update translated strings from Transifex 2020-12-04 04:07:01 +09:00
wiz
a831d04694
Fix incorrectly used 'nn' locale, rename it to 'nb' instead 2020-12-03 22:37:06 +09:00
softsimon
fb11d73751
i18n all the remaining strings. 2020-12-03 18:34:19 +07:00
wiz
9509891abc
Update transifex-client configuration to use master branch 2020-12-03 20:09:08 +09:00
wiz
8875579c08
Update strings from Transifex 2020-12-03 10:16:21 +09:00
wiz
83501cfdbe
Enable locale 'vi' for Vietnamese 2020-12-03 10:16:02 +09:00
softsimon
e35eb5aad2
Adding virtual size to transaction details.
fixes #248
2020-12-02 22:22:14 +07: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
88b702d6d8
Remove unused i18n tags in frontend/src/index.html 2020-12-02 20:35:52 +09:00
wiz
0d2e4000e1
Update translations from Transifex 2020-12-02 20:35:50 +09:00
wiz
9148d30fcc
Enable 'fr' locale for French 2020-12-02 20:35:46 +09:00
softsimon
3f990ff706
Corrected some missing spaces on transactions page and a blank render bug when confirmation time is below 1 minute. 2020-12-02 17:03:04 +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
b6150a3237
Route all Angular Universal requests to nginx, remove simon's hacks 2020-11-27 23:03:48 +09:00
softsimon
dee9fa2d9a
Hack to fix the urls. 2020-11-27 20:11:15 +07:00
softsimon
42d1fcbdee
Fix for non matching request URLs. 2020-11-27 20:01:25 +07:00
softsimon
d0da875e69
Adding ServerTransferStateModule for AU with custom http interceptor for cache transfer. 2020-11-27 18:41:57 +07:00
softsimon
5248fadcea
removing /api again 2020-11-23 21:59:30 +07:00
softsimon
2cbf1474c3
New frontend config for webserver url to fix static asset httpGet.
Removed "absolute" from config names.
2020-11-23 18:22:21 +07:00
wiz
e51a4ce028
Set npm to run ng and tsc binaries from ./node_modules/ path 2020-11-23 17:19:16 +09:00
softsimon
2054c951ae
Remove ssr prepended url from asset service. 2020-11-23 15:04:41 +07:00
wiz
5a70234370
Don't append /api to electrs backend path for SSR 2020-11-23 16:53:44 +09:00
softsimon
e5959f14bc
Update absolute url config variables. 2020-11-23 14:50:28 +07:00
softsimon
aaf9d9be9f
Merge branch 'master' into simon/angular-universal
* master:
  correcting merge
  Remove extra space in price server URL
  Modify upgrade script to append repo before tag name
  Merge "getInitData" method from simon/angular-universal.
  Replace opennode usd price source with wiz api. fixes #166
  Display confidential instead of nothing for confidential assets. fixes #110
  Detect confidential assets and display properly. fixes #109
  Allow searching for and viewing assets not in the asset registry. fixes #111

# Conflicts:
#	backend/src/api/websocket-handler.ts
2020-11-23 14:08:50 +07:00
softsimon
c36addd8c1
Frontend config support for AU. New absolute server url settings.
refs #104
2020-11-23 02:30:46 +07:00
softsimon
83126b83f1
Transaction, address and block page now works. 2020-11-22 23:47:27 +07:00
softsimon
75726df275
Merge branch 'master' into simon/angular-universal
* master:
  Tweak ASM opcode styling colors
  Add some color and styling to the Bitcoin ASM opcodes
  Correcting title text on graph invert button.
  Modify upgrade script to include "tag @ hash" in notification msg
  Adding a button to invert the graph globally.
  Display P2PK instead of OP_RETURN fixes #161
  Improved utxo script design. fixes #46
  Adding prevout script. Fixed padding. refs #46
  Correcting details button padding on mobile.
  Fix nginx.conf reverse proxy cache URL path for sponsor images
  Add missing "engines" metadata into package-lock.json
  Upgrade backend/package-lock.json to version 2
  Toggle display UTXO details and scripts for transactions fixes #46
  Axios error handle sponsor proxy requests.
  Replacing request.js with axios fixes #153
  Add basic websocket error handler as emergency fix for site crashing

# Conflicts:
#	frontend/src/app/services/storage.service.ts
2020-11-22 20:53:12 +07:00
softsimon
6bc6966019
Display confidential instead of nothing for confidential assets.
fixes #110
2020-11-22 16:30:36 +07:00
softsimon
01689c8433
Detect confidential assets and display properly.
fixes #109
2020-11-22 16:19:57 +07:00
softsimon
11d67cf756
Allow searching for and viewing assets not in the asset registry.
fixes #111
2020-11-22 16:03:23 +07:00
wiz
30fb0bad78
Tweak ASM opcode styling colors 2020-11-21 18:17:29 +09:00
wiz
9e83fdc9f2
Add some color and styling to the Bitcoin ASM opcodes
Fixes #164
2020-11-21 05:29:50 +09:00
wiz
a19ff7d3a7
Update og:title meta tag when changing page title 2020-11-20 00:59:10 +09:00
softsimon
9f9c0b1114
Correcting title text on graph invert button. 2020-11-16 21:58:16 +07:00
softsimon
ca540d902a
Adding a button to invert the graph globally. 2020-11-16 19:27:06 +07:00
softsimon
76238f5943
Display P2PK instead of OP_RETURN
fixes #161
2020-11-16 16:21:37 +07:00
softsimon
d9803e3f3d
Improved utxo script design.
fixes #46
2020-11-16 02:25:10 +07:00
softsimon
c9e63a723a
Adding prevout script. Fixed padding.
refs #46
2020-11-16 02:02:16 +07:00
softsimon
4136e8d332
Correcting details button padding on mobile. 2020-11-16 01:10:07 +07:00
softsimon
ddea10b160
Toggle display UTXO details and scripts for transactions
fixes #46
2020-11-15 17:58:38 +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
TechMiX
640a77e846 fix legend bug on resize 2020-11-13 01:23:19 +01:00
softsimon
5aa17e001c
Correcting new chartist import path. 2020-11-10 21:09:50 +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
softsimon
d8c4f5a6ac
Adding some padding and correcting a bad pixel line. 2020-11-03 18:03:25 +07:00
softsimon
1877b40413
Use actual mempool size instead of mempool vsize.
fixes #150
2020-11-03 16:11:32 +07:00
wiz
6f6d7bc4d2
❤️ 2020-11-03 17:03:41 +09:00
wiz
f1463b914d
Modify index.html metadata to have timestamp for mempool-preview.png URL 2020-11-03 16:44:25 +09:00
softsimon
6865e00738
Fix: Reduce red difficulty adjustment progress when nearing end of cycle. 2020-11-02 14:48:48 +07:00
softsimon
72325b683e
Merge pull request #147 from TechMiX/master
Save the legends status in cache
fixes #70
2020-11-01 20:26:38 +07:00
softsimon
8dd257aebd
Upgrading social media preview image to new design. 2020-11-01 17:40:45 +07:00
softsimon
200e68f15a
Fix: Wrong variable used to display mempool size. 2020-10-29 07:06:54 +07:00
TechMiX
411b75471c Merge branch 'master' of https://github.com/mempool/mempool 2020-10-28 22:25:33 +01:00
TechMiX
5d7a39a8f2 save the legends active status on a cache 2020-10-28 22:22:07 +01:00
softsimon
fcb51fef20
Calculate tx fees based on segwit tx sizes. 2020-10-28 20:26:48 +07:00
softsimon
29ff029b07
Updating lightning node name.
Fixing dashboard button alignment.
2020-10-27 19:27:48 +07:00
softsimon
396ff6a375
Change collapsing dashboard into 3 levels. 2020-10-27 16:34:27 +07:00
softsimon
e61574c630
Add L-BTC sponsor support. 2020-10-27 15:26:37 +07:00
softsimon
edf2d4205d
Feature: Add a collapse/show advanced view feature on the Dashboard
fixes #134
2020-10-27 02:58:29 +07:00
softsimon
645772c01a
Fix: Segwit-tag is inconsistent when transaction contains segwit and non segwit
fixes #130
2020-10-27 02:07:39 +07:00
softsimon
6a8deff706
Adding form validators for donation form. 2020-10-26 23:23:08 +07:00
softsimon
018e95e648
Fixing missing dashboard graph labels in Firefox. 2020-10-26 23:12:32 +07:00
wiz
9a94fccf40
Revert "Lock NPM versions."
This reverts commit b544af14e4.
2020-10-26 20:56:55 +09:00
softsimon
99162f5ec9
Sponsor Lightning support. 2020-10-26 18:29:25 +07:00
softsimon
b544af14e4
Lock NPM versions. 2020-10-26 15:59:28 +07:00
softsimon
fb47f5606a
npm audit fix 2020-10-26 01:13:36 +07:00
softsimon
9d7b52a104
Removing AVG() from mysql query reducing execution time. Increasing graph data span.
fixes #106
2020-10-26 01:00:21 +07:00
TechMiX
0fe32835c9 update legend state after chart update 2020-10-23 19:03:15 +02:00
wiz
aa8d3798ea
API Docs: move Fee Estimate APIs to their own tab 2020-10-23 22:15:17 +09:00
softsimon
45efb604c1
Revamping configuration file.
fixes #141
2020-10-19 11:57:02 +07:00
wiz
70da8248cc
Remove last paragraph on about page 2020-10-18 20:02:48 +09:00
wiz
716b1235ee
Fix typo on about page text 2020-10-18 19:54:48 +09:00
wiz
e732f0f1dc
Tweak about page text for project description 2020-10-18 19:28:11 +09:00
softsimon
fff8120daa
Backend API to load sponsor profile photos. 2020-10-18 17:14:35 +07: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
wiz
0fca6f3a3b
Tweak about page spacing and text 2020-10-17 16:13:57 +09:00
wiz
2d3ed5f8cb
Tag sponsored links with rel=sponsored, don't tag our social media links 2020-10-17 13:31:41 +09:00
wiz
988ed7e8af
Add some brief text to our about page, state Bitcoin Only policy 2020-10-17 12:25:44 +09:00
softsimon
15fdb69b96
Use Twitter API to fetch profile photos.
fixes #133
2020-10-16 16:29:54 +07:00
softsimon
4dacf292c2
Adding logger wrapper.
Log backend messages to syslog.
fixes #135
2020-10-13 15:27:52 +07:00
softsimon
55646b5732
Handle and don't crash for adress-prefix search error.
fixes #121
2020-10-12 12:57:19 +07:00
softsimon
e37a9de71d
Proxy donation requests to mempool.space when BTCPay Sponsors is disabled. 2020-10-12 10:50:10 +07:00
wiz
7673bf13b9
Update terms of service, add Sponsor Policy for inappropriate profiles 2020-10-12 08:37:56 +09:00
wiz
db16dbbc9d
Apply suggestions from code review
Co-authored-by: softsimon <softsimon@users.noreply.github.com>
2020-10-11 20:57:52 +09:00
wiz
1d8d39db6b
Only show first 8 characters of git commit hash on about page 2020-10-11 20:20:48 +09:00
wiz
024b2d58f7
Move social media icons to bottom, add terms of service links 2020-10-11 20:15:56 +09:00
wiz
bb3842fc10
Add basic Terms of Service page 2020-10-11 19:23:52 +09:00
wiz
8cd98b42fe
Fix matomo URL filename 2020-10-10 11:55:27 +09:00
wiz
c8d22dc536
Load self-hosted matomo analytics stats on mempool.space domain 2020-10-10 11:42:32 +09:00
softsimon
a8a1f4e976
About page updates.
refs  #128
2020-10-09 13:56:43 +07:00
wiz
761eff62c5
Merge pull request #129 from mempool/donations-fixes
Enhancements to the sponsorship GUI
2020-10-09 04:20:35 +09:00