twitterAlertmain.tsx1 match
20: Math.floor((Date.now() - 2 * 24 * 60 * 60 * 1000) / 1000);
2122// Fetch and log tweets
23const response = await socialDataSearch(`${query} since_time:${timeFrame}`);
24console.log("Response from socialDataSearch:", response);
chatApplicationmain.tsx18 matches
30
31try {
32const response = await fetch(`/${mode}`, {
33method: "POST",
34headers: { "Content-Type": "application/json" },
41setIsLoggedIn(true);
42setError("");
43await fetchContacts();
44await fetchMessages();
45await fetchFiles();
46} else {
47setError(data.message || "Authentication failed");
53};
5455const fetchContacts = async () => {
56try {
57const response = await fetch("/contacts");
58if (response.ok) {
59const data = await response.json();
64}
65} catch (error) {
66console.error("Failed to fetch contacts", error);
67}
68};
6970const fetchMessages = async () => {
71try {
72const response = await fetch("/messages");
73if (response.ok) {
74const data = await response.json();
76}
77} catch (error) {
78console.error("Failed to fetch messages", error);
79}
80};
8182const fetchFiles = async () => {
83try {
84const response = await fetch("/files");
85if (response.ok) {
86const data = await response.json();
88}
89} catch (error) {
90console.error("Failed to fetch files", error);
91}
92};
9798try {
99const response = await fetch("/message", {
100method: "POST",
101headers: { "Content-Type": "application/json" },
109if (response.ok) {
110setNewMessage("");
111await fetchMessages();
112}
113} catch (error) {
141142try {
143const response = await fetch("/upload", {
144method: "POST",
145body: formData
147148if (response.ok) {
149await fetchFiles();
150fileInputRef.current.value = null;
151}
157const downloadFile = async (fileId) => {
158try {
159const response = await fetch(`/download/${fileId}`);
160if (response.ok) {
161const blob = await response.blob();
umbrellaRemindermain.tsx2 matches
1import { email } from "https://esm.town/v/std/email?v=9";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3import { nominatimSearch } from "https://esm.town/v/stevekrouse/nominatimSearch";
4import { weatherGovGrid } from "https://esm.town/v/stevekrouse/weatherGovGrid";
14lon,
15});
16let { properties: { periods } } = await fetchJSON(
17grid.forecastHourly,
18);
cerebras_codermain.tsx1 match
182183try {
184const response = await fetch("/", {
185method: "POST",
186body: JSON.stringify({
templateTwitterAlertmain.tsx1 match
19: Math.floor((Date.now() - 2 * 24 * 60 * 60 * 1000) / 1000);
2021// Fetch and log tweets
22const response = await socialDataSearch(`${query} since_time:${timeFrame}`);
23console.log("Response from socialDataSearch:", response);
cerebras_codermain.tsx1 match
182183try {
184const response = await fetch("/", {
185method: "POST",
186body: JSON.stringify({
44useEffect(() => {
45if (selectedCategory === "tournament") {
46fetchScoreboard();
47}
48}, [selectedCategory]);
5556try {
57const response = await fetch("/register", {
58method: "POST",
59headers: { "Content-Type": "application/json" },
65setRegisteredName(playerName);
66setRegistrationError("");
67fetchScoreboard();
68} else {
69setRegistrationError(result.message || "Registration failed");
74};
7576const fetchScoreboard = async () => {
77try {
78const response = await fetch("/scoreboard");
79const data = await response.json();
80setScoreboard(data);
81} catch (error) {
82console.error("Failed to fetch scoreboard", error);
83}
84};
passkeys_demomain.tsx1 match
298return c.json("success");
299});
300export default app.fetch;
comfortableOrangeSparrowmain.tsx2 matches
4243try {
44const response = await fetch(`https://www.shovel.report/api/domains/${domain}`);
45if (!response.ok) {
46throw new Error(`HTTP error! status: ${response.status}`);
52};
53} catch (error) {
54console.error("Error fetching technologies:", error);
55return { services: [], social_media: {} };
56}
properPurplePorpoisemain.tsx1 match
16: Math.floor((Date.now() - 2 * 24 * 60 * 60 * 1000) / 1000);
1718// Fetch and log tweets
19const response = await socialDataSearch(`${query} since_time:${timeFrame}`);
20console.log("Response from socialDataSearch:", response);