File tree Expand file tree Collapse file tree 4 files changed +23
-23
lines changed
routes/(console)/project-[region]-[project]
databases/database-[database]/collection-[collection]
functions/function-[function]/settings
storage/bucket-[bucket]/settings Expand file tree Collapse file tree 4 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 23
23
export let title: string ;
24
24
export let serviceId = title .toLocaleLowerCase () as PlanServices ;
25
25
export let total: number = null ;
26
- export let alertType: ' info' | ' success' | ' warning' | ' error' | ' default ' = ' warning' ;
26
+ export let alertType: ' info' | ' success' | ' warning' | ' error' = ' warning' ;
27
27
export let showAlert = true ;
28
28
29
29
export let buttonText: string = null ;
105
105
</span >
106
106
</Alert .Inline >
107
107
{:else }
108
- <Alert .Inline status ={alertType === ' default ' ? ' info ' : alertType }>
108
+ <Alert .Inline status ={alertType }>
109
109
<span class =" text" >
110
110
You've reached the {services } limit for the {tier } plan. <Link
111
111
href ={$upgradeURL }
Original file line number Diff line number Diff line change 29
29
Badge ,
30
30
FloatingActionBar ,
31
31
InteractiveText ,
32
- Typography
32
+ Typography ,
33
+ Layout
33
34
} from ' @appwrite.io/pink-svelte' ;
34
35
import { toLocaleDateTime } from ' $lib/helpers/date' ;
35
36
import DualTimeView from ' $lib/components/dualTimeView.svelte' ;
343
344
</Table .Row .Base >
344
345
{/each }
345
346
</Table .Root >
346
- <div class = " u-flex u-flex-vertical u-gap-16 " >
347
+ <Layout . Stack gap = " m " direction = " column " >
347
348
<Alert .Inline status =" info"
348
349
>To change the selection edit the relationship settings.</Alert .Inline >
349
350
352
353
Delete document from <span data-private >{$collection .name }</span >
353
354
</InputChoice >
354
355
</ul >
355
- </div >
356
+ </Layout . Stack >
356
357
{:else }
357
358
<p class =" u-bold" >This action is irreversible.</p >
358
359
{/if }
Original file line number Diff line number Diff line change 22
22
import { isCloud } from ' $lib/system' ;
23
23
import UpdateVariables from ' $routes/(console)/project-[region]-[project]/updateVariables.svelte' ;
24
24
import { page } from ' $app/state' ;
25
+ import { Link } from ' $lib/elements' ;
25
26
26
27
export let data;
27
28
let showAlert = true ;
55
56
56
57
<Container >
57
58
{#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
68
69
>.
69
70
<svelte:fragment slot =" actions" >
70
71
<Button
Original file line number Diff line number Diff line change 47
47
{#if isCloud }
48
48
{@const size = humanFileSize (sizeToBytes (service , ' MB' , 1000 ))}
49
49
<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 }
58
56
<svelte:fragment slot =" actions" >
59
57
{#if $organization ?.billingPlan === BillingPlan .FREE }
60
58
<div class =" alert-buttons u-flex" >
You can’t perform that action at this time.
0 commit comments