1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3export function ChessEmbedIframe({ config }) {
4 const { content, contentURL, docsURL } = config;
5 return (
2import { useState } from "https://esm.sh/react@18.2.0";
3
4export function CheckoutContent({ data, content }) {
5 // const { content, contentURL, docsURL } = config;
6 // console.log("content: ", content);
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}
45})
46
47function generateHtml(baseUrl: string, path: string = '/') {
48 return (
49 <html>
1export default async function(req: Request): Promise<Response> {
2 return new Response("Hello world!");
3}
1export default async function(req: Request): Promise<Response> {
2 return new Response("Hello world!");
3}
1export async function toggleHelp() {
2 console.log("toggleHelp");
3 // var helpContent = document.getElementById("helpContent");
1export async function toggleContent(action: string) {
2 // handle show/hide embeds
3 const embeds = document.getElementsByClassName("embed");
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3export function Test() {
4 console.log("test");
5 return (
1export async function startSession() {
2 GLANCE.Cobrowse.Visitor.startSession("GLANCE_KEYTYPE_RANDOM");
3}
4// If you forget to add functions called by events
5// to the global scope (e.g., `onclick="startSession();"`),
6// then those functions won't be in the global scope,
7// and the onclick will fail with Uncaught ReferenceError.
8window.startSession = startSession;
Simple functional CSS library for Val Town
A helper function to build a file's email
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.