From 04eae6fb71ec67c27474046cc8920096229e3383 Mon Sep 17 00:00:00 2001 From: Cloudburst <18114966+C10udburst@users.noreply.github.com> Date: Thu, 13 Oct 2022 23:38:18 +0200 Subject: [PATCH] some changes --- gatsby-config.js | 9 + metadata.js | 4 +- package-lock.json | 156 ++++++++++++++++++ package.json | 4 +- src/components/drawer.jsx | 2 +- .../docs/devs/create-your-own-providers.md | 10 +- src/pages/docs/index.js | 2 +- 7 files changed, 177 insertions(+), 10 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 1bed665..c65800b 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -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', ] }; diff --git a/metadata.js b/metadata.js index f08345b..be0d263 100644 --- a/metadata.js +++ b/metadata.js @@ -1,4 +1,4 @@ module.exports = { - title: `Recloudstream`, - siteUrl: `https://recloudstream.github.io` + title: `Cloudstream`, + siteUrl: `https://example.com` } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 00b6d06..8d794e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 25fbbb6..1756047 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/drawer.jsx b/src/components/drawer.jsx index c001c58..e04e7aa 100644 --- a/src/components/drawer.jsx +++ b/src/components/drawer.jsx @@ -33,7 +33,7 @@ const Drawer = () => (
Basically javadoc