diff --git a/src/docs/src/examples.js b/src/docs/src/examples.js index 4a9776700..4c8aedbbb 100644 --- a/src/docs/src/examples.js +++ b/src/docs/src/examples.js @@ -945,6 +945,30 @@ const examples = [ slug: 'perms-request-permission', source: '/playground/examples/perms-request-permission.html', }, + { + title: 'Recipe: ask for a folder', + description: 'Ask the user for write access to Documents and save a file with Puter.js permissions API. Run and experiment with this example in the playground.', + slug: 'perms-ask-for-access-folder', + source: '/playground/examples/perms-ask-for-access-folder.html', + }, + { + title: 'Recipe: ask for the email address', + description: "Ask the user for their email address with Puter.js permissions API. Run and modify this example instantly in your browser.", + slug: 'perms-ask-for-access-email', + source: '/playground/examples/perms-ask-for-access-email.html', + }, + { + title: 'Recipe: ask about apps or subdomains', + description: 'Ask for read or write access to the user apps and subdomains with Puter.js permissions API. Run and experiment with this example in the playground.', + slug: 'perms-ask-for-access-apps', + source: '/playground/examples/perms-ask-for-access-apps.html', + }, + { + title: 'Recipe: check before you prompt', + description: 'Check whether access is already held before showing an opt-in with Puter.js permissions API. Run and modify this example directly in your browser.', + slug: 'perms-ask-for-access-check', + source: '/playground/examples/perms-ask-for-access-check.html', + }, ], }, { diff --git a/src/docs/src/playground/examples/perms-ask-for-access-apps.html b/src/docs/src/playground/examples/perms-ask-for-access-apps.html new file mode 100644 index 000000000..6861040c2 --- /dev/null +++ b/src/docs/src/playground/examples/perms-ask-for-access-apps.html @@ -0,0 +1,20 @@ + + + + + + + + diff --git a/src/docs/src/playground/examples/perms-ask-for-access-check.html b/src/docs/src/playground/examples/perms-ask-for-access-check.html new file mode 100644 index 000000000..7000ac621 --- /dev/null +++ b/src/docs/src/playground/examples/perms-ask-for-access-check.html @@ -0,0 +1,27 @@ + + + + + + + diff --git a/src/docs/src/playground/examples/perms-ask-for-access-email.html b/src/docs/src/playground/examples/perms-ask-for-access-email.html new file mode 100644 index 000000000..feafd3298 --- /dev/null +++ b/src/docs/src/playground/examples/perms-ask-for-access-email.html @@ -0,0 +1,14 @@ + + + + + + + diff --git a/src/docs/src/playground/examples/perms-ask-for-access-folder.html b/src/docs/src/playground/examples/perms-ask-for-access-folder.html new file mode 100644 index 000000000..6a01ee681 --- /dev/null +++ b/src/docs/src/playground/examples/perms-ask-for-access-folder.html @@ -0,0 +1,23 @@ + + + + + + +