mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge branch 'main' into codex/feat-plan-change-estimation
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
"name": "@appwrite/console",
|
||||
"dependencies": {
|
||||
"@ai-sdk/svelte": "^1.1.24",
|
||||
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@5e8022a",
|
||||
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@8f00f95",
|
||||
"@appwrite.io/pink-icons": "0.25.0",
|
||||
"@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@bfe7ce3",
|
||||
"@appwrite.io/pink-legacy": "^1.0.3",
|
||||
@@ -124,7 +124,7 @@
|
||||
|
||||
"@analytics/type-utils": ["@analytics/type-utils@0.6.4", "", {}, "sha512-Ou1gQxFakOWLcPnbFVsrPb8g1wLLUZYYJXDPjHkG07+5mustGs5yqACx42UAu4A6NszNN6Z5gGxhyH45zPWRxw=="],
|
||||
|
||||
"@appwrite.io/console": ["@appwrite.io/console@https://pkg.vc/-/@appwrite/@appwrite.io/console@5e8022a", { "dependencies": { "json-bigint": "1.0.0" } }],
|
||||
"@appwrite.io/console": ["@appwrite.io/console@https://pkg.vc/-/@appwrite/@appwrite.io/console@8f00f95", { "dependencies": { "json-bigint": "1.0.0" } }],
|
||||
|
||||
"@appwrite.io/pink-icons": ["@appwrite.io/pink-icons@0.25.0", "", {}, "sha512-0O3i2oEuh5mWvjO80i+X6rbzrWLJ1m5wmv2/M3a1p2PyBJsFxN8xQMTEmTn3Wl/D26SsM7SpzbdW6gmfgoVU9Q=="],
|
||||
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ai-sdk/svelte": "^1.1.24",
|
||||
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@5e8022a",
|
||||
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@8f00f95",
|
||||
"@appwrite.io/pink-icons": "0.25.0",
|
||||
"@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@bfe7ce3",
|
||||
"@appwrite.io/pink-legacy": "^1.0.3",
|
||||
|
||||
@@ -47,6 +47,9 @@ const initialFormData = {
|
||||
messaging: {
|
||||
root: false,
|
||||
messages: false
|
||||
},
|
||||
backups: {
|
||||
root: false
|
||||
}
|
||||
};
|
||||
|
||||
@@ -84,7 +87,8 @@ export const ResourcesFriendly = {
|
||||
provider: { singular: 'Provider', plural: 'Providers' },
|
||||
topic: { singular: 'Topic', plural: 'Topics' },
|
||||
subscriber: { singular: 'Subscriber', plural: 'Subscribers' },
|
||||
message: { singular: 'Message', plural: 'Messages' }
|
||||
message: { singular: 'Message', plural: 'Messages' },
|
||||
'backup-policy': { singular: 'Backup Policy', plural: 'Backup Policies' }
|
||||
};
|
||||
|
||||
export const providerResources: ProviderResourceMap = {
|
||||
@@ -148,6 +152,9 @@ export const migrationFormToResources = <P extends Provider>(
|
||||
if (formData.messaging.messages) {
|
||||
addResource(MigrationResources.Message);
|
||||
}
|
||||
if (formData.backups.root) {
|
||||
addResource(MigrationResources.Backuppolicy);
|
||||
}
|
||||
|
||||
return resources as ProviderResourceMap[P];
|
||||
};
|
||||
@@ -224,6 +231,9 @@ export const resourcesToMigrationForm = (resources: MigrationResource[]): Migrat
|
||||
if (resources.includes(MigrationResources.Message)) {
|
||||
formData.messaging.messages = true;
|
||||
}
|
||||
if (resources.includes(MigrationResources.Backuppolicy)) {
|
||||
formData.backups.root = true;
|
||||
}
|
||||
|
||||
return formData;
|
||||
};
|
||||
|
||||
@@ -115,6 +115,10 @@
|
||||
return resources.includes(MigrationResources.Provider);
|
||||
}
|
||||
|
||||
if (groupKey === 'backups') {
|
||||
return resources.includes(MigrationResources.Backuppolicy);
|
||||
}
|
||||
|
||||
const groupToResource: Record<string, MigrationResource> = {
|
||||
users: MigrationResources.User,
|
||||
databases: MigrationResources.Database
|
||||
@@ -135,7 +139,8 @@
|
||||
functions: 'function',
|
||||
storage: 'bucket',
|
||||
sites: 'site',
|
||||
messaging: 'provider'
|
||||
messaging: 'provider',
|
||||
backups: 'backup-policy'
|
||||
};
|
||||
return map[groupKey] || groupKey;
|
||||
};
|
||||
|
||||
+6
@@ -33,6 +33,9 @@
|
||||
messaging: {
|
||||
root: 'Messaging',
|
||||
messages: 'Include messages'
|
||||
},
|
||||
backups: {
|
||||
root: 'Backup policies'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -56,6 +59,9 @@
|
||||
messaging: {
|
||||
root: 'Import all messaging providers, topics and subscribers',
|
||||
messages: 'Import all messages'
|
||||
},
|
||||
backups: {
|
||||
root: 'Import all backup policies'
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user