Tom Kirkpatrick
68dabe2c67
fix(devtools): fix devtools startup error messages
Wait until the `dom-ready` event has fired before opening up the
devtools window. This prevents the following error message showing up
multiple times when the app starts in dev mode:
> Extension server error: Operation failed: : has no execution context
See https://github.com/electron/electron/issues/12438
Fix #499
7 years ago
Tom Kirkpatrick
c022937d08
fix(devtools): patch webrequest to fix devtools
Fix an incompatibility between electron 2.x and devtools by patching the
electron webRequest handler.
See electron/electron#13008 (comment)
This is a follow up from https://github.com/LN-Zap/zap-desktop/pull/491/commits
Fix #490
7 years ago
Tom Kirkpatrick
d4cb99fd91
fix(devtools): patch webrequest to fix devtools
Fix an incompatibility between electron 2.x and devtools by patching the
electron webRequest handler.
See https://github.com/electron/electron/issues/13008#issuecomment-400261941
Fix #490
7 years ago
Tom Kirkpatrick
72691f447b
fix(grpc): handle gRPC startup issues
If there is a problem initializing the lnd gRPC connection, show an
error message to the user and quit the app.
7 years ago
Tom Kirkpatrick
ce201eb789
perf(boot): add logging to show boot time
Add some logging so that we can see how long it takes from starting up
the app until the user is first able to interact with it.
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
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
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
f87236495a
style(line length): Limit prettier line length to 120 chars
150 is a bit too long
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
Tom Kirkpatrick
0846bcb772
style(lint): lint and format all code
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
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
Ben Woosley
483064f95f
Shut down app when lnd closes
7 years ago
Ben Woosley
aff656a809
Show a message box when lnd errors occur
7 years ago
Ben Woosley
73d2686ba2
Fix the local lnd already running usecase
Absent this fix, Zap is stuck at the loading page on startup with local LND running.
7 years ago
Ben Woosley
db45e84b48
Fix typo in 'SAVED CONFIG TO' log entry
7 years ago
Tom Kirkpatrick
3c4a651764
feature(lnd-config): add connection type onboarding screen
Add a new set of screens into the connection onboarding flow that
allow the user to select wether to connect to a local or remote
LND node.
Fix #326
7 years ago
Jack Mallers
a2e0f48bb7
feature(close-channel): wire up close channel to UI
7 years ago
Jack Mallers
efc5cf0f02
fix(onchain): fix the UX for on-chain payments to be like the UX for LN payments
7 years ago
Jack Mallers
7cff397a4c
fix(lint + grpc): fix lint errors and a bug where gRPC connection starts too early
7 years ago
Jack Mallers
4b35c5f1aa
fix(channelform): remove old unused reducer
7 years ago
Jack Mallers
a0f9027180
feature(contactsform): tie up new contacts form to reducer
7 years ago
Jack Mallers
2bb28e0bbd
fix(lint): fix linting errors
7 years ago
Jack Mallers
24ae067ad9
feature(unlockWallet): ability to unlock wallet with helpful error messages
7 years ago
Jack Mallers
04798ac7f9
feature(payform): new pay form MVP
7 years ago
Jack Mallers
6bb5783e7d
fix(neutrino): connect to a better node
7 years ago
Jack Mallers
e005932d4f
fix(lint): fix linting errors
7 years ago
Jack Mallers
2d1030a1f7
feature(autopilot-onboarding): allow user to turn autopilot on/off before starting their node
7 years ago
Jack Mallers
33e260e033
fix(lint)
7 years ago
Jack Mallers
8d448708b7
fix(onboarding): default state is false for onboarded
7 years ago
Jack Mallers
dad4546e58
feature(alias): setup form container and onboarding architecture. hard code alias form
7 years ago
Jack Mallers
15c3b97c97
fix(lint): lint error
7 years ago
Jack Mallers
a7264ab918
fix(BrowserWindow): fix width/height
7 years ago
Jack Mallers
5f7a7da003
fix(alias): remove hard coded alias
7 years ago
Jack Mallers
907b81da8c
feature(header, activity): new activity and header
7 years ago
Jack Mallers
179cec24c8
fix(title-bar): new title bar
7 years ago
Jack Mallers
3fa7c28efe
fix(window): quit zap application when closing window
7 years ago
Jack Mallers
67f09ef026
fix(version): bump version to 0.1.1
7 years ago
Jack Mallers
e200b99d68
fix(traffic): add more full nodes for neutrino
7 years ago
Jack Mallers
f669bbaf66
fix(lint): fix lint errors
7 years ago
Jack Mallers
3fd72d118d
use btcd.jackmallers.com
7 years ago
Jack Mallers
c5d9879525
fix(lint)
7 years ago
Jack Mallers
66c97eb3c4
hotfix(grpc + electron): reconfigure to allow for multi-platform builds
7 years ago
Jack Mallers
468a4f1dc4
fix(lint): fix linting errors
7 years ago
Jack Mallers
4c1b627179
fix(sign): sign builds
7 years ago
Jack Mallers
7bfecd9764
feature(help): help videos
7 years ago
Ben Woosley
a6393f2f67
fix(lints): Fix lints in main.dev.js
Mostly this involves reordering the functions so they are not used
before they are defined.
7 years ago
Ben Woosley
4125283587
enhance(lints): Enable currenly disabled lints
7 years ago