Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add component for selecting rpc #230

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

HappyBerrysBoy
Copy link

  • Add Component in the setting page
  • Add RPC Node List in the default.json
  • Change api endpoint for loading posting/comments

@HappyBerrysBoy HappyBerrysBoy marked this pull request as draft April 20, 2023 08:07
@HappyBerrysBoy HappyBerrysBoy marked this pull request as ready for review April 20, 2023 08:07
@HappyBerrysBoy HappyBerrysBoy marked this pull request as draft April 20, 2023 08:09
@HappyBerrysBoy HappyBerrysBoy marked this pull request as ready for review April 20, 2023 08:49
- Main.js Bug Fix(steemSelectedRpc => !steemSelectedRpc)
- Set state(rpcNode, rpcError)
- Show rpcError under component when invalid rpc url format

validateUrlFormat(url) {
if (!url) return false;
if (!/^https?:\/\//.test(url)) return false;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we enforcing a HTTPS here? Also, check this for a more complex reg: https://stackoverflow.com/questions/8667070/javascript-regular-expression-to-validate-url

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed this.
Thanks for your kindly review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants