Commit graph

162 commits

Author SHA1 Message Date
Jonathan Zernik
fa9a84c1df
Include peer name in sent payment result (#433)
* Include peer_name sent payment rpc result

* Show peer name in sent payment in frontend
2020-11-10 17:32:20 -05:00
Jonathan Zernik
b1d8d133e6
Show time in sent payment (#431)
* Get time field in sent payment rpc

* Show sent payment time in frontend
2020-11-10 15:55:26 -05:00
Jonathan Zernik
e709793617
Add payments page (#429)
* Add payments page

* Add payments page link to sidebar

* Create sent payment component

* Got sent payments list showing

* Show link to squeak and to lightning node in sent payment

* Fix lightning node pubkey link

* Add link to peer page from sent payment
2020-11-10 14:44:26 -05:00
Jonathan Zernik
6641e64995
Use msat as price unit (#427)
* Use price_msat for config and internally

* Use price_msat in admin protocol for offer message

* Use price_msat in sent payments table and protocol

* Update frontend to use new protocol with price_msat for offer

* Update static build
2020-11-10 02:35:24 -05:00
Jonathan Zernik
7297949239
Show address in profile page (#416)
* Show address in profile page

* Update static build
2020-11-08 14:16:08 -05:00
Jonathan Zernik
12a8ddc88f
Add squeak detail page (#412)
* Created squeak detail page

* Add get squeak details rpc method

* Got squeak serialized data to show

* Put style back

* Show raw squeak data in text field

* Show hash in squeak details page

* Include link to zoom in to squeak detail page from squeak page

* Update static build and frontend makefile
2020-11-07 22:19:24 -05:00
Jonathan Zernik
59598dfcee
Show error aler on payment fail (#411)
* Show alert on payment failure with error message

* Show error alert when open channel fails

* Don't try to handle close channel response because it won't work

* Update static build
2020-11-07 17:57:05 -05:00
Jonathan Zernik
13a5be4d6b
Fix lnd unavailable logic (#409)
* Fix lnd unavailable function logic

* Update static build
2020-11-07 16:54:44 -05:00
Jonathan Zernik
0488696025
Show dialog when lnd is unavailable (#408)
* Show dialog when lnd is unavailable

* update static build
2020-11-07 16:47:33 -05:00
Jonathan Zernik
56b501cd4a
Fix error handling frontend request (#407)
* Makerequest function in frontend takes handleError argument

* Add deserializeMsg parameter to handleResponse function

* Update makeRequest function to handle deserialization

* Update requests to handle response better

* Stop showing alert when lndgetinfo fails
2020-11-07 16:24:15 -05:00
Jonathan Zernik
e2bf25d9ae
Fix add contact profile button (#406)
* Fix add contact profile button

* Fix add contact button

* Update static build
2020-11-07 15:32:17 -05:00
Jonathan Zernik
478443af45
Make clean with makefile in frontend folder (#401) 2020-11-06 18:05:29 -05:00
Jonathan Zernik
245fee3f15
Fix click contact profile profiles page (#395)
* Fix click contact profile action in profiles page

* Update static build
2020-11-06 12:25:53 -05:00
Jonathan Zernik
feb6a83bce
Add button to go to squeaks from profile page (#388) 2020-11-05 16:34:13 -05:00
Jonathan Zernik
b29a8ca8ea
Remove whitelisted attribute, use following to build whitelist (#386)
* Remove whitelisted attribute, use following to build whitelist

* Fix update whitelist on set profile following method

* Remove whitelist feature toggle from fronted

* Update frontend build
2020-11-05 14:12:23 -05:00
Jonathan Zernik
34721af3b8
Add load offers button (#378)
* Add load offers button to buy offer page

* Fix sync single squeak upload when squeak is locked
2020-11-05 01:22:49 -05:00
Jonathan Zernik
6e1467152d
Update frontend build (#367) 2020-11-04 02:29:45 -05:00
Jonathan Zernik
22803b42d5
Got download single squeak working (#364) 2020-11-03 23:06:53 -05:00
Jonathan Zernik
5f16a88933
Handle reply and delete in squeak detail component (#363)
* Rename replyDialogOpen state variable

* Move reply dialog inside squeak detail component

* Move delete dialog inside squeak detail component
2020-11-03 22:34:27 -05:00
Jonathan Zernik
014d55aaeb
Remove unused gotosqueakpage function from squeak address page (#362) 2020-11-03 22:07:00 -05:00
Jonathan Zernik
304ef943d9
Show unknown hash squeak ancestor (#361)
* Show unknown squeak ancestor for replyto hash

* Don't show squeak has inside thread item content

* Fix handle squeak click for unknown squeak hash

* Fix get ancestors of unknown squeak hash

* Show missing squeak hash in squeak detail item component

* Remove handle click squeak from squeak thread component params

* Remove more click handler parameters from squeak components
2020-11-03 21:55:23 -05:00
Jonathan Zernik
c66de04303
Block detail link opens new tab (#357) 2020-11-01 13:34:50 -05:00
Jonathan Zernik
a6e0e3fa3c
Use env vars for frontend dev mode readme (#356) 2020-11-01 13:28:22 -05:00
Jonathan Zernik
f513f0f5c7
Fix current block height/hash in blockchain client, and show block detail url in timeline (#352) 2020-10-31 23:28:10 -04:00
Jonathan Zernik
b29cc9e925
Add build instructions for protoc in readme (#348)
* Add build instructions for protoc in readme

* Fix protoc download urls
2020-10-30 12:42:32 -04:00
Jonathan Zernik
f8cda6fef2
Organize frontend (#346)
* Remove intermediate squeak-node-frontend dir

* Create build-protos.sh

* Fix build-protos script in readme
2020-10-29 23:21:38 -04:00
Jonathan Zernik
927299cef0
Allow frontend testing without login (#345)
* Frontend testing working in dev mode

* Make login_disabled and cors configs configurables

* Update frontend readme
2020-10-29 18:22:01 -04:00
Jonathan Zernik
99ddc2df77
Rename to squeaknode (#342)
* Rename squeakserver to squeaknode and get itest passing

* Fix itest dockerfile

* Rename more squeakserver to squeaknode

* Rename database from squeakserver to squeaknode

* Update readme

* Remove frontend/build from git

* Rename squeakserver to squeaknode in tox and main
2020-10-29 14:35:17 -04:00
Jonathan Zernik
b68d393778
Handle flask request errors (#336)
* Handle flask rpc request errors

* Show failed requests in alert in frontend
2020-10-29 01:23:49 -04:00
Jonathan Zernik
a8564418b6
Show login and logout menu in frontend (#335) 2020-10-28 21:36:21 -04:00
Jonathan Zernik
0f875f8071
Add logout button (#334) 2020-10-28 20:30:23 -04:00
Jonathan Zernik
478fdc944d
Build frontend outside docker (#325)
* Build frontend outside docker and commit in git

* Update sqkserver dockerfile to use build folder from host

* Add makebuild script to frontend folder
2020-10-26 21:59:40 -04:00
Jonathan Zernik
537bb8439b
Use ssl for flask server (#319)
* Use ssl for flask server

* Use window location protocol to get https or http in frontend

* Make use_ssl configurable

* Remove log port in frontend
2020-10-24 18:04:56 -04:00
Jonathan Zernik
9ed4d79c78
Use host volume for btcd data (#318) 2020-10-24 14:12:32 -04:00
Jonathan Zernik
6f8e556bcf
Make web server port configurable (#314)
* Make host and port for web server configurable

* Add webadmin host and port to config file

* Use current host and port in web frontend

* Remove envoy and frontend from docker compose

* Remove envoy

* Remove unused postgres docker volume
2020-10-23 21:16:50 -04:00
Jonathan Zernik
70f6766d6b
Convert more rpc to flask requests (#313)
* Convert connect peer and disconnect peer to http requests in frontend

* Convert pay offer request in frontend to use flask

* Convert open and close channel to flask in frontend

* Convert get offer and get offers frontend to use flask endpoints

* Use flask endpoint for get peer request in frontend

* Convert set peer attributes to use flask endpoint in frontend

* Convert get signing and contact profiles to use flask in frontend

* Convert more frontend functions to use flask endpoint

* convert all frontend functions to use flask endpoint
2020-10-23 16:16:42 -04:00
Jonathan Zernik
d3d7e6e604
Add admin web server (#310)
* Add basic flask web server

* Use ubuntu as docker base image for frontend docker build

* Got web frontend server running inside sqkserver

* Got client request throught flask working

* Refactor makerequest function in frontend

* Support sending request to flask server

* Use request and reply in flask for set profile sharing method

* Handle request object in flask for get followed squeaks route

* Use flask endpoint for lnd getinfo

* Use flask endpoint for walletbalance

* Use flask for gettransactions endpoint

* Use flask endpoint for lnd methods

* Add set profile properties methods to flask

* Move request, response protobuf to handler class

* Move request, reply inside handler for get signing profiles

* Move request, reply to handler for get contact profiles

* Move request, reply to handler for get squeak profile

* Move request reply for get profile by address to handler

* Move request reply to handler for set profile attributes

* Move request reply to handler for delete profile

* Move request reply for make squeak to handler

* Move request reply to handler for get squeak display

* Move request reply to get address squeak displays

* Move request reply to handler for ancestor squeaks

* Move request reply to handler for delete squeak

* Move request reply to handler for create peer and get peer

* Move request reply to handler for peer set attributes

* Move request reply to handler for more methods

* Move request reply to handler for another method

* Move request reply to handler for more methods

* Move more request reply to handler

* Move request reply to handler for all methods

* Remove message conversion helper methods from servicer class

* Remove duplicate protobuf conversion functions

* Fix flask handling of requests

* Remove old protobuf conversion methods in comments

* Use helper method to simplify web server routes functions
2020-10-22 22:52:40 -04:00
Jonathan Zernik
8c5fbeb5b4
Improve dialog message for pay offer (#308) 2020-10-19 13:16:51 -04:00
Jonathan Zernik
9060ba67ca
Rename rpc request functions (#307)
* Renamed some of the rpc request functions to include request in name

* Update more rpc function names

* Rename more rpc methods

* Rename all rpc request functions

* Remove old comments

* Remove console logs and alerts from rpc methods

* Remove console logs from rpc request functions

* Remove console log line

* Handle buy error more gracefully

* Handle errors in open/close channel

* Handle alert errors for makesqueak dialog

* Handle error with alert in create signing/contact profile
2020-10-19 13:08:51 -04:00
Jonathan Zernik
df20352908
Organize frontend client requests in module (#306)
* Refactor getFollowedSqueaks into requests module

* Simplify getsqueaks method

* Refactor client requests in wallet page to requests module

* Make request name functions consistent

* Refactor set following profile function into requests module

* Refactor all rpc calls from profile page to requests module

* Refactor rpc functions out of lightning node

* Refactor rpc functions out of squeak peers page

* Refactor rpc functions out of buy offer dialog

* Refactor rpc functions out of close channel dialog

* Refactor rpc functions out of buy page

* Refactor rpc functions out of channel page

* Refactor rpc function out of offer page

* Refactor rpc functions out of peer page

* Refactor rpc functions out of profiles page

* Refactor rpc functions out of make squeak dialog

* Refactor rpc out of squeak page

* Refactor rpc out of squeak address page

* Delete connect peer dialog

* Refactor rpc out of create contact profile dialog

* Refactor rpc out of create signing profile dialog

* Refactor rpc out of create peer dialog

* Refactor rpc out of delete peer dialog

* Refactor rpc out of delete profile dialog

* Refactor rpc out of delete squeak dialog

* Refactor rpc out of open channel dialog

* Refactor rpc out of receive bitcoin dialog
2020-10-19 11:43:08 -04:00
Jonathan Zernik
248dd5f988
Show pending open channels (#305)
* Show pending open channels in channels tab in wallet page

* Show pending open channels for lightning node
2020-10-18 22:28:53 -04:00
Jonathan Zernik
a28e04b106
Improve channel item component (#304)
* Improve channel item component

* Fix clearing offers for squeak on squeak download
2020-10-18 21:37:42 -04:00
Jonathan Zernik
3b284ab699
Handle failed payment (#302)
* Show popup error message when payment failes

* Remove log lines from pay offer backend method
2020-10-18 19:29:14 -04:00
Jonathan Zernik
e29f5f174c
Add pay offer dialog (#301)
* Add pay offer dialog to offer component

* Show offer info in buyoffer dialog

* Remove old amount state from pay offer dialog

* Fix import pay offer request in pay offer dialog

* Go to squeak page after pay offer

* Fix text of pay offer button
2020-10-18 17:41:45 -04:00
Jonathan Zernik
8ebdc754ca
Add pay offer dialog and backend method (#296)
* Add insert sent payment method

* Delete db container from itest

* Add other container in itest

* Connect to other squeak node in itest

* Use client lightning container for itest to get offers from main node

* Get offers itest working

* Open channel to buy offer in itest

* Successfully pay offer

* Remove old print statements from itest

* Successfully unlock squeak in pay offer method

* Assert that decrypted content is correct in pay offer itest
2020-10-18 00:27:49 -04:00
Jonathan Zernik
e9cfcd00c9
Add routes tab to lightning node page (#295) 2020-10-15 20:39:59 -04:00
Jonathan Zernik
a2a3af0cd4
Add channel page (#291)
* Add channel page

* Add channel page

* Add channels tab to wallet page

* Add close channel dialog

* Close channel working
2020-10-15 19:34:47 -04:00
Jonathan Zernik
416803b7e2
Only show relevant channels for node in channels tab in node page (#290) 2020-10-15 15:47:02 -04:00
yzernik
18918c563f Remove close channel button 2020-10-15 12:08:58 -07:00
yzernik
bff44f3448 Show correct value for hasOpenChannel to lightning node 2020-10-13 13:38:47 -07:00