Commit graph

40 commits

Author SHA1 Message Date
Shiba
94cda17b99 🍙 Renamed LBRY Inc. to Odysee 2022-01-10 15:29:50 +00:00
Shiba
2c75082af9 🍣 Formatted Files, Organized Imports 2022-01-10 12:36:29 +00:00
Shiba
5396936586 🍣 typo fixes 2022-01-10 00:09:15 +00:00
Shiba
30f077ba38 🍙 Refactor and bugfix 2022-01-09 23:01:04 +00:00
Shiba
610b47d1e4 🍘 Refactor bugfix 2022-01-09 22:03:31 +00:00
Shiba
2b91436900 🥡 Refactor 2022-01-09 21:11:58 +00:00
Shiba
4f8e807a65 🍱 Refactor 2022-01-09 21:04:03 +00:00
Shiba
cb4b4f4b2e 🥞 Refactor 2022-01-09 19:10:27 +00:00
Shiba
75cb9cf01d 🍘 Refactor 2022-01-09 19:01:01 +00:00
Shiba
7727d04157 🥡 Refactor 2022-01-09 18:59:41 +00:00
Shiba
719ff06caf 🍣 Refactor 2022-01-09 18:54:28 +00:00
Shiba
205a8fd151 🍙 Refactor removed pick from getExtensionSettings 2022-01-09 18:42:35 +00:00
Shiba
475c38ba0c 🍙 URL resolver caching improvements
- Updated types for url because it can also be null
- Cached 404 as null
2022-01-09 12:46:18 +00:00
Shiba
ff83dfc62d 🍱 Removed logs 2022-01-09 12:20:24 +00:00
Shiba
685f9615ca 🍱 URL resolver api caching handled by the client
- Told browser to not to cache the api request
- Removed manual memory cache
- Implimented caching using indexedDB
- Cache time is 1 day
2022-01-09 11:54:53 +00:00
Shiba
73508ff532 🍣 added back memory cache temporarily
- added back manual memory cache temporarily
- and this time its working as expected
- also disabled use of browser cache for now
- thought we are still saying browser to cache it for the future version
2022-01-08 23:32:49 +00:00
Shiba
75274005ee 🍙 url resolver changes
- made it send more than one request at once
2022-01-07 20:09:05 +00:00
Shiba
9b68487ecc 🍣 madiator url resolver added
- multiple resolver feature added
- added progress bar to sub converter
- csv sub converter bug fix
2022-01-07 19:00:19 +00:00
Shiba
6b4a377058 Updated variable name
- source/target platfrom setthing variable and the type had the same name
2021-12-27 22:36:17 +00:00
Shiba
58e6c119f4 Updated youtube button mount point query 2021-12-19 11:12:44 +00:00
Shiba
ba5beca60a Changed button mount point for yewtube 2021-12-19 01:58:45 +03:00
Shiba
dd16ce1041 Variable name typo fixed 2021-12-19 01:58:14 +03:00
Shiba
63d91a2ee1 Updated styles to use em instead of px 2021-12-19 01:57:29 +03:00
Shiba
4220ea11c7 Platform name 'App changed to 'LBRY App' 2021-12-19 01:57:02 +03:00
Shiba
47d27b0671 Added yewtu.be support. And name changes
- Added settings for source platform
- Renamed platform as target platform
2021-12-19 01:56:40 +03:00
Shiba
ac911e6816 Madiator icon added 2021-12-11 22:39:04 +00:00
Shiba
dfdfe6778a Added CSV support for subscribtion converter 2021-12-11 21:38:47 +00:00
Shiba
5c61db3ea0 types added, names changed, rewrote most of ytContent.ts
- Added more types, so when there is an error it's more visible.
- Default setting was using `lbry.tv` which doesn't exists anymore, so i made it odysee.
- Changed `redirect` value name in the `LbrySettings` to `platform` which makes more sense to this version.
- Changed `url` in UpdateContext to `pathname`. Using `url` for the full URL.
- Rewrote most of the `ytContent.tsx` so the timestamp feature doesnt look like a patch.
2021-12-11 19:28:24 +00:00
kodxana
9532d45b15
Update settings.ts 2021-08-28 21:58:10 +02:00
kodxana
11334c7689
Update yt.ts 2021-08-28 21:56:57 +02:00
Kevin Raoofi
bd5adf6652 Support YouTube takeout JSON 2020-11-11 14:21:34 -05:00
Kevin Raoofi
2e58a04333 Update button on redirect change 2020-10-28 05:21:49 -04:00
Kevin Raoofi
40036013c2 Set font-family to sans serif
FireFox defaults to serif for non-button elements. This makes the look
of the buttons consistent on both firefox and chrome based browsers.
2020-10-28 05:21:49 -04:00
Kevin Raoofi
f198929922 Disable mininification + import changes
Import changes should reduce the size of the bundle a little.
Particularly, not getting the entirety of lodash.
2020-10-28 05:21:49 -04: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
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