@scalar/api-client
Version:
the open source API testing client
28 lines (27 loc) • 891 B
JavaScript
import { defineComponent as l, createElementBlock as n, openBlock as o, createTextVNode as r, unref as d } from "vue";
import { isUrl as a } from "../../libs/isUrl.js";
const u = { class: "w-full text-center text-sm font-medium break-words" }, m = ["href"], s = {
key: 1,
textContent: "OpenAPI document manually"
}, p = /* @__PURE__ */ l({
__name: "PrefetchError",
props: {
url: {}
},
setup(t) {
return (f, e) => (o(), n("div", u, [
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(a)(t.url) ? (o(), n("a", {
key: 0,
href: t.url,
rel: "noopener nofollow",
target: "_blank",
textContent: "OpenAPI document manually"
}, null, 8, m)) : (o(), n("span", s)),
e[1] || (e[1] = r(". ", -1))
]));
}
});
export {
p as default
};