looseTomatoCougarmain.tsx1 match
3import { createRoot } from "https://esm.sh/react-dom/client";
45function App() {
6const [links, setLinks] = useState([]);
7const [error, setError] = useState(null);
datetimeFormatterToolmain.tsx3 matches
15];
1617function App() {
18const [dateTime, setDateTime] = useState("2023-06-15T14:30:00");
19const [selectedFormat, setSelectedFormat] = useState("MM/dd/yyyy");
92}
9394function client() {
95createRoot(document.getElementById("root")).render(<App />);
96}
100}
101102export default async function server(request: Request): Promise<Response> {
103return new Response(
104`
drumMachinemain.tsx6 matches
14const searchUrl = "https://sedson-freesoundsearch.web.val.run";
1516function WaveformPreview({ buffer, start, end }) {
17const canvasRef = useRef(null);
18useEffect(() => {
55}
5657function trimAudioBuffer(originalBuffer, maxDurationInSeconds = 1) {
58const sampleRate = originalBuffer.sampleRate;
59const numberOfChannels = originalBuffer.numberOfChannels;
79}
8081function ControlRow({ track, onVolumeChange, onSpeedChange, onStartChange, onEndChange, onSearchChange }) {
82const [searchInput, setSearchInput] = useState(track.search);
83172}
173174function App() {
175const [sequence, setSequence] = useState(Array(TRACKS).fill().map(() => Array(STEPS).fill(false)));
176const [isPlaying, setIsPlaying] = useState(false);
362}
363364function client() {
365createRoot(document.getElementById("root")).render(<App />);
366}
368if (typeof document !== "undefined") { client(); }
369370async function server(request: Request): Promise<Response> {
371return new Response(
372`
broadRedMarmosetmain.tsx6 matches
3import { createRoot } from "https://esm.sh/react-dom/client";
4// first stable version is v22
5function App() {
6const [url, setUrl] = useState("");
7const [result, setResult] = useState(null);
66}
6768function client() {
69console.log("Initializing client-side React application");
70createRoot(document.getElementById("root")).render(<App />);
75}
7677async function scrapePage(url) {
78console.log(`Starting to scrape page: ${url}`);
79const apiKey = Deno.env.get("ScrapingBeeAPIkey");
108}));
109110// The rest of the function remains the same
111const extractRules = {
112title: "h1",
190}
191192async function getApiKey() {
193const apiKey = Deno.env.get("ScrapingBeeAPIkey");
194if (!apiKey) {
199}
200201async function server(request) {
202console.log(`Received ${request.method} request for path: ${new URL(request.url).pathname}`);
203if (request.method === "POST" && new URL(request.url).pathname === "/scrape") {
juicyBowTiemain.tsx4 matches
4import { createRoot } from "https://esm.sh/react-dom/client";
56function App() {
7const [mainColor, setMainColor] = useState("#666666");
8const [patternColor, setPatternColor] = useState("#FFFFFF");
253}
254255function client() {
256createRoot(document.getElementById("root")).render(<App />);
257}
261}
262263export default async function server(request: Request): Promise<Response> {
264return new Response(
265`
284<script type="module">
285import { default as mod } from "${import.meta.url}";
286if (mod && typeof mod === "function") mod();
287</script>
288</body>
Chatprincipalmain.tsx5 matches
219`;
220221function AnimatedHeadline() {
222const [animationStarted, setAnimationStarted] = useState(false);
223const contentRef = useRef(null);
295`;
296297function SubheadlineAnimation() {
298const [animationStarted, setAnimationStarted] = useState(false);
299const contentRef = useRef(null);
422`;
423424function App() {
425const [isNavOpen, setIsNavOpen] = React.useState(false);
426const toggleNav = () => {
482}
483484function client() {
485createRoot(document.getElementById("root")).render(<App />);
486}
488if (typeof document !== "undefined") { client(); }
489490export default async function server(request: Request): Promise<Response> {
491return new Response(`
492<html>
hiddenVioletMockingbirdmain.tsx10 matches
1import { blob } from "https://esm.town/v/std/blob";
23export default async function main(req: Request): Promise<Response> {
4const html = `
5<!DOCTYPE html>
149synth.connect(analyser);
150151function drawOscilloscope() {
152requestAnimationFrame(drawOscilloscope);
153const bufferLength = analyser.size;
216217// Resize oscilloscope canvas
218function resizeCanvas() {
219oscilloscope.width = oscilloscope.clientWidth;
220oscilloscope.height = oscilloscope.clientHeight;
251252// Load configuration list
253async function loadConfigList() {
254const response = await fetch('/config-list');
255const configs = await response.json();
302const eurorack = d3.select("#eurorack");
303304function createSlider(parent, label, min, max, value, callback, icon) {
305const container = parent.append("div")
306.attr("class", "slider-container");
318.attr("class", "slider")
319.style("background", generateGradient(min, max))
320.on("input", function() {
321callback(this.value);
322this.style.background = generateGradient(min, max, this.value);
326}
327328function generateGradient(min, max, value = null) {
329const percentage = value ? (value - min) / (max - min) * 100 : 50;
330return \`linear-gradient(to right, #4CAF50 0%, #4CAF50 \${percentage}%, #ddd \${percentage}%, #ddd 100%)\`;
422.attr("class", "arpeggio-pill")
423.text(pattern)
424.on("click", function() {
425d3.selectAll(".arpeggio-pill").classed("active", false);
426d3.select(this).classed("active", true);
429});
430431function updateArpeggio(pattern) {
432const notes = document.getElementById("sequence").value.split(",").map(note => note.trim());
433let arpNotes;
475}
476477function updateSliders() {
478oscTypeSlider.property("value", ["sawtooth", "square", "triangle", "sine"].indexOf(synth.oscillator.type) / 3);
479cutoffSlider.property("value", synth.filter.frequency.value);
76};
7778function App() {
79const [position, setPosition] = useState({ x: 0, y: 0 });
80const [isLaserOn, setIsLaserOn] = useState(false);
199}
200201function client() {
202createRoot(document.getElementById("root")).render(<App />);
203}
205if (typeof document !== "undefined") { client(); }
206207async function server(request: Request): Promise<Response> {
208return new Response(`
209<html>
BalanceCapMonstermain.tsx1 match
1import fetchBalanceFromCaptchaProvider from "https://esm.town/v/augustohp/CaptchaGetBalance";
23export default async function fetchAntiCaptchaBalance(
4token: string,
5): Promise<number> {
BalanceAntiCaptchamain.tsx1 match
1import fetchBalanceFromCaptchaProvider from "https://esm.town/v/augustohp/CaptchaGetBalance";
23export default async function fetchAntiCaptchaBalance(
4token: string,
5): Promise<number> {