diff --git a/src/lib/constants.ts b/src/lib/constants.ts
index ae142ca22..37c5f15e7 100644
--- a/src/lib/constants.ts
+++ b/src/lib/constants.ts
@@ -356,3 +356,211 @@ export const usageRates = {
}
]
};
+
+//resources: bandwidth, buckets, file size limit, functions, executions, users,teams, members, apps, webhooks, databases, connections, messages
+export const limitRates = {
+ 'tier-0': [
+ {
+ id: 'bandwith',
+ amount: 10,
+ unit: 'GB'
+ },
+ {
+ id: 'buckets',
+ amount: 3,
+ unit: ''
+ },
+ {
+ id: 'file-size-limit',
+ amount: 50,
+ unit: 'MB'
+ },
+ {
+ id: 'functions',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'executions',
+ amount: 750000,
+ unit: 'executions'
+ },
+ {
+ id: 'users',
+ amount: 200000,
+ unit: 'AU'
+ },
+
+ {
+ id: 'teams',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'members',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'apps',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'webhooks',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'databases',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'connections',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'messages',
+ amount: 1,
+ unit: ''
+ }
+ ],
+ 'tier-1': [
+ {
+ id: 'bandwith',
+ amount: 10,
+ unit: 'GB'
+ },
+ {
+ id: 'buckets',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'file-size-limit',
+ amount: 5,
+ unit: 'MB'
+ },
+ {
+ id: 'functions',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'executions',
+ amount: 750000,
+ unit: 'executions'
+ },
+ {
+ id: 'users',
+ amount: 200000,
+ unit: 'AU'
+ },
+
+ {
+ id: 'teams',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'members',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'apps',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'webhooks',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'databases',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'connections',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'messages',
+ amount: 1,
+ unit: ''
+ }
+ ],
+ 'tier-2': [
+ {
+ id: 'bandwith',
+ amount: 10,
+ unit: 'GB'
+ },
+ {
+ id: 'buckets',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'file-size-limit',
+ amount: 5,
+ unit: 'MB'
+ },
+ {
+ id: 'functions',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'executions',
+ amount: 750000,
+ unit: 'executions'
+ },
+ {
+ id: 'users',
+ amount: 200000,
+ unit: 'AU'
+ },
+
+ {
+ id: 'teams',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'members',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'apps',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'webhooks',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'databases',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'connections',
+ amount: 1,
+ unit: ''
+ },
+ {
+ id: 'messages',
+ amount: 1,
+ unit: ''
+ }
+ ]
+};
diff --git a/src/lib/layout/containerHeader.svelte b/src/lib/layout/containerHeader.svelte
index 529be11d6..4b41fac21 100644
--- a/src/lib/layout/containerHeader.svelte
+++ b/src/lib/layout/containerHeader.svelte
@@ -1,24 +1,40 @@
+{#if isCloud && totalUse && limit !== 'unlimited' && limit <= totalUse}
+
Your are limited to {limit} {title.toLocaleLowerCase()} per project on the {tier}. + + for addtional {title.toLocaleLowerCase()}.
- - for addtional {title.toLocaleLowerCase()}.