@scalar/api-client
Version:
the open source API testing client
33 lines (32 loc) • 1.42 kB
JavaScript
import { defineComponent as c, computed as n, createElementBlock as l, openBlock as a, createStaticVNode as i, createVNode as r, unref as u } from "vue";
import d from "../../global-cookies/components/CookiesTable.vue.js";
const p = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ c({
__name: "Cookies",
props: {
documentSlug: {},
document: {},
eventBus: {},
layout: {},
path: {},
method: {},
exampleName: {},
environment: {},
workspaceStore: {},
activeWorkspace: {},
collectionType: {}
},
setup(e) {
const s = n(() => (e.collectionType === "document" ? e.document["x-scalar-cookies"] : e.workspaceStore.workspace["x-scalar-cookies"]) ?? []);
return (o, t) => (a(), l("div", p, [
t[0] || (t[0] = i('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Cookies</h3></div><p class="text-c-2 mb-4 text-sm"> Manage your collection's cookies here.<br>Cookies allow you to store and send key-value data with your API requests—often used for things like session tokens, authentication, and saving user preferences.<br></p></div></div>', 1)),
r(u(d), {
cookies: s.value,
eventBus: o.eventBus,
collectionType: o.collectionType
}, null, 8, ["cookies", "eventBus", "collectionType"])
]));
}
});
export {
f as default
};