mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
chore: remove some implicit any
This commit is contained in:
1 parent
a141506d9c
commit
5be36b26f7
12 files changed
+21
-50
No files matched your search
@@ -22,7 +22,7 @@
|
||||
let formComponent: Form;
|
||||
let isSubmitting = writable(false);
|
||||
|
||||
let scopes = [];
|
||||
let scopes: string[] = [];
|
||||
let name = '',
|
||||
expire = '';
|
||||
|
||||
|
||||
+2
-2
@@ -20,8 +20,8 @@
|
||||
export let key: Models.DevKey | Models.Key;
|
||||
export let keyType: 'api' | 'dev' = 'api';
|
||||
|
||||
let name = null;
|
||||
let scopes = null;
|
||||
let name: string = null;
|
||||
let scopes: string[] = null;
|
||||
|
||||
let showDelete = false;
|
||||
const isApiKey = keyType === 'api';
|
||||
|
||||
@@ -41,13 +41,11 @@
|
||||
total={data.rules.total} />
|
||||
{:else if data?.search}
|
||||
<EmptySearch hidePages bind:search={data.search} target="domains" hidePagination>
|
||||
<svelte:fragment slot="actions">
|
||||
<Button
|
||||
secondary
|
||||
on:click={() => {
|
||||
data.search = '';
|
||||
}}>Clear search</Button>
|
||||
</svelte:fragment>
|
||||
<Button
|
||||
secondary
|
||||
on:click={() => {
|
||||
data.search = '';
|
||||
}}>Clear search</Button>
|
||||
</EmptySearch>
|
||||
{:else}
|
||||
<Card.Base padding="none">
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
let showExitModal = false;
|
||||
|
||||
let name = '',
|
||||
events = [],
|
||||
events: string[] = [],
|
||||
url = '',
|
||||
security = true,
|
||||
httpUser = '',
|
||||
|
||||
@@ -135,9 +135,6 @@
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="Environment variables" badge="Optional" hideDivider>
|
||||
<svelte:fragment slot="title">
|
||||
Environment variables <Badge content="Optional" variant="secondary" />
|
||||
</svelte:fragment>
|
||||
<Layout.Stack gap="xl">
|
||||
Set up environment variables to securely manage keys and settings for your
|
||||
project.
|
||||
|
||||
+3
-3
@@ -24,7 +24,7 @@
|
||||
import Details from '../../details.svelte';
|
||||
import Configuration from './configuration.svelte';
|
||||
import Aside from '../../aside.svelte';
|
||||
import { Adapter, BuildRuntime, Framework, ID } from '@appwrite.io/console';
|
||||
import { Adapter, BuildRuntime, Framework, ID, type Models } from '@appwrite.io/console';
|
||||
import {
|
||||
ConnectBehaviour,
|
||||
NewRepository,
|
||||
@@ -56,12 +56,12 @@
|
||||
let rootDir = './';
|
||||
let connectBehaviour: 'now' | 'later' = 'now';
|
||||
let repositoryBehaviour: 'new' | 'existing' = 'new';
|
||||
let repositoryName = undefined;
|
||||
let repositoryName: string = undefined;
|
||||
let repositoryPrivate = true;
|
||||
let selectedInstallationId = '';
|
||||
let selectedRepository = '';
|
||||
let showSiteConfig = false;
|
||||
let variables = [];
|
||||
let variables: Partial<Models.TemplateVariable>[] = [];
|
||||
let silentMode = false;
|
||||
|
||||
onMount(async () => {
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
import { IconList, IconPlus, IconSearch } from '@appwrite.io/pink-icons-svelte';
|
||||
|
||||
onMount(() => {
|
||||
let previousStatus = null;
|
||||
let previousStatus: string = null;
|
||||
return sdk.forConsole.client.subscribe<Models.Deployment>('console', (message) => {
|
||||
if (previousStatus === message.payload.status) {
|
||||
return;
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
];
|
||||
|
||||
let range = SiteUsageRange.ThirtyDays;
|
||||
let metrics = [
|
||||
let metrics: { id: string; value: string | null; description: string }[] = [
|
||||
{
|
||||
id: 'buildsTotal',
|
||||
value: null,
|
||||
|
||||
+5
-7
@@ -39,13 +39,11 @@
|
||||
total={data.domains.total} />
|
||||
{:else if data?.search}
|
||||
<EmptySearch hidePages bind:search={data.search} target="domains" hidePagination>
|
||||
<svelte:fragment slot="actions">
|
||||
<Button
|
||||
secondary
|
||||
on:click={() => {
|
||||
data.search = '';
|
||||
}}>Clear search</Button>
|
||||
</svelte:fragment>
|
||||
<Button
|
||||
secondary
|
||||
on:click={() => {
|
||||
data.search = '';
|
||||
}}>Clear search</Button>
|
||||
</EmptySearch>
|
||||
{:else}
|
||||
<Card.Base padding="none">
|
||||
|
||||
+2
-2
@@ -180,7 +180,7 @@
|
||||
|
||||
const groups = token.$permissions.reduce((set, perm) => {
|
||||
const match = perm.match(/^(\w+)\(/);
|
||||
const key = match?.[1];
|
||||
const key = match?.[1] as keyof typeof map;
|
||||
if (key && map[key]) set.add(map[key]);
|
||||
return set;
|
||||
}, new Set<string>());
|
||||
@@ -308,7 +308,7 @@
|
||||
|
||||
<Table.Cell column="permissions" {root}>
|
||||
{#if token.$permissions.length}
|
||||
<Typography.Text truncate slot="tooltip">
|
||||
<Typography.Text truncate>
|
||||
{getPermissionGroups(token)}
|
||||
</Typography.Text>
|
||||
{:else}
|
||||
|
||||
@@ -1,20 +1,9 @@
|
||||
<script>
|
||||
import { Shell } from '$lib/layout';
|
||||
import { app } from '$lib/stores/app';
|
||||
import AppwriteLogoDark from '$lib/images/appwrite-logo-dark.svg';
|
||||
import AppwriteLogoLight from '$lib/images/appwrite-logo-light.svg';
|
||||
import Footer from '$lib/layout/footer.svelte';
|
||||
import { base } from '$app/paths';
|
||||
</script>
|
||||
|
||||
<Shell>
|
||||
<a class="logo" slot="header" href={base}>
|
||||
<img
|
||||
src={$app.themeInUse == 'dark' ? AppwriteLogoDark : AppwriteLogoLight}
|
||||
width="120"
|
||||
height="22"
|
||||
alt="Appwrite Logo" />
|
||||
</a>
|
||||
<slot />
|
||||
<Footer slot="footer" />
|
||||
</Shell>
|
||||
@@ -1,20 +1,9 @@
|
||||
<script>
|
||||
import { Shell } from '$lib/layout';
|
||||
import { app } from '$lib/stores/app';
|
||||
import AppwriteLogoDark from '$lib/images/appwrite-logo-dark.svg';
|
||||
import AppwriteLogoLight from '$lib/images/appwrite-logo-light.svg';
|
||||
import Footer from '$lib/layout/footer.svelte';
|
||||
import { base } from '$app/paths';
|
||||
</script>
|
||||
|
||||
<Shell>
|
||||
<a class="logo" slot="header" href={base}>
|
||||
<img
|
||||
src={$app.themeInUse == 'dark' ? AppwriteLogoDark : AppwriteLogoLight}
|
||||
width="120"
|
||||
height="22"
|
||||
alt="Appwrite Logo" />
|
||||
</a>
|
||||
<slot />
|
||||
<Footer slot="footer" />
|
||||
</Shell>
|
||||
Reference in new issue
Block a user