6);
7
8export async function uptimeCheck(url: string) {
9 let ok = true;
10 let reason: string;
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function App() {
6 const [url, setUrl] = useState("");
7 const [content, setContent] = useState("");
51}
52
53function client() {
54 createRoot(document.getElementById("root")).render(<App />);
55}
59}
60
61export default async function server(request: Request): Promise<Response> {
62 const { fetch } = await import("https://esm.town/v/std/fetch");
63
25}
26
27export function registerUser({
28 email,
29 username,
58}
59
60export function loginUser({
61 login,
62 password,
1import { Aptos, AptosConfig, Network } from "npm:@aptos-labs/ts-sdk";
2
3export default async function(req: Request): Promise<Response> {
4 return Response.json(
5 (await getPackageUpgradeTxns()).sort(t => t?.timestamp, "desc").map(t => ({
18);
19
20async function getPackageUpgradeTxns() {
21 const resource = await aptos.getAccountResource({
22 accountAddress: "0x4dcae85fc5559071906cd5c76b7420fcbb4b0a92f00ab40ffc394aadbbff5ee9",
31 query MyQuery {
32 user_transactions(
33 where: {sender: {_eq: "${address}"}, entry_function_id_str: {_eq: "0x6b3720cd988adeaf721ed9d4730da4324d52364871a68eac62b46d21e4d2fa99::package::publish_package"}}
34 order_by: {block_height: desc}
35 ) {
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function WeatherDashboard() {
6 const [location, setLocation] = useState({ latitude: 41.9973, longitude: 21.4280 }); // Default to Skopje
7 const [weatherData, setWeatherData] = useState(null);
10
11 useEffect(() => {
12 async function fetchWeather() {
13 try {
14 const response = await fetch(
142}
143
144function client() {
145 createRoot(document.getElementById("root")).render(<WeatherDashboard />);
146}
148if (typeof document !== "undefined") { client(); }
149
150export default async function server(request: Request): Promise<Response> {
151 return new Response(`
152 <html>
4import { marked } from "https://esm.sh/marked@4.3.0";
5
6function ConfirmationModal({ isOpen, onClose }) {
7 if (!isOpen) return null;
8
18}
19
20function App() {
21 const [sport, setSport] = useState("");
22 const [skillLevel, setSkillLevel] = useState("");
323}
324
325function client() {
326 createRoot(document.getElementById("root")).render(<App />);
327}
662`;
663
664async function server(request: Request): Promise<Response> {
665 if (request.method === "POST" && new URL(request.url).pathname === "/generate-training") {
666 const YOUTUBE_API_KEY = Deno.env.get("YOUTUBE_API_KEY2");
743 const { email } = await import("https://esm.town/v/std/email");
744
745 // Function to insert YouTube links into the training plan
746 const insertYouTubeLinks = (plan, links) => {
747 let modifiedPlan = plan;
805}
806
807async function getYouTubeVideoId(query, sport, apiKey, useApiKey = true) {
808 if (useApiKey) {
809 try {
825}
826
827function getFallbackYouTubeLink(query, sport) {
828 const searchQuery = encodeURIComponent(`${sport} ${query}`);
829 return `https://www.youtube.com/results?search_query=${searchQuery}`;
4import { marked } from "https://esm.sh/marked@4.3.0";
5
6function ConfirmationModal({ isOpen, onClose }) {
7 if (!isOpen) return null;
8
18}
19
20function App() {
21 const [sport, setSport] = useState("");
22 const [skillLevel, setSkillLevel] = useState("");
300}
301
302function client() {
303 createRoot(document.getElementById("root")).render(<App />);
304}
305if (typeof document !== "undefined") { client(); }
306
307export default async function server(request: Request): Promise<Response> {
308 return new Response(`
309 <html>
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function App() {
6 const [messages, setMessages] = useState([
7 { role: 'assistant', content: "Hi! I'm Yukti, your friendly female AI assistant. I can help you chat or generate images! How can I assist you today? 👩💻" }
199}
200
201function client() {
202 createRoot(document.getElementById("root")).render(<App />);
203}
204if (typeof document !== "undefined") { client(); }
205
206export default async function server(request: Request): Promise<Response> {
207 if (request.method === 'POST') {
208 const url = new URL(request.url);
61};
62
63function GroupConfigModal({
64 groups,
65 onClose,
220}
221
222function App() {
223 const [sequence, setSequence] = useState("");
224 const [uniprotId, setUniprotId] = useState("");
583}
584
585function client() {
586 createRoot(document.getElementById("root")).render(<App />);
587}
588if (typeof document !== "undefined") { client(); }
589
590export default async function server(request: Request): Promise<Response> {
591 return new Response(
592 `
3import { createRoot } from "https://esm.sh/react-dom/client";
4
5function WeatherDashboard() {
6 const [location, setLocation] = useState({ latitude: 40.7128, longitude: -74.0060 }); // Default to NYC
7 const [weatherData, setWeatherData] = useState(null);
9
10 useEffect(() => {
11 async function fetchWeather() {
12 try {
13 const response = await fetch(
24 }, [location]);
25
26 function handleGeolocation() {
27 if ("geolocation" in navigator) {
28 navigator.geolocation.getCurrentPosition(
40 }
41
42 function WeatherDisplay() {
43 if (error) return <div>🌧️ {error}</div>;
44 if (!weatherData) return <div>⏳ Loading...</div>;
69}
70
71function App() {
72 return <WeatherDashboard />;
73}
74
75function client() {
76 createRoot(document.getElementById("root")).render(<App />);
77}
79if (typeof document !== "undefined") { client(); }
80
81export default async function server(request: Request): Promise<Response> {
82 return new Response(`
83 <html>