91
92const loadEmoji = (code) => {
93 // const api = `https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${code.toLowerCase()}.svg`
94 const api = `https://cdn.jsdelivr.net/gh/shuding/fluentui-emoji-unicode/assets/${code.toLowerCase()}_color.svg`;
95 return fetch(api).then((r) => r.text());
96};
97
38function MiniApps() {
39 const { data: miniapps } = useQuery(["miniapps"], async () => {
40 // return await fetch(`/api/miniapps`).then(r => r.json()).then(r => r);
41 // return await fetchNeynarGet(`frame/catalog?limit=100`).then(r => r.frames);
42 return await fetchNeynarGetPages(`frame/catalog?limit=100`, 4, "frames").then(r => r.frames);
98 onChange={e => setSearch(e.target.value)}
99 placeholder="Search..."
100 autoCapitalize="on"
101 autoCorrect="on"
102 type="text"
89
90async function sendFarcasterNotification(payload: any) {
91 return await fetch("https://api.warpcast.com/v1/frame-notifications", {
92 method: "POST",
93 headers: { "Content-Type": "application/json" },
4 "https://admin.jaan.ng/",
5 "https://blog.jaan.ng",
6 "https://api.jaan.ng"
7 ]
8}
74});
75
76app.get("/api/searchPosts", (c) => {
77 return c.json([
78 { id: 1, name: "John" },
4 "https://admin.jaan.ng/",
5 "https://blog.jaan.ng",
6 "https://api.jaan.ng"
7 ]
8}
158
159 // Send echo response back to same chat
160 const response = await fetch(`https://api.telegram.org/bot${BOT_TOKEN}/sendMessage`, {
161 method: "POST",
162 headers: {
1import process from "node:process";
2
3const res = await fetch("https://api.val.town/v1/me", {
4 headers: {
5 Authorization: `Bearer ${process.env.valtown}`,
13## Authentication
14
15Login to your SQLite Explorer with [password authentication](https://www.val.town/v/pomdtr/password_auth) with your [Val Town API Token](https://www.val.town/settings/api) as the password.
16
17## Todos / Plans
27 <head>
28 <title>SQLite Explorer</title>
29 <link rel="preconnect" href="https://fonts.googleapis.com" />
30
31 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
32 <link
33 href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap"
34 rel="stylesheet"
35 />