Whatsapp_Sendmain.tsx3 matches
3import { createRoot } from "https://esm.sh/react-dom/client";
45function App() {
6const [title, setTitle] = useState("");
7const [embedCode, setEmbedCode] = useState("");
60}
6162function client() {
63createRoot(document.getElementById("root")).render(<App />);
64}
68}
6970export default async function server(request: Request): Promise<Response> {
71return new Response(
72`
freesoundSearchmain.tsx2 matches
25* Get the nth sound for a search string.
26*/
27async function search(query: string, nth: number = 0): Promise<Sound> {
28const queryString = qs.stringify({
29query: query,
44}
4546export default async function(req: Request): Promise<Response> {
47const { pathname, searchParams } = new URL(req.url);
48let index = parseInt(searchParams.get("i"));
7const cacheKey = location => "easyAQI_locationID_cache_" + encodeURIComponent(location);
89export async function easyAQI({ location }: {
10location: string;
11}) {
iframeGridInfinitemain.tsx7 matches
8import { createRoot } from "https://esm.sh/react-dom/client";
910function Modal({ onClose }) {
11return (
12<div style={{
28}
2930function IframeCell({ cellKey, url, onUrlSubmit, isLoading }) {
31const [inputUrl, setInputUrl] = useState(url || '');
3259}
6061function App() {
62const [position, setPosition] = useState({ x: 0, y: 0 });
63const [isDragging, setIsDragging] = useState(false);
206}
207208function client() {
209createRoot(document.getElementById("root")).render(<App />);
210}
212if (typeof document !== "undefined") { client(); }
213214async function handleSubmitUrl(request: Request): Promise<Response> {
215const { cellKey, url } = await request.json();
216const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
236}
237238async function handleLoadUrls(): Promise<Response> {
239const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
240const KEY = "iframeGridInfinite";
255}
256257async function server(request: Request): Promise<Response> {
258if (request.method === 'POST' && new URL(request.url).pathname === '/api/submit-url') {
259return handleSubmitUrl(request);
drumMachinemain.tsx8 matches
9const searchUrl = "https://sedson-freesoundsearch.web.val.run";
1011function WaveformPreview({ buffer, start, end }) {
12const canvasRef = useRef(null);
1356}
5758function trimAudioBuffer(originalBuffer, maxDurationInSeconds = 1) {
59const sampleRate = originalBuffer.sampleRate;
60const numberOfChannels = originalBuffer.numberOfChannels;
78}
7980function ControlRow({ track, onVolumeChange, onSpeedChange, onStartChange, onEndChange, onSearchChange }) {
81return (
82<div className="control-row">
152}
153154function MelodySequencer({ melodySequence, setMelodySequence, currentStep }) {
155const noteNames = ['C', 'D', 'E', 'F', 'G', 'A', 'B', 'C'];
156182}
183184function BeatSequencer({ beatSequence, setBeatSequence, currentStep }) {
185const patternNames = ['Kick', 'Snare', 'Hi-hat', 'Clap'];
186212}
213214function App() {
215const [sequence, setSequence] = useState(Array(TRACKS).fill().map(() => Array(STEPS).fill(false)));
216const [melodySequence, setMelodySequence] = useState(Array(STEPS).fill(null));
459}
460461function client() {
462createRoot(document.getElementById("root")).render(<App />);
463}
465if (typeof document !== "undefined") { client(); }
466467async function server(request: Request): Promise<Response> {
468return new Response(
469`
1function applyPDFStyles() {
2const style = document.createElement("style");
3style.textContent = `
77}
7879export function saveAsPDF() {
80const saveButton = document.getElementById("saveAsPDFButton");
81if (saveButton) {
RobotBackupCallGraphmain.tsx15 matches
2import { thisWebURL } from "https://esm.town/v/stevekrouse/thisWebURL?v=2";
34export default async function server(req: Request): Promise<Response> {
5// Handle GET requests
6if (req.method === "GET") {
288layout: {
289name: 'preset',
290positions: function(node) {
291return { x: 0, y: 0 }; // Initial positions, will be overwritten
292}
297});
298299// Custom layout function
300function customLayout() {
301const mainGraph = cy.elements().not('#isolated, #isolated > node');
302const isolatedGraph = cy.getElementById('isolated');
349350// Add event listeners for highlighting
351cy.on('mouseover', 'node', function(e) {
352const node = e.target;
353highlightNodeChildrenAndParents(node);
354});
355356cy.on('mouseout', 'node', function(e) {
357unhighlightAll();
358});
359360cy.on('click', 'node', function(e) {
361const node = e.target;
362if (node.hasClass('highlighted') || node.hasClass('parent-highlighted')) {
368});
369370function highlightNodeChildrenAndParents(node) {
371const children = node.outgoers();
372const parents = node.incomers();
376}
377378function unhighlightAll() {
379cy.elements().removeClass('highlighted');
380cy.elements().removeClass('parent-highlighted');
529let match;
530while ((match = callRegex.exec(line)) !== null) {
531const calledFunction = match[1].toLowerCase();
532relationships.get(caller).add(calledFunction);
533allNodes.add(calledFunction);
534}
535});
545546const edges = [];
547relationships.forEach((calledFunctions, file) => {
548calledFunctions.forEach(calledFunction => {
549edges.push({
550data: {
551source: file,
552target: calledFunction,
553},
554});
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`