From d669ee159ad544dd4b8580dcec81bedad93ffe51 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Fri, 8 Aug 2025 11:12:21 +0000 Subject: [PATCH] Prettier format pending files --- client/pages/DocsLayout.tsx | 41 +++++--- client/pages/Status.tsx | 149 +++++++++++++++------------ client/pages/Tutorials.tsx | 151 ++++++++++++++++++---------- client/pages/docs/DocsOverview.tsx | 119 +++++++++++++++------- client/pages/docs/DocsTutorials.tsx | 139 ++++++++++++++++--------- 5 files changed, 386 insertions(+), 213 deletions(-) diff --git a/client/pages/DocsLayout.tsx b/client/pages/DocsLayout.tsx index fb5b5f7a..cb62e1c0 100644 --- a/client/pages/DocsLayout.tsx +++ b/client/pages/DocsLayout.tsx @@ -30,7 +30,7 @@ const navigation = [ }, { name: "Tutorials", - href: "/docs/tutorials", + href: "/docs/tutorials", icon: Video, badge: "New", }, @@ -65,24 +65,27 @@ export default function DocsLayout() { const getBreadcrumb = () => { const path = location.pathname; - const segments = path.split('/').filter(Boolean); - + const segments = path.split("/").filter(Boolean); + if (segments.length <= 1) return []; - + const breadcrumbs = []; - let currentPath = ''; - + let currentPath = ""; + segments.forEach((segment, index) => { currentPath += `/${segment}`; - if (index > 0) { // Skip the first 'docs' segment + if (index > 0) { + // Skip the first 'docs' segment breadcrumbs.push({ - name: segment.charAt(0).toUpperCase() + segment.slice(1).replace('-', ' '), + name: + segment.charAt(0).toUpperCase() + + segment.slice(1).replace("-", " "), href: currentPath, - isLast: index === segments.length - 1 + isLast: index === segments.length - 1, }); } }); - + return breadcrumbs; }; @@ -107,7 +110,11 @@ export default function DocsLayout() { onClick={() => setSidebarOpen(!sidebarOpen)} className="lg:hidden p-2 text-white bg-slate-800 rounded-md" > - {sidebarOpen ? : } + {sidebarOpen ? ( + + ) : ( + + )} @@ -123,7 +130,7 @@ export default function DocsLayout() { {crumb.isLast ? ( {crumb.name} ) : ( - @@ -149,21 +156,23 @@ export default function DocsLayout() {
{/* Sidebar */} -
+
- + {/* Overall Status */} @@ -211,7 +219,7 @@ export default function Status() {

- {overall.status.toUpperCase()} @@ -231,11 +239,16 @@ export default function Status() {

{metric.name}

-

- {metric.value}{metric.unit} +

+ {metric.value} + {metric.unit}

- +
@@ -257,28 +270,36 @@ export default function Status() {
{services.map((service, index) => ( -
{getStatusIcon(service.status)}
-

{service.name}

-

{service.description}

+

+ {service.name} +

+

+ {service.description} +

Response Time

-

{service.responseTime}ms

+

+ {service.responseTime}ms +

Uptime

-

{service.uptime}

+

+ {service.uptime} +

- {service.status} @@ -311,14 +332,15 @@ export default function Status() { Project Management Performance Restored

- Response times have returned to normal after brief degradation + Response times have returned to normal after brief + degradation

2 hours ago • Resolved

- +
@@ -326,7 +348,8 @@ export default function Status() { Scheduled Maintenance Completed

- Database optimization and security updates applied successfully + Database optimization and security updates applied + successfully

1 day ago • Resolved diff --git a/client/pages/Tutorials.tsx b/client/pages/Tutorials.tsx index d416b969..bfc6aa9c 100644 --- a/client/pages/Tutorials.tsx +++ b/client/pages/Tutorials.tsx @@ -1,6 +1,12 @@ import { useState } from "react"; import Layout from "@/components/Layout"; -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; @@ -31,7 +37,7 @@ interface Tutorial { title: string; description: string; category: string; - difficulty: 'beginner' | 'intermediate' | 'advanced'; + difficulty: "beginner" | "intermediate" | "advanced"; duration: string; author: string; rating: number; @@ -47,7 +53,8 @@ const tutorials: Tutorial[] = [ { id: "1", title: "Getting Started with AeThex Platform", - description: "Complete beginner's guide to navigating and using the AeThex development platform", + description: + "Complete beginner's guide to navigating and using the AeThex development platform", category: "Platform", difficulty: "beginner", duration: "15 min", @@ -56,13 +63,15 @@ const tutorials: Tutorial[] = [ views: 2847, likes: 234, tags: ["getting-started", "platform", "basics"], - thumbnail: "https://images.unsplash.com/photo-1611224923853-80b023f02d71?w=400", - isNew: true + thumbnail: + "https://images.unsplash.com/photo-1611224923853-80b023f02d71?w=400", + isNew: true, }, { - id: "2", + id: "2", title: "Building Your First Game with Unity & AeThex", - description: "Step-by-step tutorial for creating a 2D platformer game using Unity and AeThex tools", + description: + "Step-by-step tutorial for creating a 2D platformer game using Unity and AeThex tools", category: "Game Development", difficulty: "beginner", duration: "45 min", @@ -71,12 +80,14 @@ const tutorials: Tutorial[] = [ views: 1923, likes: 187, tags: ["unity", "2d", "platformer", "game-dev"], - thumbnail: "https://images.unsplash.com/photo-1550745165-9bc0b252726f?w=400" + thumbnail: + "https://images.unsplash.com/photo-1550745165-9bc0b252726f?w=400", }, { id: "3", title: "Advanced AI Integration Patterns", - description: "Learn how to integrate advanced AI systems into your projects using AeThex AI tools", + description: + "Learn how to integrate advanced AI systems into your projects using AeThex AI tools", category: "AI/ML", difficulty: "advanced", duration: "60 min", @@ -85,13 +96,15 @@ const tutorials: Tutorial[] = [ views: 856, likes: 98, tags: ["ai", "machine-learning", "integration", "advanced"], - thumbnail: "https://images.unsplash.com/photo-1507146426996-ef05306b995a?w=400", - isPremium: true + thumbnail: + "https://images.unsplash.com/photo-1507146426996-ef05306b995a?w=400", + isPremium: true, }, { id: "4", title: "Database Design Best Practices", - description: "Master database architecture and optimization for high-performance applications", + description: + "Master database architecture and optimization for high-performance applications", category: "Backend", difficulty: "intermediate", duration: "35 min", @@ -100,12 +113,14 @@ const tutorials: Tutorial[] = [ views: 1456, likes: 142, tags: ["database", "sql", "optimization", "backend"], - thumbnail: "https://images.unsplash.com/photo-1544383835-bda2bc66a55d?w=400" + thumbnail: + "https://images.unsplash.com/photo-1544383835-bda2bc66a55d?w=400", }, { id: "5", title: "UI/UX Design for Games", - description: "Create compelling user interfaces and experiences for modern games", + description: + "Create compelling user interfaces and experiences for modern games", category: "Design", difficulty: "intermediate", duration: "40 min", @@ -114,12 +129,14 @@ const tutorials: Tutorial[] = [ views: 2134, likes: 203, tags: ["ui", "ux", "design", "games"], - thumbnail: "https://images.unsplash.com/photo-1541701494587-cb58502866ab?w=400" + thumbnail: + "https://images.unsplash.com/photo-1541701494587-cb58502866ab?w=400", }, { id: "6", title: "Performance Optimization Techniques", - description: "Advanced strategies for optimizing application performance and reducing load times", + description: + "Advanced strategies for optimizing application performance and reducing load times", category: "Performance", difficulty: "advanced", duration: "50 min", @@ -128,9 +145,10 @@ const tutorials: Tutorial[] = [ views: 987, likes: 124, tags: ["performance", "optimization", "advanced"], - thumbnail: "https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=400", - isNew: true - } + thumbnail: + "https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=400", + isNew: true, + }, ]; const categories = [ @@ -151,30 +169,45 @@ export default function Tutorials() { const getDifficultyColor = (difficulty: string) => { switch (difficulty) { - case 'beginner': return 'bg-green-500'; - case 'intermediate': return 'bg-yellow-500'; - case 'advanced': return 'bg-red-500'; - default: return 'bg-gray-500'; + case "beginner": + return "bg-green-500"; + case "intermediate": + return "bg-yellow-500"; + case "advanced": + return "bg-red-500"; + default: + return "bg-gray-500"; } }; const getDifficultyTextColor = (difficulty: string) => { switch (difficulty) { - case 'beginner': return 'text-green-400'; - case 'intermediate': return 'text-yellow-400'; - case 'advanced': return 'text-red-400'; - default: return 'text-gray-400'; + case "beginner": + return "text-green-400"; + case "intermediate": + return "text-yellow-400"; + case "advanced": + return "text-red-400"; + default: + return "text-gray-400"; } }; - const filteredTutorials = tutorials.filter(tutorial => { - const matchesSearch = tutorial.title.toLowerCase().includes(searchTerm.toLowerCase()) || - tutorial.description.toLowerCase().includes(searchTerm.toLowerCase()) || - tutorial.tags.some(tag => tag.toLowerCase().includes(searchTerm.toLowerCase())); - const matchesCategory = selectedCategory === "all" || - tutorial.category.toLowerCase().replace(/[\/\s]/g, '-') === selectedCategory; - const matchesDifficulty = selectedDifficulty === "all" || tutorial.difficulty === selectedDifficulty; - + const filteredTutorials = tutorials.filter((tutorial) => { + const matchesSearch = + tutorial.title.toLowerCase().includes(searchTerm.toLowerCase()) || + tutorial.description.toLowerCase().includes(searchTerm.toLowerCase()) || + tutorial.tags.some((tag) => + tag.toLowerCase().includes(searchTerm.toLowerCase()), + ); + const matchesCategory = + selectedCategory === "all" || + tutorial.category.toLowerCase().replace(/[\/\s]/g, "-") === + selectedCategory; + const matchesDifficulty = + selectedDifficulty === "all" || + tutorial.difficulty === selectedDifficulty; + return matchesSearch && matchesCategory && matchesDifficulty; }); @@ -188,9 +221,10 @@ export default function Tutorials() { AeThex Tutorials

- Master cutting-edge development skills with our comprehensive tutorial library + Master cutting-edge development skills with our comprehensive + tutorial library

- + {/* Search and Filters */}
@@ -247,13 +281,15 @@ export default function Tutorials() { onClick={() => setSelectedCategory(category.id)} className={`w-full flex items-center justify-between p-3 rounded-lg transition-all ${ selectedCategory === category.id - ? 'bg-purple-600 text-white' - : 'bg-slate-900/50 text-gray-300 hover:bg-slate-700/50' + ? "bg-purple-600 text-white" + : "bg-slate-900/50 text-gray-300 hover:bg-slate-700/50" }`} >
- {category.name} + + {category.name} +
{category.count} @@ -275,7 +311,10 @@ export default function Tutorials() {
{filteredTutorials.map((tutorial) => ( - +
- @@ -299,25 +341,27 @@ export default function Tutorials() { )}
- +
{tutorial.category} - + {tutorial.difficulty}
- +

{tutorial.title}

- +

{tutorial.description}

- +
@@ -330,7 +374,7 @@ export default function Tutorials() {
- +
@@ -348,10 +392,14 @@ export default function Tutorials() {
- +
{tutorial.tags.slice(0, 3).map((tag) => ( - + {tag} ))} @@ -369,7 +417,8 @@ export default function Tutorials() { No tutorials found

- Try adjusting your search terms or filters to find what you're looking for. + Try adjusting your search terms or filters to find what + you're looking for.

diff --git a/client/pages/docs/DocsOverview.tsx b/client/pages/docs/DocsOverview.tsx index 4d4d0674..e22605ea 100644 --- a/client/pages/docs/DocsOverview.tsx +++ b/client/pages/docs/DocsOverview.tsx @@ -1,4 +1,10 @@ -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; import { Link } from "react-router-dom"; @@ -26,16 +32,17 @@ const quickStartCards = [ icon: Rocket, href: "/docs/getting-started", duration: "5 min read", - difficulty: "Beginner" + difficulty: "Beginner", }, { title: "First Tutorial", - description: "Follow your first interactive tutorial to build something amazing", + description: + "Follow your first interactive tutorial to build something amazing", icon: Play, href: "/docs/tutorials", duration: "15 min", difficulty: "Beginner", - isNew: true + isNew: true, }, { title: "API Integration", @@ -43,7 +50,7 @@ const quickStartCards = [ icon: Code, href: "/docs/api", duration: "10 min read", - difficulty: "Intermediate" + difficulty: "Intermediate", }, { title: "CLI Tools", @@ -51,8 +58,8 @@ const quickStartCards = [ icon: Terminal, href: "/docs/cli", duration: "8 min read", - difficulty: "Intermediate" - } + difficulty: "Intermediate", + }, ]; const resourceSections = [ @@ -61,8 +68,13 @@ const resourceSections = [ description: "Step-by-step tutorials and comprehensive guides", icon: Video, href: "/docs/tutorials", - items: ["Platform Quick Start", "Game Development", "AI Integration", "Performance Optimization"], - badge: "6 tutorials" + items: [ + "Platform Quick Start", + "Game Development", + "AI Integration", + "Performance Optimization", + ], + badge: "6 tutorials", }, { title: "API Reference", @@ -70,16 +82,21 @@ const resourceSections = [ icon: Code, href: "/docs/api", items: ["Authentication", "Project Management", "User APIs", "Webhooks"], - badge: "40+ endpoints" + badge: "40+ endpoints", }, { title: "Examples", description: "Ready-to-use code examples and templates", icon: FileText, href: "/docs/examples", - items: ["React Components", "Game Templates", "API Integration", "Deployment Scripts"], - badge: "25+ examples" - } + items: [ + "React Components", + "Game Templates", + "API Integration", + "Deployment Scripts", + ], + badge: "25+ examples", + }, ]; const featuredUpdates = [ @@ -88,20 +105,20 @@ const featuredUpdates = [ description: "Learn how to integrate cutting-edge AI features", date: "2 days ago", type: "Tutorial", - isNew: true + isNew: true, }, { title: "API v2.1 Documentation", description: "Updated API docs with new endpoints and features", date: "1 week ago", - type: "API" + type: "API", }, { title: "Performance Best Practices", description: "New guide on optimizing application performance", date: "2 weeks ago", - type: "Guide" - } + type: "Guide", + }, ]; export default function DocsOverview() { @@ -113,18 +130,28 @@ export default function DocsOverview() { Welcome to AeThex Documentation

- Everything you need to build, deploy, and scale amazing projects with AeThex. - Get started with our guides, explore our APIs, and learn from comprehensive tutorials. + Everything you need to build, deploy, and scale amazing projects with + AeThex. Get started with our guides, explore our APIs, and learn from + comprehensive tutorials.

- +
- -
{featuredUpdates.map((update, index) => ( - +
@@ -242,7 +285,9 @@ export default function DocsOverview() { {update.type}
-

{update.description}

+

+ {update.description} +

{update.date}

@@ -267,7 +312,10 @@ export default function DocsOverview() { - @@ -285,7 +333,10 @@ export default function DocsOverview() { - diff --git a/client/pages/docs/DocsTutorials.tsx b/client/pages/docs/DocsTutorials.tsx index 920a7f88..e9d5593b 100644 --- a/client/pages/docs/DocsTutorials.tsx +++ b/client/pages/docs/DocsTutorials.tsx @@ -1,5 +1,11 @@ import { useState } from "react"; -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; @@ -27,7 +33,7 @@ interface DocsTutorial { title: string; description: string; category: string; - difficulty: 'beginner' | 'intermediate' | 'advanced'; + difficulty: "beginner" | "intermediate" | "advanced"; duration: string; author: string; rating: number; @@ -35,7 +41,7 @@ interface DocsTutorial { likes: number; tags: string[]; isNew?: boolean; - type: 'video' | 'article' | 'interactive'; + type: "video" | "article" | "interactive"; path: string; } @@ -43,7 +49,8 @@ const docsTutorials: DocsTutorial[] = [ { id: "1", title: "AeThex Platform Quick Start", - description: "Get up and running with AeThex in under 10 minutes. Learn the basics of project creation, navigation, and core features.", + description: + "Get up and running with AeThex in under 10 minutes. Learn the basics of project creation, navigation, and core features.", category: "Getting Started", difficulty: "beginner", duration: "8 min", @@ -54,12 +61,13 @@ const docsTutorials: DocsTutorial[] = [ tags: ["platform", "basics", "quickstart"], isNew: true, type: "video", - path: "/docs/tutorials/quickstart" + path: "/docs/tutorials/quickstart", }, { id: "2", title: "Project Setup and Configuration", - description: "Deep dive into project configuration, environment setup, and best practices for organizing your AeThex projects.", + description: + "Deep dive into project configuration, environment setup, and best practices for organizing your AeThex projects.", category: "Setup", difficulty: "beginner", duration: "15 min", @@ -69,12 +77,13 @@ const docsTutorials: DocsTutorial[] = [ likes: 287, tags: ["setup", "configuration", "projects"], type: "article", - path: "/docs/tutorials/project-setup" + path: "/docs/tutorials/project-setup", }, { id: "3", title: "Working with the AeThex API", - description: "Comprehensive guide to integrating with AeThex APIs, authentication, rate limiting, and error handling.", + description: + "Comprehensive guide to integrating with AeThex APIs, authentication, rate limiting, and error handling.", category: "API Integration", difficulty: "intermediate", duration: "25 min", @@ -84,12 +93,13 @@ const docsTutorials: DocsTutorial[] = [ likes: 198, tags: ["api", "integration", "authentication"], type: "interactive", - path: "/docs/tutorials/api-integration" + path: "/docs/tutorials/api-integration", }, { id: "4", title: "Building Games with AeThex Tools", - description: "Step-by-step tutorial for creating your first game using AeThex development tools and frameworks.", + description: + "Step-by-step tutorial for creating your first game using AeThex development tools and frameworks.", category: "Game Development", difficulty: "intermediate", duration: "45 min", @@ -99,12 +109,13 @@ const docsTutorials: DocsTutorial[] = [ likes: 523, tags: ["games", "development", "tools"], type: "video", - path: "/docs/tutorials/game-development" + path: "/docs/tutorials/game-development", }, { id: "5", title: "Advanced Database Patterns", - description: "Learn advanced database design patterns, optimization techniques, and performance tuning for AeThex applications.", + description: + "Learn advanced database design patterns, optimization techniques, and performance tuning for AeThex applications.", category: "Database", difficulty: "advanced", duration: "35 min", @@ -114,12 +125,13 @@ const docsTutorials: DocsTutorial[] = [ likes: 165, tags: ["database", "optimization", "patterns"], type: "article", - path: "/docs/tutorials/database-patterns" + path: "/docs/tutorials/database-patterns", }, { id: "6", title: "AI Integration Workshop", - description: "Hands-on workshop for integrating AI and machine learning capabilities into your AeThex projects.", + description: + "Hands-on workshop for integrating AI and machine learning capabilities into your AeThex projects.", category: "AI/ML", difficulty: "advanced", duration: "60 min", @@ -130,8 +142,8 @@ const docsTutorials: DocsTutorial[] = [ tags: ["ai", "machine-learning", "integration"], isNew: true, type: "interactive", - path: "/docs/tutorials/ai-integration" - } + path: "/docs/tutorials/ai-integration", + }, ]; const categories = [ @@ -152,40 +164,60 @@ export default function DocsTutorials() { const getDifficultyColor = (difficulty: string) => { switch (difficulty) { - case 'beginner': return 'bg-green-500'; - case 'intermediate': return 'bg-yellow-500'; - case 'advanced': return 'bg-red-500'; - default: return 'bg-gray-500'; + case "beginner": + return "bg-green-500"; + case "intermediate": + return "bg-yellow-500"; + case "advanced": + return "bg-red-500"; + default: + return "bg-gray-500"; } }; const getTypeIcon = (type: string) => { switch (type) { - case 'video': return Play; - case 'article': return BookOpen; - case 'interactive': return Code; - default: return BookOpen; + case "video": + return Play; + case "article": + return BookOpen; + case "interactive": + return Code; + default: + return BookOpen; } }; const getTypeColor = (type: string) => { switch (type) { - case 'video': return 'text-red-400'; - case 'article': return 'text-blue-400'; - case 'interactive': return 'text-green-400'; - default: return 'text-gray-400'; + case "video": + return "text-red-400"; + case "article": + return "text-blue-400"; + case "interactive": + return "text-green-400"; + default: + return "text-gray-400"; } }; - const filteredTutorials = docsTutorials.filter(tutorial => { - const matchesSearch = tutorial.title.toLowerCase().includes(searchTerm.toLowerCase()) || - tutorial.description.toLowerCase().includes(searchTerm.toLowerCase()) || - tutorial.tags.some(tag => tag.toLowerCase().includes(searchTerm.toLowerCase())); - const matchesCategory = selectedCategory === "all" || - tutorial.category.toLowerCase().replace(/[\/\s]/g, '-') === selectedCategory; - const matchesDifficulty = selectedDifficulty === "all" || tutorial.difficulty === selectedDifficulty; - const matchesType = selectedType === "all" || tutorial.type === selectedType; - + const filteredTutorials = docsTutorials.filter((tutorial) => { + const matchesSearch = + tutorial.title.toLowerCase().includes(searchTerm.toLowerCase()) || + tutorial.description.toLowerCase().includes(searchTerm.toLowerCase()) || + tutorial.tags.some((tag) => + tag.toLowerCase().includes(searchTerm.toLowerCase()), + ); + const matchesCategory = + selectedCategory === "all" || + tutorial.category.toLowerCase().replace(/[\/\s]/g, "-") === + selectedCategory; + const matchesDifficulty = + selectedDifficulty === "all" || + tutorial.difficulty === selectedDifficulty; + const matchesType = + selectedType === "all" || tutorial.type === selectedType; + return matchesSearch && matchesCategory && matchesDifficulty && matchesType; }); @@ -197,9 +229,10 @@ export default function DocsTutorials() { Documentation Tutorials

- Step-by-step guides and interactive tutorials to help you master AeThex + Step-by-step guides and interactive tutorials to help you master + AeThex

- + {/* Filters */}
@@ -257,8 +290,8 @@ export default function DocsTutorials() { onClick={() => setSelectedCategory(category.id)} className={`w-full flex items-center space-x-3 p-3 rounded-lg transition-all ${ selectedCategory === category.id - ? 'bg-purple-600 text-white' - : 'bg-slate-900/50 text-gray-300 hover:bg-slate-700/50' + ? "bg-purple-600 text-white" + : "bg-slate-900/50 text-gray-300 hover:bg-slate-700/50" }`} > @@ -282,16 +315,23 @@ export default function DocsTutorials() { {filteredTutorials.map((tutorial) => { const TypeIcon = getTypeIcon(tutorial.type); return ( - +
- + {tutorial.category} - + {tutorial.difficulty} {tutorial.isNew && ( @@ -300,15 +340,15 @@ export default function DocsTutorials() { )}
- +

{tutorial.title}

- +

{tutorial.description}

- +
@@ -332,7 +372,7 @@ export default function DocsTutorials() { {tutorial.likes}
- +