Skip to content

Commit 5c225f8

Browse files
committed
fix:done some chnages suggested
1 parent 8db1621 commit 5c225f8

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

src/lib/layout/containerHeader.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
export let title: string;
2424
export let serviceId = title.toLocaleLowerCase() as PlanServices;
2525
export let total: number = null;
26-
export let alertType: 'info' | 'success' | 'warning' | 'error' | 'default' = 'warning';
26+
export let alertType: 'info' | 'success' | 'warning' | 'error' = 'warning';
2727
export let showAlert = true;
2828
2929
export let buttonText: string = null;
@@ -105,7 +105,7 @@
105105
</span>
106106
</Alert.Inline>
107107
{:else}
108-
<Alert.Inline status={alertType === 'default' ? 'info' : alertType}>
108+
<Alert.Inline status={alertType}>
109109
<span class="text">
110110
You've reached the {services} limit for the {tier} plan. <Link
111111
href={$upgradeURL}

src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/table.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
Badge,
3030
FloatingActionBar,
3131
InteractiveText,
32-
Typography
32+
Typography,
33+
Layout
3334
} from '@appwrite.io/pink-svelte';
3435
import { toLocaleDateTime } from '$lib/helpers/date';
3536
import DualTimeView from '$lib/components/dualTimeView.svelte';
@@ -343,7 +344,7 @@
343344
</Table.Row.Base>
344345
{/each}
345346
</Table.Root>
346-
<div class="u-flex u-flex-vertical u-gap-16">
347+
<Layout.Stack gap="m" direction="column">
347348
<Alert.Inline status="info"
348349
>To change the selection edit the relationship settings.</Alert.Inline>
349350

@@ -352,7 +353,7 @@
352353
Delete document from <span data-private>{$collection.name}</span>
353354
</InputChoice>
354355
</ul>
355-
</div>
356+
</Layout.Stack>
356357
{:else}
357358
<p class="u-bold">This action is irreversible.</p>
358359
{/if}

src/routes/(console)/project-[region]-[project]/functions/function-[function]/settings/+page.svelte

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import { isCloud } from '$lib/system';
2323
import UpdateVariables from '$routes/(console)/project-[region]-[project]/updateVariables.svelte';
2424
import { page } from '$app/state';
25+
import { Link } from '$lib/elements';
2526
2627
export let data;
2728
let showAlert = true;
@@ -55,16 +56,16 @@
5556

5657
<Container>
5758
{#if data.function.version === 'v2' && showAlert}
58-
<div class="u-margin-block-start-24">
59-
<Alert.Inline status="warning" dismissible on:dismiss={() => (showAlert = false)}>
60-
<svelte:fragment slot="title">Your function is outdated</svelte:fragment>
61-
Update your function version to make use of new features including build commands and
62-
HTTP data in your executions. To update, follow the steps outlined in our
63-
<a
64-
href="https://appwrite.io/docs/products/functions/development"
65-
target="_blank"
66-
rel="noopener noreferrer"
67-
class="link">documentation</a
59+
<div>
60+
<Alert.Inline
61+
status="warning"
62+
dismissible
63+
title="Your function is outdated"
64+
on:dismiss={() => (showAlert = false)}>
65+
Update your function version to make use of new features including build commands
66+
and HTTP data in your executions. To update, follow the steps outlined in our
67+
<Link href="https://appwrite.io/docs/products/functions/development" external
68+
>documentation</Link
6869
>.
6970
<svelte:fragment slot="actions">
7071
<Button

src/routes/(console)/project-[region]-[project]/storage/bucket-[bucket]/settings/updateMaxFileSize.svelte

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,12 @@
4747
{#if isCloud}
4848
{@const size = humanFileSize(sizeToBytes(service, 'MB', 1000))}
4949
<Alert.Inline status="info">
50-
<p class="text">
51-
The {currentPlan.name} plan has a maximum upload file size limit of {Math.floor(
52-
parseInt(size.value)
53-
)}{size.unit}.
54-
{#if $organization?.billingPlan === BillingPlan.FREE}
55-
Upgrade to allow files of a larger size.
56-
{/if}
57-
</p>
50+
The {currentPlan.name} plan has a maximum upload file size limit of {Math.floor(
51+
parseInt(size.value)
52+
)}{size.unit}.
53+
{#if $organization?.billingPlan === BillingPlan.FREE}
54+
Upgrade to allow files of a larger size.
55+
{/if}
5856
<svelte:fragment slot="actions">
5957
{#if $organization?.billingPlan === BillingPlan.FREE}
6058
<div class="alert-buttons u-flex">

0 commit comments

Comments
 (0)