Commit graph

93 commits

Author SHA1 Message Date
kodxana
7ae45e5d13
Merge pull request #35 from LBRYFoundation/Up-Version
Up Version
2020-10-13 15:24:34 +02:00
kodxana
df18a83285
Up Version 2020-10-13 15:23:50 +02:00
kodxana
2d719843ad
Merge pull request #34 from Aenigma/feature/rewrite
Major Refactor
2020-10-13 13:37:08 +02:00
Kevin Raoofi
deac83e656 Bug fixes
Subscription converter didn't handle error responses very well.
Also, the chunk size was lowered to 300 as this seems to make requests
failing.

Additionally, fix bug where redirect was trying to go to the app and a frontend at the same time, only to confuse lbry.tv
2020-10-13 06:45:51 -04:00
Kevin Raoofi
3821ff8e1f Add odysee 2020-10-13 05:39:52 -04:00
Kevin Raoofi
69f24a6f32 Make YTtoLBRY use Preact
Not particularly valuable here, but more consistent if we're to accept
popup as using preact
2020-10-13 05:39:52 -04:00
Kevin Raoofi
6e907c91e8 Use preact + sass for popup
* Styles were extracted out from popup.css and into common/style
* Preact allows for reusable components and easier dynamic components
  * Easy transition to react or others while not being overbearing
* Component specific style are locally imported and handled by parcel

ButtonRadio is particulary nice in that it uses pre-exisitng button
styling on radio buttons to make it easy to pick configurable options.
2020-10-13 05:39:52 -04:00
Kevin Raoofi
9f8e521fa6 URL parsing for app redirects
URL parsing logic is basically a straight port of how lbryio/lbry-sdk
parses lbry URLs. While there's a lot more going on, it should be
easier to follow what they're doing this way.

Also, added some light unit tests for the URL parsing using jest.
Which, of course, needed a babel config.

With this, tabOnUpdated was able to be rewritten more elegantly to
handle redirects as it delegates a lot of the work to utilities now.
2020-10-13 05:39:47 -04:00
Kevin Raoofi
da5cc12a7b ytService and rewrite of YTtoLBRY
YTtoLBRY:

* Use DOMParser for reading OPML
  * OPML parsing was quite brittle as it relied on string parsing
* Removed dead script inclusion in the HTML page
* Removed global state variables
* Use fetch to clean up the query logic
* Promisified file, API calls, and settings querying to simplify logic

Many of the utilities involving APIs were isolated to a common module.
Particularly, ytService contains all methods for extracting IDs,
querying for the lbry URLs, parsing OPML, and more.

This functionally is heavily used in YTtoLBRY and lightly used by
tabsOnUpdated.
2020-10-13 05:17:44 -04:00
Kevin Raoofi
48f88da6aa Common settings module
* settings module as single source of truth and provides utilities,
  defaults, constants, and typing
