1/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import { iframeHandler } from "https://esm.town/v/nbbaier/iframeHandler";
5import { resetStyle } from "https://esm.town/v/iamseeley/resetStyle";
15import { passwordAuth } from "https://esm.town/v/pomdtr/password_auth?v=70";
16import { ResultSet, sqlite } from "https://esm.town/v/std/sqlite";
17import { reloadOnSaveFetchMiddleware } from "https://esm.town/v/stevekrouse/reloadOnSave";
18import { Hono } from "npm:hono";
19import type { FC } from "npm:hono/jsx";
174});
175
176export const handler = app.fetch;
177export default iframeHandler(modifyFetchHandler(passwordAuth(handler)));
9
10export async function emojiData(): Promise<Emoji[]> {
11 const res = await fetch("https://www.unicode.org/Public/draft/emoji/emoji-test.txt");
12 const text = await res.text();
13 const lines = text.split("\n");
1export async function codePointNames(): Promise<Record<string, string>> {
2 const res = await fetch("https://unicode.org/Public/UNIDATA/UnicodeData.txt");
3 const text = await res.text();
4
4 formData.append("file", file);
5
6 const response = await fetch("https://file.io", {
7 method: "POST",
8 body: formData,
4export default async function(req: Request): Promise<Response> {
5 try {
6 const xml = await fetch("https://ej-public-files.sfo3.cdn.digitaloceanspaces.com/wiitdb.xml");
7 const xmlInput = await xml.text();
8 const jsonOutput = await parseXML(xmlInput);
100 );
101});
102export default app.fetch;
4let location = "brooklyn ny";
5let lang = "en";
6const weather = await fetch(
7 `https://wttr.in/${location}?lang=${lang}&format=j1`,
8).then(r => r.json());
1/** @jsxImportSource https://esm.sh/hono@4.0.8/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import view_route from "https://esm.town/v/pomdtr/blob_admin_blob";
5import create_route from "https://esm.town/v/pomdtr/blob_admin_create";
135});
136
137export default modifyFetchHandler(passwordAuth(app.fetch, {
138 // password: "123", // Deno.env.get("AUTH_TEST"),
139}));
4
5 // get user details
6 const userDetailsResponse = await fetch(userDetailsEndpoint, {
7 method: 'GET',
8 headers: {
12
13 if (!userDetailsResponse.ok) {
14 throw new Error(`Error fetching user details: ${userDetailsResponse.statusText}`);
15 }
16
19
20 // create resume json val
21 const createValResponse = await fetch(createValEndpoint, {
22 method: 'POST',
23 headers: {
1/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import { iframeHandler } from "https://esm.town/v/nbbaier/iframeHandler";
5import { resetStyle } from "https://esm.town/v/nbbaier/resetStyle";
15import { passwordAuth } from "https://esm.town/v/pomdtr/password_auth?v=70";
16import { ResultSet, sqlite } from "https://esm.town/v/std/sqlite";
17import { reloadOnSaveFetchMiddleware } from "https://esm.town/v/stevekrouse/reloadOnSave";
18import { Hono } from "npm:hono";
19import type { FC } from "npm:hono/jsx";
174});
175
176export const handler = app.fetch;
177export default iframeHandler(modifyFetchHandler(passwordAuth(handler)));