From 13c77bfc32fcbacef3e4a8ea6b7d5e5204e4031b Mon Sep 17 00:00:00 2001 From: Mathis Date: Mon, 21 Oct 2024 14:51:49 +0200 Subject: [PATCH] Add files table and refactor sub-page components Introduced a files table component for managing file data in the UI. Refactored sub-page components into a separate module for better code organization and maintainability. Adjusted text and links for consistency with language and configuration standards. --- apps/frontend/next-env.d.ts | 2 +- apps/frontend/src/app/layout.tsx | 2 +- apps/frontend/src/app/page.tsx | 51 +---- .../src/components/new-file-modal.tsx | 2 +- .../src/components/sub-pages/index.tsx | 56 +++++ .../src/components/sub-pages/sub-doc-page.tsx | 14 ++ .../components/sub-pages/sub-home-page.tsx | 28 ++- .../src/components/tables/files-table.tsx | 201 ++++++++++++++++++ 8 files changed, 301 insertions(+), 55 deletions(-) create mode 100644 apps/frontend/src/components/sub-pages/index.tsx create mode 100644 apps/frontend/src/components/sub-pages/sub-doc-page.tsx create mode 100644 apps/frontend/src/components/tables/files-table.tsx diff --git a/apps/frontend/next-env.d.ts b/apps/frontend/next-env.d.ts index 4f11a03..40c3d68 100644 --- a/apps/frontend/next-env.d.ts +++ b/apps/frontend/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. diff --git a/apps/frontend/src/app/layout.tsx b/apps/frontend/src/app/layout.tsx index f266edd..20a7251 100644 --- a/apps/frontend/src/app/layout.tsx +++ b/apps/frontend/src/app/layout.tsx @@ -15,7 +15,7 @@ export default function RootLayout({ }) { return ( - +
{children}