From ef56ff44fd26bc8b19c699bb56acb747eb659e81 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 27 Sep 2025 21:48:02 +0000 Subject: [PATCH] Prettier format pending files --- client/App.tsx | 5 +- client/components/Layout.tsx | 17 +++- client/contexts/AuthContext.tsx | 4 +- client/lib/aethex-database-adapter.ts | 73 +++++++++----- client/lib/aethex-social-service.ts | 11 ++- client/pages/Admin.tsx | 94 ++++++++++++++---- client/pages/Index.tsx | 90 +++++++++++++---- client/pages/Network.tsx | 137 +++++++++++++++++++++----- 8 files changed, 333 insertions(+), 98 deletions(-) diff --git a/client/App.tsx b/client/App.tsx index 10de29b9..cfd5ff9d 100644 --- a/client/App.tsx +++ b/client/App.tsx @@ -52,7 +52,10 @@ const App = () => ( } /> } /> } /> - } /> + } + /> } /> {/* Service routes */} diff --git a/client/components/Layout.tsx b/client/components/Layout.tsx index 2a17c578..4263f64a 100644 --- a/client/components/Layout.tsx +++ b/client/components/Layout.tsx @@ -63,7 +63,9 @@ export default function Layout({ children }: LayoutProps) { {(() => { const isOwner = Array.isArray(roles) && roles.includes("owner"); const navItems = user - ? (isOwner ? [{ name: "Admin", href: "/admin" }, ...userNavigation] : userNavigation) + ? isOwner + ? [{ name: "Admin", href: "/admin" }, ...userNavigation] + : userNavigation : navigation; return navItems.map((item, index) => ( - + @@ -54,16 +75,37 @@ export default function Admin() {

Admin Panel

-

Site Owner • Admin • Founder

+

+ Site Owner • Admin • Founder +

- Site Owner - Admin - Founder + + Site Owner + + + Admin + + + Founder +
- - + +
@@ -74,12 +116,15 @@ export default function Admin() { Access Control - Owner-only access is enforced by email + + Owner-only access is enforced by email +
  • - Owner: mrpiglr@gmail.com + Owner:{" "} + mrpiglr@gmail.com
  • All other users are denied access
@@ -92,7 +137,9 @@ export default function Admin() { Users & Roles - Future: manage roles, invitations, and status + + Future: manage roles, invitations, and status +

Coming soon

@@ -108,7 +155,12 @@ export default function Admin() { Branding, legal, integrations - + @@ -138,8 +190,16 @@ export default function Admin() { Common admin operations - - + + diff --git a/client/pages/Index.tsx b/client/pages/Index.tsx index 3e17f226..e69c4bc9 100644 --- a/client/pages/Index.tsx +++ b/client/pages/Index.tsx @@ -141,9 +141,9 @@ export default function Index() { Crafting Digital Realities

- Where vision meets execution. We craft experiences through - design, development, and community. -

+ Where vision meets execution. We craft experiences through + design, development, and community. +

@@ -247,8 +247,12 @@ export default function Index() {
-

Everything We Offer

-

Explore services, programs, resources, and community

+

+ Everything We Offer +

+

+ Explore services, programs, resources, and community +

@@ -258,7 +262,9 @@ export default function Index() { Studios and indie support - + @@ -268,7 +274,9 @@ export default function Index() { Architecture & delivery - + @@ -278,7 +286,9 @@ export default function Index() { Programs and guidance - + @@ -288,7 +298,9 @@ export default function Index() { Innovation and R&D - +
@@ -301,8 +313,12 @@ export default function Index() {
- - + +
@@ -314,8 +330,12 @@ export default function Index() {
- - + +
@@ -327,8 +347,12 @@ export default function Index() {
- - + +
@@ -355,12 +379,36 @@ export default function Index() { {/* Interactive Technology Grid */}
{[ - { name: "Game Studios", status: "Active", color: "from-purple-500 to-blue-600" }, - { name: "Design Systems", status: "Evolving", color: "from-blue-500 to-green-600" }, - { name: "Creator Tools", status: "Live", color: "from-green-500 to-yellow-600" }, - { name: "Launch Ops", status: "Scaling", color: "from-yellow-500 to-red-600" }, - { name: "Content Pipeline", status: "In Progress", color: "from-red-500 to-purple-600" }, - { name: "Edge Experiences", status: "Deployed", color: "from-purple-500 to-pink-600" }, + { + name: "Game Studios", + status: "Active", + color: "from-purple-500 to-blue-600", + }, + { + name: "Design Systems", + status: "Evolving", + color: "from-blue-500 to-green-600", + }, + { + name: "Creator Tools", + status: "Live", + color: "from-green-500 to-yellow-600", + }, + { + name: "Launch Ops", + status: "Scaling", + color: "from-yellow-500 to-red-600", + }, + { + name: "Content Pipeline", + status: "In Progress", + color: "from-red-500 to-purple-600", + }, + { + name: "Edge Experiences", + status: "Deployed", + color: "from-purple-500 to-pink-600", + }, ].map((tech, index) => ( ; + return ( + + ); } if (!user) return null; @@ -68,14 +80,28 @@ export default function Network() {
- {profile?.full_name?.[0] || user.email?.[0]?.toUpperCase()} + + {profile?.full_name?.[0] || + user.email?.[0]?.toUpperCase()} +
-

{profile?.full_name || user.email?.split("@")[0]}

-

{profile?.role || "Member"}

+

+ {profile?.full_name || user.email?.split("@")[0]} +

+

+ {profile?.role || "Member"} +

- Level {profile?.level || 1} - {(profile as any)?.experience_level || "beginner"} + + Level {profile?.level || 1} + + + {(profile as any)?.experience_level || "beginner"} +
@@ -83,8 +109,18 @@ export default function Network() {

{profile.bio}

)}
- - + +
@@ -92,25 +128,50 @@ export default function Network() { Recommendations - People who align with your interests + + People who align with your interests + {recommended.slice(0, 3).map((r) => (
- {(r.full_name || r.username || "U")[0]} + + + + {(r.full_name || r.username || "U")[0]} + +
-
{r.full_name || r.username}
-
{r.bio?.slice(0, 40) || "Member"}
+
+ {r.full_name || r.username} +
+
+ {r.bio?.slice(0, 40) || "Member"} +
-
))} {recommended.length === 0 && ( -
No recommendations yet.
+
+ No recommendations yet. +
)}
@@ -121,25 +182,53 @@ export default function Network() { Discover People - Connect with creators, clients, and members + + Connect with creators, clients, and members + {recommended.map((r) => ( -
+
- {(r.full_name || r.username || "U")[0]} + + + + {(r.full_name || r.username || "U")[0]} + +
-
{r.full_name || r.username}
-
{r.bio?.slice(0, 80) || "Member"}
+
+ {r.full_name || r.username} +
+
+ {r.bio?.slice(0, 80) || "Member"} +
-
))} {recommended.length === 0 && ( -
No people found yet.
+
+ No people found yet. +
)}