61});
62
63async function findMyArticles() {
64 let { data: articles } = await api(`/v1/search/vals?query=${encodeURIComponent("#blog")}`);
65
5import { html } from "https://esm.town/v/stevekrouse/html?v=5";
6
7export async function exampleArticle(req: Request) {
8 const { author, name } = extractValInfo(import.meta.url);
9
1export function extractMetadata(name: string, code: string) {
2 const regex = `// ${name}: (.+)`;
3 const match = code.match(regex);
12import { JSX } from "npm:react";
13
14export async function emailSubscription(req: Request) {
15 const app = new Hono();
16
1import { delay } from "https://deno.land/std/async/delay.ts";
2
3async function write(text: string) {
4 const textEncoder = new TextEncoder();
5 const data = textEncoder.encode(text);
1import { delay } from "https://deno.land/std/async/delay.ts";
2
3async function write(text: string) {
4 const textEncoder = new TextEncoder();
5 const data = textEncoder.encode(text);
1const JWT = Deno.env.get("PINATA_JWT");
2
3 export default async function uploadByURL(url){
4 try {
5 const urlStream = await fetch(url)
1import { BrowserContext } from "https://esm.town/v/pomdtr/browser";
2
3export default async function(ctx: BrowserContext) {
4 const resp = await fetch("https://api.iconify.design/collection?prefix=heroicons");
5 if (!resp.ok) {
1export function valToListItem(val) {
2 return {
3 title: `${val.author.username}/${val.name}`,
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
37
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.