Fix lint errors

This commit is contained in:
Alex Gleason committed 2025-07-16 16:29:20 -05:00
1 parent 08024d2269
commit 96b7d31475
16 files changed
+152 -106

No files matched your search

+8 -7
View File
@@ -1,21 +1,22 @@
import { useSeoMeta } from '@unhead/react';
// FIXME: Update this page (the content is just a fallback if you fail to update the page)
const Index = () => {
useSeoMeta({
title: 'Welcome to Your Blank App',
description: 'A modern Nostr client application built with React, TailwindCSS, and Nostrify.',
title: 'Shakespeare - AI-Powered Nostr Development',
description: 'Build custom Nostr websites with AI assistance using Shakespeare, an AI-powered development environment.',
});
return (
<div className="min-h-screen flex items-center justify-center bg-gray-100 dark:bg-gray-900">
<div className="text-center">
<h1 className="text-4xl font-bold mb-4 text-gray-900 dark:text-gray-100">
Welcome to Your Blank App
Shakespeare
</h1>
<p className="text-xl text-gray-600 dark:text-gray-400">
Start building your amazing project here!
<p className="text-xl text-gray-600 dark:text-gray-400 mb-2">
AI-Powered Nostr Development
</p>
<p className="text-lg text-gray-500 dark:text-gray-500">
Build custom Nostr websites with AI assistance
</p>
</div>
</div>
+15 -15
View File
@@ -1,10 +1,10 @@
import { useState, useEffect } from 'react';
import { useState, useEffect, useCallback } from 'react';
import { useParams } from 'react-router-dom';
import { fsManager, type Project } from '@/lib/fs';
import { ChatPane } from '@/components/Shakespeare/ChatPane';
import { PreviewPane } from '@/components/Shakespeare/PreviewPane';
import { Button } from '@/components/ui/button';
import { ArrowLeft, Settings } from 'lucide-react';
import { ArrowLeft } from 'lucide-react';
import { useNavigate } from 'react-router-dom';
import { AISettingsDialog } from '@/components/ai/AISettingsDialog';
@@ -15,22 +15,22 @@ export function ProjectView() {
const [activeTab, setActiveTab] = useState<'preview' | 'code'>('preview');
const navigate = useNavigate();
useEffect(() => {
loadProject();
}, [projectId]);
const loadProject = async () => {
const loadProject = useCallback(async () => {
if (!projectId) return;
try {
const projectData = await fsManager.getProject(projectId);
setProject(projectData);
} catch (error) {
console.error('Failed to load project:', error);
} catch (_error) {
console.error('Failed to load project:', _error);
} finally {
setIsLoading(false);
}
};
}, [projectId]);
useEffect(() => {
loadProject();
}, [loadProject]);
if (isLoading) {
return (
@@ -70,7 +70,7 @@ export function ProjectView() {
<p className="text-sm text-muted-foreground">{project.id}</p>
</div>
</div>
<div className="flex items-center space-x-2">
<AISettingsDialog />
<div className="flex space-x-2">
@@ -97,9 +97,9 @@ export function ProjectView() {
<ChatPane projectId={project.id} projectName={project.name} />
</div>
<div className="flex-1">
<PreviewPane
projectId={project.id}
activeTab={activeTab}
<PreviewPane
projectId={project.id}
activeTab={activeTab}
/>
</div>
</div>