From 6aa302804f66bbc4ad76e229f20380e9ef7c4b90 Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 22 Jul 2022 11:19:20 +0200 Subject: [PATCH 1/2] feat: add file preview --- .../bucket/[bucket]/file/[file]/index.svelte | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/routes/console/[project]/storage/bucket/[bucket]/file/[file]/index.svelte b/src/routes/console/[project]/storage/bucket/[bucket]/file/[file]/index.svelte index cf1755ff7..449cbe3f3 100644 --- a/src/routes/console/[project]/storage/bucket/[bucket]/file/[file]/index.svelte +++ b/src/routes/console/[project]/storage/bucket/[bucket]/file/[file]/index.svelte @@ -73,7 +73,25 @@ {#if $file}
- {$file.name} + +
+ {$file.name} +
+
+
+
+
+
+

{$file.name}

From 7129e695c8e0865402dc9bb65d03550405168b95 Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 22 Jul 2022 13:41:12 +0200 Subject: [PATCH 2/2] chore: remove commented out old code --- .../storage/bucket/[bucket]/file/[file]/index.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/routes/console/[project]/storage/bucket/[bucket]/file/[file]/index.svelte b/src/routes/console/[project]/storage/bucket/[bucket]/file/[file]/index.svelte index 0216adbf5..992530e33 100644 --- a/src/routes/console/[project]/storage/bucket/[bucket]/file/[file]/index.svelte +++ b/src/routes/console/[project]/storage/bucket/[bucket]/file/[file]/index.svelte @@ -74,7 +74,7 @@
-

{$file.name}

@@ -128,7 +127,7 @@

If you want to assign permissions specific to this file, you will need to - update your Bucket Settings to enable File Level + update your Bucket Settings to enable File Level permissions.