Commit graph

17 commits

Author SHA1 Message Date
dependabot[bot]
0181eafe74
Bump moment from 2.29.2 to 2.29.4 in /frontend (#2235)
Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-13 15:03:57 -07:00
Jonathan Zernik
bbad5476c8
Add copy to clipboard external address (#2183)
* Include copy to clipboard in external address dialog

* Fix tooltip

* Update frontend build
2022-04-29 19:51:54 -07:00
Jonathan Zernik
1f602ea44e
Fix warnings frontend 3 (#2121)
* Remove dotenv javascript lib

* Run npm audit fix

* Run npm audit fix --force

* Update frontend build
2022-04-11 21:46:01 -07:00
dependabot[bot]
b8384e33cf
Bump moment from 2.26.0 to 2.29.2 in /frontend (#2115)
Bumps [moment](https://github.com/moment/moment) from 2.26.0 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.26.0...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-09 10:18:40 -07:00
Jonathan Zernik
c3c1c14071
Use tesla informed lib for make squeak form (#2050)
* Improved make squeak form using tesla informed library

* Fix validation of empty content in make squeak form

* Remove inner input box div

* Use css for tesla informed classes

* Update frontend build
2022-03-28 19:23:04 -07:00
Jonathan Zernik
1459578859
Use redux for frontend state and actions (#1988)
* Got basic timeline working from todos redux template

* Improve CSS and UI for home page with redux

* Load timeline in homepage on load

* Clear squeaks from timeline on home page load

* Comment out old state and reducers

* Got basic squeak component working with redux

* Show loader when single squeak is loading

* Got ancestor squeaks mostly working

* Fix useeffect trigger on squeak navigate

* Added get replies in squeak redux component

* Show loader for ancestors and replies while loading

* Remove squeak, ancestors, and replies from old state

* Rename todos to timeline

* Remove extra newlines

* Remove filters feature

* Got like and unlike partially working

* Remove old comments

* Got like and unlike thunks working for squeak slice

* Refactor ancestor squeaks into separate slice

* Refactor reply squeaks into separate slice

* Fix function name for select replies status

* Remove remaining reply logic from squeak slice

* Remove unused code from squeak page component

* Get network in slice

* Got like and unlike working in timeline slice

* Got basic make squeak slice working

* Remove old makesqueak component

* Fix make squeak slice thunk

* Remove console log for make squeak status

* Successfully navigate to new squeak page after make squeak

* Remove useHistory and replace with withRouter

* Handle error response in client base query.

* Use slice for signing profiles in make squeak

* Remove old client function

* Rename base request

* Remove old server class

* Use slice for payment summary component

* Remove old commented client API methods

* Comment out old API request methods deprecated by slices

* Got basic sent payments slice working

* Remove console log lines

* Remove console log lines

* Remove old comment

* Got received payments slice working

* Comment unused old API client methods

* Add slice for search component

* Fix search string length check

* Remove unused state from search page component

* Remove search method from old client API

* Got basic signing profiles slice working

* Use slices in profiles page

* Combine signing profile slices into profiles folder

* Remove get profiles methods from old client API

* Move networkslice to network folder

* Organize slices in folders

* Use slice for create signing profile

* Use slice for import signing profile

* Use slice for create contact profile

* Use reducers for create profiles slices in store

* Remove create profile requests from old api

* Remove payment summary request from old api

* Remove get network request from old api

* Remove unused function

* Got basic profile slice working.

* Got delete profile thunk working

* Combine ancestor and reply slices into squeak slice

* Export timeline squeaks status from timeline slice

* Combine timeline thunks into squeak slice

* Rename id for timeline thunk

* Move timeline component into squeak feature folder

* Got loading icon working in search squeaks component

* Combine search slice into squeak slice.

* Combine makesqueak slice into squeak slice.

* Use helper function to replace squeak in squeak state array

* Got like and unlike working in ancestors and replies

* Rename squeak slice to squeaks slice

* Rename sent and received payments status slice fields

* Combine sent payments slice and received payments slice into payments slice

* Combine payment summary slice into payments slice

* Rename status field of signing profiles slice and contact profiles slice

* Combine signing profile slice and contact profiles slice into profiles slice

* Remove old contact profiles slice

* Combine create and import profile slices into profiles slice

* Combine profile slice into profiles slice

* Redirect to profile page on create profile action

* Check profile pubkey before updating following in profiles slice

* Update signing profiles and contact profiles on follow change in slice

* Add profile squeaks to squeaks slice

* Update profile squeaks in slice on follow change

* Update profile name using slice

* Create contact profile from unknown pubkey using slice

* Fetch new profile after creating contact profile from unknown pubjey

* Remove completed todos

* Add thunk to change profile image

* Remove old comments in profiles page

* Got export private key working with slice

* Remove unnecessary todo

* Remove more unused methods from old client API

* Remove old action comments

* Remove more unused methods from old client API

* Remove more unused methods from old client API

* Got clear profile image working with slice

* Remove more unused methods from old client API

* Got delete squeak working with slice

* Remove more unused methods from old client API

* Remove more unused methods from old client API

* Remove accidentally created file

* Remove unused entity adaptors

* Got fetch saved peer working with peers slice

* Delete unused peers file

* Delete unused search function

* Delete unused peer function

* Use peers slice for get connected peers

* Use selector to get connected peer data from slice

* Got connect peer working using slice

* Got disconnect peer working using slice

* Fetch saved peers using slice

* Remove old actions from peers pag

* Use slice to connect peer in peers page

* Use external address slice to fetch and select external address

* Use slice to save peer in peers page

* Use slice to save peer in peer page

* Update current peer in reducer for save peer

* Use slice to delete peer in peer page

* Use slice to set peer autoconnect enabled and disabled in peer page

* Delete old commented calls of actions in peer page

* Remove more unused methods from old client API

* Got buy offer working using slice

* Fetch offers from backend on open buy modal

* Remove todo comment for delete squeak

* Remove more unused methods from old client API

* Remove more unused methods from old client API

* Remove more unused methods from old client API

* Fetch sell price info using slice

* Use sell price slice for all sell price actions

* Got logout working using account slice

* Fixed logout thunk

* Remove unused functions from payments page component

* Remove old action from profiles page

* Remove more unused methods from old client API

* Got download squeak working using slice

* Remove more unused methods from old client API

* Got download pubkey squeaks working

* Fix toggle following in contact profiles list

* Remove old commented actions in squeak card component

* Remove old commented actions

* Remove use of storecontext from all components

* Remove all files in old store directory

* Update frontend build
2022-03-15 00:20:07 -07:00
dependabot[bot]
c66613f8da
Bump axios from 0.19.2 to 0.21.2 in /frontend (#1948)
Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.19.2...v0.21.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-21 02:33:30 -08:00
Jonathan Zernik
74a0ee7079
Use new frontend (#1941)
* Use new frontend

* Remove whitespace

* Remove more whitespace

* Remove more whitespace

* Add requests file

* Try loading squeaks in home page

* Got basic timeline working

* Fix block time display

* Show author pubkey in tweet card

* Show profile name in tweet card

* Show profile image in tweet card

* Got tweet page working

* Implement part of profile page

* Show profile pubkey in pubkey page

* Show profile name in profile page

* User tweets now show in profile page

* Show reply tweets

* Load ancestor tweets, but show still not working

* Got tweet reply thread working

* Add partial implementation of make squeak

* Add re-usable component for make squeak

* Load signing profiles in middleware

* Implement make squeak

* Update favicon

* Fix issue with updating state of replies on new squeak.

* Remove author pubkey from squeak url path

* Got reply squeak working

* Fix update state with reducer on new reply

* Show author profile image in make squeak component

* Implement get more tweets in timeline

* Fix load more tweets

* Show loading state in timeline get mor

* Clear timeline tweets on page load

* Simplify props in make squeak component

* Remove unused props from make squeak component

* Fix params for tweet cards in profile page

* Got follow and unfollow working

* Fix tweets and replies tab in profile page

* Got load more tweets working for profile page

* Add delay to endpoints

* Clear user tweets on profile page load

* Remove delay from endpoint

* Remove whitespace in explore page

* Show signing profiles in explore page

* Show contact profiles in explore page

* Rename explore page to profiles

* Remove trends from profiles page

* Remove search tab from profiles page

* Fix set follow or unfollow from profiles page

* Change text of profile search box

* Implement name change in edit profile

* Simplify edit and follow buttons

* Remove chat button in profile

* Simplify user pubkey display in profile

* Remove bio and location from profile edit

* Remove banner from profile page

* Got image change working

* Remove log lines

* Remove unused state from profile

* Remove more state from profile page

* Remove content of messages page

* Remove unused state from profiles page

* Remove unused import from profile page

* Rename sats earned and sats spent tabs in profile page

* Remove log line

* Add create signing profile to profiles page

* Remove banner from new profile modal

* Add create contact profile to profiles page

* Add comment for modal in profile page

* Use separate modals in profile page for edit and spending

* Add delete profile button to profile pag

* Remove use of bookmark

* Remove banner from delete profile modal

* Implement delete tweet

* Fix delete tweet for tweet card.

* Add TODO comment

* Got update tweet for like and unlike working

* Simplify update tweet and delete tweet reducerts

* Add comments to tweet component

* Add comment to reducers

* Remove check for user in tweet card.

* Simplify props for tweet card.

* Implement missing tweet component partially

* Got display for missing tweet mostly working

* Fix reducer for delete tweet from ancestors

* Fix display of squeak with unknown author

* Fix handling of unknown author in make squeak to reply

* Got profile page working for missing profile

* Implement create profile from missing profile page

* Fix close make tweet modal on submit

* Remove who to follow from feed

* Fix close modal on submit new tweet in tweet card

* Add new peers page

* Got connected peers showing

* Remove search bar from peers page

* Show saved peers in peers page

* Got save peer working

* Remove input attach button from make squeak component

* Got basic peer page working

* Load peer connection info in peer page

* Remove unused functions in peer page

* Show correct host and port for peer and peers page

* Got connect and disconnect working in peer page

* Got connect and disconnect reducer working

* Remove unused displays from peer page

* Change word in connect button in peer page

* Got tor toggle working

* Add use tor option to create saved peer modal

* Implement delete saved peer

* Fix variable names in peers page

* Fix issue with save peer

* Fix action for save peer

* Show block info and block explorer link

* Get network in tweet page

* Remove log line

* Fix color scheme for missing tweet

* Add download button to missing squeak

* Show locked content in tweet and tweet card

* Partial implementation of buy dialog

* Got buy squeak working

* Reload ancestors in download tweet middleware

* Improve display of offer

* Show payment summary in sidebar

* Implemented beginning of payments page

* Show sent payments in payments page

* Implement clear sent payments

* Fix link to payments in feed

* Got received payments working

* Fix action for load more received payments

* Fix typo in get more received payments

* Remove log lines

* Add header title for peers page

* Remove unused pages from nav

* Show alert when payment fails

* Use more menu in profile page

* Remove icon from more button

* Add export private key

* Hide export private key for contact profile

* Remove log lines

* Got import signing profile working

* Remove log lines

* Improve display of locked content

* Fix comment for edit moda

* Add download squeaks action to profile page

* Remove log lines

* Show button for download action in profile page

* Include time in payments display

* Remove bookmark component

* Remove list component

* Remove chat component

* Remove retweet action

* Remove all use of account attributes

* Change unit to sats for sell dialog

* Fix display of peer page

* Remove usage of account state

* Try to implement logout

* Include prefix in route path

* Got redirect on logout working

* Got logout working in prod

* Remove log lines

* Remove suggestions action

* Show connection info

* Got autoconnect toggle working

* Rearrange peer page

* Got custom icon working

* Use custom icon

* Fix path string match in nav

* Add modal to show external address in peers page

* Remove export button from external address modal

* Update frontend build

* Fix more menu in profile page

* Update frontend build
2022-02-21 01:56:50 -08:00
Jonathan Zernik
bd0e2656f7
Update frontend dependencies fix conflicts (#1811)
* Update some frontend dependencies

* Update yarn

* Upgraded dependences with yarn upgrade --latest

* Got frontend working with upgraded dependencies

* Update frontend build
2021-11-20 20:28:53 -08:00
Abhishek Shandilya
02fe4a8ae3
Copy external address to clipboard (#1380)
* Copy external address to clipboard, and set maxwidth to accommodate onion address

* Add description and tooltip

* edit description
2021-09-22 13:14:56 -07:00
Jonathan Zernik
cb73a6bfd2
Configure eslint (#1097)
* Configure eslint

* Fix eslint for frontend requests file

* Configure no unused import in eslint

* lint requests frontend file

* Run lint on all pages files

* Run lint on all component files

* Run lint on all remaining source files

* Add makefile target for frontend lint

* Update frontend build
2021-08-28 21:09:22 -07:00
dependabot[bot]
b63ee36358
Bump @grpc/grpc-js from 1.0.5 to 1.1.8 in /frontend (#891)
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.0.5 to 1.1.8.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-01 18:04:31 -07:00
Jonathan Zernik
dadd37e3e8
Use react timeline for thread (#716)
* Show conversation thread with react timeline

* Use material timeline for squeak page

* Use react timeline for main timeline page

* Use faceicon instead of dot in timeline

* Fix aligment of material ui timeline

* Use material ui timeline for squeakaddress page
2021-01-26 21:18:44 -08:00
azernik
6231832cbe
redid styles code for wallet page (#473)
* added transaction details to TransactionItem display

* frontend wallet page changes

* fixed horizontal width bug
fixed ChannelItem.js click bug

* fixed pending channel bug

* fixed expand channel details
2020-11-25 13:51:27 -05: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
e5fd3cd066
Rename frontend code folder to squeak-node-frontend (#152) 2020-07-26 15:50:06 -07:00
Jonathan Zernik
a45c3b62be
Add envoy proxy (#95)
* Add envoy proxy

* Add frontend, still not working

* Open port to frontend

* Fix static html page

* Fix url in client js code, but CORS is still blocked

* Successfully make request from browser to sqkserver through proxy

* Expose ports for sqkserver in docker

* Remove unused frontend files

* Remove duplicate envoy config file
2020-07-19 20:20:34 -07:00