UNPKG

@scalar/api-client

Version:

the open source API testing client

45 lines (44 loc) 977 B
import { defineComponent as c, computed as i, createBlock as l, openBlock as p, unref as u } from "vue"; import { ScalarIcon as f } from "@scalar/components"; const m = /* @__PURE__ */ c({ __name: "IntegrationLogo", props: { integration: {} }, setup(e) { const n = e, a = [ "adonisjs", "astro", "dotnet", "elysiajs", "express", "fastapi", "fastify", "go", "hono", "laravel", "litestar", "nestjs", "nextjs", "nitro", "nuxt", "platformatic", "react", "rust", "svelte" ], r = i(() => { const o = "Openapi", t = n.integration?.toLocaleLowerCase(); if (!t) return o; const s = t.charAt(0).toUpperCase() + t.slice(1); return a.includes(t) ? s : o; }); return (o, t) => (p(), l(u(f), { class: "h-full w-full rounded-lg", logo: r.value }, null, 8, ["logo"])); } }); export { m as default };