Commit graph

13 commits

Author SHA1 Message Date
Shiba
c895d53253 🍙 new stuff and some changes
- channel buttons and redirect
- in button mode if there is no target try to find lbry url in the description
- used a loop in content script instead of events and stuff to make it less confusing
2022-07-02 15:15:36 +00:00
Shiba
6aa507c53d 🍙 custom dialogs added 2022-05-01 21:20:59 +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
Kevin Raoofi
c0cd29abd2 Use yarn v1 instead of npm 2021-01-21 15:38:31 -05:00
dependabot[bot]
f1a3a38116
Bump ini from 1.3.5 to 1.3.8
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-13 06:21:02 +00:00
Kevin Raoofi
4d3a6d6e97 Use the README file for page directions
Add marked dependency for parcel so that it can do that for us
2020-11-25 18:34:59 -05:00
Kevin Raoofi
30c93c2c4f Update package-lock.json
This bumps up the lockfile version and recreates it.

I was getting a lot of grief trying to upgrade it with a new version of
npm so it's good to do a hard upgrade ASAP.
2020-11-25 18:25:25 -05: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
468c04ba62 Added typescript 2020-10-13 05:17:41 -04: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
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