diff --git a/src/docs/src/examples.js b/src/docs/src/examples.js index 4bd20a590..761dd6636 100644 --- a/src/docs/src/examples.js +++ b/src/docs/src/examples.js @@ -450,6 +450,36 @@ const examples = [ slug: 'fs-getShareLink', source: '/playground/examples/fs-getShareLink.html', }, + { + title: 'Recipe: share a file with someone', + description: 'Share a file with another Puter user by username or email with Puter.js filesystem API. Run and experiment with this example in the playground.', + slug: 'fs-share-a-file-share', + source: '/playground/examples/fs-share-a-file-share.html', + }, + { + title: 'Recipe: choose how much access to give', + description: 'Grant read, write or manage access when sharing a file with Puter.js filesystem API. Run and modify this example instantly in your browser.', + slug: 'fs-share-a-file-mode', + source: '/playground/examples/fs-share-a-file-mode.html', + }, + { + title: 'Recipe: see what has been shared with you', + description: 'List the files other Puter users have shared with you with Puter.js filesystem API. Run and experiment with this example in the playground.', + slug: 'fs-share-a-file-list', + source: '/playground/examples/fs-share-a-file-list.html', + }, + { + title: 'Recipe: see who you shared something with', + description: 'Read the shares on one of your own files with Puter.js filesystem API. Run and modify this example directly in your browser.', + slug: 'fs-share-a-file-who', + source: '/playground/examples/fs-share-a-file-who.html', + }, + { + title: 'Recipe: take access back', + description: 'Withdraw access to a file you shared with Puter.js filesystem API. Run and experiment with this example in the playground.', + slug: 'fs-share-a-file-unshare', + source: '/playground/examples/fs-share-a-file-unshare.html', + }, ], }, { diff --git a/src/docs/src/playground/examples/fs-share-a-file-list.html b/src/docs/src/playground/examples/fs-share-a-file-list.html new file mode 100644 index 000000000..fcfebb4d8 --- /dev/null +++ b/src/docs/src/playground/examples/fs-share-a-file-list.html @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/docs/src/playground/examples/fs-share-a-file-mode.html b/src/docs/src/playground/examples/fs-share-a-file-mode.html new file mode 100644 index 000000000..5bd29236e --- /dev/null +++ b/src/docs/src/playground/examples/fs-share-a-file-mode.html @@ -0,0 +1,30 @@ + + + + + + + + + diff --git a/src/docs/src/playground/examples/fs-share-a-file-share.html b/src/docs/src/playground/examples/fs-share-a-file-share.html new file mode 100644 index 000000000..f93579db1 --- /dev/null +++ b/src/docs/src/playground/examples/fs-share-a-file-share.html @@ -0,0 +1,24 @@ + + + + + + + + diff --git a/src/docs/src/playground/examples/fs-share-a-file-unshare.html b/src/docs/src/playground/examples/fs-share-a-file-unshare.html new file mode 100644 index 000000000..231cd90eb --- /dev/null +++ b/src/docs/src/playground/examples/fs-share-a-file-unshare.html @@ -0,0 +1,25 @@ + + + + + + + + + diff --git a/src/docs/src/playground/examples/fs-share-a-file-who.html b/src/docs/src/playground/examples/fs-share-a-file-who.html new file mode 100644 index 000000000..603ab298b --- /dev/null +++ b/src/docs/src/playground/examples/fs-share-a-file-who.html @@ -0,0 +1,28 @@ + + + + + + + +