mirror of
https://github.com/recloudstream/website.git
synced 2024-08-15 03:18:45 +00:00
some changes
This commit is contained in:
parent
db4116c721
commit
04eae6fb71
7 changed files with 177 additions and 10 deletions
|
@ -1,6 +1,14 @@
|
|||
module.exports = {
|
||||
siteMetadata: require("./metadata"),
|
||||
pathPrefix: '__PATH_PREFIX__',
|
||||
plugins: [
|
||||
{
|
||||
resolve: `gatsby-plugin-runtime-path-prefix`,
|
||||
options: {
|
||||
prefix: `__PATH_PREFIX__`,
|
||||
pattern: /^(\/(?:ipfs|ipns)\/[^/]+)/
|
||||
},
|
||||
},
|
||||
{
|
||||
resolve: `gatsby-plugin-compile-es6-packages`,
|
||||
options: {
|
||||
|
@ -33,5 +41,6 @@ module.exports = {
|
|||
{ resolve: 'gatsby-plugin-nprogress', options: { color: '#6419E6' } },
|
||||
{ resolve: 'gatsby-plugin-manifest', options: require("./manifest") },
|
||||
{ resolve: 'gatsby-plugin-canonical-urls', options: { siteUrl: require("./metadata").siteUrl } },
|
||||
'gatsby-plugin-no-sourcemaps',
|
||||
]
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module.exports = {
|
||||
title: `Recloudstream`,
|
||||
siteUrl: `https://recloudstream.github.io`
|
||||
title: `Cloudstream`,
|
||||
siteUrl: `https://example.com`
|
||||
}
|
156
package-lock.json
generated
156
package-lock.json
generated
|
@ -18,10 +18,12 @@
|
|||
"gatsby-plugin-compile-es6-packages": "^2.1.1",
|
||||
"gatsby-plugin-html-attributes": "^1.0.5",
|
||||
"gatsby-plugin-manifest": "^4.21.0",
|
||||
"gatsby-plugin-no-sourcemaps": "^4.24.0",
|
||||
"gatsby-plugin-nprogress": "^4.21.0",
|
||||
"gatsby-plugin-postcss": "^5.21.0",
|
||||
"gatsby-plugin-preact": "^6.21.0",
|
||||
"gatsby-plugin-robots-txt": "^1.7.1",
|
||||
"gatsby-plugin-runtime-path-prefix": "^2.0.1",
|
||||
"gatsby-plugin-sitemap": "^5.21.0",
|
||||
"gatsby-remark-mermaid": "^2.1.0",
|
||||
"gatsby-remark-prismjs": "^6.21.0",
|
||||
|
@ -4745,6 +4747,18 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"node_modules/aggregate-error": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz",
|
||||
"integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",
|
||||
"dependencies": {
|
||||
"clean-stack": "^2.0.0",
|
||||
"indent-string": "^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/ajv": {
|
||||
"version": "6.12.6",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
|
||||
|
@ -6004,6 +6018,14 @@
|
|||
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz",
|
||||
"integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ=="
|
||||
},
|
||||
"node_modules/clean-stack": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",
|
||||
"integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/cli-boxes": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz",
|
||||
|
@ -10287,6 +10309,20 @@
|
|||
"gatsby": "^4.0.0-next"
|
||||
}
|
||||
},
|
||||
"node_modules/gatsby-plugin-no-sourcemaps": {
|
||||
"version": "4.24.0",
|
||||
"resolved": "https://registry.npmjs.org/gatsby-plugin-no-sourcemaps/-/gatsby-plugin-no-sourcemaps-4.24.0.tgz",
|
||||
"integrity": "sha512-dbh2x2NmpTykNqF8NoQ73pKWFn8Lm1EbyihjjYyLaXRFjs7guR29OU29Ar3KvvjCVfg9fsnScMlJqlEOy3l9sw==",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.15.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"gatsby": "^4.0.0-next"
|
||||
}
|
||||
},
|
||||
"node_modules/gatsby-plugin-nprogress": {
|
||||
"version": "4.21.0",
|
||||
"resolved": "https://registry.npmjs.org/gatsby-plugin-nprogress/-/gatsby-plugin-nprogress-4.21.0.tgz",
|
||||
|
@ -10414,6 +10450,20 @@
|
|||
"gatsby": "^4.0.0 || ^3.0.0 || ^2.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/gatsby-plugin-runtime-path-prefix": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/gatsby-plugin-runtime-path-prefix/-/gatsby-plugin-runtime-path-prefix-2.0.1.tgz",
|
||||
"integrity": "sha512-/T0zBZm7rBySCqxphktbUz+JQgG+uC6yxmlWC1kSZSi0ZijkHXJvnQ2y2eD57jxOcD836LwagK3Rdx7nt1vdqw==",
|
||||
"dependencies": {
|
||||
"globby": "11.1.0",
|
||||
"is-text-path": "2.0.0",
|
||||
"p-map": "4.0.0",
|
||||
"uglify-js": "3.15.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"gatsby": "^4.x"
|
||||
}
|
||||
},
|
||||
"node_modules/gatsby-plugin-sitemap": {
|
||||
"version": "5.21.0",
|
||||
"resolved": "https://registry.npmjs.org/gatsby-plugin-sitemap/-/gatsby-plugin-sitemap-5.21.0.tgz",
|
||||
|
@ -12985,6 +13035,17 @@
|
|||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/is-text-path": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-2.0.0.tgz",
|
||||
"integrity": "sha512-+oDTluR6WEjdXEJMnC2z6A4FRwFoYuvShVVEGsS7ewc0UTi2QtAKMDJuL4BDEVt+5T7MjFo12RP8ghOM75oKJw==",
|
||||
"dependencies": {
|
||||
"text-extensions": "^2.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/is-typedarray": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
|
||||
|
@ -16363,6 +16424,20 @@
|
|||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/p-map": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz",
|
||||
"integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==",
|
||||
"dependencies": {
|
||||
"aggregate-error": "^3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/p-try": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
|
||||
|
@ -20676,6 +20751,17 @@
|
|||
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
|
||||
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
|
||||
},
|
||||
"node_modules/text-extensions": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-2.4.0.tgz",
|
||||
"integrity": "sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==",
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/text-table": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
|
||||
|
@ -20962,6 +21048,17 @@
|
|||
"node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/uglify-js": {
|
||||
"version": "3.15.3",
|
||||
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.15.3.tgz",
|
||||
"integrity": "sha512-6iCVm2omGJbsu3JWac+p6kUiOpg3wFO2f8lIXjfEb8RrmLjzog1wTPMmwKB7swfzzqxj9YM+sGUM++u1qN4qJg==",
|
||||
"bin": {
|
||||
"uglifyjs": "bin/uglifyjs"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/unbox-primitive": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",
|
||||
|
@ -25412,6 +25509,15 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"aggregate-error": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz",
|
||||
"integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",
|
||||
"requires": {
|
||||
"clean-stack": "^2.0.0",
|
||||
"indent-string": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"ajv": {
|
||||
"version": "6.12.6",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
|
||||
|
@ -26343,6 +26449,11 @@
|
|||
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz",
|
||||
"integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ=="
|
||||
},
|
||||
"clean-stack": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",
|
||||
"integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A=="
|
||||
},
|
||||
"cli-boxes": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz",
|
||||
|
@ -29656,6 +29767,14 @@
|
|||
"sharp": "^0.30.7"
|
||||
}
|
||||
},
|
||||
"gatsby-plugin-no-sourcemaps": {
|
||||
"version": "4.24.0",
|
||||
"resolved": "https://registry.npmjs.org/gatsby-plugin-no-sourcemaps/-/gatsby-plugin-no-sourcemaps-4.24.0.tgz",
|
||||
"integrity": "sha512-dbh2x2NmpTykNqF8NoQ73pKWFn8Lm1EbyihjjYyLaXRFjs7guR29OU29Ar3KvvjCVfg9fsnScMlJqlEOy3l9sw==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.15.4"
|
||||
}
|
||||
},
|
||||
"gatsby-plugin-nprogress": {
|
||||
"version": "4.21.0",
|
||||
"resolved": "https://registry.npmjs.org/gatsby-plugin-nprogress/-/gatsby-plugin-nprogress-4.21.0.tgz",
|
||||
|
@ -29737,6 +29856,17 @@
|
|||
"generate-robotstxt": "^8.0.3"
|
||||
}
|
||||
},
|
||||
"gatsby-plugin-runtime-path-prefix": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/gatsby-plugin-runtime-path-prefix/-/gatsby-plugin-runtime-path-prefix-2.0.1.tgz",
|
||||
"integrity": "sha512-/T0zBZm7rBySCqxphktbUz+JQgG+uC6yxmlWC1kSZSi0ZijkHXJvnQ2y2eD57jxOcD836LwagK3Rdx7nt1vdqw==",
|
||||
"requires": {
|
||||
"globby": "11.1.0",
|
||||
"is-text-path": "2.0.0",
|
||||
"p-map": "4.0.0",
|
||||
"uglify-js": "3.15.3"
|
||||
}
|
||||
},
|
||||
"gatsby-plugin-sitemap": {
|
||||
"version": "5.21.0",
|
||||
"resolved": "https://registry.npmjs.org/gatsby-plugin-sitemap/-/gatsby-plugin-sitemap-5.21.0.tgz",
|
||||
|
@ -31472,6 +31602,14 @@
|
|||
"has-symbols": "^1.0.2"
|
||||
}
|
||||
},
|
||||
"is-text-path": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-2.0.0.tgz",
|
||||
"integrity": "sha512-+oDTluR6WEjdXEJMnC2z6A4FRwFoYuvShVVEGsS7ewc0UTi2QtAKMDJuL4BDEVt+5T7MjFo12RP8ghOM75oKJw==",
|
||||
"requires": {
|
||||
"text-extensions": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"is-typedarray": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
|
||||
|
@ -33792,6 +33930,14 @@
|
|||
"p-limit": "^2.2.0"
|
||||
}
|
||||
},
|
||||
"p-map": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz",
|
||||
"integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==",
|
||||
"requires": {
|
||||
"aggregate-error": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"p-try": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
|
||||
|
@ -36855,6 +37001,11 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"text-extensions": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-2.4.0.tgz",
|
||||
"integrity": "sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g=="
|
||||
},
|
||||
"text-table": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
|
||||
|
@ -37060,6 +37211,11 @@
|
|||
"resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.31.tgz",
|
||||
"integrity": "sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ=="
|
||||
},
|
||||
"uglify-js": {
|
||||
"version": "3.15.3",
|
||||
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.15.3.tgz",
|
||||
"integrity": "sha512-6iCVm2omGJbsu3JWac+p6kUiOpg3wFO2f8lIXjfEb8RrmLjzog1wTPMmwKB7swfzzqxj9YM+sGUM++u1qN4qJg=="
|
||||
},
|
||||
"unbox-primitive": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"scripts": {
|
||||
"develop": "gatsby develop",
|
||||
"start": "gatsby develop",
|
||||
"build": "gatsby build",
|
||||
"build": "gatsby build --prefix-paths",
|
||||
"serve": "gatsby serve",
|
||||
"clean": "gatsby clean"
|
||||
},
|
||||
|
@ -25,10 +25,12 @@
|
|||
"gatsby-plugin-compile-es6-packages": "^2.1.1",
|
||||
"gatsby-plugin-html-attributes": "^1.0.5",
|
||||
"gatsby-plugin-manifest": "^4.21.0",
|
||||
"gatsby-plugin-no-sourcemaps": "^4.24.0",
|
||||
"gatsby-plugin-nprogress": "^4.21.0",
|
||||
"gatsby-plugin-postcss": "^5.21.0",
|
||||
"gatsby-plugin-preact": "^6.21.0",
|
||||
"gatsby-plugin-robots-txt": "^1.7.1",
|
||||
"gatsby-plugin-runtime-path-prefix": "^2.0.1",
|
||||
"gatsby-plugin-sitemap": "^5.21.0",
|
||||
"gatsby-remark-mermaid": "^2.1.0",
|
||||
"gatsby-remark-prismjs": "^6.21.0",
|
||||
|
|
|
@ -33,7 +33,7 @@ const Drawer = () => (
|
|||
<li><Link to="/">Home</Link></li>
|
||||
<li><Link to="/repos">Repositories</Link></li>
|
||||
<div className="divider">Docs</div>
|
||||
<li><a href="/dokka/">Dokka</a></li>
|
||||
<li><a href="https://recloudstream.github.io/dokka/">Dokka</a></li>
|
||||
<li><Link to="/docs">Documentation</Link></li>
|
||||
<StaticQuery
|
||||
query={graphql`
|
||||
|
|
|
@ -8,10 +8,10 @@ order: 2
|
|||
|
||||
Providers in CloudStream consists primarily of 4 different parts:
|
||||
|
||||
- [Searching](/dokka/app/com.lagradost.cloudstream3/-main-a-p-i/index.html#498495168%2FFunctions%2F492899073)
|
||||
- [Loading the home page](/dokka/app/com.lagradost.cloudstream3/-main-a-p-i/index.html#1356482668%2FFunctions%2F492899073)
|
||||
- [Loading the show page](/dokka/app/com.lagradost.cloudstream3/-main-a-p-i/index.html#1671784382%2FFunctions%2F492899073)
|
||||
- [Loading the video links](/dokka/app/com.lagradost.cloudstream3/-main-a-p-i/index.html#-930139416%2FFunctions%2F492899073)
|
||||
- [Searching](https://recloudstream.github.io/dokka/app/com.lagradost.cloudstream3/-main-a-p-i/index.html#498495168%2FFunctions%2F492899073)
|
||||
- [Loading the home page](https://recloudstream.github.io/dokka/app/com.lagradost.cloudstream3/-main-a-p-i/index.html#1356482668%2FFunctions%2F492899073)
|
||||
- [Loading the show page](https://recloudstream.github.io/dokka/app/com.lagradost.cloudstream3/-main-a-p-i/index.html#1671784382%2FFunctions%2F492899073)
|
||||
- [Loading the video links](https://recloudstream.github.io/dokka/app/com.lagradost.cloudstream3/-main-a-p-i/index.html#-930139416%2FFunctions%2F492899073)
|
||||
|
||||
When making a provider it is important that you are confident you can scrape the video links first!
|
||||
Video links are often the most protected part of the website and if you cannot scrape them then the provider is useless.
|
||||
|
@ -22,7 +22,7 @@ If you are unfamiliar with the concept of scraping, you should probably start by
|
|||
|
||||
## 1. Searching
|
||||
|
||||
This one is probably the easiest, based on a query you should return a list of [SearchResponse](/dokka/app/com.lagradost.cloudstream3/-search-response/index.html)
|
||||
This one is probably the easiest, based on a query you should return a list of [SearchResponse](https://recloudstream.github.io/dokka/app/com.lagradost.cloudstream3/-search-response/index.html)
|
||||
|
||||
Scraping the search results is essentially just finding the search item elements on the site (red box) and looking in them to find name, url and poster url and put the data in a SearchResponse.
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ const DocsPage = () => {
|
|||
<h2 className="card-title">Dokka</h2>
|
||||
<p>Basically javadoc</p>
|
||||
<div className="card-actions justify-end">
|
||||
<a href="/dokka/" className="btn btn-primary">View</a>
|
||||
<a href="https://recloudstream.github.io/dokka/" className="btn btn-primary">View</a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
|
Loading…
Reference in a new issue