updates
Browse filesFiles changed (4)
1658 unmodified lines165916601661166216631664166524 unmodified lines16901691169216931694169516961658 unmodified lines)space_url = f"https://huggingface.co/spaces/{repo_id}"action_text = "Updated" if is_update else "Deployed"return gr.update(value=f"✅ {action_text}! [Open your Space here]({space_url})", visible=True)except Exception as e:error_msg = str(e)if "403 Forbidden" in error_msg and "write token" in error_msg:24 unmodified lines)space_url = f"https://huggingface.co/spaces/{repo_id}"action_text = "Updated" if is_update else "Deployed"return gr.update(value=f"✅ {action_text}! [Open your Space here]({space_url})", visible=True)except Exception as e:error_msg = str(e)if "403 Forbidden" in error_msg and "write token" in error_msg:1658 unmodified lines165916601661166216631664166524 unmodified lines16901691169216931694169516961658 unmodified lines)space_url = f"https://huggingface.co/spaces/{repo_id}"action_text = "Updated" if is_update else "Deployed"return gr.update(value=f"{action_text}! [Open your app here]({space_url})", visible=True)except Exception as e:error_msg = str(e)if "403 Forbidden" in error_msg and "write token" in error_msg:24 unmodified lines)space_url = f"https://huggingface.co/spaces/{repo_id}"action_text = "Updated" if is_update else "Deployed"return gr.update(value=f"{action_text}! [Open your app here]({space_url})", visible=True)except Exception as e:error_msg = str(e)if "403 Forbidden" in error_msg and "write token" in error_msg:
25 unmodified lines2627282930313233446 unmodified lines48048148248348448548648725 unmodified lines// Landing page state - show landing page if no messages existconst [showLandingPage, setShowLandingPage] = useState(true);// Mobile view state: 'chat', 'editor', or 'settings'const [mobileView, setMobileView] = useState<'chat' | 'editor' | 'settings'>('editor');// Load messages from localStorage on mount (client-side only to avoid hydration issues)useEffect(() => {446 unmodified linesconst deployMessage: Message = {role: 'assistant',content: existingSpace? `✅ Updated! [Open your Space here](${response.space_url})`: `✅ Deployed! [Open your Space here](${response.space_url})`,timestamp: new Date().toISOString(),};setMessages((prev) => [...prev, deployMessage]);25 unmodified lines2627282930313233446 unmodified lines48048148248348448548648725 unmodified lines// Landing page state - show landing page if no messages existconst [showLandingPage, setShowLandingPage] = useState(true);// Mobile view state: 'chat', 'editor', or 'settings' - start on chat for mobileconst [mobileView, setMobileView] = useState<'chat' | 'editor' | 'settings'>('chat');// Load messages from localStorage on mount (client-side only to avoid hydration issues)useEffect(() => {446 unmodified linesconst deployMessage: Message = {role: 'assistant',content: existingSpace? `Updated! [Open your app here](${response.space_url})`: `Deployed! [Open your app here](${response.space_url})`,timestamp: new Date().toISOString(),};setMessages((prev) => [...prev, deployMessage]);
67 unmodified lines68697071727367 unmodified lines<ReactMarkdownremarkPlugins={[remarkGfm]}className="prose prose-invert prose-sm max-w-none [&>p]:my-0 [&>ul]:my-1 [&>ol]:my-1">{message.content}</ReactMarkdown>67 unmodified lines68697071727374757667 unmodified lines<ReactMarkdownremarkPlugins={[remarkGfm]}className="prose prose-invert prose-sm max-w-none [&>p]:my-0 [&>ul]:my-1 [&>ol]:my-1"components={{a: ({ node, ...props }) => <a {...props} target="_blank" rel="noopener noreferrer" />}}>{message.content}</ReactMarkdown>
478 unmodified lines479480481482483484485478 unmodified lines{trendingApps.length > 0 && (<div className="mt-16"><h3 className="text-2xl font-semibold text-white mb-6 text-center">Top 6 Trending Apps Built with AnyCoder</h3><div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">{trendingApps.map((app) => (478 unmodified lines479480481482483484485478 unmodified lines{trendingApps.length > 0 && (<div className="mt-16"><h3 className="text-2xl font-semibold text-white mb-6 text-center">Top Trending Apps Built with AnyCoder</h3><div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">{trendingApps.map((app) => (
anycoder_app/ui.py+2-2
frontend/src/app/page.tsx+4-4
frontend/src/components/ChatInterface.tsx+3
frontend/src/components/LandingPage.tsx+1-1