Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/$%7BsvgDataUrl%7D?q=function&page=54&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=function

Returns an array of strings in format "username" or "username/projectName"

Found 31520 results for "function"(1928ms)

Glancer_Testpdf.tsx1 match

@charmaineUpdated 3 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3export function PdfContent({ data, content }) {
4 // const { content, contentURL, docsURL } = config;
5 // console.log("content: ", content);

Glancer_Testindex.tsx4 matches

@charmaineUpdated 3 days ago
21
22// Type guards
23export function isApiError(data: DemoData): data is ApiErrorResponse {
24 return 'message' in data && 'status' in data;
25}
26
27export function isNotionPage(data: DemoData): data is NotionPage {
28 return 'object' in data && data.object === 'page';
29}
44
45// Prepare initial data
46async function prepareInitialData(): Promise<{
47 demoData: DemoData | null;
48 loading: boolean;
91
92// Initialize the app
93async function initializeApp() {
94 const root = document.getElementById("root");
95 if (!root) {

Glancer_Testiframe.tsx1 match

@charmaineUpdated 3 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3export function IframeContent({ data, content }) {
4 // const { content, contentURL, docsURL } = config;
5 // console.log("content: ", content);

Glancer_TesthealthCheck.ts2 matches

@charmaineUpdated 3 days ago
8});
9
10function buildData(response) {
11 return {
12 status: "connected",
23// we present that at root and embed that into Notion
24// to show everyone that the connection is healthy btw Notion and val.town
25export default async function (interval: Interval) {
26 const blobKey = await blobKeyForDemoCache(import.meta.url, "healthCheck");
27 try {

Glancer_TestgettingStarted.tsx1 match

@charmaineUpdated 3 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3export function GettingStartedContent({ data, title }) {
4 // const { content, contentURL, docsURL } = config;
5 // console.log("data: ", data);
6});
7
8export async function getRelatedPagesFromDatabase(pageId: string) {
9 try {
10 const response = await notion.databases.query({

Glancer_TestgetPage.ts1 match

@charmaineUpdated 3 days ago
6});
7
8export async function getPage(id: string) {
9 // get page
10 try {

Glancer_TestgetDatabase.ts1 match

@charmaineUpdated 3 days ago
6});
7
8export async function getDatabase(id: string) {
9 // get database
10 try {

Glancer_TestgetActions.ts2 matches

@charmaineUpdated 3 days ago
6});
7
8export async function getAllInteractionsPages() {
9 const databaseId = Deno.env.get("GLANCE_INTERACTIONS_DB_ID");
10
36}
37
38export async function getAllInteractionsPagesWithPagination() {
39 const databaseId = Deno.env.get("GLANCE_INTERACTIONS_DB_ID");
40

Glancer_Testform.tsx2 matches

@charmaineUpdated 3 days ago
2import { useState } from "https://esm.sh/react@18.2.0";
3
4export function FormContent({ data, content }) {
5 // const { content, contentURL, docsURL } = config;
6 // console.log("content: ", content);
29 <h2>Cobrowse & mask fields on forms</h2>
30 <p>
31 Glance cobrowse provides a “hook” function to allow customers to
32 customize page and element masking during a cobrowse session.
33 </p>
tuna

tuna9 file matches

@jxnblkUpdated 2 weeks ago
Simple functional CSS library for Val Town

getFileEmail4 file matches

@shouserUpdated 1 month ago
A helper function to build a file's email
lost1991
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": "*",
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.