oliveGardenCharmain.tsx4 matches
3import { createRoot } from "https://esm.sh/react-dom/client";
45function App() {
6const [coworkers, setCoworkers] = useState([]);
7const [newCoworker, setNewCoworker] = useState("");
107}
108109function SwipeToDelete({ children, onDelete }) {
110const [startX, setStartX] = useState(null);
111const [offset, setOffset] = useState(0);
151}
152153function client() {
154createRoot(document.getElementById("root")).render(<App />);
155}
156if (typeof document !== "undefined") { client(); }
157158export default async function server(request: Request): Promise<Response> {
159const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
160const SCHEMA_VERSION = 2;
healthtech4africamain.tsx3 matches
5const countries = ["Kenya", "India"];
67function App() {
8const [country, setCountry] = useState("");
9const [userId, setUserId] = useState("");
150}
151152function client() {
153createRoot(document.getElementById("root")).render(<App />);
154}
158}
159160export default async function server(request: Request): Promise<Response> {
161const { OpenAI } = await import("https://esm.town/v/std/openai");
162const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
tldrawclientmain.tsx1 match
6import { Tldraw } from "https://esm.sh/tldraw@2.1.0";
78export function App() {
9return (
10<>
hello_worldmain.tsx1 match
1export default async function(req: Request): Promise<Response> {
2return Response.json("hello world!");
3}
vtu_readUsermain.tsx1 match
6import { blob } from "https://esm.town/v/std/blob"
78export default async function readUser (UserId:string):Promise<any> {
9expectEMailAddress('user id',UserId)
10
vtu_deleteUsermain.tsx1 match
5import { blob } from "https://esm.town/v/std/blob"
67export default async function deleteUser (UserId:string):Promise<void> {
8expectEMailAddress('user id',UserId)
9
vtu_updateUsermain.tsx1 match
7import PBKDF2Hash from 'https://esm.town/v/rozek/vtu_PBKDF2Hash'
89export default async function updateUser (
10UserId:string, Password?:string, Roles?:string
11):Promise<void> {
vtu_createUsermain.tsx1 match
7import PBKDF2Hash from 'https://esm.town/v/rozek/vtu_PBKDF2Hash'
89export default async function createUser (
10UserId:string, Password:string, Roles:string = 'user'
11):Promise<void> {
vtu_ListOfUserIdsmain.tsx1 match
1import { blob } from "https://esm.town/v/std/blob"
23export default async function ListOfUserIds ():Promise<string[]> {
4return (await blob.list('vtu_User_')).map((Info:any) => Info.key.slice(9))
5}
vtu_TestSupportmain.tsx19 matches
6const SkipIndicator = '⏭️ [SKIP]: '
78let beforeEachFns:Function[] = []
9let afterEachFns:Function[] = []
10let beforeAllFns:Function[] = []
11let afterAllFns:Function[] = []
1213/**** describe ****/
1415export async function describe (
16CollectionName:string, Collection:Function
17):Promise<void> {
18const outerBeforeEachFns = beforeEachFns; beforeEachFns = []
41/**** xdescribe ****/
4243export async function xdescribe (
44CollectionName:string, Collection:Function
45):Promise<void> {
46console.log(SkipIndicator + CollectionName)
49/**** it ****/
5051export async function it (
52SpecName:string, Spec:Function, Timeout:number = 2000
53) {
54try {
73/**** xit ****/
7475export function xit (
76SpecName:string, Spec:Function, Timeout:number = 2000
77) {
78console.log(SkipIndicator + SpecName)
81/**** fail ****/
8283export function fail (Message:string):void {
84throw new Error(Message)
85}
87/**** before/afterAll/Each ****/
8889export function beforeAll (Handler:Function):void { beforeAllFns.push(Handler) }
90export function afterAll (Handler:Function):void { afterAllFns.push(Handler) }
91export function beforeEach(Handler:Function):void { beforeEachFns.push(Handler) }
92export function afterEach (Handler:Function):void { afterEachFns.push(Handler) }
93
94/**** runWithTimeout ****/
9596async function runWithTimeout(
97Handler:Function, Timeout:number
98):Promise<void> {
99return Promise.race([