diff --git a/package.json b/package.json index 1c916e1814..e40ae97ed5 100644 --- a/package.json +++ b/package.json @@ -95,5 +95,5 @@ "svelte-preprocess" ] }, - "packageManager": "pnpm@10.18.3" + "packageManager": "pnpm@10.20.0" } diff --git a/src/lib/actions/analytics.ts b/src/lib/actions/analytics.ts index ba1368a5c2..6880f1c2f4 100644 --- a/src/lib/actions/analytics.ts +++ b/src/lib/actions/analytics.ts @@ -153,7 +153,6 @@ export enum Click { DatabaseTableDelete = 'click_table_delete', DatabaseDatabaseDelete = 'click_database_delete', DatabaseImportCsv = 'click_database_import_csv', - DatabaseExportCsv = 'click_database_export_csv', DomainCreateClick = 'click_domain_create', DomainDeleteClick = 'click_domain_delete', DomainRetryDomainVerificationClick = 'click_domain_retry_domain_verification', @@ -278,7 +277,6 @@ export enum Submit { DatabaseDelete = 'submit_database_delete', DatabaseUpdateName = 'submit_database_update_name', DatabaseImportCsv = 'submit_database_import_csv', - DatabaseExportCsv = 'submit_database_export_csv', ColumnCreate = 'submit_column_create', ColumnUpdate = 'submit_column_update', diff --git a/src/lib/components/csvExportBox.svelte b/src/lib/components/csvExportBox.svelte deleted file mode 100644 index dfe79d2c82..0000000000 --- a/src/lib/components/csvExportBox.svelte +++ /dev/null @@ -1,281 +0,0 @@ - - -{#if showCsvExportBox} - -
-
-

- - Exporting rows ({exportItems.size}) - -

- - -
- -
- {#each [...exportItems.entries()] as [key, value] (key)} -
-
    -
  • -
    -
    - - {@html text(value.status, value.table)} - - {#if value.status === 'failed' && value.errors && value.errors.length > 0} - - {/if} -
    -
    -
    -
    -
  • -
-
- {/each} -
-
-
-{/if} - - - {#if selectedErrors.length > 0} - { - try { - return JSON.parse(err); - } catch { - return err; - } - }), - null, - 2 - )} - lang="json" - hideHeader /> - {/if} - - - diff --git a/src/lib/components/index.ts b/src/lib/components/index.ts index 09b4d248c3..df9a3ceeaf 100644 --- a/src/lib/components/index.ts +++ b/src/lib/components/index.ts @@ -13,7 +13,6 @@ export { default as Copy } from './copy.svelte'; export { default as CopyInput } from './copyInput.svelte'; export { default as UploadBox } from './uploadBox.svelte'; export { default as BackupRestoreBox } from './backupRestoreBox.svelte'; -export { default as CsvExportBox } from './csvExportBox.svelte'; export { default as List } from './list.svelte'; export { default as ListItem } from './listItem.svelte'; export { default as Empty } from './empty.svelte'; diff --git a/src/lib/elements/forms/inputCheckbox.svelte b/src/lib/elements/forms/inputCheckbox.svelte index ef4c5f4150..9ccb04f532 100644 --- a/src/lib/elements/forms/inputCheckbox.svelte +++ b/src/lib/elements/forms/inputCheckbox.svelte @@ -12,7 +12,6 @@ indeterminate?: boolean; size?: 's' | 'm'; description?: string; - truncate?: boolean; } export let id: string = ''; @@ -23,7 +22,6 @@ export let element: HTMLInputElement | undefined = undefined; export let size: $$Props['size'] = 's'; export let description = ''; - export let truncate: boolean = false; let error: string; const handleInvalid = (event: Event) => { @@ -52,7 +50,6 @@ {label} {required} {description} - {truncate} on:invalid={handleInvalid} on:click on:change /> diff --git a/src/routes/(console)/project-[region]-[project]/+layout.svelte b/src/routes/(console)/project-[region]-[project]/+layout.svelte index f9dd0ae1d7..4268212590 100644 --- a/src/routes/(console)/project-[region]-[project]/+layout.svelte +++ b/src/routes/(console)/project-[region]-[project]/+layout.svelte @@ -1,5 +1,5 @@ @@ -190,10 +172,17 @@ justifyContent="flex-end" style="padding-right: 40px;"> + justifyContent="flex-end"> + {#if !$isSmallViewport} - - Import CSV - - - - - - Export CSV - + icon={!$expandTabs ? IconChevronDown : IconChevronUp} /> + - - {!$expandTabs ? 'Expand' : 'Collapse'} - {/if} @@ -431,7 +383,6 @@ :global(.rotating) { animation: rotate 1s linear infinite; - animation-direction: reverse; } @keyframes rotate { diff --git a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/export/+page.svelte b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/export/+page.svelte deleted file mode 100644 index deaaeb57bb..0000000000 --- a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/export/+page.svelte +++ /dev/null @@ -1,248 +0,0 @@ - - - -
- -
- - - - - - - - - - - {#each visibleColumns as column (column.key)} -
- -
- {/each} -
- - {#if hasMoreColumns} -
- -
- {/if} -
-
- -
- - - - - - - Define how to separate values in the exported file. - - - - - - - - -
- -
- - {#if localTags.length > 0} - - { - removeLocalFilter(e.detail); - }} /> - - {/if} -
-
-
-
-
- - - - - - -
- -