diff --git a/package.json b/package.json index 7b00655cd0..f1573836b2 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "dependencies": { "@ai-sdk/svelte": "^1.1.24", - "@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@9c55755", + "@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@8e384ac", "@appwrite.io/pink-icons": "0.25.0", "@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@bbad65f", "@appwrite.io/pink-legacy": "^1.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 23cbb7f832..f474ac8f37 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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.vc/-/@appwrite/@appwrite.io/console@9c55755 - version: https://pkg.vc/-/@appwrite/@appwrite.io/console@9c55755 + specifier: https://pkg.vc/-/@appwrite/@appwrite.io/console@8e384ac + version: https://pkg.vc/-/@appwrite/@appwrite.io/console@8e384ac '@appwrite.io/pink-icons': specifier: 0.25.0 version: 0.25.0 @@ -272,8 +272,8 @@ packages: '@analytics/type-utils@0.6.2': resolution: {integrity: sha512-TD+xbmsBLyYy/IxFimW/YL/9L2IEnM7/EoV9Aeh56U64Ify8o27HJcKjo38XY9Tcn0uOq1AX3thkKgvtWvwFQg==} - '@appwrite.io/console@https://pkg.vc/-/@appwrite/@appwrite.io/console@9c55755': - resolution: {tarball: https://pkg.vc/-/@appwrite/@appwrite.io/console@9c55755} + '@appwrite.io/console@https://pkg.vc/-/@appwrite/@appwrite.io/console@8e384ac': + resolution: {tarball: https://pkg.vc/-/@appwrite/@appwrite.io/console@8e384ac} version: 2.1.0 '@appwrite.io/pink-icons-svelte@2.0.0-RC.1': @@ -1727,6 +1727,9 @@ packages: bidi-js@1.0.3: resolution: {integrity: sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==} + bignumber.js@9.3.1: + resolution: {integrity: sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==} + binary-extensions@2.3.0: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} @@ -2597,6 +2600,9 @@ packages: engines: {node: '>=6'} hasBin: true + json-bigint@1.0.0: + resolution: {integrity: sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==} + json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} @@ -3822,7 +3828,9 @@ snapshots: '@analytics/type-utils@0.6.2': {} - '@appwrite.io/console@https://pkg.vc/-/@appwrite/@appwrite.io/console@9c55755': {} + '@appwrite.io/console@https://pkg.vc/-/@appwrite/@appwrite.io/console@8e384ac': + dependencies: + json-bigint: 1.0.0 '@appwrite.io/pink-icons-svelte@2.0.0-RC.1(svelte@5.25.3)': dependencies: @@ -5460,6 +5468,8 @@ snapshots: dependencies: require-from-string: 2.0.2 + bignumber.js@9.3.1: {} + binary-extensions@2.3.0: {} brace-expansion@1.1.11: @@ -6409,6 +6419,10 @@ snapshots: jsesc@3.1.0: {} + json-bigint@1.0.0: + dependencies: + bignumber.js: 9.3.1 + json-buffer@3.0.1: {} json-schema-traverse@0.4.1: {} diff --git a/src/routes/(console)/organization-[organization]/domains/+page.svelte b/src/routes/(console)/organization-[organization]/domains/+page.svelte index 477786e8f8..866838e5ae 100644 --- a/src/routes/(console)/organization-[organization]/domains/+page.svelte +++ b/src/routes/(console)/organization-[organization]/domains/+page.svelte @@ -39,10 +39,6 @@ let showDelete = false; let showRetry = false; let selectedDomain: Models.Domain = null; - - const isDomainVerified = (domain: Models.Domain) => { - return domain.nameservers.toLowerCase() === 'appwrite'; - }; @@ -90,7 +86,7 @@ {domain.domain} - {#if !isDomainVerified(domain)} + {#if !domain.verified} - {#if !isDomainVerified(domain)} + {#if !domain.verified} { diff --git a/src/routes/(console)/organization-[organization]/domains/add-domain/+page.svelte b/src/routes/(console)/organization-[organization]/domains/add-domain/+page.svelte index a1066a09a8..08ce942319 100644 --- a/src/routes/(console)/organization-[organization]/domains/add-domain/+page.svelte +++ b/src/routes/(console)/organization-[organization]/domains/add-domain/+page.svelte @@ -26,8 +26,7 @@ }); await invalidate(Dependencies.DOMAINS); - const verified = domain.nameservers.toLowerCase() === 'appwrite'; - if (verified) { + if (domain.verified) { await goto(backPage); addNotification({ type: 'success', diff --git a/src/routes/(console)/organization-[organization]/domains/domain-[domain]/domainMetrics.svelte b/src/routes/(console)/organization-[organization]/domains/domain-[domain]/domainMetrics.svelte index 0089dc37d7..1da7d7cdd9 100644 --- a/src/routes/(console)/organization-[organization]/domains/domain-[domain]/domainMetrics.svelte +++ b/src/routes/(console)/organization-[organization]/domains/domain-[domain]/domainMetrics.svelte @@ -13,11 +13,9 @@ retryVerification: () => void; } = $props(); - const isDomainVerified = $derived(domain.nameservers.toLowerCase() === 'appwrite'); - const metrics = $derived([ { - value: isDomainVerified ? 'Verified' : 'Not verified', + value: domain.verified ? 'Verified' : 'Not verified', description: 'Status' }, { @@ -56,9 +54,9 @@ + status={domain.verified ? 'complete' : 'pending'} /> - {#if !isDomainVerified} + {#if !domain.verified} Retry {/if} diff --git a/src/routes/(console)/organization-[organization]/domains/recordsCard.svelte b/src/routes/(console)/organization-[organization]/domains/recordsCard.svelte index edfec5903d..8886af34cd 100644 --- a/src/routes/(console)/organization-[organization]/domains/recordsCard.svelte +++ b/src/routes/(console)/organization-[organization]/domains/recordsCard.svelte @@ -35,8 +35,7 @@ async function verifyStatus() { try { domain = await sdk.forConsole.domains.updateNameservers({ domainId: domain.$id }); - verified = domain.nameservers.toLowerCase() === 'appwrite'; - if (verified) { + if (domain.verified) { addNotification({ type: 'success', message: 'Domain verified successfully' diff --git a/src/routes/(console)/organization-[organization]/domains/retryDomainModal.svelte b/src/routes/(console)/organization-[organization]/domains/retryDomainModal.svelte index 5dab1876e8..5cb74a67e3 100644 --- a/src/routes/(console)/organization-[organization]/domains/retryDomainModal.svelte +++ b/src/routes/(console)/organization-[organization]/domains/retryDomainModal.svelte @@ -35,8 +35,7 @@ await Promise.all([invalidate(Dependencies.DOMAIN), invalidate(Dependencies.DOMAINS)]); - const verified = domain?.nameservers.toLowerCase() === 'appwrite'; - if (!verified) { + if (!domain.verified) { throw new Error( 'Domain verification failed. Please check your domain settings or try again later' );