From 44c66dbed44ca05899fdaf372271d3f261b7f7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Tue, 26 Mar 2024 22:03:08 +0100 Subject: [PATCH] add tailwind prettier and some clean up --- apps/dashboard/README.md | 29 +- apps/dashboard/TOOODOO.md | 6 - apps/dashboard/next.config.mjs | 6 +- .../dashboards/[dashboardId]/list-reports.tsx | 12 +- .../dashboards/header-dashboards.tsx | 2 +- .../dashboards/list-dashboards.tsx | 6 +- .../events/charts/events-per-day-chart.tsx | 2 +- .../event-conversions-list.tsx | 4 +- .../[projectId]/events/event-details.tsx | 12 +- .../[projectId]/events/event-edit.tsx | 8 +- .../[projectId]/events/event-icon.tsx | 6 +- .../[projectId]/events/event-list-item.tsx | 8 +- .../[projectId]/events/event-list.tsx | 2 +- .../[projectId]/events/event-listener.tsx | 6 +- .../[projectId]/events/page.tsx | 6 +- .../[projectId]/layout-menu.tsx | 8 +- .../[projectId]/layout-sidebar.tsx | 20 +- .../layout-sticky-below-header.tsx | 2 +- .../[organizationId]/[projectId]/layout.tsx | 2 +- .../[projectId]/page-layout.tsx | 2 +- .../[organizationId]/[projectId]/page.tsx | 4 +- .../[projectId]/profiles/[profileId]/page.tsx | 12 +- .../[projectId]/profiles/page.tsx | 6 +- .../profiles/profile-last-seen/index.tsx | 8 +- .../profiles/profile-list/profile-list.tsx | 8 +- .../profiles/profile-top/index.tsx | 2 +- .../[projectId]/reports/[reportId]/page.tsx | 2 +- .../[projectId]/reports/page.tsx | 2 +- .../[projectId]/reports/report-editor.tsx | 6 +- .../settings/clients/list-clients.tsx | 2 +- .../organization/invites/create-invite.tsx | 2 +- .../settings/organization/invites/invites.tsx | 2 +- .../settings/organization/page.tsx | 2 +- .../[projectId]/settings/profile/page.tsx | 2 +- .../settings/projects/list-projects.tsx | 2 +- .../settings/references/list-references.tsx | 2 +- .../(app)/[organizationId]/create-project.tsx | 4 +- .../src/app/(app)/[organizationId]/page.tsx | 16 +- .../src/app/(app)/create-organization.tsx | 12 +- apps/dashboard/src/app/(app)/page.tsx | 12 +- .../app/(public)/share/overview/[id]/page.tsx | 16 +- apps/dashboard/src/app/auth.tsx | 4 +- apps/dashboard/src/app/layout.tsx | 2 +- .../src/components/button-container.tsx | 2 +- apps/dashboard/src/components/card.tsx | 4 +- .../src/components/forms/input-with-label.tsx | 4 +- .../src/components/full-page-empty-state.tsx | 8 +- apps/dashboard/src/components/logo.tsx | 2 +- .../overview-filters-drawer-content.tsx | 6 +- .../filters/overview-filters-drawer.tsx | 2 +- .../overview/live-counter/live-counter.tsx | 6 +- .../overview/overview-live-histogram.tsx | 12 +- .../components/overview/overview-metrics.tsx | 6 +- .../components/overview/overview-widget.tsx | 6 +- apps/dashboard/src/components/pagination.tsx | 4 +- .../src/components/projects/project-card.tsx | 18 +- .../report/PreviousDiffIndicator.tsx | 2 +- .../src/components/report/ReportRange.tsx | 2 +- .../report/chart/ChartAnimation.tsx | 2 +- .../components/report/chart/ChartEmpty.tsx | 2 +- .../components/report/chart/ChartLoading.tsx | 2 +- .../components/report/chart/MetricCard.tsx | 24 +- .../report/chart/ReportBarChart.tsx | 12 +- .../report/chart/ReportChartTooltip.tsx | 4 +- .../components/report/chart/ReportTable.tsx | 10 +- .../report/chart/ResponsiveContainer.tsx | 2 +- .../report/chart/SerieIcon.flags.tsx | 2 +- .../src/components/report/chart/SerieIcon.tsx | 4 +- .../src/components/report/funnel/Funnel.tsx | 26 +- .../sidebar/EventPropertiesCombobox.tsx | 2 +- .../report/sidebar/ReportEvents.tsx | 4 +- .../sidebar/filters/FiltersCombobox.tsx | 2 +- apps/dashboard/src/components/ui/alert.tsx | 2 +- apps/dashboard/src/components/ui/badge.tsx | 2 +- apps/dashboard/src/components/ui/button.tsx | 4 +- apps/dashboard/src/components/ui/checkbox.tsx | 2 +- .../src/components/ui/combobox-advanced.tsx | 4 +- apps/dashboard/src/components/ui/combobox.tsx | 2 +- apps/dashboard/src/components/ui/dialog.tsx | 2 +- .../src/components/ui/gradient-background.tsx | 4 +- .../dashboard/src/components/ui/key-value.tsx | 6 +- apps/dashboard/src/components/ui/label.tsx | 2 +- .../src/components/ui/radio-group.tsx | 27 +- apps/dashboard/src/components/ui/sheet.tsx | 6 +- apps/dashboard/src/components/ui/table.tsx | 4 +- .../dashboard/src/components/widget-table.tsx | 4 +- apps/dashboard/src/components/widget.tsx | 2 +- apps/dashboard/src/middleware.ts | 7 +- apps/dashboard/src/modals/AddClient.tsx | 4 +- apps/dashboard/src/modals/Modal/Container.tsx | 4 +- .../src/modals/ShareOverviewModal.tsx | 2 +- apps/dashboard/src/modals/index.tsx | 4 +- apps/docs/src/components/brand-logo.tsx | 6 +- apps/public/src/app/(static)/layout.tsx | 2 +- apps/public/src/app/copy.tsx | 12 +- apps/public/src/app/features.tsx | 26 +- apps/public/src/app/footer.tsx | 20 +- apps/public/src/app/hero.tsx | 10 +- apps/public/src/app/join-waitlist-hero.tsx | 2 +- apps/public/src/app/join-waitlist.tsx | 2 +- apps/public/src/app/layout.tsx | 2 +- apps/public/src/app/navbar.tsx | 4 +- apps/public/src/app/page.tsx | 16 +- apps/public/src/app/pricing.tsx | 10 +- apps/public/src/app/punch-lines.tsx | 12 +- apps/public/src/components/Logo.tsx | 2 +- apps/public/src/components/ui/button.tsx | 4 +- apps/public/src/components/ui/dialog.tsx | 2 +- docker/Dockerfile-composed | 101 -- docker/Dockerfile-web | 83 - docker/Dockerfile-worker | 80 - docker/build-composed | 10 - docker/redis.conf | 1329 ----------------- docker/supervisord.conf | 34 - pnpm-lock.yaml | 53 +- tooling/prettier/index.mjs | 18 +- tooling/prettier/package.json | 4 +- tooling/prettier/tsconfig.json | 1 + 118 files changed, 355 insertions(+), 2045 deletions(-) delete mode 100644 apps/dashboard/TOOODOO.md delete mode 100644 docker/Dockerfile-composed delete mode 100644 docker/Dockerfile-web delete mode 100644 docker/Dockerfile-worker delete mode 100755 docker/build-composed delete mode 100644 docker/redis.conf delete mode 100644 docker/supervisord.conf diff --git a/apps/dashboard/README.md b/apps/dashboard/README.md index fba19eda..5c6b25c4 100644 --- a/apps/dashboard/README.md +++ b/apps/dashboard/README.md @@ -1,28 +1 @@ -# Create T3 App - -This is a [T3 Stack](https://create.t3.gg/) project bootstrapped with `create-t3-app`. - -## What's next? How do I make an app with this? - -We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary. - -If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our [Discord](https://t3.gg/discord) and ask for help. - -- [Next.js](https://nextjs.org) -- [NextAuth.js](https://next-auth.js.org) -- [Prisma](https://prisma.io) -- [Tailwind CSS](https://tailwindcss.com) -- [tRPC](https://trpc.io) - -## Learn More - -To learn more about the [T3 Stack](https://create.t3.gg/), take a look at the following resources: - -- [Documentation](https://create.t3.gg/) -- [Learn the T3 Stack](https://create.t3.gg/en/faq#what-learning-resources-are-currently-available) — Check out these awesome tutorials - -You can check out the [create-t3-app GitHub repository](https://github.com/t3-oss/create-t3-app) — your feedback and contributions are welcome! - -## How do I deploy this? - -Follow our deployment guides for [Vercel](https://create.t3.gg/en/deployment/vercel), [Netlify](https://create.t3.gg/en/deployment/netlify) and [Docker](https://create.t3.gg/en/deployment/docker) for more information. +# Dashboard diff --git a/apps/dashboard/TOOODOO.md b/apps/dashboard/TOOODOO.md deleted file mode 100644 index d61d9b44..00000000 --- a/apps/dashboard/TOOODOO.md +++ /dev/null @@ -1,6 +0,0 @@ -- new org -- create project -- all trpc mutations seems to break in prod -- top event convertions - - create events_meta (name, color, icon) - - edit event convertion diff --git a/apps/dashboard/next.config.mjs b/apps/dashboard/next.config.mjs index e59b8738..2f855fdc 100644 --- a/apps/dashboard/next.config.mjs +++ b/apps/dashboard/next.config.mjs @@ -53,12 +53,12 @@ export default withSentryConfig( widenClientFileUpload: true, // Transpiles SDK to be compatible with IE11 (increases bundle size) - transpileClientSDK: true, + transpileClientSDK: false, // Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. (increases server load) // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client- // side errors will fail. - tunnelRoute: '/monitoring', + // tunnelRoute: '/monitoring', // Hides source maps from generated client bundles hideSourceMaps: true, @@ -70,6 +70,6 @@ export default withSentryConfig( // See the following for more information: // https://docs.sentry.io/product/crons/ // https://vercel.com/docs/cron-jobs - automaticVercelMonitors: true, + automaticVercelMonitors: false, } ); diff --git a/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/dashboards/[dashboardId]/list-reports.tsx b/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/dashboards/[dashboardId]/list-reports.tsx index e451c55f..05827375 100644 --- a/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/dashboards/[dashboardId]/list-reports.tsx +++ b/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/dashboards/[dashboardId]/list-reports.tsx @@ -36,7 +36,7 @@ export function ListReports({ reports }: ListReportsProps) { return ( <> - + -
+
{reports.map((report) => { const chartRange = report.range; // timeRanges[report.range]; return (
{report.name}
{chartRange !== null && ( -
+
- + @@ -116,7 +116,7 @@ export function ListReports({ reports }: ListReportsProps) {
-
+
- +
-
+
-
+
diff --git a/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/clients/list-clients.tsx b/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/clients/list-clients.tsx index f8e61509..fb3c26f1 100644 --- a/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/clients/list-clients.tsx +++ b/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/clients/list-clients.tsx @@ -16,7 +16,7 @@ export default function ListClients({ clients }: ListClientsProps) { return ( <> -
+
diff --git a/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/organization/invites/invites.tsx b/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/organization/invites/invites.tsx index adf4537e..b5a2510b 100644 --- a/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/organization/invites/invites.tsx +++ b/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/organization/invites/invites.tsx @@ -73,7 +73,7 @@ function Item({ {new Date(createdAt).toLocaleDateString()} - + -
+
diff --git a/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/profile/page.tsx b/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/profile/page.tsx index bbe12f3b..650969b3 100644 --- a/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/profile/page.tsx +++ b/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/profile/page.tsx @@ -17,7 +17,7 @@ export default async function Page({ params: { organizationId } }: PageProps) { return ( -
+
diff --git a/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/projects/list-projects.tsx b/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/projects/list-projects.tsx index 3112a8a0..d04efdfe 100644 --- a/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/projects/list-projects.tsx +++ b/apps/dashboard/src/app/(app)/[organizationId]/[projectId]/settings/projects/list-projects.tsx @@ -18,7 +18,7 @@ export default function ListProjects({ projects }: ListProjectsProps) { return ( <> -
+