From 50392979a0fb069cce102bfd58ed43057f47040a Mon Sep 17 00:00:00 2001 From: Ed Castro Date: Sat, 6 Jul 2024 17:49:08 -0300 Subject: [PATCH 01/28] feat: basic community validator page, slug and backend structure --- apps/commune-governance/src/app/layout.tsx | 3 +- apps/commune-page/src/app/page.tsx | 3 +- .../components/delegate-module-percentage.tsx | 16 + .../src/app/components/module-card.tsx | 44 ++ apps/commune-validator/src/app/layout.tsx | 18 +- .../src/app/module/[...slug]/page.tsx | 116 +++++ apps/commune-validator/src/app/page.tsx | 40 +- apps/communex-roadmap/src/app/layout.tsx | 4 +- packages/api/src/router/module.ts | 15 +- packages/db/src/schema.ts | 16 + packages/ui/src/components/footer.tsx | 100 +--- packages/ui/src/components/header.tsx | 2 +- pnpm-lock.yaml | 444 +++++++++--------- 13 files changed, 493 insertions(+), 328 deletions(-) create mode 100644 apps/commune-validator/src/app/components/delegate-module-percentage.tsx create mode 100644 apps/commune-validator/src/app/components/module-card.tsx create mode 100644 apps/commune-validator/src/app/module/[...slug]/page.tsx diff --git a/apps/commune-governance/src/app/layout.tsx b/apps/commune-governance/src/app/layout.tsx index 17580098..301902e1 100644 --- a/apps/commune-governance/src/app/layout.tsx +++ b/apps/commune-governance/src/app/layout.tsx @@ -9,7 +9,6 @@ import { cairo } from "@commune-ts/ui/fonts"; import { Footer } from "@commune-ts/ui/footer"; import { Header } from "@commune-ts/ui/header"; -import { applicationsList } from "../utils/applications-list"; import { FooterDivider } from "./components/footer-divider"; // TODO this could come from the ui lib since the only thing that changes between apps is the title @@ -41,7 +40,7 @@ export default function RootLayout({ /> {children} -