From b859fd3876a596fbbccd4f8d9383d03ae9842a6c Mon Sep 17 00:00:00 2001 From: Diego Fernandes Date: Thu, 11 Apr 2024 11:01:04 -0300 Subject: [PATCH] refactor: put the whole application under /app folder --- .../(dashboard)}/cards/views-count-chart.tsx | 0 .../(dashboard)}/cards/views-count.tsx | 2 +- .../{(app)/dashboard => app/(dashboard)}/page.tsx | 0 .../batches/[id]/batch-upload-list.tsx | 2 +- .../batches/[id]/batch-upload-skeleton-table.tsx | 0 .../web/src/app/{(app) => app}/batches/[id]/page.tsx | 0 apps/web/src/app/{(app) => app}/layout.tsx | 0 .../src/app/{(app) => app}/settings/aside-link.tsx | 0 .../settings/developers/create-webhook.tsx | 0 .../settings/developers/logs/[logId]/page.tsx | 0 .../settings/developers/logs/layout.tsx | 0 .../{(app) => app}/settings/developers/logs/page.tsx | 0 .../developers/logs/webhook-logs-filters.tsx | 4 ++-- .../logs/webhook-logs-list-date-range-picker.tsx | 0 .../developers/logs/webhook-logs-list-loading.tsx | 0 .../settings/developers/logs/webhook-logs-list.tsx | 4 +++- .../app/{(app) => app}/settings/developers/page.tsx | 2 +- .../settings/developers/webhook-events-chart.tsx | 0 .../settings/developers/webhook-form.tsx | 0 .../developers/webhook-list-item-actions.tsx | 0 .../settings/developers/webhook-triggers-input.tsx | 0 .../settings/developers/webhooks-docs-button.tsx | 0 .../settings/developers/webhooks-list-loading.tsx | 0 .../settings/developers/webhooks-list.tsx | 2 +- apps/web/src/app/{(app) => app}/settings/layout.tsx | 8 ++++---- .../{(app) => app}/settings/organization/actions.ts | 0 .../settings/organization/bunny-api-key-form.tsx | 0 .../organization/bunny-video-library-form.tsx | 0 .../settings/organization/connect-bunny-account.tsx | 0 .../{(app) => app}/settings/organization/page.tsx | 0 apps/web/src/app/{(app) => app}/settings/page.tsx | 0 .../src/app/{(app) => app}/settings/profile/page.tsx | 0 apps/web/src/app/{(app) => app}/upload/page.tsx | 2 +- .../columns/audio-conversion-progress-column.tsx | 0 .../columns/audio-upload-progress-column.tsx | 0 .../columns/video-upload-progress-column.tsx | 0 .../app/{(app) => app}/upload/upload-list/header.tsx | 0 .../app/{(app) => app}/upload/upload-list/index.tsx | 2 +- .../upload/upload-list/upload-drop-area.tsx | 0 .../upload/upload-list/upload-language-input.tsx | 0 .../upload/upload-list/upload-table.tsx | 0 .../upload/upload-list/upload-tag-input.tsx | 0 apps/web/src/app/{(app) => app}/uploads/layout.tsx | 0 apps/web/src/app/{(app) => app}/uploads/loading.tsx | 0 apps/web/src/app/{(app) => app}/uploads/page.tsx | 2 +- .../app/{(app) => app}/uploads/uploads-filters.tsx | 4 ++-- .../{(app) => app}/uploads/uploads-pagination.tsx | 6 ++++-- apps/web/src/app/{(app) => app}/videos/[id]/page.tsx | 0 .../videos/[id]/tabs/overview/index.tsx | 0 .../[id]/tabs/overview/video-description-input.tsx | 0 .../videos/[id]/tabs/overview/video-form.tsx | 0 .../videos/[id]/tabs/overview/video-tag-input.tsx | 0 .../videos/[id]/tabs/webhooks/index.tsx | 0 .../videos/[id]/tabs/webhooks/metadata-tooltip.tsx | 0 .../[id]/tabs/webhooks/webhooks-skeleton-table.tsx | 0 .../videos/[id]/transcription-card/index.tsx | 0 .../videos/[id]/transcription-card/segment.tsx | 0 .../transcription-card/transcription-skeleton.tsx | 0 apps/web/src/app/auth/sign-in/actions.ts | 4 ++-- apps/web/src/components/header/index.tsx | 6 +++--- apps/web/src/components/header/menu-link.tsx | 4 ++-- apps/web/src/components/header/search-item.tsx | 2 +- .../src/components/header/user-profile-button.tsx | 4 ++-- apps/web/src/components/transcription-preview.tsx | 2 +- apps/web/src/components/upload-item-actions.tsx | 2 +- packages/auth/auth.config.ts | 12 ++++-------- 66 files changed, 38 insertions(+), 38 deletions(-) rename apps/web/src/app/{(app)/dashboard => app/(dashboard)}/cards/views-count-chart.tsx (100%) rename apps/web/src/app/{(app)/dashboard => app/(dashboard)}/cards/views-count.tsx (96%) rename apps/web/src/app/{(app)/dashboard => app/(dashboard)}/page.tsx (100%) rename apps/web/src/app/{(app) => app}/batches/[id]/batch-upload-list.tsx (99%) rename apps/web/src/app/{(app) => app}/batches/[id]/batch-upload-skeleton-table.tsx (100%) rename apps/web/src/app/{(app) => app}/batches/[id]/page.tsx (100%) rename apps/web/src/app/{(app) => app}/layout.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/aside-link.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/create-webhook.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/logs/[logId]/page.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/logs/layout.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/logs/page.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/logs/webhook-logs-filters.tsx (95%) rename apps/web/src/app/{(app) => app}/settings/developers/logs/webhook-logs-list-date-range-picker.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/logs/webhook-logs-list-loading.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/logs/webhook-logs-list.tsx (97%) rename apps/web/src/app/{(app) => app}/settings/developers/page.tsx (97%) rename apps/web/src/app/{(app) => app}/settings/developers/webhook-events-chart.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/webhook-form.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/webhook-list-item-actions.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/webhook-triggers-input.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/webhooks-docs-button.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/webhooks-list-loading.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/developers/webhooks-list.tsx (98%) rename apps/web/src/app/{(app) => app}/settings/layout.tsx (86%) rename apps/web/src/app/{(app) => app}/settings/organization/actions.ts (100%) rename apps/web/src/app/{(app) => app}/settings/organization/bunny-api-key-form.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/organization/bunny-video-library-form.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/organization/connect-bunny-account.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/organization/page.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/page.tsx (100%) rename apps/web/src/app/{(app) => app}/settings/profile/page.tsx (100%) rename apps/web/src/app/{(app) => app}/upload/page.tsx (92%) rename apps/web/src/app/{(app) => app}/upload/upload-list/columns/audio-conversion-progress-column.tsx (100%) rename apps/web/src/app/{(app) => app}/upload/upload-list/columns/audio-upload-progress-column.tsx (100%) rename apps/web/src/app/{(app) => app}/upload/upload-list/columns/video-upload-progress-column.tsx (100%) rename apps/web/src/app/{(app) => app}/upload/upload-list/header.tsx (100%) rename apps/web/src/app/{(app) => app}/upload/upload-list/index.tsx (97%) rename apps/web/src/app/{(app) => app}/upload/upload-list/upload-drop-area.tsx (100%) rename apps/web/src/app/{(app) => app}/upload/upload-list/upload-language-input.tsx (100%) rename apps/web/src/app/{(app) => app}/upload/upload-list/upload-table.tsx (100%) rename apps/web/src/app/{(app) => app}/upload/upload-list/upload-tag-input.tsx (100%) rename apps/web/src/app/{(app) => app}/uploads/layout.tsx (100%) rename apps/web/src/app/{(app) => app}/uploads/loading.tsx (100%) rename apps/web/src/app/{(app) => app}/uploads/page.tsx (99%) rename apps/web/src/app/{(app) => app}/uploads/uploads-filters.tsx (95%) rename apps/web/src/app/{(app) => app}/uploads/uploads-pagination.tsx (95%) rename apps/web/src/app/{(app) => app}/videos/[id]/page.tsx (100%) rename apps/web/src/app/{(app) => app}/videos/[id]/tabs/overview/index.tsx (100%) rename apps/web/src/app/{(app) => app}/videos/[id]/tabs/overview/video-description-input.tsx (100%) rename apps/web/src/app/{(app) => app}/videos/[id]/tabs/overview/video-form.tsx (100%) rename apps/web/src/app/{(app) => app}/videos/[id]/tabs/overview/video-tag-input.tsx (100%) rename apps/web/src/app/{(app) => app}/videos/[id]/tabs/webhooks/index.tsx (100%) rename apps/web/src/app/{(app) => app}/videos/[id]/tabs/webhooks/metadata-tooltip.tsx (100%) rename apps/web/src/app/{(app) => app}/videos/[id]/tabs/webhooks/webhooks-skeleton-table.tsx (100%) rename apps/web/src/app/{(app) => app}/videos/[id]/transcription-card/index.tsx (100%) rename apps/web/src/app/{(app) => app}/videos/[id]/transcription-card/segment.tsx (100%) rename apps/web/src/app/{(app) => app}/videos/[id]/transcription-card/transcription-skeleton.tsx (100%) diff --git a/apps/web/src/app/(app)/dashboard/cards/views-count-chart.tsx b/apps/web/src/app/app/(dashboard)/cards/views-count-chart.tsx similarity index 100% rename from apps/web/src/app/(app)/dashboard/cards/views-count-chart.tsx rename to apps/web/src/app/app/(dashboard)/cards/views-count-chart.tsx diff --git a/apps/web/src/app/(app)/dashboard/cards/views-count.tsx b/apps/web/src/app/app/(dashboard)/cards/views-count.tsx similarity index 96% rename from apps/web/src/app/(app)/dashboard/cards/views-count.tsx rename to apps/web/src/app/app/(dashboard)/cards/views-count.tsx index 608e407..029516b 100644 --- a/apps/web/src/app/(app)/dashboard/cards/views-count.tsx +++ b/apps/web/src/app/app/(dashboard)/cards/views-count.tsx @@ -38,7 +38,7 @@ export async function ViewsCount() { return (

- + Setup your Bunny account {' '} to see metrics diff --git a/apps/web/src/app/(app)/dashboard/page.tsx b/apps/web/src/app/app/(dashboard)/page.tsx similarity index 100% rename from apps/web/src/app/(app)/dashboard/page.tsx rename to apps/web/src/app/app/(dashboard)/page.tsx diff --git a/apps/web/src/app/(app)/batches/[id]/batch-upload-list.tsx b/apps/web/src/app/app/batches/[id]/batch-upload-list.tsx similarity index 99% rename from apps/web/src/app/(app)/batches/[id]/batch-upload-list.tsx rename to apps/web/src/app/app/batches/[id]/batch-upload-list.tsx index 5ca7acc..3c50d94 100644 --- a/apps/web/src/app/(app)/batches/[id]/batch-upload-list.tsx +++ b/apps/web/src/app/app/batches/[id]/batch-upload-list.tsx @@ -98,7 +98,7 @@ export function BatchUploadList({ batchId }: BatchUploadListProps) {

diff --git a/apps/web/src/app/(app)/batches/[id]/batch-upload-skeleton-table.tsx b/apps/web/src/app/app/batches/[id]/batch-upload-skeleton-table.tsx similarity index 100% rename from apps/web/src/app/(app)/batches/[id]/batch-upload-skeleton-table.tsx rename to apps/web/src/app/app/batches/[id]/batch-upload-skeleton-table.tsx diff --git a/apps/web/src/app/(app)/batches/[id]/page.tsx b/apps/web/src/app/app/batches/[id]/page.tsx similarity index 100% rename from apps/web/src/app/(app)/batches/[id]/page.tsx rename to apps/web/src/app/app/batches/[id]/page.tsx diff --git a/apps/web/src/app/(app)/layout.tsx b/apps/web/src/app/app/layout.tsx similarity index 100% rename from apps/web/src/app/(app)/layout.tsx rename to apps/web/src/app/app/layout.tsx diff --git a/apps/web/src/app/(app)/settings/aside-link.tsx b/apps/web/src/app/app/settings/aside-link.tsx similarity index 100% rename from apps/web/src/app/(app)/settings/aside-link.tsx rename to apps/web/src/app/app/settings/aside-link.tsx diff --git a/apps/web/src/app/(app)/settings/developers/create-webhook.tsx b/apps/web/src/app/app/settings/developers/create-webhook.tsx similarity index 100% rename from apps/web/src/app/(app)/settings/developers/create-webhook.tsx rename to apps/web/src/app/app/settings/developers/create-webhook.tsx diff --git a/apps/web/src/app/(app)/settings/developers/logs/[logId]/page.tsx b/apps/web/src/app/app/settings/developers/logs/[logId]/page.tsx similarity index 100% rename from apps/web/src/app/(app)/settings/developers/logs/[logId]/page.tsx rename to apps/web/src/app/app/settings/developers/logs/[logId]/page.tsx diff --git a/apps/web/src/app/(app)/settings/developers/logs/layout.tsx b/apps/web/src/app/app/settings/developers/logs/layout.tsx similarity index 100% rename from apps/web/src/app/(app)/settings/developers/logs/layout.tsx rename to apps/web/src/app/app/settings/developers/logs/layout.tsx diff --git a/apps/web/src/app/(app)/settings/developers/logs/page.tsx b/apps/web/src/app/app/settings/developers/logs/page.tsx similarity index 100% rename from apps/web/src/app/(app)/settings/developers/logs/page.tsx rename to apps/web/src/app/app/settings/developers/logs/page.tsx diff --git a/apps/web/src/app/(app)/settings/developers/logs/webhook-logs-filters.tsx b/apps/web/src/app/app/settings/developers/logs/webhook-logs-filters.tsx similarity index 95% rename from apps/web/src/app/(app)/settings/developers/logs/webhook-logs-filters.tsx rename to apps/web/src/app/app/settings/developers/logs/webhook-logs-filters.tsx index 3a1b77f..04c45b0 100644 --- a/apps/web/src/app/(app)/settings/developers/logs/webhook-logs-filters.tsx +++ b/apps/web/src/app/app/settings/developers/logs/webhook-logs-filters.tsx @@ -45,7 +45,7 @@ export function WebhookLogsFilters() { } startTransition(() => { - router.push(`/settings/developers/logs?${params.toString()}`) + router.push(`/app/settings/developers/logs?${params.toString()}`) }) } @@ -58,7 +58,7 @@ export function WebhookLogsFilters() { params.delete('query') params.delete('trigger') - router.push(`/settings/developers/logs?${params.toString()}`) + router.push(`/app/settings/developers/logs?${params.toString()}`) } const hasFilters = trigger !== undefined || query !== '' diff --git a/apps/web/src/app/(app)/settings/developers/logs/webhook-logs-list-date-range-picker.tsx b/apps/web/src/app/app/settings/developers/logs/webhook-logs-list-date-range-picker.tsx similarity index 100% rename from apps/web/src/app/(app)/settings/developers/logs/webhook-logs-list-date-range-picker.tsx rename to apps/web/src/app/app/settings/developers/logs/webhook-logs-list-date-range-picker.tsx diff --git a/apps/web/src/app/(app)/settings/developers/logs/webhook-logs-list-loading.tsx b/apps/web/src/app/app/settings/developers/logs/webhook-logs-list-loading.tsx similarity index 100% rename from apps/web/src/app/(app)/settings/developers/logs/webhook-logs-list-loading.tsx rename to apps/web/src/app/app/settings/developers/logs/webhook-logs-list-loading.tsx diff --git a/apps/web/src/app/(app)/settings/developers/logs/webhook-logs-list.tsx b/apps/web/src/app/app/settings/developers/logs/webhook-logs-list.tsx similarity index 97% rename from apps/web/src/app/(app)/settings/developers/logs/webhook-logs-list.tsx rename to apps/web/src/app/app/settings/developers/logs/webhook-logs-list.tsx index 14022d9..07f589b 100644 --- a/apps/web/src/app/(app)/settings/developers/logs/webhook-logs-list.tsx +++ b/apps/web/src/app/app/settings/developers/logs/webhook-logs-list.tsx @@ -79,7 +79,9 @@ export function WebhookLogsList() { key={webhookLog.id} className="cursor-pointer" onClick={() => - router.push(`/settings/developers/logs/${webhookLog.id}`) + router.push( + `/app/settings/developers/logs/${webhookLog.id}`, + ) } > diff --git a/apps/web/src/app/(app)/settings/developers/page.tsx b/apps/web/src/app/app/settings/developers/page.tsx similarity index 97% rename from apps/web/src/app/(app)/settings/developers/page.tsx rename to apps/web/src/app/app/settings/developers/page.tsx index 48f6d79..b82b76b 100644 --- a/apps/web/src/app/(app)/settings/developers/page.tsx +++ b/apps/web/src/app/app/settings/developers/page.tsx @@ -76,7 +76,7 @@ export default async function SettingsPage() {