Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import {
} from './components';

export const columns = writable<Column[]>([
{ id: '$id', title: 'Provider ID', type: 'string' },
{ id: 'name', title: 'Name', type: 'string' },
{ id: 'provider', title: 'Provider', type: 'string' },
{ id: 'type', title: 'Type', type: 'string' },
{ id: 'enabled', title: 'Status', type: 'boolean' }
{ id: '$id', title: 'Provider ID', type: 'string', width: 200 },
{ id: 'name', title: 'Name', type: 'string', width: { min: 120 } },
{ id: 'provider', title: 'Provider', type: 'string', width: { min: 120 } },
{ id: 'type', title: 'Type', type: 'string', width: { min: 120 } },
{ id: 'enabled', title: 'Status', type: 'boolean', width: { min: 120 } }
]);

export type ProviderInput = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts" context="module">
import { columns } from './store';
import { wizard } from '$lib/stores/wizard';
import CreateAndroid from './createAndroid.svelte';
import CreateApple from './createApple.svelte';
Expand Down Expand Up @@ -121,12 +122,13 @@
</script>

{#if data.platforms.platforms.length}
<Table.Root columns={4} let:root>
<Table.Root columns={$columns} let:root>
<svelte:fragment slot="header" let:root>
<Table.Header.Cell {root}>Name</Table.Header.Cell>
<Table.Header.Cell {root}>Platform type</Table.Header.Cell>
<Table.Header.Cell {root}>Identifier</Table.Header.Cell>
<Table.Header.Cell {root}>Last updated</Table.Header.Cell>
{#each $columns as column}
<Table.Header.Cell {root} column={column.id}>
{column.title}
</Table.Header.Cell>
{/each}
</svelte:fragment>
{#each data.platforms.platforms as platform}
<Table.Row.Link href={`${path}/${platform.$id}`} {root}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import type { ComponentType } from 'svelte';
import { PlatformType } from '@appwrite.io/console';
import { writable } from 'svelte/store';
import type { Column } from '$lib/helpers/types';

export const columns = writable<Column[]>([
{ id: 'name', title: 'Name', type: 'string', width: { min: 120 } },
{ id: 'type', title: 'Platform type', type: 'string', width: { min: 120 } },
{ id: 'identifier', title: 'Identifier', type: 'string', width: { min: 120 } },
{ id: '$updatedAt', title: 'Last updated', type: 'string', width: { min: 120 } }
]);

export type PlatformProps = {
key?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@
placeholder="Select or type user labels"
bind:tags={extensions} />
{/key}
<Layout.Stack direction="row">
<Layout.Stack direction="row" wrap="wrap">
{#each suggestedExtensions as ext}
<Tag
size="s"
Expand Down