-
Filename: {$file.name}
+
+ Filename:
+ {$file.name}
+
MIME type: {$file.mimeType}
Size: {calculateSize($file.sizeOriginal)}
Created: {toLocaleDate($file.$createdAt)}
@@ -231,51 +232,55 @@
-
- File tokens
- Use tokens to provide public access to the file.
-
- {#if $tokens.total}
-
-
-
+ {#if SHOW_INIT_FEATURES}
+
+ File tokens
+ Use tokens to provide public access to the file.
+
+ {#if $tokens.total}
+
+
+
-
-
- {#each $columns as { id, title } (id)}
- {title}
- {/each}
-
+
+
+ {#each $columns as { id, title } (id)}
+ {title}
+ {/each}
+
- {#each $tokens.tokens as token}
-
- {toLocaleDate(token.$createdAt)}
+ {#each $tokens.tokens as token}
+
+ {toLocaleDate(token.$createdAt)}
-
-
- {@const expiration = getExpiryDetails(token)}
- {token.expire ? cleanFormattedDate(token.expire) : 'Never'}
+
+
+ {@const expiration = getExpiryDetails(token)}
+ {token.expire
+ ? cleanFormattedDate(token.expire)
+ : 'Never'}
- {#if expiration.status}
-
- {/if}
-
-
+ {#if expiration.status}
+
+ {/if}
+
+
- {token.accessedAt
- ? cleanFormattedDate(token.accessedAt, true)
- : 'Never'}
+ {token.accessedAt
+ ? cleanFormattedDate(token.accessedAt, true)
+ : 'Never'}
@@ -284,53 +289,54 @@
-
-
-
+
+
+
+ {
+ toggle(e);
+ showCopyUrlModal = true;
+ selectedFileToken = token;
+ }}
+ leadingIcon={IconDuplicate}>
+ Copy URL
+
+
{
toggle(e);
- showCopyUrlModal = true;
+ showManageToken = true;
selectedFileToken = token;
- }}
- leadingIcon={IconDuplicate}>
- Copy URL
+ }}>
+ Edit expiry
+
+ {
+ toggle(e);
+ tokenDeleteMode = true;
+ showManageToken = true;
+ selectedFileToken = token;
+ }}>
+ Delete
- {
- toggle(e);
- showManageToken = true;
- selectedFileToken = token;
- }}>
- Edit expiry
-
- {
- toggle(e);
- tokenDeleteMode = true;
- showManageToken = true;
- selectedFileToken = token;
- }}>
- Delete
-
-
-
-
-
-
-
- {/each}
-
- {:else}
- (showManageToken = true)}>Create new file token
- {/if}
-
-
-
+
+
+
+
+
+ {/each}
+
+ {:else}
+ (showManageToken = true)}
+ >Create new file token
+ {/if}
+
+
+ {/if}
Permissions
Assign read or write permissions at the bucket level or file level. If bucket level permissions
diff --git a/src/routes/(console)/project-[region]-[project]/storage/bucket-[bucket]/file-[file]/fileTokensCopyUrl.svelte b/src/routes/(console)/project-[region]-[project]/storage/bucket-[bucket]/file-[file]/fileTokensCopyUrl.svelte
index f592d9de1..9a179bb8d 100644
--- a/src/routes/(console)/project-[region]-[project]/storage/bucket-[bucket]/file-[file]/fileTokensCopyUrl.svelte
+++ b/src/routes/(console)/project-[region]-[project]/storage/bucket-[bucket]/file-[file]/fileTokensCopyUrl.svelte
@@ -2,7 +2,7 @@
import { page } from '$app/state';
import { sdk } from '$lib/stores/sdk';
import type { Models } from '@appwrite.io/console';
- import { Modal, Card, CopyInput } from '$lib/components';
+ import { Modal, CopyInput } from '$lib/components';
import { Button } from '$lib/elements/forms';
import { Alert, Layout, Tabs, Typography } from '@appwrite.io/pink-svelte';
diff --git a/src/routes/(console)/project-[region]-[project]/storage/table.svelte b/src/routes/(console)/project-[region]-[project]/storage/table.svelte
index c1b949c66..accff4d00 100644
--- a/src/routes/(console)/project-[region]-[project]/storage/table.svelte
+++ b/src/routes/(console)/project-[region]-[project]/storage/table.svelte
@@ -8,7 +8,6 @@
import { Table } from '@appwrite.io/pink-svelte';
export let data: PageData;
- const projectId = page.params.project;
diff --git a/src/routes/(public)/auth/preview/access/+page.svelte b/src/routes/(public)/auth/preview/access/+page.svelte
index f69f3783f..be0b3d4cc 100644
--- a/src/routes/(public)/auth/preview/access/+page.svelte
+++ b/src/routes/(public)/auth/preview/access/+page.svelte
@@ -103,9 +103,9 @@
}
}
- async function requestAccess() {
- //TODO: Implement request access
- }
+ // async function requestAccess() {
+ // //TODO: Implement request access
+ // }
$: console.log(data);
diff --git a/src/routes/(public)/card/+layout.svelte b/src/routes/(public)/card/+layout.svelte
index eaebf310b..b795ff5b0 100644
--- a/src/routes/(public)/card/+layout.svelte
+++ b/src/routes/(public)/card/+layout.svelte
@@ -1,20 +1,9 @@
-
-
-
diff --git a/src/routes/(public)/hackathon/+layout.svelte b/src/routes/(public)/hackathon/+layout.svelte
index eaebf310b..b795ff5b0 100644
--- a/src/routes/(public)/hackathon/+layout.svelte
+++ b/src/routes/(public)/hackathon/+layout.svelte
@@ -1,20 +1,9 @@
-
-
-
diff --git a/src/routes/(public)/template-[template]/+layout.svelte b/src/routes/(public)/template-[template]/+layout.svelte
index 9ca526e9c..24b88068c 100644
--- a/src/routes/(public)/template-[template]/+layout.svelte
+++ b/src/routes/(public)/template-[template]/+layout.svelte
@@ -1,6 +1,5 @@
diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts
index a5aa3f371..78d86d2e4 100644
--- a/src/routes/+layout.ts
+++ b/src/routes/+layout.ts
@@ -28,10 +28,6 @@ export const load: LayoutLoad = async ({ depends, url, route }) => {
}
if (account) {
- const organizations = !isCloud
- ? await sdk.forConsole.teams.list()
- : await sdk.forConsole.billing.listOrganization();
-
return {
account: account,
organizations: !isCloud
diff --git a/tsconfig.json b/tsconfig.json
index 8f29ac22a..900ee4e39 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -9,6 +9,9 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": false,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "noFallthroughCasesInSwitch": true,
"moduleResolution": "bundler"
}
}