@scalar/api-client 2.29.4 → 2.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +9 -69
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +74 -76
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +15 -8
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +29 -28
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +18 -21
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +12 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +12 -0
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +13 -8
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +97 -85
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +16 -5
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +27 -24
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +29 -14
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +57 -57
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +171 -148
- package/dist/v2/features/app/helpers/routes.d.ts +42 -12
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +57 -26
- package/dist/v2/features/collection/OperationCollection.vue.d.ts +6 -0
- package/dist/v2/features/collection/OperationCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/OperationCollection.vue.js +83 -0
- package/dist/v2/features/collection/OperationCollection.vue2.js +4 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +99 -49
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +9 -4
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +12 -10
- package/dist/v2/features/collection/components/Environment.vue.d.ts +9 -4
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Environment.vue.js +18 -16
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +6 -2
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
- package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -18
- package/dist/v2/features/collection/components/Overview.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Overview.vue.js +1 -1
- package/dist/v2/features/collection/components/Overview.vue2.js +177 -75
- package/dist/v2/features/collection/components/Servers.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue.js +154 -98
- package/dist/v2/features/collection/components/Settings.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +2 -1
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Tabs.vue.js +25 -27
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts +12 -0
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts.map +1 -0
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +13 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +61 -63
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts +5 -3
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-security.js +7 -8
- package/dist/v2/features/operation/helpers/get-selected-server.d.ts +8 -6
- package/dist/v2/features/operation/helpers/get-selected-server.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-server.js +2 -2
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +25 -15
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +12 -12
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
};
|
|
1
4
|
type __VLS_ModelProps = {
|
|
2
5
|
modelValue: string;
|
|
3
6
|
};
|
|
4
|
-
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
9
|
"update:modelValue": (value: string) => any;
|
|
6
10
|
} & {
|
|
7
11
|
blur: (value: string) => any;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
13
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
10
14
|
onBlur?: ((value: string) => any) | undefined;
|
|
11
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabelInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/LabelInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LabelInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/LabelInput.vue"],"names":[],"mappings":"AAuDA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AAiBF,KAAK,gBAAgB,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;CAClB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA2ExD,QAAA,MAAM,YAAY;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./LabelInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-242ff9a6"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as p, mergeModels as r, useModel as c, useId as m, createElementBlock as f, openBlock as v, createElementVNode as u, withDirectives as h, unref as s, withKeys as x, vModelText as b } from "vue";
|
|
2
|
+
const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1" }, g = ["for"], w = ["id", "placeholder"], M = /* @__PURE__ */ p({
|
|
3
3
|
__name: "LabelInput",
|
|
4
|
-
props: {
|
|
4
|
+
props: /* @__PURE__ */ r({
|
|
5
|
+
placeholder: {}
|
|
6
|
+
}, {
|
|
5
7
|
modelValue: { required: !0 },
|
|
6
8
|
modelModifiers: {}
|
|
7
|
-
},
|
|
8
|
-
emits: /* @__PURE__ */
|
|
9
|
-
setup(
|
|
10
|
-
const i =
|
|
11
|
-
i("blur",
|
|
9
|
+
}),
|
|
10
|
+
emits: /* @__PURE__ */ r(["blur"], ["update:modelValue"]),
|
|
11
|
+
setup(o, { emit: d }) {
|
|
12
|
+
const i = d, l = c(o, "modelValue"), n = m(), a = () => {
|
|
13
|
+
i("blur", l.value);
|
|
12
14
|
};
|
|
13
|
-
return (V, e) => (v(), f("div",
|
|
14
|
-
|
|
15
|
+
return (V, e) => (v(), f("div", _, [
|
|
16
|
+
u("label", {
|
|
15
17
|
class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
|
|
16
|
-
for:
|
|
18
|
+
for: s(n)
|
|
17
19
|
}, null, 8, g),
|
|
18
|
-
h(
|
|
19
|
-
id:
|
|
20
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
20
|
+
h(u("input", {
|
|
21
|
+
id: s(n),
|
|
22
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.value = t),
|
|
21
23
|
class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full flex-1 rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
|
|
22
|
-
placeholder: "Untitled Document",
|
|
23
|
-
onBlur:
|
|
24
|
-
onKeydown: e[1] || (e[1] = x((
|
|
24
|
+
placeholder: o.placeholder ?? "Untitled Document",
|
|
25
|
+
onBlur: a,
|
|
26
|
+
onKeydown: e[1] || (e[1] = x((t) => t.target?.blur(), ["enter"]))
|
|
25
27
|
}, null, 40, w), [
|
|
26
|
-
[
|
|
28
|
+
[b, l.value]
|
|
27
29
|
])
|
|
28
30
|
]));
|
|
29
31
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
2
|
-
collectionType: "document";
|
|
2
|
+
collectionType: "document" | "operation";
|
|
3
3
|
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
4
4
|
}) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
5
5
|
collectionType: "workspace";
|
|
6
6
|
document: null;
|
|
7
7
|
}), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
8
|
-
collectionType: "document";
|
|
8
|
+
collectionType: "document" | "operation";
|
|
9
9
|
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
10
10
|
}) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
11
11
|
collectionType: "workspace";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overview.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Overview.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Overview.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Overview.vue"],"names":[],"mappings":"AAm3BA,QAAA,MAAM,YAAY;;;;;;;;;;;;kGAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Overview.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d486ea71"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdown as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { defineComponent as V, computed as b, ref as z, useTemplateRef as I, createElementBlock as d, openBlock as r, Fragment as m, createElementVNode as o, createVNode as a, createCommentVNode as w, withCtx as l, createBlock as T, unref as n, createTextVNode as f, normalizeClass as C, nextTick as N } from "vue";
|
|
2
|
+
import { useModal as O, ScalarMarkdown as R, ScalarButton as p, ScalarToggle as U, ScalarModal as j } from "@scalar/components";
|
|
3
|
+
import { isHttpMethod as D } from "@scalar/helpers/http/is-http-method";
|
|
4
|
+
import { ScalarIconPencil as S } from "@scalar/icons";
|
|
5
|
+
import E from "../../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
6
|
+
import y from "../../settings/components/Section.vue.js";
|
|
7
|
+
import H from "../../../components/code-input/CodeInput.vue.js";
|
|
8
|
+
const L = { class: "flex flex-col gap-8" }, W = { class: "has-focus-visible:bg-b-1 group rounded-lg" }, F = {
|
|
7
9
|
key: 1,
|
|
8
10
|
class: "text-c-3 flex items-center justify-center rounded-lg border p-4"
|
|
9
|
-
},
|
|
11
|
+
}, P = { class: "flex items-center justify-between gap-4 rounded-lg p-4" }, Z = { class: "min-w-0 flex-1" }, q = { class: "bg-b-2 flex items-center justify-between gap-4 rounded-lg border border-(--scalar-background-3) p-4 text-sm" }, _ = /* @__PURE__ */ V({
|
|
10
12
|
__name: "Overview",
|
|
11
13
|
props: {
|
|
12
14
|
documentSlug: {},
|
|
@@ -24,80 +26,180 @@ const z = { class: "has-focus-visible:bg-b-1 group rounded-lg" }, N = {
|
|
|
24
26
|
customThemes: {},
|
|
25
27
|
collectionType: {}
|
|
26
28
|
},
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
setup(e) {
|
|
30
|
+
const x = b(() => !e.method || !e.path ? "this operation" : `${typeof e.method == "string" ? e.method.toUpperCase() : e.method} ${e.path}`), h = b(() => e.collectionType === "operation" ? !e.path || !e.method || !D(e.method) ? "" : e.document?.paths?.[e.path]?.[e.method]?.description ?? "" : e.document?.info?.description ?? ""), v = b(() => e.collectionType !== "operation" || !e.path || !D(e.method) ? !1 : e.document?.paths?.[e.path]?.[e.method]?.deprecated ?? !1), g = z("preview"), k = I("codeInputRef"), s = async (i) => {
|
|
31
|
+
g.value = i, i === "edit" && (await N(), k.value?.focus());
|
|
32
|
+
}, B = async (i) => {
|
|
33
|
+
if (await s("preview"), e.collectionType === "document")
|
|
34
|
+
return e.eventBus.emit("document:update:info", { description: i });
|
|
35
|
+
if (e.collectionType === "operation") {
|
|
36
|
+
if (!e.path || !e.method) {
|
|
37
|
+
console.error("Invalid path or method", { path: e.path, method: e.method });
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
return e.eventBus.emit("operation:update:meta", {
|
|
41
|
+
meta: { path: e.path, method: e.method },
|
|
42
|
+
payload: {
|
|
43
|
+
description: i
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
console.error("Invalid collection type", { collectionType: e.collectionType });
|
|
48
|
+
}, $ = (i) => {
|
|
49
|
+
e.collectionType !== "operation" || !e.path || !e.method || e.eventBus.emit("operation:update:meta", {
|
|
50
|
+
meta: { path: e.path, method: e.method },
|
|
51
|
+
payload: { deprecated: i }
|
|
52
|
+
});
|
|
53
|
+
}, u = O(), M = () => {
|
|
54
|
+
e.collectionType !== "operation" || !e.path || !e.method || !e.documentSlug || (e.eventBus.emit("operation:delete:operation", {
|
|
55
|
+
documentName: e.documentSlug,
|
|
56
|
+
meta: { path: e.path, method: e.method }
|
|
57
|
+
}), u.hide());
|
|
32
58
|
};
|
|
33
|
-
return (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
variant: "outlined",
|
|
44
|
-
onClick: e[0] || (e[0] = (n) => i("edit"))
|
|
45
|
-
}, {
|
|
46
|
-
default: r(() => [
|
|
47
|
-
s(o(b), {
|
|
59
|
+
return (i, t) => (r(), d(m, null, [
|
|
60
|
+
o("div", L, [
|
|
61
|
+
a(y, null, {
|
|
62
|
+
title: l(() => [...t[5] || (t[5] = [
|
|
63
|
+
f("Description", -1)
|
|
64
|
+
])]),
|
|
65
|
+
actions: l(() => [
|
|
66
|
+
g.value === "preview" ? (r(), T(n(p), {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: "text-c-2 hover:text-c-1 flex items-center gap-2",
|
|
48
69
|
size: "sm",
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
70
|
+
type: "button",
|
|
71
|
+
variant: "outlined",
|
|
72
|
+
onClick: t[0] || (t[0] = (c) => s("edit"))
|
|
73
|
+
}, {
|
|
74
|
+
default: l(() => [
|
|
75
|
+
a(n(S), {
|
|
76
|
+
size: "sm",
|
|
77
|
+
thickness: "1.5"
|
|
78
|
+
}),
|
|
79
|
+
t[6] || (t[6] = o("span", null, "Edit", -1))
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
})) : w("", !0)
|
|
52
83
|
]),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
], 64)) : (t(), p("div", N, [
|
|
68
|
-
s(o(k), {
|
|
69
|
-
class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
|
|
70
|
-
size: "sm",
|
|
71
|
-
variant: "ghost",
|
|
72
|
-
onClick: e[2] || (e[2] = (n) => i("edit"))
|
|
73
|
-
}, {
|
|
74
|
-
default: r(() => [
|
|
75
|
-
s(o(b), {
|
|
84
|
+
default: l(() => [
|
|
85
|
+
o("div", W, [
|
|
86
|
+
g.value === "preview" ? (r(), d(m, { key: 0 }, [
|
|
87
|
+
h.value.trim().length ? (r(), d(m, { key: 0 }, [
|
|
88
|
+
a(n(R), {
|
|
89
|
+
class: "flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",
|
|
90
|
+
value: h.value,
|
|
91
|
+
withImages: "",
|
|
92
|
+
onDblclick: t[1] || (t[1] = (c) => s("edit"))
|
|
93
|
+
}, null, 8, ["value"]),
|
|
94
|
+
t[7] || (t[7] = o("div", { class: "brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-focus-visible:hidden" }, null, -1))
|
|
95
|
+
], 64)) : (r(), d("div", F, [
|
|
96
|
+
a(n(p), {
|
|
97
|
+
class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
|
|
76
98
|
size: "sm",
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
variant: "ghost",
|
|
100
|
+
onClick: t[2] || (t[2] = (c) => s("edit"))
|
|
101
|
+
}, {
|
|
102
|
+
default: l(() => [
|
|
103
|
+
a(n(S), {
|
|
104
|
+
size: "sm",
|
|
105
|
+
thickness: "1.5"
|
|
106
|
+
}),
|
|
107
|
+
t[8] || (t[8] = o("span", null, "Write a description", -1))
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
})
|
|
111
|
+
]))
|
|
112
|
+
], 64)) : (r(), T(n(H), {
|
|
113
|
+
key: 1,
|
|
114
|
+
ref_key: "codeInputRef",
|
|
115
|
+
ref: k,
|
|
116
|
+
class: "border px-0.5 py-0",
|
|
117
|
+
environment: void 0,
|
|
118
|
+
layout: e.layout,
|
|
119
|
+
modelValue: h.value,
|
|
120
|
+
onBlur: B
|
|
121
|
+
}, null, 8, ["layout", "modelValue"]))
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
}),
|
|
126
|
+
e.collectionType === "operation" ? (r(), d(m, { key: 0 }, [
|
|
127
|
+
a(y, null, {
|
|
128
|
+
title: l(() => [...t[9] || (t[9] = [
|
|
129
|
+
f("Status", -1)
|
|
130
|
+
])]),
|
|
131
|
+
default: l(() => [
|
|
132
|
+
o("div", {
|
|
133
|
+
class: C([
|
|
134
|
+
"rounded-lg border text-sm transition-colors",
|
|
135
|
+
v.value ? "border-(--scalar-color-alert) bg-(--scalar-background-alert)" : "bg-b-2 border-(--scalar-background-3)"
|
|
136
|
+
])
|
|
137
|
+
}, [
|
|
138
|
+
o("div", P, [
|
|
139
|
+
o("div", Z, [
|
|
140
|
+
o("h4", {
|
|
141
|
+
class: C([
|
|
142
|
+
"font-medium",
|
|
143
|
+
v.value ? "text-(--scalar-color-alert)" : "text-c-1"
|
|
144
|
+
])
|
|
145
|
+
}, " Deprecated ", 2),
|
|
146
|
+
t[10] || (t[10] = o("p", { class: "text-c-2 mt-1.5" }, " Mark this operation as deprecated. Consumers SHOULD refrain from using it. ", -1))
|
|
147
|
+
]),
|
|
148
|
+
a(n(U), {
|
|
149
|
+
class: "shrink-0",
|
|
150
|
+
modelValue: v.value,
|
|
151
|
+
"onUpdate:modelValue": $
|
|
152
|
+
}, null, 8, ["modelValue"])
|
|
153
|
+
])
|
|
154
|
+
], 2)
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
}),
|
|
158
|
+
a(y, null, {
|
|
159
|
+
title: l(() => [...t[11] || (t[11] = [
|
|
160
|
+
f("Danger Zone", -1)
|
|
161
|
+
])]),
|
|
162
|
+
default: l(() => [
|
|
163
|
+
o("div", q, [
|
|
164
|
+
t[13] || (t[13] = o("div", { class: "min-w-0 flex-1" }, [
|
|
165
|
+
o("h4", { class: "text-c-1 font-medium" }, "Delete Operation"),
|
|
166
|
+
o("p", { class: "text-c-2 mt-1.5" }, " Be careful, my friend. Once deleted, there is no way to recover the operation. ")
|
|
167
|
+
], -1)),
|
|
168
|
+
a(n(p), {
|
|
169
|
+
class: "shrink-0",
|
|
170
|
+
size: "sm",
|
|
171
|
+
variant: "danger",
|
|
172
|
+
onClick: t[3] || (t[3] = (c) => n(u).show())
|
|
173
|
+
}, {
|
|
174
|
+
default: l(() => [...t[12] || (t[12] = [
|
|
175
|
+
f(" Delete Operation ", -1)
|
|
176
|
+
])]),
|
|
177
|
+
_: 1
|
|
178
|
+
})
|
|
179
|
+
])
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
})
|
|
183
|
+
], 64)) : w("", !0)
|
|
96
184
|
]),
|
|
97
|
-
|
|
98
|
-
|
|
185
|
+
a(n(j), {
|
|
186
|
+
size: "xxs",
|
|
187
|
+
state: n(u),
|
|
188
|
+
title: `Delete ${x.value}`
|
|
189
|
+
}, {
|
|
190
|
+
default: l(() => [
|
|
191
|
+
a(E, {
|
|
192
|
+
variableName: x.value,
|
|
193
|
+
warningMessage: "This action cannot be undone.",
|
|
194
|
+
onClose: t[4] || (t[4] = (c) => n(u).hide()),
|
|
195
|
+
onDelete: M
|
|
196
|
+
}, null, 8, ["variableName"])
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, ["state", "title"])
|
|
200
|
+
], 64));
|
|
99
201
|
}
|
|
100
202
|
});
|
|
101
203
|
export {
|
|
102
|
-
|
|
204
|
+
_ as default
|
|
103
205
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
2
|
-
collectionType: "document";
|
|
2
|
+
collectionType: "document" | "operation";
|
|
3
3
|
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
4
4
|
}) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
5
5
|
collectionType: "workspace";
|
|
6
6
|
document: null;
|
|
7
7
|
}), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
8
|
-
collectionType: "document";
|
|
8
|
+
collectionType: "document" | "operation";
|
|
9
9
|
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
10
10
|
}) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
11
11
|
collectionType: "workspace";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Servers.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Servers.vue"],"names":[],"mappings":"AA8zBA,QAAA,MAAM,YAAY;;;;;;;;;;;;kGAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|