* runtimeOnStartup and storageOnChanged were merged into storageSetup
* storageSetup reworked to use settings for seamless additions
* tabOnUpdated and YTtoLBRY updated to use settings for URL prefixes
2020-10-13 05:17:44 -04:00
Kevin Raoofi
468c04ba62 Added typescript 2020-10-13 05:17:41 -04:00
kodxana
ebecd0cfff
Merge pull request #32 from LBRYFoundation/dependabot/npm_and_yarn/node-forge-0.10.0
Bump node-forge from 0.7.6 to 0.10.0
2020-10-08 12:45:40 +02:00
dependabot[bot]
fcd5a5a384
Bump node-forge from 0.7.6 to 0.10.0
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 0.7.6 to 0.10.0.
- [Release notes](https://github.com/digitalbazaar/forge/releases)
- [Changelog](https://github.com/digitalbazaar/forge/blob/master/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/0.7.6...0.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-08 10:44:38 +00:00
kodxana
83f4a06336
Update package.json 2020-10-08 12:43:54 +02:00
kodxana
b08a6a210c
Merge pull request #31 from Aenigma/feature/npm-project
npm style project setup
2020-10-08 12:39:29 +02:00
Kevin Raoofi
cb59fc52f3 Fix run scripts for windows
Apparently, windows doesn't like single quotes in some cases.
2020-10-06 15:32:26 -04:00
Kevin Raoofi
d56995403c Updated README with build instructions 2020-10-06 15:12:16 -04:00
Kevin Raoofi
4a8fcab524 Remove content.js script include
Since that scripts doesn't exist, it breaks the parcel build
2020-10-06 14:59:23 -04:00
Kevin Raoofi
0cc8f4effe npm style project setup
* All files were moved to the `src` directory, unchanged
* Parcel handles module resolution as well as transpilation via babel
* package.json, package-lock.json, and .gitignore were added
* Utilize crossplatform tools for build
2020-10-06 14:58:52 -04:00
kodxana
bf7f1126c3
Update manifest.json 2020-08-11 18:59:05 +02:00
kodxana
fa060b1484
Update manifest.json 2020-08-11 17:44:11 +02:00
kodxana
b2c1fd3273
Merge pull request #26 from clay53/lbrytv-app-close
Better handling for redirection to app from lbry.tv links & small cleanup
2020-08-11 17:43:46 +02:00
Clayton Hickey
5f5b2a882f
Ignore query parameters when detecting lbry.tv claim and channels for redirection 2020-08-11 11:42:32 -04:00
kodxana
e82cce7a00
Update README.md 2020-08-10 23:56:40 +02:00
Clayton Hickey
54afaa8549
Better handling for redirection to app from lbry.tv links & small cleanup 2020-08-10 12:11:31 -04:00
kodxana
713105c7b2
Merge pull request #25 from clay53/a-redirect
lbry.tv links now redirect to lbry app
2020-08-10 14:40:47 +02:00
Clayton Hickey
555898a551
lbry.tv links now redirect to lbry app 2020-07-24 16:25:09 -04:00
kodxana
7128d6f184
Merge pull request #23 from 53jk1/master
Improved graphics
2020-07-15 19:25:35 +02:00
kodxana
928849e875
Update YTtoLBRY.html 2020-07-15 19:25:07 +02:00
Sejki
0d373e6322 Improved graphics
Changed HTML and CSS
2020-07-15 19:14:58 +02:00
kodxana
0eded90bfa
Merge pull request #22 from kodxana/add-license-1
Create LICENSE
2020-07-14 21:10:37 +02:00
kodxana
b5c29c45da
Create LICENSE 2020-07-14 21:10:23 +02:00
Sejki
35ef6d981c Minor changes 2020-07-14 20:11:49 +02:00
kodxana
bb1a8d6b87
Changed line 85 2020-07-14 18:15:04 +02:00
kodxana
3799bd183c
Add files via upload 2020-07-14 18:14:08 +02:00
kodxana
62ac4e6a00
Add info if no channels found 2020-07-14 17:59:03 +02:00
kodxana
e3eeff4dac
invidio.us support 2020-07-14 15:21:22 +02:00
kodxana
cc2d4f41eb
Added new button to popup 2020-07-14 13:27:58 +02:00
kodxana
77d6476ea2
Added YTtoLBRY
Added tool to convert YouTube subscription to LBRY
2020-07-14 13:27:11 +02:00
kodxana
3b642891cd
Up version
- Up to version 1.5
- Added YTtoLBRY
2020-07-14 13:26:28 +02:00
kodxana
2f91e320a5
Merge pull request #18 from StuffNoOneCaresAbout/master
Remove cors-anywhere
2020-07-06 09:31:38 +02:00
FireMasterk
834ca65a7d Remove cors-anywhere 2020-07-06 02:20:58 +05:30
kodxana
763060a9c0
Update README.md 2020-05-29 17:37:11 +02:00
kodxana
ae6c995593
Update manifest.json 2020-03-16 19:59:17 +01:00
kodxana
473f8d2e51
Merge pull request #15 from kauffj/patch-1
add attribution
2020-03-16 19:58:51 +01:00
Jeremy Kauffman
888e52aedd
add attribution 2020-03-16 14:32:36 -04:00
kodxana
9ca41534e3
Version UP 2020-02-06 18:58:10 +01:00
kodxana
07e6f4d35e
Merge pull request #14 from adam-dorin/master
Popup improved
2020-02-06 18:25:28 +01:00
Adam
afee0d5704 value conversion error fix 2020-02-06 00:24:08 +02:00
Adam
1dfd23f737 popup ui 2020-02-06 00:17:24 +02:00