generate_invoicemain.tsx1 match
3import open from "npm:open";
45function printHelp() {
6console.log("help");
7}
uploadTo0x0main.tsx1 match
1export async function uploadTo0x0(data, name) {
2const blob = new Blob([data]);
3const formData = new FormData();
10const currencySelector = document.getElementById("currencies") as HTMLSelectElement;
1112async function updatePreview() {
13try {
14const code = JSON.parse(editor.code);
creativity_quotesmain.tsx1 match
1import process from "node:process";
23export async function creativity_quote(request: Request): Promise<Response> {
4const postgres = await import("https://deno.land/x/postgres/mod.ts");
5const client = new postgres.Client(process.env.neon_url);
5import { Form, hydrate } from "https://esm.town/v/stevekrouse/ssr_react_mini?v=75";
67export async function loader(req: Request) {
8const { sqlite } = await import("https://esm.town/v/std/sqlite?v=4");
9const [, { columns, rows }] = await sqlite.batch([
20}
2122export async function action(req: Request) {
23const { sqlite } = await import("https://esm.town/v/std/sqlite?v=4");
24const formData = await req.formData();
47}
4849export function Component({ initialTodos, initialLogs }) {
50const [todos, setTodos] = useState(initialTodos);
51const [logs, setLogs] = useState(initialLogs);
54useEffect(() => addLog(`Client rendered`), []);
5556function addTodo() {
57setTodos([...todos, { text: newTodo }]);
58setNewTodo("");
64}
6566function toggleTodo(e) {
67const formData = new FormData(e.target);
68const id = parseInt(formData.get("id") as string);
71}
7273function deleteTodo(e) {
74const formData = new FormData(e.target);
75const id = parseInt(formData.get("id") as string);
pollRSSFeedsmain.tsx1 match
3import { rssFeeds } from "https://esm.town/v/stevekrouse/rssFeeds";
45export async function pollRSSFeeds({ lastRunAt }: Interval) {
6return Promise.all(
7Object.entries(rssFeeds).map(async ([name, url]) => {
htmlExamplemain.tsx1 match
1// View at https://andreterron-htmlExample.web.val.run?name=Andre
2export default async function(req: Request): Promise<Response> {
3const query = new URL(req.url).searchParams;
4
upload_urlmain.tsx2 matches
1// Function to upload data using Wormhole API and return the URL
2async function uploadToFileIo(file) {
3const formData = new FormData();
4formData.append("file", file);
uploadTo0x0main.tsx1 match
1export async function uploadTo0x0(data, name) {
2const blob = new Blob([data]);
3const formData = new FormData();
dailyDadJokemain.tsx1 match
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
34export async function dailyDadJoke() {
5let { setup, punchline } = await fetchJSON("https://official-joke-api.appspot.com/random_joke");
6return email({