You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/image-url.jpg%20%22Optional%20title%22?q=image&page=10&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=image
Returns an array of strings in format "username" or "username/projectName"
Found 6454 results for "image"(1914ms)
45import L from "npm:leaflet";
6import leafletImage from "npm:leaflet-image";
7import { useEffect, useRef } from "npm:react";
8import { MapContainer, Marker, Popup, TileLayer, useMap } from "npm:react-leaflet";
35// Poczekaj aż kafelki się załadują
36setTimeout(() => {
37leafletImage(map, async (err, canvas) => {
38if (err) {
39console.error("leaflet-image error:", err);
40return;
41}
65InitialEmbedWarningFieldTitle: string;
66InitialEmbedWarningFieldValue: string;
67InitialEmbedImageUrl: string;
68InitialEmbedThumbnailUrl: string;
69InitialEmbedFooterText: string;
87fieldWarningText: string;
88fieldJumpTitle: string;
89imageUrl: string;
90thumbnailUrl: string;
91color: string;
98fieldWarningTitle: string;
99fieldWarningText: string;
100imageUrl: string;
101thumbnailUrl: string;
102color: string;
114}
115116interface EnglishAlphabetImageUrls {
117alphabetIndexImages: Record<string, string>;
118}
119203}
204205// Load alphabet image URLs
206async function loadAlphabetImageUrls() {
207try {
208const imageUrls = await blob.getJSON("englishalphabetimageurls") as EnglishAlphabetImageUrls;
209if (!imageUrls) {
210// If not found, initialize from the provided JSON file
211const imageUrlsString = await blob.get("englishalphabetimageurls.json") as string;
212const imageUrlsJson = JSON.parse(imageUrlsString);
213await blob.setJSON("englishalphabetimageurls", imageUrlsJson);
214return imageUrlsJson.alphabetIndexImages;
215}
216return imageUrls.alphabetIndexImages;
217} catch (error) {
218console.error("Error loading alphabet image URLs:", error);
219throw error;
220}
352},
353],
354image: {
355url: initialEmbedData.InitialEmbedImageUrl || "https://media.tenor.com/I6kN-6X7nhAAAAAi/loading-buffering.gif",
356},
357thumbnail: {
405mapData: HellLetLooseMapData,
406appSettings: AppSettings,
407alphabetImages: Record<string, string>,
408) {
409try {
430color: embedColor,
431thumbnail: {
432url: alphabetImages[firstCharacter] || `https://i.imgur.com/POhK1wg.png`, // Default to "A" if not found
433},
434};
631},
632],
633image: {
634url: bookendData.bottomBookend.imageUrl,
635},
636thumbnail: {
694},
695],
696image: {
697url: bookendData.topBookend.imageUrl,
698},
699thumbnail: {
803}
804805const hasAlphabetImages = await blob.getJSON("englishalphabetimageurls");
806if (!hasAlphabetImages) {
807console.log("Loading alphabet image URLs from file...");
808const alphabetImagesContent = await Deno.readTextFile("englishalphabetimageurls.json");
809await blob.setJSON("englishalphabetimageurls", JSON.parse(alphabetImagesContent));
810}
811826const appSettings = await loadConfigurations();
827const mapData = await loadMapData();
828const alphabetImages = await loadAlphabetImageUrls();
829const initialEmbedData = await loadInitialEmbedData();
830const bookendData = await loadCompletedVoteBookendEmbedData();
841mapData,
842appSettings,
843alphabetImages,
844);
845