updates
Browse filesFiles changed (4)
1658 unmodified lines1659166016611662166216631664166524 unmodified lines169016911692169316931694169516961658 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) 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 Space here]({space_url})", visible=True) 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 lines26272829302930313233446 unmodified lines48048148248348448348448548648725 unmodified lines // Landing page state - show landing page if no messages exist const [showLandingPage, setShowLandingPage] = useState(true); // Mobile view state: 'chat', 'editor', or 'settings' const [mobileView, setMobileView] = useState<'chat' | 'editor' | 'settings'>('editor'); // Mobile view state: 'chat', 'editor', or 'settings' - start on chat for mobile const [mobileView, setMobileView] = useState<'chat' | 'editor' | 'settings'>('chat');
// Load messages from localStorage on mount (client-side only to avoid hydration issues) useEffect(() => {446 unmodified lines const deployMessage: Message = { role: 'assistant', content: existingSpace ? `✅ Updated! [Open your Space here](${response.space_url})` : `✅ Deployed! [Open your Space here](${response.space_url})`, ? `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 lines68697071727374757667 unmodified lines <ReactMarkdown remarkPlugins={[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 lines479480481482482483484485478 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 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