UNPKG

@scalar/api-client

Version:

the open source API testing client

28 lines (27 loc) 891 B
import { defineComponent as l, createElementBlock as n, openBlock as o, createTextVNode as r, unref as d } from "vue"; import { isUrl as s } from "../../libs/isUrl.js"; const a = { class: "w-full text-center text-sm font-medium break-words" }, u = ["href"], m = { key: 1, textContent: "OpenAPI document manually" }, c = /* @__PURE__ */ l({ __name: "PrefetchError", props: { url: {} }, setup(p) { return (t, e) => (o(), n("div", a, [ e[0] || (e[0] = r(" We couldn't find an OpenAPI document at the provided URL. Please download and import the ", -1)), t.url && d(s)(t.url) ? (o(), n("a", { key: 0, href: t.url, rel: "noopener nofollow", target: "_blank", textContent: "OpenAPI document manually" }, null, 8, u)) : (o(), n("span", m)), e[1] || (e[1] = r(". ", -1)) ])); } }); export { c as default };