Skip to content

Commit

Permalink
Merge branch 'main' into docs/fix-home-redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ42 authored Jan 10, 2025
2 parents 38e03cf + 28f0868 commit 7d7a534
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 17 deletions.
20 changes: 9 additions & 11 deletions docs/learn/other-guides/utilize-ipfs-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,15 @@ const file = createReadStream('./path-to-your-file');
const { result_id, ipfs_url } = await provider.uploadToCascade(file);
console.log(result_id, ipfs_url);


// upload folder
const results = await provider.uploadFolderToCascade("./examples");
const results = await provider.uploadFolderToCascade('./examples');

if (results.length > 0) {
for (const result of results) {
if (result) {
console.log("File Name:", result.file_name);
console.log("IPFS Url:", result.ipfs_url);
console.log("Result Id:", result.result_id);
console.log('File Name:', result.file_name);
console.log('IPFS Url:', result.ipfs_url);
console.log('Result Id:', result.result_id);
}
}
}
Expand All @@ -153,7 +152,6 @@ if (results.length > 0) {
```js
import { CascadeUploader } from '@lukso/data-provider-cascade';


const provider = new CascadeUploader(import.meta.env.CASCADE_API_KEY);
```
Expand Down Expand Up @@ -241,18 +239,18 @@ const { result_id, ipfs_url } = await provider.uploadToSense(file);
console.log(result_id, ipfs_url);

// upload folder
const results = await provider.uploadFolderToSense("./examples");
const results = await provider.uploadFolderToSense('./examples');

if (results.length > 0) {
for (const result of results) {
if (result) {
console.log("File Name:", result.file_name);
console.log("IPFS Url:", result.ipfs_url);
console.log("Result Id:", result.result_id);
console.log('File Name:', result.file_name);
console.log('IPFS Url:', result.ipfs_url);
console.log('Result Id:', result.result_id);
}
}
}
````
```
**Using Sense**
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
"@mui/material": "^6.0.2",
"@svgr/webpack": "^8.1.0",
"clsx": "^2.1.1",
"docusaurus-plugin-sass": "^0.2.5",
"docusaurus-plugin-sass": "^0.2.6",
"file-loader": "^6.2.0",
"plugin-image-zoom": "^1.2.0",
"prettier": "^3.3.2",
"prism-react-renderer": "^2.3.1",
"prism-react-renderer": "^2.4.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-material-ui-carousel": "^3.4.2",
Expand Down
20 changes: 16 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8931,7 +8931,7 @@ __metadata:
languageName: node
linkType: hard

"docusaurus-plugin-sass@npm:^0.2.5":
"docusaurus-plugin-sass@npm:^0.2.6":
version: 0.2.6
resolution: "docusaurus-plugin-sass@npm:0.2.6"
dependencies:
Expand Down Expand Up @@ -11741,11 +11741,11 @@ __metadata:
"@mui/material": ^6.0.2
"@svgr/webpack": ^8.1.0
clsx: ^2.1.1
docusaurus-plugin-sass: ^0.2.5
docusaurus-plugin-sass: ^0.2.6
file-loader: ^6.2.0
plugin-image-zoom: ^1.2.0
prettier: ^3.3.2
prism-react-renderer: ^2.3.1
prism-react-renderer: ^2.4.1
react: ^19.0.0
react-dom: ^19.0.0
react-material-ui-carousel: ^3.4.2
Expand Down Expand Up @@ -14591,7 +14591,7 @@ __metadata:
languageName: node
linkType: hard

"prism-react-renderer@npm:^2.3.0, prism-react-renderer@npm:^2.3.1":
"prism-react-renderer@npm:^2.3.0":
version: 2.4.0
resolution: "prism-react-renderer@npm:2.4.0"
dependencies:
Expand All @@ -14603,6 +14603,18 @@ __metadata:
languageName: node
linkType: hard

"prism-react-renderer@npm:^2.4.1":
version: 2.4.1
resolution: "prism-react-renderer@npm:2.4.1"
dependencies:
"@types/prismjs": ^1.26.0
clsx: ^2.0.0
peerDependencies:
react: ">=16.0.0"
checksum: ddd5490a1335629addde9535db7872f0aee8dbce048818dd6e4c3972c779780af13d669c12d3f2fbb54c5b22d1578e50945099ef1a24dd445f33774e87d85e6e
languageName: node
linkType: hard

"prismjs@npm:^1.29.0":
version: 1.29.0
resolution: "prismjs@npm:1.29.0"
Expand Down

0 comments on commit 7d7a534

Please sign in to comment.