GithubHelp home page GithubHelp logo

lbry-redux's Introduction

lbry-redux

MIT licensed

lbry-redux is a module which contains common React and redux code shared between lbry-desktop and lbry-android.

Installation

Add lbry-redux as a dependency to your package.json file. "lbry-redux": "lbryio/lbry-redux"

Local development

If you intend to make changes to the module and test immediately, you can use npm link to add the package to your node_modules folder. This will create a symlink to the folder where lbry-redux was cloned to.

cd lbry-redux
yarn link
cd /<path>/<to>/<project> (ex: cd ~/lbry-desktop)
yarn link lbry-redux

Build

Run $ yarn build. If the symlink does not work, just build the file and move the bundle.js file into the node_modules/ folder.

Tests

Run $ yarn test.

Contributing

We ❤️ contributions from everyone! We welcome bug reports, bug fixes and feedback on the module is always appreciated.

contributions welcome GitHub contributors

License

This module is released under the MIT License

lbry-redux's People

Contributors

akinwale avatar btzr-io avatar clay53 avatar dan1d avatar daovist avatar dependabot[bot] avatar es-socrates avatar eukreign avatar grayyyyy avatar hackily avatar igassmann avatar infinite-persistence avatar ioancole avatar jeffslofish avatar jessopb avatar kauffj avatar lbrydocs avatar nikooo777 avatar osilkin98 avatar ruk33 avatar sakshamtaneja21 avatar shyba avatar skhameneh avatar ssiddhantsharma avatar strikerrus avatar tiger5226 avatar tigerxwood avatar tzarebczan avatar yamboy1 avatar ykris45 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lbry-redux's Issues

unify redux publish

Tracking lbry-redux publish integration goals and progress

  • desktop uses publish
  • android uses publish
  • supports generic asset upload (thumb, cover)
  • supports channel edits
  • handles edits
  • handles post publish clear and navigation
  • separates actual form parameter values from helper values

issues: local app settings reducer settings, e.g. osNotificationsEnabled, etc.

Not all messages are marked for localization.

While using the app, I noticed that most of the toasts are localized. When I searched the repo, I see that some entries are marked with __( ) , while most aren't.

I can help out with this, assuming that the fix is simply to:

  1. Encapsulate all the messages with __( ).
  2. Add the strings (if not already) into lbry-desktop and lbry-mobile.

image

Add error when display type not passed to doNotify

The Issue

Per comments in lbryio/lbry-desktop#1493 (comment), we should add an error when the doNotify function does not contain all required parameters. If we don't, the notifications get queued up and other notifications don't show afterwards.

System Configuration

  • LBRY Daemon version:
  • LBRY App version:
  • LBRY Installation ID:
  • Operating system:

Anything Else

Screenshots

deleting default wallet before syncing

If we are sure a user is in first-run mode, have an empty wallet, and are signing into a synced account, we should delete the default account before syncing. IThis should be the case every time for Android.

f we don't every time they sign-in on a new device will result in an additional blank account being synced. This means an additional 26 wallet addresses need to be subscribed to.

CORS Error when canceling publish on Odysee / LBRY

export const doResetThumbnailStatus = () => (dispatch: Dispatch) => {

This function causes a CORS error client side:

image

https://spee.ch/api/config/site/publishing 302 redirections to -> https://lbry2.vanwanet.com/speech/api/config/site/publishing

The redirection on spee.ch has proper CORS, however the location at lbry2.vanwanet.com does not have any CORs set.

@tzarebczan suggested removing the check entirely.

tags

Allow to add more tags, so people can specify better.
Suggest existing tags when typing for a tag, so videos will be more specified under same tags

'/wallet' as a link target should not be localized

There are two of these entries in redux:

linkTarget: __('/wallet'),

If it's a link, it should not be localized, right?
Currently, this string also exists in Transifex for desktop -- I'm not sure if it will mess things up if a translator changes translates it.

Remove all api.lbry.io references

const CONNECTION_STRING = process.env.LBRY_APP_API_URL
? process.env.LBRY_APP_API_URL.replace(/\/*$/, '/') // exactly one slash at the end
: 'https://api.lbry.io/';

This repo should be using the lbryinc repo to connect to the apis.

https://github.com/lbryio/lbryinc/blob/f590ddc077bf6e3e8fcc64820ba94a193525d911/src/lbryio.js#L11-L14

A few problems with this:

  • Because of environment variables in node modules not working, the following has to be leveraged. The only way to set the url is to modify bundle files.

https://github.com/lbryio/lbryinc/blob/f590ddc077bf6e3e8fcc64820ba94a193525d911/src/lbryio.js#L11-L14

  • Because it is using this old api library it does not send the auth token. I need the list_homepage api to receive a token for my discovery changes I am testing.

As a result this is a blocker for me. I spoke with @seanyesmunt and this was just an oversight that it was not moved before. He is going to move them over asap.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.