mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 17:47:26 +00:00
Use the README file for page directions
Add marked dependency for parcel so that it can do that for us
This commit is contained in:
parent
7e049858b5
commit
4d3a6d6e97
5 changed files with 33 additions and 1 deletions
19
package-lock.json
generated
19
package-lock.json
generated
|
@ -20,6 +20,7 @@
|
||||||
"cross-env": "^7.0.2",
|
"cross-env": "^7.0.2",
|
||||||
"jest": "^26.5.3",
|
"jest": "^26.5.3",
|
||||||
"lodash": "^4.17.20",
|
"lodash": "^4.17.20",
|
||||||
|
"marked": "^1.2.5",
|
||||||
"node-forge": ">=0.10.0",
|
"node-forge": ">=0.10.0",
|
||||||
"node-sass": "^4.14.1",
|
"node-sass": "^4.14.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
|
@ -12175,6 +12176,18 @@
|
||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/marked": {
|
||||||
|
"version": "1.2.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/marked/-/marked-1.2.5.tgz",
|
||||||
|
"integrity": "sha512-2AlqgYnVPOc9WDyWu7S5DJaEZsfk6dNh/neatQ3IHUW4QLutM/VPSH9lG7bif+XjFWc9K9XR3QvR+fXuECmfdA==",
|
||||||
|
"dev": true,
|
||||||
|
"bin": {
|
||||||
|
"marked": "bin/marked"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 8.16.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/marky": {
|
"node_modules/marky": {
|
||||||
"version": "1.2.1",
|
"version": "1.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/marky/-/marky-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/marky/-/marky-1.2.1.tgz",
|
||||||
|
@ -30807,6 +30820,12 @@
|
||||||
"object-visit": "^1.0.0"
|
"object-visit": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"marked": {
|
||||||
|
"version": "1.2.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/marked/-/marked-1.2.5.tgz",
|
||||||
|
"integrity": "sha512-2AlqgYnVPOc9WDyWu7S5DJaEZsfk6dNh/neatQ3IHUW4QLutM/VPSH9lG7bif+XjFWc9K9XR3QvR+fXuECmfdA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"marky": {
|
"marky": {
|
||||||
"version": "1.2.1",
|
"version": "1.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/marky/-/marky-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/marky/-/marky-1.2.1.tgz",
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
">1%",
|
">1%",
|
||||||
"not ie > 0"
|
"not ie > 0"
|
||||||
],
|
],
|
||||||
"dependencies": {},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-typescript": "^7.10.4",
|
"@babel/preset-typescript": "^7.10.4",
|
||||||
"@types/chrome": "0.0.124",
|
"@types/chrome": "0.0.124",
|
||||||
|
@ -30,6 +29,7 @@
|
||||||
"cross-env": "^7.0.2",
|
"cross-env": "^7.0.2",
|
||||||
"jest": "^26.5.3",
|
"jest": "^26.5.3",
|
||||||
"lodash": "^4.17.20",
|
"lodash": "^4.17.20",
|
||||||
|
"marked": "^1.2.5",
|
||||||
"node-forge": ">=0.10.0",
|
"node-forge": ">=0.10.0",
|
||||||
"node-sass": "^4.14.1",
|
"node-sass": "^4.14.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
|
|
4
src/global.d.ts
vendored
Normal file
4
src/global.d.ts
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
declare module '*.md' {
|
||||||
|
var _: string;
|
||||||
|
export default _;
|
||||||
|
}
|
6
src/tools/README.md
Normal file
6
src/tools/README.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# Getting your subscription data
|
||||||
|
|
||||||
|
1. Go to https://takeout.google.com/settings/takeout
|
||||||
|
2. Deselect everything except `YouTube and YouTube Music` and within that only select `subscriptions`
|
||||||
|
3. Go through the process and create the export
|
||||||
|
4. Once it's exported, open the archive and find `YouTube and YouTube Music/subscriptions/subscriptions.json` and upload it to the extension
|
|
@ -4,6 +4,8 @@ import { useState } from 'preact/hooks';
|
||||||
import { getSettingsAsync, redirectDomains } from '../common/settings';
|
import { getSettingsAsync, redirectDomains } from '../common/settings';
|
||||||
import { getFileContent, ytService } from '../common/yt';
|
import { getFileContent, ytService } from '../common/yt';
|
||||||
|
|
||||||
|
import readme from './README.md';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses the subscription file and queries the API for lbry channels
|
* Parses the subscription file and queries the API for lbry channels
|
||||||
*
|
*
|
||||||
|
@ -52,6 +54,7 @@ function YTtoLBRY() {
|
||||||
<div className='ConversionHelp'>
|
<div className='ConversionHelp'>
|
||||||
<iframe width='712px' height='400px' allowFullScreen
|
<iframe width='712px' height='400px' allowFullScreen
|
||||||
src='https://lbry.tv/$/embed/howtouseconverter/c9827448d6ac7a74ecdb972c5cdf9ddaf648a28e' />
|
src='https://lbry.tv/$/embed/howtouseconverter/c9827448d6ac7a74ecdb972c5cdf9ddaf648a28e' />
|
||||||
|
<section dangerouslySetInnerHTML={{ __html: readme }} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue