@scalar/api-client 2.0.15 → 2.0.17
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 +30 -0
- package/README.md +46 -3
- package/dist/App/ApiClientApp.vue.d.ts +3 -0
- package/dist/App/ApiClientApp.vue.d.ts.map +1 -0
- package/dist/App/ApiClientApp.vue.js +56 -0
- package/dist/App/ApiClientApp.vue3.js +5 -0
- package/dist/App/createApiClientApp.d.ts +16 -0
- package/dist/App/createApiClientApp.d.ts.map +1 -0
- package/dist/App/createApiClientApp.js +62 -0
- package/dist/App/index.d.ts +3 -0
- package/dist/App/index.d.ts.map +1 -0
- package/dist/App/index.js +6 -0
- package/dist/App.vue.d.ts.map +1 -1
- package/dist/App.vue.js +49 -33
- package/dist/Modal/api-client-modal.d.ts +1 -1
- package/dist/Modal/api-client-modal.d.ts.map +1 -1
- package/dist/Modal/api-client-modal.js +7 -7
- package/dist/Modal/index.js +4 -4
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts +40 -4
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +87 -38
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts +17 -0
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPalette.vue.js +7 -0
- package/dist/components/CommandPalette/CommandPalette.vue2.js +184 -0
- package/dist/components/{ActionModal/ActionModalImport.vue.d.ts → CommandPalette/CommandPaletteCollection.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +66 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue2.js +4 -0
- package/dist/components/{ActionModal/ActionModalCollection.vue.d.ts → CommandPalette/CommandPaletteExample.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +107 -0
- package/dist/components/CommandPalette/CommandPaletteExample.vue2.js +4 -0
- package/dist/components/{ActionModal/ActionModalRequest.vue.d.ts → CommandPalette/CommandPaletteFolder.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +104 -0
- package/dist/components/CommandPalette/CommandPaletteFolder.vue2.js +4 -0
- package/dist/components/{ActionModal/ActionModalVariant.vue.d.ts → CommandPalette/CommandPaletteImport.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +86 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue2.js +4 -0
- package/dist/components/{ActionModal/ActionModalFolder.vue.d.ts → CommandPalette/CommandPaletteRequest.vue.d.ts} +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +119 -0
- package/dist/components/CommandPalette/CommandPaletteRequest.vue2.js +4 -0
- package/dist/components/ContextBar.vue.js +5 -5
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +6 -6
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +4 -4
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +13 -13
- package/dist/components/DataTable/{DataTableInputEnumSelect.vue.d.ts → DataTableInputSelect.vue.d.ts} +3 -3
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -0
- package/dist/components/DataTable/DataTableInputSelect.vue.js +109 -0
- package/dist/components/DataTable/DataTableInputSelect.vue2.js +4 -0
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +3 -3
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue2.js +26 -26
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +8 -8
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +6 -9
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -6
- package/dist/router.d.ts +4 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +52 -2
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +74 -73
- package/dist/style.css +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +32 -31
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +68 -74
- package/dist/views/Request/RequestSection/RequestSection.vue.js +7 -7
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -5
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +80 -63
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +48 -48
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +41 -68
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
- package/package.json +11 -6
- package/dist/assets/ascii/collection.ascii.js +0 -10
- package/dist/assets/ascii/folder.ascii.js +0 -10
- package/dist/assets/ascii/import.ascii.js +0 -10
- package/dist/assets/ascii/request.ascii.js +0 -10
- package/dist/assets/ascii/variant.ascii.js +0 -10
- package/dist/components/ActionModal/ActionModal.vue.d.ts +0 -21
- package/dist/components/ActionModal/ActionModal.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModal.vue.js +0 -7
- package/dist/components/ActionModal/ActionModal.vue2.js +0 -117
- package/dist/components/ActionModal/ActionModalCollection.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalCollection.vue.js +0 -54
- package/dist/components/ActionModal/ActionModalCollection.vue2.js +0 -4
- package/dist/components/ActionModal/ActionModalFolder.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalFolder.vue.js +0 -92
- package/dist/components/ActionModal/ActionModalFolder.vue2.js +0 -4
- package/dist/components/ActionModal/ActionModalImport.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalImport.vue.js +0 -70
- package/dist/components/ActionModal/ActionModalImport.vue2.js +0 -4
- package/dist/components/ActionModal/ActionModalRequest.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalRequest.vue.js +0 -108
- package/dist/components/ActionModal/ActionModalRequest.vue2.js +0 -4
- package/dist/components/ActionModal/ActionModalVariant.vue.d.ts.map +0 -1
- package/dist/components/ActionModal/ActionModalVariant.vue.js +0 -93
- package/dist/components/ActionModal/ActionModalVariant.vue2.js +0 -4
- package/dist/components/DataTable/DataTableInputEnumSelect.vue.d.ts.map +0 -1
- package/dist/components/DataTable/DataTableInputEnumSelect.vue.js +0 -102
- package/dist/components/DataTable/DataTableInputEnumSelect.vue2.js +0 -4
- package/dist/hooks/useActionModal.d.ts +0 -16
- package/dist/hooks/useActionModal.d.ts.map +0 -1
- package/dist/hooks/useActionModal.js +0 -25
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as F, openBlock as u, createBlock as d, unref as m, withCtx as r, createElementBlock as y, Fragment as w, renderList as I, createCommentVNode as c, createVNode as i, createSlots as C, createTextVNode as U, toDisplayString as V, createElementVNode as p, computed as x, pushScopeId as E, popScopeId as T } from "vue";
|
|
2
|
+
import k from "../../../components/CodeInput/CodeInput.vue.js";
|
|
3
|
+
import q from "../../../components/DataTable/DataTable.vue.js";
|
|
4
|
+
import f from "../../../components/DataTable/DataTableCell.vue.js";
|
|
5
|
+
import N from "../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
6
6
|
import D from "../../../components/DataTable/DataTableRow.vue.js";
|
|
7
7
|
import { ScalarButton as H, ScalarIcon as z } from "@scalar/components";
|
|
8
8
|
import A from "./RequestTableTooltip.vue.js";
|
|
9
|
-
const M = (s) => (
|
|
9
|
+
const M = (s) => (E("data-v-fe74a9ea"), s = s(), T(), s), O = { class: "text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end" }, j = ["onClick"], K = /* @__PURE__ */ M(() => /* @__PURE__ */ p("span", null, "File", -1)), Z = /* @__PURE__ */ F({
|
|
10
10
|
__name: "RequestTable",
|
|
11
11
|
props: {
|
|
12
12
|
items: {},
|
|
@@ -14,12 +14,12 @@ const M = (s) => (C("data-v-9b63a166"), s = s(), E(), s), O = { class: "text-c-2
|
|
|
14
14
|
showUploadButton: { type: Boolean, default: !1 }
|
|
15
15
|
},
|
|
16
16
|
emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
|
|
17
|
-
setup(s, { emit:
|
|
18
|
-
const
|
|
17
|
+
setup(s, { emit: g }) {
|
|
18
|
+
const h = s, t = g, B = h.isEnabledHidden ? ["", ""] : ["", "", "36px"], b = (e, n, l) => {
|
|
19
19
|
t("updateRow", e, n, l);
|
|
20
|
-
},
|
|
20
|
+
}, _ = (e) => {
|
|
21
21
|
t("uploadFile", e);
|
|
22
|
-
},
|
|
22
|
+
}, $ = (e) => !!(e.description || e.type || e.default || e.format), v = (e) => x(() => {
|
|
23
23
|
if (e.type === "integer" && e.value !== void 0) {
|
|
24
24
|
const n = Number(e.value);
|
|
25
25
|
if (e.minimum !== void 0 && n < e.minimum)
|
|
@@ -29,83 +29,100 @@ const M = (s) => (C("data-v-9b63a166"), s = s(), E(), s), O = { class: "text-c-2
|
|
|
29
29
|
}
|
|
30
30
|
return !1;
|
|
31
31
|
}), R = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default;
|
|
32
|
-
return (e, n) => (u(),
|
|
32
|
+
return (e, n) => (u(), d(q, {
|
|
33
33
|
class: "flex-1",
|
|
34
|
-
columns:
|
|
34
|
+
columns: m(B)
|
|
35
35
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
(u(!0),
|
|
38
|
-
default:
|
|
39
|
-
e.isEnabledHidden ?
|
|
36
|
+
default: r(() => [
|
|
37
|
+
(u(!0), y(w, null, I(e.items, (l, a) => (u(), d(D, { key: a }, {
|
|
38
|
+
default: r(() => [
|
|
39
|
+
e.isEnabledHidden ? c("", !0) : (u(), d(N, {
|
|
40
40
|
key: 0,
|
|
41
|
-
modelValue: l.
|
|
41
|
+
modelValue: !!l.required,
|
|
42
42
|
"onUpdate:modelValue": (o) => t("toggleRow", a, o)
|
|
43
43
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
placeholder: "Value",
|
|
60
|
-
type: l.type === "integer" ? "number" : "text",
|
|
61
|
-
onBlur: n[2] || (n[2] = (o) => t("inputBlur")),
|
|
62
|
-
onFocus: n[3] || (n[3] = (o) => t("inputFocus")),
|
|
63
|
-
onInput: (o) => e.items && a === e.items.length - 1 && t("addRow"),
|
|
64
|
-
onSelectVariable: (o) => f(a, "value", o),
|
|
65
|
-
"onUpdate:modelValue": (o) => t("updateRow", a, "value", o)
|
|
66
|
-
}, x({
|
|
67
|
-
icon: d(() => [
|
|
68
|
-
B(l) ? (u(), r(A, {
|
|
69
|
-
key: 0,
|
|
70
|
-
item: { ...l, default: R(l) }
|
|
71
|
-
}, null, 8, ["item"])) : m("", !0)
|
|
44
|
+
i(f, null, {
|
|
45
|
+
default: r(() => [
|
|
46
|
+
i(k, {
|
|
47
|
+
disableCloseBrackets: "",
|
|
48
|
+
disableEnter: "",
|
|
49
|
+
disableTabIndent: "",
|
|
50
|
+
modelValue: l.key,
|
|
51
|
+
placeholder: "Key",
|
|
52
|
+
required: l.required,
|
|
53
|
+
onBlur: n[0] || (n[0] = (o) => t("inputBlur")),
|
|
54
|
+
onFocus: n[1] || (n[1] = (o) => t("inputFocus")),
|
|
55
|
+
onInput: (o) => e.items && a === e.items.length - 1 && t("addRow"),
|
|
56
|
+
onSelectVariable: (o) => b(a, "key", o),
|
|
57
|
+
"onUpdate:modelValue": (o) => t("updateRow", a, "key", o)
|
|
58
|
+
}, null, 8, ["modelValue", "required", "onInput", "onSelectVariable", "onUpdate:modelValue"])
|
|
72
59
|
]),
|
|
73
60
|
_: 2
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
61
|
+
}, 1024),
|
|
62
|
+
i(f, null, {
|
|
63
|
+
default: r(() => [
|
|
64
|
+
i(k, {
|
|
65
|
+
disableCloseBrackets: "",
|
|
66
|
+
disableEnter: "",
|
|
67
|
+
disableTabIndent: "",
|
|
68
|
+
enum: l.enum,
|
|
69
|
+
max: l.maximum,
|
|
70
|
+
min: l.minimum,
|
|
71
|
+
modelValue: l.value,
|
|
72
|
+
nullable: l.nullable,
|
|
73
|
+
placeholder: "Value",
|
|
74
|
+
type: l.type,
|
|
75
|
+
onBlur: n[2] || (n[2] = (o) => t("inputBlur")),
|
|
76
|
+
onFocus: n[3] || (n[3] = (o) => t("inputFocus")),
|
|
77
|
+
onInput: (o) => e.items && a === e.items.length - 1 && t("addRow"),
|
|
78
|
+
onSelectVariable: (o) => b(a, "value", o),
|
|
79
|
+
"onUpdate:modelValue": (o) => t("updateRow", a, "value", o)
|
|
80
|
+
}, C({
|
|
81
|
+
icon: r(() => [
|
|
82
|
+
$(l) ? (u(), d(A, {
|
|
83
|
+
key: 0,
|
|
84
|
+
item: { ...l, default: R(l) }
|
|
85
|
+
}, null, 8, ["item"])) : c("", !0)
|
|
86
|
+
]),
|
|
87
|
+
_: 2
|
|
88
|
+
}, [
|
|
89
|
+
v(l).value ? {
|
|
90
|
+
name: "warning",
|
|
91
|
+
fn: r(() => [
|
|
92
|
+
U(V(v(l).value), 1)
|
|
93
|
+
]),
|
|
94
|
+
key: "0"
|
|
95
|
+
} : void 0
|
|
96
|
+
]), 1032, ["enum", "max", "min", "modelValue", "nullable", "type", "onInput", "onSelectVariable", "onUpdate:modelValue"])
|
|
97
|
+
]),
|
|
98
|
+
_: 2
|
|
99
|
+
}, 1024),
|
|
100
|
+
e.showUploadButton ? (u(), d(f, {
|
|
84
101
|
key: 1,
|
|
85
102
|
class: "group/upload p-1 overflow-hidden relative text-ellipsis whitespace-nowrap"
|
|
86
103
|
}, {
|
|
87
|
-
default:
|
|
104
|
+
default: r(() => {
|
|
88
105
|
var o;
|
|
89
106
|
return [
|
|
90
|
-
l.file ? (u(),
|
|
107
|
+
l.file ? (u(), y(w, { key: 0 }, [
|
|
91
108
|
p("div", O, [
|
|
92
|
-
p("span", null,
|
|
109
|
+
p("span", null, V((o = l.file) == null ? void 0 : o.name), 1)
|
|
93
110
|
]),
|
|
94
111
|
p("button", {
|
|
95
112
|
class: "absolute bg-b-2 font-medium centered-x centered-y hidden rounded text-center p-0.5 w-[calc(100%_-_8px)] group-hover/upload:block text-xs",
|
|
96
113
|
type: "button",
|
|
97
114
|
onClick: (S) => t("removeFile", a)
|
|
98
115
|
}, " Delete ", 8, j)
|
|
99
|
-
], 64)) : (u(),
|
|
116
|
+
], 64)) : (u(), d(m(H), {
|
|
100
117
|
key: 1,
|
|
101
118
|
class: "bg-b-2 hover:bg-b-3 border-0 py-px text-c-2",
|
|
102
119
|
size: "sm",
|
|
103
120
|
variant: "outlined",
|
|
104
|
-
onClick: (S) =>
|
|
121
|
+
onClick: (S) => _(a)
|
|
105
122
|
}, {
|
|
106
|
-
default:
|
|
123
|
+
default: r(() => [
|
|
107
124
|
K,
|
|
108
|
-
|
|
125
|
+
i(m(z), {
|
|
109
126
|
class: "ml-1 stroke-[2.5]",
|
|
110
127
|
icon: "UploadSimple",
|
|
111
128
|
size: "xs"
|
|
@@ -116,7 +133,7 @@ const M = (s) => (C("data-v-9b63a166"), s = s(), E(), s), O = { class: "text-c-2
|
|
|
116
133
|
];
|
|
117
134
|
}),
|
|
118
135
|
_: 2
|
|
119
|
-
}, 1024)) :
|
|
136
|
+
}, 1024)) : c("", !0)
|
|
120
137
|
]),
|
|
121
138
|
_: 2
|
|
122
139
|
}, 1024))), 128))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA0OA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;AA8GlD,iBAAS,cAAc;gBA3ET,IAAI;;gBAAJ,IAAI;EA8VjB;AACD,QAAA,MAAM,eAAe;IAzXjB;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,OAAO;IACrB,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;IAdpD;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,OAAO;IACrB,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;iBATtC,OAAO;iBAMP,OAAO;MAqXvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
5
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-13538653"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import { ScalarIcon as
|
|
4
|
-
import { Draggable as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useSidebar as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as O, useCssVars as V, computed as l, resolveComponent as j, openBlock as n, createElementBlock as d, normalizeClass as p, unref as r, createVNode as m, withCtx as U, createBlock as f, createElementVNode as o, toDisplayString as y, createCommentVNode as b, createTextVNode as q, renderSlot as F, withDirectives as L, Fragment as T, renderList as K, vShow as W } from "vue";
|
|
2
|
+
import { useWorkspace as A } from "../../store/workspace.js";
|
|
3
|
+
import { ScalarIcon as G } from "@scalar/components";
|
|
4
|
+
import { Draggable as H } from "@scalar/draggable";
|
|
5
|
+
import { useRouter as J, RouterLink as M } from "vue-router";
|
|
6
|
+
import P from "./RequestSidebarItemMenu.vue.js";
|
|
7
|
+
import Q from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
8
|
+
import { useSidebar as X } from "../../hooks/useSidebar.js";
|
|
9
|
+
const Y = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" }, Z = { class: "relative" }, _ = { class: "flex" }, ee = { class: "z-10 flex h-fit items-center justify-center max-w-[14px]" }, te = { class: "z-10 font-medium" }, re = { key: 2 }, w = "hover:bg-sidebar-active-b indent-padding-left", ue = /* @__PURE__ */ O({
|
|
10
10
|
__name: "RequestSidebarItem",
|
|
11
11
|
props: {
|
|
12
12
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -15,29 +15,30 @@ const X = { class: "z-10 font-medium w-full editable-sidebar-hover-item" }, Y =
|
|
|
15
15
|
item: {}
|
|
16
16
|
},
|
|
17
17
|
emits: ["onDragEnd"],
|
|
18
|
-
setup(
|
|
19
|
-
|
|
20
|
-
"
|
|
18
|
+
setup(k) {
|
|
19
|
+
V((e) => ({
|
|
20
|
+
"3ec1394c": E.value,
|
|
21
|
+
"4a0da8f2": R.value
|
|
21
22
|
}));
|
|
22
|
-
const
|
|
23
|
-
e.metaKey ? window.open(`/request/${t}`, "_blank") :
|
|
23
|
+
const i = k, { activeRequest: g, folders: $, isReadOnly: a, requests: c, requestExamples: C } = A(), { collapsedSidebarFolders: h, toggleSidebarFolder: S } = X(), x = J(), v = l(() => "childUids" in i.item), E = l(() => i.parentUids.length ? a.value ? `${(i.parentUids.length - 1) * 12}px` : `${i.parentUids.length * 12}px` : "12px"), R = l(() => i.parentUids.length ? a.value ? `${(i.parentUids.length - 1) * 12}px` : `${i.parentUids.length * 12}px` : "0px"), z = (e, t) => {
|
|
24
|
+
e.metaKey ? window.open(`/request/${t}`, "_blank") : x.push(`/request/${t}`);
|
|
24
25
|
}, D = (e) => {
|
|
25
26
|
var t;
|
|
26
27
|
return "spec" in e ? (t = e.spec.info) == null ? void 0 : t.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
|
|
27
|
-
}, I = l(() => ("requestUid" in
|
|
28
|
+
}, I = l(() => ("requestUid" in i.item ? c[i.item.requestUid] : i.item).method), B = l(
|
|
28
29
|
() => {
|
|
29
30
|
var e;
|
|
30
|
-
return h[
|
|
31
|
+
return h[i.item.uid] || ((e = g.value) == null ? void 0 : e.uid) === i.item.uid && i.item.childUids.length > 1;
|
|
31
32
|
}
|
|
32
33
|
);
|
|
33
34
|
return (e, t) => {
|
|
34
|
-
const N =
|
|
35
|
-
return
|
|
35
|
+
const N = j("RequestSidebarItem", !0);
|
|
36
|
+
return n(), d("div", {
|
|
36
37
|
class: p(["relative flex flex-row", [
|
|
37
|
-
r(a) && e.parentUids.length > 1 || !r(a) && e.parentUids.length ? "before:bg-b-3
|
|
38
|
+
r(a) && e.parentUids.length > 1 || !r(a) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-px mb-[.5px] last:mb-0 indent-border-line-offset" : ""
|
|
38
39
|
]])
|
|
39
40
|
}, [
|
|
40
|
-
|
|
41
|
+
m(r(H), {
|
|
41
42
|
id: e.item.uid,
|
|
42
43
|
ceiling: v.value ? 0.8 : 0.5,
|
|
43
44
|
class: "flex flex-1 flex-col gap-[.5px] text-sm",
|
|
@@ -45,35 +46,34 @@ const X = { class: "z-10 font-medium w-full editable-sidebar-hover-item" }, Y =
|
|
|
45
46
|
isDraggable: e.parentUids.length > 0 && e.isDraggable,
|
|
46
47
|
isDroppable: e.isDroppable,
|
|
47
48
|
parentIds: e.parentUids,
|
|
48
|
-
onOnDragEnd: t[3] || (t[3] = (...
|
|
49
|
+
onOnDragEnd: t[3] || (t[3] = (...s) => e.$emit("onDragEnd", ...s))
|
|
49
50
|
}, {
|
|
50
51
|
default: U(() => [
|
|
51
|
-
"summary" in e.item || "requestUid" in e.item ? (
|
|
52
|
+
"summary" in e.item || "requestUid" in e.item ? (n(), f(r(M), {
|
|
52
53
|
key: 0,
|
|
53
54
|
custom: "",
|
|
54
55
|
to: `/request/${e.item.uid}`
|
|
55
56
|
}, {
|
|
56
57
|
default: U(() => {
|
|
57
|
-
var
|
|
58
|
+
var s;
|
|
58
59
|
return [
|
|
59
|
-
|
|
60
|
+
o("div", {
|
|
60
61
|
class: p(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover", [
|
|
61
|
-
|
|
62
|
-
((
|
|
63
|
-
(e.isDroppable, "pl-3")
|
|
62
|
+
w,
|
|
63
|
+
((s = r(g)) == null ? void 0 : s.uid) === e.item.uid ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
|
|
64
64
|
]]),
|
|
65
65
|
tabindex: "0",
|
|
66
|
-
onClick: t[0] || (t[0] = (
|
|
66
|
+
onClick: t[0] || (t[0] = (u) => z(u, e.item.uid))
|
|
67
67
|
}, [
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
r(a) ? b("", !0) : (
|
|
68
|
+
o("span", Y, y(D(e.item)), 1),
|
|
69
|
+
o("div", Z, [
|
|
70
|
+
r(a) ? b("", !0) : (n(), f(P, {
|
|
71
71
|
key: 0,
|
|
72
72
|
item: e.item
|
|
73
73
|
}, null, 8, ["item"])),
|
|
74
|
-
|
|
74
|
+
o("span", _, [
|
|
75
75
|
q(" "),
|
|
76
|
-
|
|
76
|
+
m(r(Q), {
|
|
77
77
|
class: "font-bold",
|
|
78
78
|
method: I.value
|
|
79
79
|
}, null, 8, ["method"])
|
|
@@ -83,20 +83,20 @@ const X = { class: "z-10 font-medium w-full editable-sidebar-hover-item" }, Y =
|
|
|
83
83
|
];
|
|
84
84
|
}),
|
|
85
85
|
_: 1
|
|
86
|
-
}, 8, ["to"])) : !r(a) || e.parentUids.length ? (
|
|
86
|
+
}, 8, ["to"])) : !r(a) || e.parentUids.length ? (n(), d("button", {
|
|
87
87
|
key: 1,
|
|
88
|
-
class: p(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]",
|
|
88
|
+
class: p(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", w]),
|
|
89
89
|
type: "button",
|
|
90
|
-
onClick: t[1] || (t[1] = (
|
|
90
|
+
onClick: t[1] || (t[1] = (s) => r(S)(e.item.uid))
|
|
91
91
|
}, [
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
o("span", ee, [
|
|
93
|
+
F(e.$slots, "leftIcon", {}, () => [
|
|
94
|
+
o("div", {
|
|
95
95
|
class: p({
|
|
96
96
|
"rotate-90": r(h)[e.item.uid]
|
|
97
97
|
})
|
|
98
98
|
}, [
|
|
99
|
-
|
|
99
|
+
m(r(G), {
|
|
100
100
|
class: "text-c-3 text-sm",
|
|
101
101
|
icon: "ChevronRight",
|
|
102
102
|
size: "sm"
|
|
@@ -105,19 +105,19 @@ const X = { class: "z-10 font-medium w-full editable-sidebar-hover-item" }, Y =
|
|
|
105
105
|
], !0),
|
|
106
106
|
q(" ")
|
|
107
107
|
]),
|
|
108
|
-
|
|
108
|
+
o("span", te, y(D(e.item)), 1)
|
|
109
109
|
])) : b("", !0),
|
|
110
|
-
"childUids" in e.item ?
|
|
111
|
-
(
|
|
112
|
-
key:
|
|
110
|
+
"childUids" in e.item ? L((n(), d("div", re, [
|
|
111
|
+
(n(!0), d(T, null, K(e.item.childUids, (s) => (n(), f(N, {
|
|
112
|
+
key: s,
|
|
113
113
|
isDraggable: e.isDraggable,
|
|
114
114
|
isDroppable: e.isDroppable,
|
|
115
|
-
item: r(
|
|
115
|
+
item: r($)[s] || r(c)[s] || r(C)[s],
|
|
116
116
|
parentUids: [...e.parentUids, e.item.uid],
|
|
117
|
-
onOnDragEnd: t[2] || (t[2] = (...
|
|
117
|
+
onOnDragEnd: t[2] || (t[2] = (...u) => e.$emit("onDragEnd", ...u))
|
|
118
118
|
}, null, 8, ["isDraggable", "isDroppable", "item", "parentUids"]))), 128))
|
|
119
119
|
], 512)), [
|
|
120
|
-
[
|
|
120
|
+
[W, B.value]
|
|
121
121
|
]) : b("", !0)
|
|
122
122
|
]),
|
|
123
123
|
_: 3
|
|
@@ -127,5 +127,5 @@ const X = { class: "z-10 font-medium w-full editable-sidebar-hover-item" }, Y =
|
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
export {
|
|
130
|
-
|
|
130
|
+
ue as default
|
|
131
131
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;;UAM1C,OAAO,GAAG,cAAc;;UAAxB,OAAO,GAAG,cAAc;;AAmShC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,109 +1,82 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const w = /* @__PURE__ */ i("span", null, "Add Example", -1), C = /* @__PURE__ */ i("span", null, "Rename", -1), R = /* @__PURE__ */ i("span", null, "Duplicate", -1), q = /* @__PURE__ */ i("span", null, "Delete", -1), N = /* @__PURE__ */ y({
|
|
1
|
+
import { defineComponent as _, computed as h, openBlock as c, createBlock as m, unref as e, withCtx as s, createVNode as t, createCommentVNode as k, withModifiers as g, createElementVNode as a } from "vue";
|
|
2
|
+
import { useWorkspace as z } from "../../store/workspace.js";
|
|
3
|
+
import { ScalarDropdown as D, ScalarDropdownItem as o, ScalarIcon as i, ScalarDropdownDivider as E, ScalarButton as S } from "@scalar/components";
|
|
4
|
+
const v = /* @__PURE__ */ a("span", null, "Add Example", -1), w = /* @__PURE__ */ a("span", null, "Rename", -1), C = /* @__PURE__ */ a("span", null, "Duplicate", -1), b = /* @__PURE__ */ a("span", null, "Delete", -1), B = /* @__PURE__ */ _({
|
|
6
5
|
__name: "RequestSidebarItemMenu",
|
|
7
6
|
props: {
|
|
8
7
|
item: {}
|
|
9
8
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
if (!("summary" in
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
...
|
|
16
|
-
|
|
9
|
+
setup(d) {
|
|
10
|
+
const l = d, { createExampleFromRequest: u, requestMutators: p } = z(), f = () => {
|
|
11
|
+
if (!("summary" in l.item)) return;
|
|
12
|
+
const n = u(l.item);
|
|
13
|
+
p.edit(l.item.uid, "childUids", [
|
|
14
|
+
...l.item.childUids,
|
|
15
|
+
n.uid
|
|
17
16
|
]);
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
}, _ = () => {
|
|
21
|
-
console.log("duplicate");
|
|
22
|
-
}, g = () => {
|
|
23
|
-
console.log("delete");
|
|
24
|
-
}, k = D(() => "summary" in o.item);
|
|
25
|
-
return (r, d) => (p(), m(t(I), { teleport: "#scalar-client" }, {
|
|
17
|
+
}, x = h(() => "summary" in l.item);
|
|
18
|
+
return (n, r) => (c(), m(e(D), { teleport: "#scalar-client" }, {
|
|
26
19
|
items: s(() => [
|
|
27
|
-
|
|
20
|
+
x.value ? (c(), m(e(o), {
|
|
28
21
|
key: 0,
|
|
29
22
|
class: "flex !gap-2",
|
|
30
|
-
onClick:
|
|
23
|
+
onClick: f
|
|
31
24
|
}, {
|
|
32
25
|
default: s(() => [
|
|
33
|
-
e(
|
|
34
|
-
class: "
|
|
35
|
-
icon: "
|
|
36
|
-
size: "
|
|
26
|
+
t(e(i), {
|
|
27
|
+
class: "inline-flex !stroke-[1.5]",
|
|
28
|
+
icon: "AddLine",
|
|
29
|
+
size: "sm"
|
|
37
30
|
}),
|
|
38
|
-
|
|
39
|
-
e(a, {
|
|
40
|
-
class: "absolute right-2 text-c-3",
|
|
41
|
-
hotkey: "1",
|
|
42
|
-
onHotkeyPressed: c
|
|
43
|
-
})
|
|
31
|
+
v
|
|
44
32
|
]),
|
|
45
33
|
_: 1
|
|
46
|
-
})) :
|
|
47
|
-
e(
|
|
34
|
+
})) : k("", !0),
|
|
35
|
+
t(e(o), { class: "flex !gap-2" }, {
|
|
48
36
|
default: s(() => [
|
|
49
|
-
e(
|
|
50
|
-
class: "
|
|
37
|
+
t(e(i), {
|
|
38
|
+
class: "inline-flex !stroke-[1.5]",
|
|
51
39
|
icon: "Edit",
|
|
52
|
-
size: "
|
|
40
|
+
size: "sm"
|
|
53
41
|
}),
|
|
54
|
-
|
|
55
|
-
e(a, {
|
|
56
|
-
class: "absolute right-2 text-c-3",
|
|
57
|
-
hotkey: "2",
|
|
58
|
-
onHotkeyPressed: h
|
|
59
|
-
})
|
|
42
|
+
w
|
|
60
43
|
]),
|
|
61
44
|
_: 1
|
|
62
45
|
}),
|
|
63
|
-
e(
|
|
46
|
+
t(e(o), { class: "flex !gap-2" }, {
|
|
64
47
|
default: s(() => [
|
|
65
|
-
e(
|
|
66
|
-
class: "
|
|
48
|
+
t(e(i), {
|
|
49
|
+
class: "inline-flex !stroke-[1.5]",
|
|
67
50
|
icon: "Duplicate",
|
|
68
|
-
size: "
|
|
51
|
+
size: "sm"
|
|
69
52
|
}),
|
|
70
|
-
|
|
71
|
-
e(a, {
|
|
72
|
-
class: "absolute right-2 text-c-3",
|
|
73
|
-
hotkey: "3",
|
|
74
|
-
onHotkeyPressed: _
|
|
75
|
-
})
|
|
53
|
+
C
|
|
76
54
|
]),
|
|
77
55
|
_: 1
|
|
78
56
|
}),
|
|
79
|
-
e(
|
|
80
|
-
e(
|
|
57
|
+
t(e(E)),
|
|
58
|
+
t(e(o), { class: "flex !gap-2" }, {
|
|
81
59
|
default: s(() => [
|
|
82
|
-
e(
|
|
83
|
-
class: "
|
|
60
|
+
t(e(i), {
|
|
61
|
+
class: "inline-flex !stroke-[1.5]",
|
|
84
62
|
icon: "Trash",
|
|
85
|
-
size: "
|
|
63
|
+
size: "sm"
|
|
86
64
|
}),
|
|
87
|
-
|
|
88
|
-
e(a, {
|
|
89
|
-
class: "absolute right-2 text-c-3",
|
|
90
|
-
hotkey: "4",
|
|
91
|
-
onHotkeyPressed: g
|
|
92
|
-
})
|
|
65
|
+
b
|
|
93
66
|
]),
|
|
94
67
|
_: 1
|
|
95
68
|
})
|
|
96
69
|
]),
|
|
97
70
|
default: s(() => [
|
|
98
|
-
e(
|
|
71
|
+
t(e(S), {
|
|
99
72
|
class: "z-10 hover:bg-b-3 transition-none p-1 group-hover:flex ui-open:flex absolute left-0 hidden -translate-x-full -ml-1",
|
|
100
73
|
size: "sm",
|
|
101
74
|
variant: "ghost",
|
|
102
|
-
onClick:
|
|
75
|
+
onClick: r[0] || (r[0] = g(() => {
|
|
103
76
|
}, ["stop"]))
|
|
104
77
|
}, {
|
|
105
78
|
default: s(() => [
|
|
106
|
-
e(
|
|
79
|
+
t(e(i), {
|
|
107
80
|
icon: "Ellipses",
|
|
108
81
|
size: "sm"
|
|
109
82
|
})
|
|
@@ -116,5 +89,5 @@ const w = /* @__PURE__ */ i("span", null, "Add Example", -1), C = /* @__PURE__ *
|
|
|
116
89
|
}
|
|
117
90
|
});
|
|
118
91
|
export {
|
|
119
|
-
|
|
92
|
+
B as default
|
|
120
93
|
};
|
|
@@ -43,9 +43,9 @@ const E = { class: "flex items-center flex-1" }, H = { class: "custom-scroll fle
|
|
|
43
43
|
return (e, o) => (r(), n(g, null, {
|
|
44
44
|
title: u(() => [
|
|
45
45
|
p(S(R), {
|
|
46
|
-
class: "text-c-3 mr-
|
|
46
|
+
class: "text-c-3 mr-2 rotate-180 stroke-[2]",
|
|
47
47
|
icon: "ExternalLink",
|
|
48
|
-
size: "
|
|
48
|
+
size: "sm"
|
|
49
49
|
}),
|
|
50
50
|
f("div", E, [
|
|
51
51
|
C(" Response "),
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.0.
|
|
21
|
+
"version": "2.0.17",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -81,6 +81,10 @@
|
|
|
81
81
|
"import": "./dist/Modal/index.js",
|
|
82
82
|
"types": "./dist/Modal/index.d.ts"
|
|
83
83
|
},
|
|
84
|
+
"./App": {
|
|
85
|
+
"import": "./dist/App/index.js",
|
|
86
|
+
"types": "./dist/App/index.d.ts"
|
|
87
|
+
},
|
|
84
88
|
"./css/*.css": {
|
|
85
89
|
"import": "./dist/css/*.css",
|
|
86
90
|
"require": "./dist/css/*.css"
|
|
@@ -110,14 +114,14 @@
|
|
|
110
114
|
"vue": "^3.4.22",
|
|
111
115
|
"vue-router": "^4.3.0",
|
|
112
116
|
"zod": "^3.22.4",
|
|
113
|
-
"@scalar/components": "0.12.
|
|
117
|
+
"@scalar/components": "0.12.13",
|
|
114
118
|
"@scalar/draggable": "0.1.3",
|
|
115
|
-
"@scalar/oas-utils": "0.2.13",
|
|
116
119
|
"@scalar/object-utils": "1.1.4",
|
|
117
120
|
"@scalar/themes": "0.9.13",
|
|
121
|
+
"@scalar/use-codemirror": "0.11.6",
|
|
122
|
+
"@scalar/oas-utils": "0.2.13",
|
|
118
123
|
"@scalar/use-toasts": "0.7.4",
|
|
119
|
-
"@scalar/use-tooltip": "1.0.2"
|
|
120
|
-
"@scalar/use-codemirror": "0.11.5"
|
|
124
|
+
"@scalar/use-tooltip": "1.0.2"
|
|
121
125
|
},
|
|
122
126
|
"devDependencies": {
|
|
123
127
|
"@types/content-type": "^1.1.8",
|
|
@@ -139,9 +143,10 @@
|
|
|
139
143
|
"scripts": {
|
|
140
144
|
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|
|
141
145
|
"dev": "vite",
|
|
142
|
-
"dev:modal": "vite ./playground -c ./vite.config.ts",
|
|
143
146
|
"lint:check": "eslint .",
|
|
144
147
|
"lint:fix": "eslint . --fix",
|
|
148
|
+
"playground:app": "vite ./playground/app -c ./vite.config.ts",
|
|
149
|
+
"playground:modal": "vite ./playground/modal -c ./vite.config.ts",
|
|
145
150
|
"preview": "vite preview",
|
|
146
151
|
"test": "vitest",
|
|
147
152
|
"types:build": "vue-tsc -p tsconfig.build.json",
|