From eef30cd5b6848e01a2a8b6ba79a1db4acf14e381 Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 17 Jun 2022 17:25:17 +0200 Subject: [PATCH] feat: implement most of setting page logic --- .../storage/bucket/[bucket]/settings.svelte | 414 +++++++++++++++++- 1 file changed, 410 insertions(+), 4 deletions(-) diff --git a/src/routes/console/[project]/storage/bucket/[bucket]/settings.svelte b/src/routes/console/[project]/storage/bucket/[bucket]/settings.svelte index c270642c7..9c3355296 100644 --- a/src/routes/console/[project]/storage/bucket/[bucket]/settings.svelte +++ b/src/routes/console/[project]/storage/bucket/[bucket]/settings.svelte @@ -1,10 +1,416 @@ - -

Settings

+ {#if $bucket} + +
+

{$bucket.name}

+
+

Created: {toLocaleDate($bucket.dateCreated)}

+

Last Updated: {toLocaleDate($bucket.dateUpdated)}

+
+
+
    + +
+
+
- +
+ +
+
+ +
+
+
Update Name
+

Update your bucket name.

+
+
    + + {#if showError === 'name'} + {errorMessage} + {/if} +
+
+
+ +
+
+ +
+
+
Update Permissions
+

+ Assign read or write permissions at the Bucket Level or + File Level. If Bucket Level permissions are assigned, file + permissions will be ignored. +

+
+
+
    +
  • + +
  • +
  • + +
  • +
+ +

+ Tip: Add role:all for wildcards access. Check out our + documentation for more on Permissions +

+
+ {#if bucketPermissions === 'bucket'} +
    + + +
+ {/if} +
+
+
+ +
+
+ +
+
+

Update Security Settings

+

+ Enable or disable security services for the bucket including + Ecryption + and Antivirus scanning. +

+
+
+
    + + +
  • + This parameter allows you to configure whether or not the files inside + the bucket will be encrypted. We don't encrypt files bigger than 20MB. +
  • + + +
  • + This parameter allows you to configure whether or not the files inside + the bucket should be scanned by the Appwrite Antivirus scanner. +
  • +
+
+
+
+ +
+ +
+
+
+

Session Length

+

+ If you reduce the limit, users who are currently logged in will be + logged out of the application. +

+
+
+
    + + +
+
+
+ +
+
+ +
+
+
Update Allowed File Extensions
+

+ A maxiumum of 100 file extensions can be added. Leave blank to allow all + file types. +

+
+
+ +

+ Tip: Commonly added extensions include JPG, PNG, SVG, GIF, HTML, PDF, + MP4. +

+
+
    + +
+
+
+
+ +
+
+ {/if}