mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Temp SDK fix
This commit is contained in:
3 files changed
+21
-15
No files matched your search
+1
-1
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ai-sdk/svelte": "^1.1.24",
|
||||
"@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@5545e66",
|
||||
"@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@e6743bc",
|
||||
"@appwrite.io/pink-icons": "0.25.0",
|
||||
"@appwrite.io/pink-icons-svelte": "^2.0.0-RC.1",
|
||||
"@appwrite.io/pink-legacy": "^1.0.3",
|
||||
|
||||
Generated
+5
-5
@@ -12,8 +12,8 @@ importers:
|
||||
specifier: ^1.1.24
|
||||
version: 1.1.24(svelte@5.25.3)(zod@3.24.3)
|
||||
'@appwrite.io/console':
|
||||
specifier: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@5545e66
|
||||
version: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@5545e66
|
||||
specifier: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@e6743bc
|
||||
version: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@e6743bc
|
||||
'@appwrite.io/pink-icons':
|
||||
specifier: 0.25.0
|
||||
version: 0.25.0
|
||||
@@ -260,8 +260,8 @@ packages:
|
||||
'@analytics/type-utils@0.6.2':
|
||||
resolution: {integrity: sha512-TD+xbmsBLyYy/IxFimW/YL/9L2IEnM7/EoV9Aeh56U64Ify8o27HJcKjo38XY9Tcn0uOq1AX3thkKgvtWvwFQg==}
|
||||
|
||||
'@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@5545e66':
|
||||
resolution: {tarball: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@5545e66}
|
||||
'@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@e6743bc':
|
||||
resolution: {tarball: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@e6743bc}
|
||||
version: 1.10.0
|
||||
|
||||
'@appwrite.io/pink-icons-svelte@2.0.0-RC.1':
|
||||
@@ -3673,7 +3673,7 @@ snapshots:
|
||||
|
||||
'@analytics/type-utils@0.6.2': {}
|
||||
|
||||
'@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@5545e66': {}
|
||||
'@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@e6743bc': {}
|
||||
|
||||
'@appwrite.io/pink-icons-svelte@2.0.0-RC.1(svelte@5.25.3)':
|
||||
dependencies:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, ID, type Models, Sites, Storage, type UploadProgress } from '@appwrite.io/console';
|
||||
import { Client, ID, type Models, Sites, Storage } from '@appwrite.io/console';
|
||||
import { writable } from 'svelte/store';
|
||||
import { getApiEndpoint } from '$lib/stores/sdk';
|
||||
import { page } from '$app/state';
|
||||
@@ -98,12 +98,13 @@ const createUploader = () => {
|
||||
fileId: id ?? ID.unique(),
|
||||
file,
|
||||
permissions,
|
||||
onProgress: ((progress) => {
|
||||
onProgress: (progress) => {
|
||||
newFile.$id = progress.$id;
|
||||
newFile.progress = progress.progress;
|
||||
newFile.status = progress.progress === 100 ? 'success' : 'pending';
|
||||
updateFile(progress.$id, newFile);
|
||||
}) as (progress: UploadProgress) => {}
|
||||
return {};
|
||||
}
|
||||
});
|
||||
newFile.$id = uploadedFile.$id;
|
||||
newFile.progress = 100;
|
||||
@@ -128,12 +129,17 @@ const createUploader = () => {
|
||||
const uploadedFile = await temporarySites(
|
||||
page.params.region,
|
||||
page.params.project
|
||||
).createDeployment(siteId, code, true, undefined, undefined, undefined, (p) => {
|
||||
newDeployment.$id = p.$id;
|
||||
newDeployment.progress = p.progress;
|
||||
newDeployment.status = p.progress === 100 ? 'success' : 'pending';
|
||||
updateFile(p.$id, newDeployment);
|
||||
return {};
|
||||
).createDeployment({
|
||||
siteId,
|
||||
code,
|
||||
activate: true,
|
||||
onProgress: (p) => {
|
||||
newDeployment.$id = p.$id;
|
||||
newDeployment.progress = p.progress;
|
||||
newDeployment.status = p.progress === 100 ? 'success' : 'pending';
|
||||
updateFile(p.$id, newDeployment);
|
||||
return {};
|
||||
}
|
||||
});
|
||||
newDeployment.$id = uploadedFile.$id;
|
||||
newDeployment.progress = 100;
|
||||
|
||||
Reference in new issue
Block a user