Public
Script
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { TreeItem } from "https://esm.town/v/pomdtr/tree_types";
export function valItem({ author, name }: { author: string; name: string }): TreeItem {
return {
title: name,
children: `/v/${author}/${name}`,
actions: [
{ type: "open", title: "Open Val", url: `https://val.town/v/${author}/${name}` },
{
type: "open",
title: "Take Screenshot",
url: `https://vladimyr-valshot.web.val.run/v/${author}/${name}`,
},
{
type: "copy",
title: "Copy Esm URL",
text: `https://esm.town/v/${author}/${name}`,
},
],
};
}
April 13, 2024