5const { author, name } = extractValInfo(import.meta.url);
6
7export async function forwarder(e: Email) {
8 let attachments: AttachmentData[] = [];
9 for (const f of e.attachments) {
5const { author, name } = extractValInfo(import.meta.url);
6
7export async function forwarder(e: Email) {
8 let attachments: AttachmentData[] = [];
9 for (const f of e.attachments) {
6);
7
8export async function uptimeCheck(url: string) {
9 let ok = true;
10 let reason: string;
33- [x] fix wonky sidebar separator height problem (thanks to @stevekrouse)
34- [x] make result tables scrollable
35- [x] add export to CSV, and JSON (CSV and JSON helper functions written in [this val](https://www.val.town/v/nbbaier/sqliteExportHelpers). Thanks to @pomdtr for merging the initial version!)
36- [x] add listener for cmd+enter to submit query
9import { createRoot } from "https://esm.sh/react-dom/client";
10
11function App() {
12 const subheadings = [
13 "doing this for fun",
68}
69
70function client() {
71 createRoot(document.getElementById("root")).render(<App />);
72}
74if (typeof document !== "undefined") { client(); }
75
76async function server(request: Request): Promise<Response> {
77 return new Response(
78 `
1import { email } from "https://esm.town/v/std/email";
2
3export default async function(interval: Interval) {
4 await email({
5 subject: "This is your daily ping!",
165The jsDelivr CDN is highly available with over 110 locations in the world.
166
167You will then have access to the instantsearch function in the global scope (window).
168
169JavaScript
1import { API_URL } from "https://esm.town/v/std/API_URL";
2
3export async function api<T = any>(
4 path: string,
5 options?: RequestInit & {
1import { valTownUser } from "https://esm.town/v/iamseeley/valTownUser";
2
3async function logUserData() {
4 try {
5 const username = await valTownUser.getUsername();
1**👤 valTownUser**
2
3The `valTownUser` object provides a convenient interface to interact with Val Town's API and access user-specific information and functionalities.
4
5## User Information
A helper function to build a file's email
Simple functional CSS library for Val Town
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
if (req.method === "OPTIONS") {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.