Jack Mallers
f84fb97a41
fix(channel-details): use currencyName
7 years ago
Jack Mallers
5c301075e0
fix(waiting_close_channels): account for waiting_close_channels
7 years ago
Jack Mallers
a34093f506
fix(submit-channel): reduce font size
7 years ago
Jack Mallers
7e426eb507
fix(margin): fix using margin-bottom instead of margin
7 years ago
Jack Mallers
1c9a23b195
fix(channel-list): change the logic to look at the currentChannels
7 years ago
Tom Kirkpatrick
bd26d26884
fix: kill lnd process on quit
Ensure that any lnd process started by us is killed when the app quits.
Fix #470
7 years ago
Jack Mallers
afb690dd95
fix(p2pkh): generate np2wkh instead of p2pkh
7 years ago
Tom Kirkpatrick
da2d6955e3
perf(bundle-size): remove moment-timezone dep
Shaves 176.88k of final renderer.prod.js bundle size.
7 years ago
Jack Mallers
8ac7718dd3
feat(sync): add loading spinner while address is trying to be generated
7 years ago
Jack Mallers
ec513cae04
feat(syncing): new sync design and add deposit address
7 years ago
Jack Mallers
71d6ebec84
refactor(sbumit-channel): refactor sass file
7 years ago
Tom Kirkpatrick
7ab31e12df
fix(cors): proxy requests to remote sites
When running in dev mode, proxy requests to remote sits in order to
mitigate CORS issues.
7 years ago
Tom Kirkpatrick
651024af10
build(webpack): dynamic CSP configuration
Use `CspHtmlWebpackPlugin` to generate our content security policy
using code rather than hard coding meta tags on our html index page.
This provides us a more flexible means to configure our CSP dynamically.
7 years ago
Tom Kirkpatrick
ab087586cc
refactor(webpack): remove inline scripts
Use `HtmlWebpackPlugin` to generate our final html file so that we can
remove our inline scripts and insert them dynamically based on our
webpack config.
7 years ago
Jack Mallers
37c0fe6a6e
style(lint): fix lint errors
7 years ago
Jack Mallers
147a719b96
fix lint errors
7 years ago
Jack Mallers
371c152cfb
feat(channels): remove hardcode currency name in channel balance and replace with dynamic currency name
7 years ago
Ben Woosley
07ff5db0b9
fix: Don't catch api/index errors
If we catch these errors and resolve to the error itself, then `await` for that
function resolves to the error value rather than throw. Because no api currently
handles the associated errors, it is better to be noisy about these errors, by
throwing rather than returning the error object.
7 years ago
Jack Mallers
392bb330f7
fix(log): fix the uncaught exception by calling info on log not lnd.log
7 years ago
Ben Woosley
dc29c80ad0
style(line length): Drop prettier line length from 120 to 100
Subjectively, this increases general readability, while the higher max-length
limit allows for longer strings and comments, etc.
7 years ago
Ben Woosley
4d876ae930
style(line length): Limit max length to 120, including comments, etc.
7 years ago
Ben Woosley
f87236495a
style(line length): Limit prettier line length to 120 chars
150 is a bit too long
7 years ago
Jack Mallers
3adf4620e0
fix(channels): fix invalid assignment error for removeClicked, displayNodeName and channelStatus
7 years ago
Ben Woosley
5bc2f6e980
lint(explicit disable): Make all eslint-disable-line statements explicit
As to what they disable.
7 years ago
Tom Kirkpatrick
0c7e75eb05
perf(bundle-size): only import used react icons
The final size of renderer.prod.js is about 4.75mb. 2.35mb of this comes
from react-icons.
Update the react icon imports to import only the specific icons that we
use. This reduces the final size of renderer.prod.js by about 50%
7 years ago
Ben Woosley
d5211076fd
enhance(lnd config): Move LND settings Zap uses into the local lnd.conf
This enables easy access to all lnd settings for development, and is a step
toward relying on an external configuration file that will be accessible to
users for whom the code is not.
7 years ago
Ben Woosley
689d5bf753
lint(unnecessary disable): Remove unnecessary eslist-disable-lint statements
7 years ago
Jack Mallers
da4ae24675
fix(channels): fix invalid assignment error that was not allowing channel details to toggle open on click in production builds
7 years ago
odb366
508ddf670b
fix(onboarding-layout-ui): fixed lint errors
7 years ago
odb366
c4e6345c50
fix(onboarding-layout-ui): button color changed, and conflict resolved
7 years ago
odb366
ad7a08cfa9
fix(submit-channel-layout): width of amount field matches expected output
7 years ago
odb366
c4a6b0f8ae
fix(submit-channel-layout): refactor form layout
7 years ago
odb366
fca58025a2
fix(submit-channel-layout): refactor form layout
7 years ago
Tom Kirkpatrick
556e541278
build: do not build grpc-node from source
grpc-node provides node bindings that are specifically targeted towards
electron. Make use of these rather than force compiling grpc on install.
See https://github.com/LN-Zap/zap-desktop/issues/420
7 years ago
Tom Kirkpatrick
0846bcb772
style(lint): lint and format all code
7 years ago
Ben Woosley
2cebba7a57
enhance(linting): Enable the eslint:recommended rules
Among other things, this makes no-console an error rather than a warning.
https://eslint.org/docs/rules/no-console
Given that we now have a proper logging facility, good to prevent incidental
introduction in the future.
7 years ago
Ben Woosley
e2ac8729d1
enhance(logging); Output app/lnd logs to the lnd log, rather than console.log
7 years ago
Ben Woosley
0602fbe7ca
fix(lnd log level): Fix lndLogGetLevel to apply the most-recent log level when none is detected
In some cases, multi-line log output was output at its value for the first line,
but in the trace log in following lines. For example, in this output:
zap:lnd [DBG] 2018-06-17 18:30:35.051 [DBG] CRTR: New channel update applied: (*channeldb.ChannelEdgePolicy)(0xc420e74310)({ +0ms
zap:lnd [DBG] SigBytes: ([]uint8) (len=71 cap=71) { +0ms
zap:lnd [DBG] }, +0ms
zap:lnd [DBG] sig: (*btcec.Signature)(<nil>), +0ms
zap:lnd [DBG] ChannelID: (uint64) 1423834572626526208, +0ms
zap:lnd [DBG] LastUpdate: (time.Time) 2018-06-17 18:30:26 -0500 CDT, +0ms
zap:lnd [DBG] Flags: (lnwire.ChanUpdateFlag) 1, +0ms
zap:lnd [DBG] TimeLockDelta: (uint16) 6, +0ms
zap:lnd [DBG] MinHTLC: (lnwire.MilliSatoshi) 1000 mSAT, +0ms
zap:lnd [DBG] FeeBaseMSat: (lnwire.MilliSatoshi) 1 mSAT, +0ms
zap:lnd [DBG] FeeProportionalMillionths: (lnwire.MilliSatoshi) 10 mSAT, +0ms
zap:lnd [DBG] Node: (*channeldb.LightningNode)(<nil>), +0ms
zap:lnd [DBG] db: (*channeldb.DB)(<nil>) +1ms
zap:lnd [DBG] }) +0ms
zap:lnd [DBG] +0ms
Previously the first line would be marked DBG, while the others were marked TRC.
7 years ago
Tom Kirkpatrick
615ed52e7a
ci(travis): disable security warnings
Set ELECTRON_DISABLE_SECURITY_WARNINGS on travis to prevent security
warnings related to CSP from failing the tests.
7 years ago
Tom Kirkpatrick
f460542e25
fix(security): content security policy
Set up an initial Content-Security-Policy that limits resources
loading capabilities to those locations that we expect to load from.
Note: This currently includes three following remote URLs:
*content:*
- https://api.coinmarketcap.com
- http://zap.jackmallers.com
- https://testnet-api.smartbit.com.au ;
*fonts/styles:*
- https://fonts.googleapis.com
- https://s3.amazonaws.com
- https://fonts.gstatic.com
7 years ago
Tom Kirkpatrick
814252caee
build(electron): update to electron v2.0.2
7 years ago
Tom Kirkpatrick
4a535be142
feat(logging): more readable logs
Use debug-logger to provide a more comprehensive and flexible logging
solution. Use two separate log handlers to provide separation between
electron and and lnd logs.
7 years ago
Tom Kirkpatrick
09fe241a7e
docs(advanced): remove redundant install steps
Remove the `install-grpc` installation step as it is redundant.
See #420
7 years ago
Tom Kirkpatrick
1b702e946a
fix(lnd): better lnd log parsing
Pipe lnd stdout tream through `split2` in order to ensure that each data
event contains a single line of log output.
Fix #432
7 years ago
Ben Woosley
0ce5b04fe5
Don't run onboarding if LND is already running locally
The onboarding settings are only relevant if the user wants to connect to a
remote LND or have Zap run LND. If the LND is already running locally, the user
is capable of separately configuring it.
This does not support the case of connecting to a remote LND while running LND
locally, but I can't think of a reason why someone would do such a thing. In
such a case, they could quit LND, start Zap, then re-start LND.
7 years ago
odb366
fd5ab3ab1b
fix(onboarding-layout-ui): Added input borders and adjusted spacing
7 years ago
odb366
fcf2700b83
fix(onboarding-layout-ui): Added input borders and adjusted spacing
7 years ago
odb366
55ca88e588
fix(onboarding-layout-ui): Reworked spacing and buttons
7 years ago
Ben Woosley
07facd5d0d
On the receive modal, label the address Testnet when appropriate
7 years ago
Ben Woosley
08fbed672f
Prefix ticker units with 't' when running on testnet
7 years ago