6import { vscDarkPlus } from "https://esm.sh/react-syntax-highlighter/dist/esm/styles/prism";
7
8function App() {
9 const [input, setInput] = useState("");
10 const [response, setResponse] = useState("");
101}
102
103function client() {
104 createRoot(document.getElementById("root")).render(<App />);
105}
109}
110
111export default async function server(request: Request): Promise<Response> {
112 const { OpenAI } = await import("https://esm.town/v/std/openai");
113 const openai = new OpenAI();
3let xmpp: Client | null = null;
4
5export default async function sendxmpp(target: string, body: string, keepalive = false) {
6 if (!xmpp) {
7 return new Promise((resolve, reject) => {
81`;
82
83function Instructions() {
84 return (
85 <div className="mb-4">
95}
96
97function TipList({ tips, selectedDate, sortOrder, setSortOrder }) {
98 const filteredTips = tips.filter((tip) => {
99 const tipDate = new Date(tip.timestamp);
145}
146
147function DateSelector({ selectedDate, setSelectedDate }) {
148 const [isCalendarOpen, setIsCalendarOpen] = useState(false);
149 const today = new Date();
232}
233
234function App({ initialTips }) {
235 const [amount, setAmount] = useState(20);
236 const [name, setName] = useState("");
350}
351
352function Confetti() {
353 useEffect(() => {
354 confetti({
362}
363
364function SuccessPage({ payments }) {
365 return (
366 <div className="min-h-screen bg-white text-black flex flex-col items-center justify-center p-4">
387}
388
389function client() {
390 const root = document.getElementById("root");
391 if (root.dataset.page === "success") {
402}
403
404export default async function server(req: Request): Promise<Response> {
405 const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
406 const SCHEMA_VERSION = 2;
81`;
82
83function Instructions() {
84 return (
85 <div className="mb-4">
95}
96
97function TipList({ tips, selectedDate, sortOrder, setSortOrder }) {
98 const filteredTips = tips.filter((tip) => {
99 const tipDate = new Date(tip.timestamp);
145}
146
147function DateSelector({ selectedDate, setSelectedDate }) {
148 const [isCalendarOpen, setIsCalendarOpen] = useState(false);
149 const today = new Date();
232}
233
234function App({ initialTips }) {
235 const [amount, setAmount] = useState(20);
236 const [name, setName] = useState("");
350}
351
352function Confetti() {
353 useEffect(() => {
354 confetti({
362}
363
364function SuccessPage({ payments }) {
365 return (
366 <div className="min-h-screen bg-white text-black flex flex-col items-center justify-center p-4">
387}
388
389function client() {
390 const root = document.getElementById("root");
391 if (root.dataset.page === "success") {
402}
403
404export default async function server(req: Request): Promise<Response> {
405 const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
406 const SCHEMA_VERSION = 2;
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function App() {
6 const [domain, setDomain] = useState("");
7 const [crawlResults, setCrawlResults] = useState(null);
92}
93
94function client() {
95 createRoot(document.getElementById("root")).render(<App />);
96}
100}
101
102export default async function server(req: Request): Promise<Response> {
103 const url = new URL(req.url);
104
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function App() {
6 const [domain, setDomain] = useState("");
7 const [crawlResults, setCrawlResults] = useState(null);
120`;
121
122export default async function server(req: Request): Promise<Response> {
123 const url = new URL(req.url);
124
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function WeatherIcon({ condition }) {
6 const iconMap = {
7 Clear: "☀️",
15}
16
17function App() {
18 const [city, setCity] = useState("");
19 const [weather, setWeather] = useState(null);
148}
149
150function client() {
151 createRoot(document.getElementById("root")).render(<App />);
152}
156}
157
158export default async function server(req: Request): Promise<Response> {
159 const url = new URL(req.url);
160
217}
218
219function getWeatherCondition(code: number): string {
220 if (code <= 1) return "Clear";
221 if (code <= 3) return "Partly cloudy";
5import { falProxyRequest } from "https://esm.town/v/stevekrouse/falProxyRequest";
6
7function App() {
8 const [prompt, setPrompt] = useState("");
9 const [imageUrl, setImageUrl] = useState("");
103}
104
105function client() {
106 createRoot(document.getElementById("root")).render(<App />);
107}
108if (typeof document !== "undefined") { client(); }
109
110export default async function server(req: Request): Promise<Response> {
111 const url = new URL(req.url);
112 if (url.pathname === "/") {
295}
296
297// Main Function
298export async function findBrokenLinks(websiteUrl) {export async function findBrokenLinks(websiteUrl) {
299 try {
300 console.log(`Starting findBrokenLinks for website: ${websiteUrl}`);
344
345// Usage
346export default async function(interval) {
347 console.log(`Starting broken link check at ${new Date().toISOString()}`);
348 const url = 'https://dateme.directory';
357 JSON.stringify(results.brokenLinks.external, null, 2));
358 } catch (error) {
359 console.error(`Error in main function: ${error.message}`);
360 }
361}
6import { tomorrow } from "https://esm.sh/react-syntax-highlighter/dist/esm/styles/prism";
7
8function App() {
9 const [prompt, setPrompt] = useState("hello llamapalooza");
10 const [code, setCode] = useState("");
18 >(null);
19
20 async function handleSubmit(e: React.FormEvent) {
21 e.preventDefault();
22 setLoading(true);
92}
93
94function client() {
95 createRoot(document.getElementById("root")!).render(<App />);
96}
100}
101
102function extractCodeFromFence(text: string): string {
103 const htmlMatch = text.match(/```html\n([\s\S]*?)\n```/);
104 return htmlMatch ? htmlMatch[1].trim() : text;
105}
106
107export default async function server(req: Request): Promise<Response> {
108 if (req.method === "POST") {
109 const client = new Cerebras();