${escapeHtml(card.title)}
${escapeHtml(card.metric)} ${escapeHtml(card.description || "No description")}PocketBase + Deno
import appConfig from "./app.config.ts"; import { createPocketBaseClient } from "./pocketbase/client.ts"; const port = Number(Deno.env.get("PORT") || "8080"); const pocketbaseUrl = mustGetEnv("POCKETBASE_URL"); const pocketbaseEmail = mustGetEnv("POCKETBASE_SERVICE_EMAIL"); const pocketbasePassword = mustGetEnv("POCKETBASE_SERVICE_PASSWORD"); const ownerTeamId = mustGetEnv("APP_OWNER_TEAM_ID"); const appSlug = Deno.env.get("APP_SLUG") || appConfig.slug; const pocketbase = createPocketBaseClient({ baseUrl: pocketbaseUrl, email: pocketbaseEmail, password: pocketbasePassword, }); type DashboardCard = { id: string; title: string; metric: string; description: string | null; }; function renderHtml(cards: DashboardCard[]) { const cardsMarkup = cards.length === 0 ? `
No dashboard cards yet.
` : cards.map((card) => `${escapeHtml(card.title)}
${escapeHtml(card.metric)} ${escapeHtml(card.description || "No description")}PocketBase + Deno