159};
160
161// Google Maps API Key
162const GOOGLE_MAPS_API_KEY = 'AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw';
163
164// Utility Functions
322
323 const script = document.createElement('script');
324 script.src = `https://maps.googleapis.com/maps/api/js?key=${GOOGLE_MAPS_API_KEY}&libraries=places`;
325 script.async = true;
326 script.defer = true;
522 style={{...styles.button, width: '48%', backgroundColor: theme.colors.accent.blue}}
523 onClick={() => {
524 const mapsUrl = `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(vet.address + ', Algérie')}`;
525 window.open(mapsUrl, '_blank');
526 }}
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 />
1* Fork this val to your own profile.
2* Create a [Val Town API token](https://www.val.town/settings/api), open the browser preview of this val, and use the API token as the password to log in.
3
38 model: openai("gpt-4o", {
39 baseURL: "https://std-openaiproxy.web.val.run/v1",
40 apiKey: Deno.env.get("valtown"),
41 } as any),
42 messages: [
1/** @jsxImportSource npm:hono@3/jsx */
2import { Unkey } from "npm:@unkey/api@0.26.1";
3import { Ratelimit } from "npm:@unkey/ratelimit@0.4.4";
4import type { Duration } from "npm:@unkey/ratelimit@0.4.4";
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
8 return response.json();
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
8 return response.json();
530 `);
531
532 // Handle different API routes
533 const url = new URL(request.url);
534
41 return products;
42 } catch (error) {
43 console.error('Error scraping products:', error);
44 return [];
45 }
67
68/**
69 * Run scraping and preview products
70 * @returns Array of scraped products
71 */