@scalar/api-client 2.0.24 → 2.0.25
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 +26 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +79 -83
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +10 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +3 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +42 -37
- package/dist/components/CodeInput/codeDropdownWidget.d.ts +24 -0
- package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -0
- package/dist/components/CodeInput/codeDropdownWidget.js +110 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts +8 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -0
- package/dist/components/CodeInput/codeVariableWidget.js +124 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +51 -54
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +4 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +106 -92
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +68 -74
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -62
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +106 -99
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +7 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +57 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +4 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +50 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +198 -0
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.d.ts.map +1 -0
- package/dist/components/CommandPalette/index.js +4 -0
- package/dist/components/ContextBar.vue.js +4 -4
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +26 -23
- package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +5 -5
- package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +14 -12
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +31 -28
- package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +16 -15
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
- package/dist/constants.d.ts +13 -7
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -16
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
- package/dist/layouts/App/ApiClientApp.vue.js +72 -0
- package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
- package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
- package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
- package/dist/layouts/App/index.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/api-client-modal.js +2 -2
- package/dist/layouts/Modal/index.d.ts.map +1 -0
- package/dist/libs/eventBusses/command-palette.d.ts +14 -0
- package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
- package/dist/libs/eventBusses/command-palette.js +5 -0
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +19 -19
- package/dist/router.d.ts +5 -10
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +23 -19
- package/dist/store/topNav.d.ts +94 -82
- package/dist/store/topNav.d.ts.map +1 -1
- package/dist/store/topNav.js +21 -20
- package/dist/store/workspace.d.ts +314 -84
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +299 -220
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +9 -12
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +22 -25
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +122 -105
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +5 -4
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +19 -19
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +78 -81
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +53 -33
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +6 -5
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuth2.vue.js +2 -0
- package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
- package/dist/views/Request/components/index.d.ts +1 -0
- package/dist/views/Request/components/index.d.ts.map +1 -1
- package/dist/views/Request/components/index.js +4 -2
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +12 -15
- package/package.json +20 -16
- package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
- package/dist/App/ApiClientApp.vue.js +0 -56
- package/dist/App/createApiClientApp.d.ts.map +0 -1
- package/dist/App/index.d.ts.map +0 -1
- package/dist/App.vue.d.ts.map +0 -1
- package/dist/App.vue.js +0 -77
- package/dist/App.vue3.js +0 -5
- package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
- package/dist/Modal/api-client-modal.d.ts.map +0 -1
- package/dist/Modal/index.d.ts.map +0 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +0 -113
- package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -185
- package/dist/main.d.ts +0 -2
- package/dist/main.d.ts.map +0 -1
- /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
- /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
- /package/dist/{App → layouts/App}/index.d.ts +0 -0
- /package/dist/{App → layouts/App}/index.js +0 -0
- /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
- /package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +0 -0
- /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
- /package/dist/{Modal → layouts/Modal}/index.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AA6EA,iBAAS,cAAc;qBA6FO,GAAG;kBACN,GAAG;EAiB7B;AACD,QAAA,MAAM,eAAe;QAzIb,MAAM;WACH,MAAM;qBACI,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;;;;;;;;;;QALd,MAAM;WACH,MAAM;qBACI,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AA6EA,iBAAS,cAAc;qBA6FO,GAAG;kBACN,GAAG;EAiB7B;AACD,QAAA,MAAM,eAAe;QAzIb,MAAM;WACH,MAAM;qBACI,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;;;;;;;;;;QALd,MAAM;WACH,MAAM;qBACI,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;eAChB,OAAO;;;;;;;;;;cAFP,OAAO;cAEP,OAAO;MA2IpB,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":";AA+WA,wBAKG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, computed as v, ref as x, watch as A, openBlock as S, createBlock as
|
|
1
|
+
import { defineComponent as y, computed as v, ref as x, watch as A, openBlock as S, createBlock as k, withCtx as _, createVNode as l, unref as n, createElementVNode as r, createTextVNode as q, toDisplayString as B, withDirectives as o, vShow as a } from "vue";
|
|
2
2
|
import R from "../../../components/ContextBar.vue.js";
|
|
3
3
|
import C from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
4
4
|
import { useWorkspace as E } from "../../../store/workspace.js";
|
|
@@ -26,17 +26,18 @@ const P = { class: "flex-1" }, T = { class: "text-c-3 pl-1" }, w = { class: "req
|
|
|
26
26
|
), e = x("All");
|
|
27
27
|
return A(i, (t) => {
|
|
28
28
|
e.value === "Body" && !c.includes(t.method) && (e.value = "All");
|
|
29
|
-
}), (t, f) => (S(),
|
|
29
|
+
}), (t, f) => (S(), k(C, null, {
|
|
30
30
|
title: _(() => {
|
|
31
31
|
var s;
|
|
32
32
|
return [
|
|
33
33
|
l(n(O), {
|
|
34
34
|
class: "text-c-3 mr-2",
|
|
35
35
|
icon: "ExternalLink",
|
|
36
|
-
size: "sm"
|
|
36
|
+
size: "sm",
|
|
37
|
+
thickness: "2.5"
|
|
37
38
|
}),
|
|
38
39
|
r("div", P, [
|
|
39
|
-
|
|
40
|
+
q(" Request "),
|
|
40
41
|
r("span", T, B((s = n(i)) == null ? void 0 : s.summary), 1)
|
|
41
42
|
])
|
|
42
43
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAmMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;;YAQ5E,uBAAuB,EAAE;IACjC,8BAA8B;sBACZ,OAAO;uBACN,OAAO;;;;;;;;;;;;;;YAHlB,uBAAuB,EAAE;IACjC,8BAA8B;sBACZ,OAAO;uBACN,OAAO;;;;;;;;;;;;;;qBADR,OAAO;sBACN,OAAO;;AA8b9B,wBAOG;AAOH,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,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-92212893"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as F, openBlock as u, createBlock as
|
|
1
|
+
import { defineComponent as F, openBlock as u, createBlock as r, unref as m, withCtx as d, 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
2
|
import k from "../../../components/CodeInput/CodeInput.vue.js";
|
|
3
|
-
import
|
|
3
|
+
import N from "../../../components/DataTable/DataTable.vue.js";
|
|
4
4
|
import f from "../../../components/DataTable/DataTableCell.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import q 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) => (E("data-v-
|
|
9
|
+
const M = (s) => (E("data-v-92212893"), 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: {},
|
|
@@ -29,20 +29,20 @@ const M = (s) => (E("data-v-a27b706c"), s = s(), T(), 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(), r(N, {
|
|
33
33
|
class: "flex-1",
|
|
34
34
|
columns: m(B)
|
|
35
35
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
(u(!0), y(w, null, I(e.items, (l, a) => (u(),
|
|
38
|
-
default:
|
|
39
|
-
e.isEnabledHidden ? c("", !0) : (u(),
|
|
36
|
+
default: d(() => [
|
|
37
|
+
(u(!0), y(w, null, I(e.items, (l, a) => (u(), r(D, { key: a }, {
|
|
38
|
+
default: d(() => [
|
|
39
|
+
e.isEnabledHidden ? c("", !0) : (u(), r(q, {
|
|
40
40
|
key: 0,
|
|
41
|
-
modelValue:
|
|
41
|
+
modelValue: l.enabled,
|
|
42
42
|
"onUpdate:modelValue": (o) => t("toggleRow", a, o)
|
|
43
43
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])),
|
|
44
44
|
i(f, null, {
|
|
45
|
-
default:
|
|
45
|
+
default: d(() => [
|
|
46
46
|
i(k, {
|
|
47
47
|
disableCloseBrackets: "",
|
|
48
48
|
disableEnter: "",
|
|
@@ -60,7 +60,7 @@ const M = (s) => (E("data-v-a27b706c"), s = s(), T(), s), O = { class: "text-c-2
|
|
|
60
60
|
_: 2
|
|
61
61
|
}, 1024),
|
|
62
62
|
i(f, null, {
|
|
63
|
-
default:
|
|
63
|
+
default: d(() => [
|
|
64
64
|
i(k, {
|
|
65
65
|
disableCloseBrackets: "",
|
|
66
66
|
disableEnter: "",
|
|
@@ -78,8 +78,8 @@ const M = (s) => (E("data-v-a27b706c"), s = s(), T(), s), O = { class: "text-c-2
|
|
|
78
78
|
onSelectVariable: (o) => b(a, "value", o),
|
|
79
79
|
"onUpdate:modelValue": (o) => t("updateRow", a, "value", o)
|
|
80
80
|
}, C({
|
|
81
|
-
icon:
|
|
82
|
-
$(l) ? (u(),
|
|
81
|
+
icon: d(() => [
|
|
82
|
+
$(l) ? (u(), r(A, {
|
|
83
83
|
key: 0,
|
|
84
84
|
item: { ...l, default: R(l) }
|
|
85
85
|
}, null, 8, ["item"])) : c("", !0)
|
|
@@ -88,7 +88,7 @@ const M = (s) => (E("data-v-a27b706c"), s = s(), T(), s), O = { class: "text-c-2
|
|
|
88
88
|
}, [
|
|
89
89
|
v(l).value ? {
|
|
90
90
|
name: "warning",
|
|
91
|
-
fn:
|
|
91
|
+
fn: d(() => [
|
|
92
92
|
U(V(v(l).value), 1)
|
|
93
93
|
]),
|
|
94
94
|
key: "0"
|
|
@@ -97,11 +97,11 @@ const M = (s) => (E("data-v-a27b706c"), s = s(), T(), s), O = { class: "text-c-2
|
|
|
97
97
|
]),
|
|
98
98
|
_: 2
|
|
99
99
|
}, 1024),
|
|
100
|
-
e.showUploadButton ? (u(),
|
|
100
|
+
e.showUploadButton ? (u(), r(f, {
|
|
101
101
|
key: 1,
|
|
102
102
|
class: "group/upload p-1 overflow-hidden relative text-ellipsis whitespace-nowrap"
|
|
103
103
|
}, {
|
|
104
|
-
default:
|
|
104
|
+
default: d(() => {
|
|
105
105
|
var o;
|
|
106
106
|
return [
|
|
107
107
|
l.file ? (u(), y(w, { key: 0 }, [
|
|
@@ -113,14 +113,14 @@ const M = (s) => (E("data-v-a27b706c"), s = s(), T(), s), O = { class: "text-c-2
|
|
|
113
113
|
type: "button",
|
|
114
114
|
onClick: (S) => t("removeFile", a)
|
|
115
115
|
}, " Delete ", 8, j)
|
|
116
|
-
], 64)) : (u(),
|
|
116
|
+
], 64)) : (u(), r(m(H), {
|
|
117
117
|
key: 1,
|
|
118
118
|
class: "bg-b-2 hover:bg-b-3 border-0 py-px text-c-2",
|
|
119
119
|
size: "sm",
|
|
120
120
|
variant: "outlined",
|
|
121
121
|
onClick: (S) => _(a)
|
|
122
122
|
}, {
|
|
123
|
-
default:
|
|
123
|
+
default: d(() => [
|
|
124
124
|
K,
|
|
125
125
|
i(m(z), {
|
|
126
126
|
class: "ml-1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;;UAI1D,uBAAuB;;UAAvB,uBAAuB;;AAuJrD,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"}
|
|
@@ -6,10 +6,10 @@ const d = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-l
|
|
|
6
6
|
}, g = {
|
|
7
7
|
key: 2,
|
|
8
8
|
class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
|
|
9
|
-
},
|
|
9
|
+
}, k = {
|
|
10
10
|
key: 3,
|
|
11
11
|
class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
|
|
12
|
-
},
|
|
12
|
+
}, x = {
|
|
13
13
|
key: 4,
|
|
14
14
|
class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
|
|
15
15
|
}, _ = {
|
|
@@ -33,7 +33,8 @@ const d = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-l
|
|
|
33
33
|
l(i(f), {
|
|
34
34
|
class: "ml-1 text-c-3 group-hover/info:text-c-1",
|
|
35
35
|
icon: "Info",
|
|
36
|
-
size: "sm"
|
|
36
|
+
size: "sm",
|
|
37
|
+
thickness: "1.5"
|
|
37
38
|
})
|
|
38
39
|
]),
|
|
39
40
|
content: r(() => [
|
|
@@ -42,8 +43,8 @@ const d = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-l
|
|
|
42
43
|
e.item.type ? (t(), o("span", h, s(e.item.type), 1)) : n("", !0),
|
|
43
44
|
e.item.format ? (t(), o("span", b, s(e.item.format), 1)) : n("", !0),
|
|
44
45
|
e.item.minimum ? (t(), o("span", g, "min: " + s(e.item.minimum), 1)) : n("", !0),
|
|
45
|
-
e.item.maximum ? (t(), o("span",
|
|
46
|
-
e.item.default ? (t(), o("span",
|
|
46
|
+
e.item.maximum ? (t(), o("span", k, "max: " + s(e.item.maximum), 1)) : n("", !0),
|
|
47
|
+
e.item.default ? (t(), o("span", x, "default: " + s(e.item.default), 1)) : n("", !0)
|
|
47
48
|
]),
|
|
48
49
|
e.item.description ? (t(), o("span", _, s(e.item.description), 1)) : n("", !0)
|
|
49
50
|
])
|
|
@@ -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":"AA0PA,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;AAwHlD,iBAAS,cAAc;gBArFT,IAAI;;gBAAJ,IAAI;EA8WjB;AACD,QAAA,MAAM,eAAe;IAzYjB;;;;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;MAqYvB,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
|
|
5
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-18928cac"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
p as default
|
|
8
8
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as N, useCssVars as j, computed as o, resolveComponent as F, openBlock as a, createElementBlock as d, normalizeClass as u, unref as i, createVNode as m, withCtx as D, createBlock as p, createElementVNode as n, toDisplayString as y, createCommentVNode as f, createTextVNode as k, renderSlot as L, withDirectives as P, Fragment as T, renderList as W, vShow as A } from "vue";
|
|
2
|
+
import { activeRouterParams as _, PathId as G } from "../../router.js";
|
|
3
|
+
import { useWorkspace as H } from "../../store/workspace.js";
|
|
4
|
+
import { ScalarIcon as J } from "@scalar/components";
|
|
5
|
+
import { Draggable as K } from "@scalar/draggable";
|
|
6
|
+
import { RouterLink as M } from "vue-router";
|
|
6
7
|
import Q from "./RequestSidebarItemMenu.vue.js";
|
|
7
8
|
import X from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
8
9
|
import { useSidebar as Y } from "../../hooks/useSidebar.js";
|
|
9
|
-
const Z = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" },
|
|
10
|
+
const Z = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" }, ee = { class: "relative" }, te = { class: "flex" }, ie = { class: "z-10 flex h-fit items-center justify-center max-w-[14px]" }, se = { class: "z-10 font-medium" }, re = { key: 2 }, q = "hover:bg-sidebar-active-b indent-padding-left", be = /* @__PURE__ */ N({
|
|
10
11
|
__name: "RequestSidebarItem",
|
|
11
12
|
props: {
|
|
12
13
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -15,118 +16,114 @@ const Z = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" },
|
|
|
15
16
|
item: {}
|
|
16
17
|
},
|
|
17
18
|
emits: ["onDragEnd"],
|
|
18
|
-
setup(
|
|
19
|
+
setup($) {
|
|
19
20
|
j((e) => ({
|
|
20
|
-
"
|
|
21
|
-
|
|
21
|
+
"28f0b1bd": S.value,
|
|
22
|
+
"9782e23e": R.value
|
|
22
23
|
}));
|
|
23
|
-
const
|
|
24
|
-
activeRequest:
|
|
25
|
-
activeWorkspace:
|
|
26
|
-
folders:
|
|
27
|
-
isReadOnly:
|
|
28
|
-
requests:
|
|
24
|
+
const t = $, {
|
|
25
|
+
activeRequest: b,
|
|
26
|
+
activeWorkspace: c,
|
|
27
|
+
folders: w,
|
|
28
|
+
isReadOnly: l,
|
|
29
|
+
requests: g,
|
|
29
30
|
requestExamples: x
|
|
30
|
-
} =
|
|
31
|
-
|
|
32
|
-
e.
|
|
33
|
-
},
|
|
34
|
-
var r;
|
|
35
|
-
return "spec" in e ? (r = e.spec.info) == null ? void 0 : r.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
|
|
36
|
-
}, N = l(() => ("requestUid" in i.item ? v[i.item.requestUid] : i.item).method), O = l(
|
|
31
|
+
} = H(), { collapsedSidebarFolders: h, toggleSidebarFolder: C } = Y(), v = o(() => "childUids" in t.item), S = o(() => t.parentUids.length ? l.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), R = o(() => t.parentUids.length ? l.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), U = (e) => {
|
|
32
|
+
var s;
|
|
33
|
+
return "spec" in e ? (s = e.spec.info) == null ? void 0 : s.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
|
|
34
|
+
}, E = o(() => ("requestUid" in t.item ? g[t.item.requestUid] : t.item).method), I = o(
|
|
37
35
|
() => {
|
|
38
36
|
var e;
|
|
39
|
-
return
|
|
37
|
+
return h[t.item.uid] || ((e = b.value) == null ? void 0 : e.uid) === t.item.uid && t.item.childUids.length > 1;
|
|
40
38
|
}
|
|
39
|
+
), z = () => "requestUid" in t.item ? `/workspace/${c.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${c.value.uid}/request/${t.item.uid}`, B = o(
|
|
40
|
+
() => _.value[G.Request] === "default" && b.value.uid === t.item.uid
|
|
41
41
|
);
|
|
42
|
-
return (e,
|
|
43
|
-
const
|
|
44
|
-
return
|
|
42
|
+
return (e, s) => {
|
|
43
|
+
const O = F("RequestSidebarItem", !0);
|
|
44
|
+
return a(), d("div", {
|
|
45
45
|
class: u(["relative flex flex-row", [
|
|
46
|
-
|
|
46
|
+
i(l) && e.parentUids.length > 1 || !i(l) && 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" : ""
|
|
47
47
|
]])
|
|
48
48
|
}, [
|
|
49
|
-
|
|
49
|
+
m(i(K), {
|
|
50
50
|
id: e.item.uid,
|
|
51
|
-
ceiling:
|
|
51
|
+
ceiling: v.value ? 0.8 : 0.5,
|
|
52
52
|
class: "flex flex-1 flex-col gap-[.5px] text-sm",
|
|
53
|
-
floor:
|
|
53
|
+
floor: v.value ? 0.2 : 0.5,
|
|
54
54
|
isDraggable: e.parentUids.length > 0 && e.isDraggable,
|
|
55
55
|
isDroppable: e.isDroppable,
|
|
56
56
|
parentIds: e.parentUids,
|
|
57
|
-
onOnDragEnd:
|
|
57
|
+
onOnDragEnd: s[2] || (s[2] = (...r) => e.$emit("onDragEnd", ...r))
|
|
58
58
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
"summary" in e.item || "requestUid" in e.item ? (
|
|
59
|
+
default: D(() => [
|
|
60
|
+
"summary" in e.item || "requestUid" in e.item ? (a(), p(i(M), {
|
|
61
61
|
key: 0,
|
|
62
|
-
|
|
63
|
-
to:
|
|
62
|
+
class: "no-underline",
|
|
63
|
+
to: z()
|
|
64
64
|
}, {
|
|
65
|
-
default:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
class: "font-bold",
|
|
86
|
-
method: N.value
|
|
87
|
-
}, null, 8, ["method"])
|
|
88
|
-
])
|
|
65
|
+
default: D(({ isExactActive: r }) => [
|
|
66
|
+
n("div", {
|
|
67
|
+
class: u(["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", [
|
|
68
|
+
q,
|
|
69
|
+
r || B.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
|
|
70
|
+
]]),
|
|
71
|
+
tabindex: "0"
|
|
72
|
+
}, [
|
|
73
|
+
n("span", Z, y(U(e.item)), 1),
|
|
74
|
+
n("div", ee, [
|
|
75
|
+
i(l) ? f("", !0) : (a(), p(Q, {
|
|
76
|
+
key: 0,
|
|
77
|
+
item: e.item
|
|
78
|
+
}, null, 8, ["item"])),
|
|
79
|
+
n("span", te, [
|
|
80
|
+
k(" "),
|
|
81
|
+
m(i(X), {
|
|
82
|
+
class: "font-bold",
|
|
83
|
+
method: E.value
|
|
84
|
+
}, null, 8, ["method"])
|
|
89
85
|
])
|
|
90
|
-
]
|
|
91
|
-
]
|
|
92
|
-
|
|
86
|
+
])
|
|
87
|
+
], 2)
|
|
88
|
+
]),
|
|
93
89
|
_: 1
|
|
94
|
-
}, 8, ["to"])) : !
|
|
90
|
+
}, 8, ["to"])) : !i(l) || e.parentUids.length ? (a(), d("button", {
|
|
95
91
|
key: 1,
|
|
96
|
-
class: u(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]",
|
|
92
|
+
class: u(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", q]),
|
|
97
93
|
type: "button",
|
|
98
|
-
onClick:
|
|
94
|
+
onClick: s[0] || (s[0] = (r) => i(C)(e.item.uid))
|
|
99
95
|
}, [
|
|
100
|
-
|
|
96
|
+
n("span", ie, [
|
|
101
97
|
L(e.$slots, "leftIcon", {}, () => [
|
|
102
|
-
|
|
98
|
+
n("div", {
|
|
103
99
|
class: u({
|
|
104
|
-
"rotate-90":
|
|
100
|
+
"rotate-90": i(h)[e.item.uid]
|
|
105
101
|
})
|
|
106
102
|
}, [
|
|
107
|
-
|
|
103
|
+
m(i(J), {
|
|
108
104
|
class: "text-c-3 text-sm",
|
|
109
105
|
icon: "ChevronRight",
|
|
110
|
-
size: "sm"
|
|
106
|
+
size: "sm",
|
|
107
|
+
thickness: "2.5"
|
|
111
108
|
})
|
|
112
109
|
], 2)
|
|
113
110
|
], !0),
|
|
114
|
-
|
|
111
|
+
k(" ")
|
|
115
112
|
]),
|
|
116
|
-
|
|
117
|
-
])) :
|
|
118
|
-
"childUids" in e.item ?
|
|
119
|
-
(
|
|
120
|
-
key:
|
|
113
|
+
n("span", se, y(U(e.item)), 1)
|
|
114
|
+
])) : f("", !0),
|
|
115
|
+
"childUids" in e.item ? P((a(), d("div", re, [
|
|
116
|
+
(a(!0), d(T, null, W("summary" in e.item ? e.item.childUids.slice(1) : e.item.childUids, (r) => (a(), p(O, {
|
|
117
|
+
key: r,
|
|
121
118
|
isDraggable: e.isDraggable,
|
|
122
119
|
isDroppable: e.isDroppable,
|
|
123
|
-
item:
|
|
120
|
+
item: i(w)[r] || i(g)[r] || i(x)[r],
|
|
124
121
|
parentUids: [...e.parentUids, e.item.uid],
|
|
125
|
-
onOnDragEnd:
|
|
122
|
+
onOnDragEnd: s[1] || (s[1] = (...V) => e.$emit("onDragEnd", ...V))
|
|
126
123
|
}, null, 8, ["isDraggable", "isDroppable", "item", "parentUids"]))), 128))
|
|
127
124
|
], 512)), [
|
|
128
|
-
[A,
|
|
129
|
-
]) :
|
|
125
|
+
[A, I.value]
|
|
126
|
+
]) : f("", !0)
|
|
130
127
|
]),
|
|
131
128
|
_: 3
|
|
132
129
|
}, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
|
|
@@ -135,5 +132,5 @@ const Z = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" },
|
|
|
135
132
|
}
|
|
136
133
|
});
|
|
137
134
|
export {
|
|
138
|
-
|
|
135
|
+
be as default
|
|
139
136
|
};
|
|
@@ -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":"AA0IA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;;UAO1C,OAAO,GAAG,cAAc;;UAAxB,OAAO,GAAG,cAAc;;AA8VhC,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,82 +1,102 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { defineComponent as C, computed as E, openBlock as u, createBlock as d, unref as e, withCtx as s, createVNode as t, createCommentVNode as R, withModifiers as w, createElementVNode as i } from "vue";
|
|
2
|
+
import { commandPaletteBus as z } from "../../libs/eventBusses/command-palette.js";
|
|
3
|
+
import { activeRouterParams as p, PathId as f } from "../../router.js";
|
|
4
|
+
import { useWorkspace as I, findRequestFolders as S } from "../../store/workspace.js";
|
|
5
|
+
import { ScalarDropdown as b, ScalarDropdownItem as o, ScalarIcon as a, ScalarDropdownDivider as A, ScalarButton as B } from "@scalar/components";
|
|
6
|
+
import { useRouter as M } from "vue-router";
|
|
7
|
+
const N = /* @__PURE__ */ i("span", null, "Add Example", -1), P = /* @__PURE__ */ i("span", null, "Rename", -1), V = /* @__PURE__ */ i("span", null, "Duplicate", -1), y = /* @__PURE__ */ i("span", null, "Delete", -1), G = /* @__PURE__ */ C({
|
|
5
8
|
__name: "RequestSidebarItemMenu",
|
|
6
9
|
props: {
|
|
7
10
|
item: {}
|
|
8
11
|
},
|
|
9
|
-
setup(
|
|
10
|
-
const l =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
|
|
12
|
+
setup(x) {
|
|
13
|
+
const l = x, { activeWorkspace: r, requestMutators: _, requestExampleMutators: h } = I(), { replace: c } = M(), k = () => z.emit({
|
|
14
|
+
commandName: "Add Example",
|
|
15
|
+
metaData: l.item.uid
|
|
16
|
+
}), v = () => {
|
|
17
|
+
console.log("rename");
|
|
18
|
+
}, g = () => {
|
|
19
|
+
console.log("duplicate");
|
|
20
|
+
}, D = () => {
|
|
21
|
+
if ("requestUid" in l.item)
|
|
22
|
+
h.delete(l.item), p.value[f.Examples] === l.item.uid && c(`/workspace/${r.value}/request/default`);
|
|
23
|
+
else {
|
|
24
|
+
const n = S(l.item.uid);
|
|
25
|
+
if (!n.length) return;
|
|
26
|
+
_.delete(l.item, n[0]), p.value[f.Request] === l.item.uid && c(`/workspace/${r.value.uid}/request/default`);
|
|
27
|
+
}
|
|
28
|
+
}, q = E(() => "summary" in l.item);
|
|
29
|
+
return (n, m) => (u(), d(e(b), { teleport: "#scalar-client" }, {
|
|
19
30
|
items: s(() => [
|
|
20
|
-
|
|
31
|
+
q.value ? (u(), d(e(o), {
|
|
21
32
|
key: 0,
|
|
22
33
|
class: "flex !gap-2",
|
|
23
|
-
onClick:
|
|
34
|
+
onClick: k
|
|
24
35
|
}, {
|
|
25
36
|
default: s(() => [
|
|
26
|
-
t(e(
|
|
37
|
+
t(e(a), {
|
|
27
38
|
class: "inline-flex",
|
|
28
39
|
icon: "Add",
|
|
29
40
|
size: "sm"
|
|
30
41
|
}),
|
|
31
|
-
|
|
42
|
+
N
|
|
32
43
|
]),
|
|
33
44
|
_: 1
|
|
34
|
-
})) :
|
|
35
|
-
t(e(
|
|
45
|
+
})) : R("", !0),
|
|
46
|
+
t(e(o), {
|
|
47
|
+
class: "flex !gap-2",
|
|
48
|
+
onClick: v
|
|
49
|
+
}, {
|
|
36
50
|
default: s(() => [
|
|
37
|
-
t(e(
|
|
51
|
+
t(e(a), {
|
|
38
52
|
class: "inline-flex",
|
|
39
53
|
icon: "Edit",
|
|
40
54
|
size: "sm"
|
|
41
55
|
}),
|
|
42
|
-
|
|
56
|
+
P
|
|
43
57
|
]),
|
|
44
58
|
_: 1
|
|
45
59
|
}),
|
|
46
|
-
t(e(
|
|
60
|
+
t(e(o), {
|
|
61
|
+
class: "flex !gap-2",
|
|
62
|
+
onClick: g
|
|
63
|
+
}, {
|
|
47
64
|
default: s(() => [
|
|
48
|
-
t(e(
|
|
65
|
+
t(e(a), {
|
|
49
66
|
class: "inline-flex",
|
|
50
67
|
icon: "Duplicate",
|
|
51
68
|
size: "sm"
|
|
52
69
|
}),
|
|
53
|
-
|
|
70
|
+
V
|
|
54
71
|
]),
|
|
55
72
|
_: 1
|
|
56
73
|
}),
|
|
57
|
-
t(e(
|
|
58
|
-
t(e(
|
|
74
|
+
t(e(A)),
|
|
75
|
+
t(e(o), {
|
|
76
|
+
class: "flex !gap-2",
|
|
77
|
+
onClick: D
|
|
78
|
+
}, {
|
|
59
79
|
default: s(() => [
|
|
60
|
-
t(e(
|
|
80
|
+
t(e(a), {
|
|
61
81
|
class: "inline-flex",
|
|
62
82
|
icon: "Trash",
|
|
63
83
|
size: "sm"
|
|
64
84
|
}),
|
|
65
|
-
|
|
85
|
+
y
|
|
66
86
|
]),
|
|
67
87
|
_: 1
|
|
68
88
|
})
|
|
69
89
|
]),
|
|
70
90
|
default: s(() => [
|
|
71
|
-
t(e(
|
|
91
|
+
t(e(B), {
|
|
72
92
|
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",
|
|
73
93
|
size: "sm",
|
|
74
94
|
variant: "ghost",
|
|
75
|
-
onClick:
|
|
95
|
+
onClick: m[0] || (m[0] = w(() => {
|
|
76
96
|
}, ["stop"]))
|
|
77
97
|
}, {
|
|
78
98
|
default: s(() => [
|
|
79
|
-
t(e(
|
|
99
|
+
t(e(a), {
|
|
80
100
|
icon: "Ellipses",
|
|
81
101
|
size: "sm"
|
|
82
102
|
})
|
|
@@ -89,5 +109,5 @@ const v = /* @__PURE__ */ n("span", null, "Add Example", -1), w = /* @__PURE__ *
|
|
|
89
109
|
}
|
|
90
110
|
});
|
|
91
111
|
export {
|
|
92
|
-
|
|
112
|
+
G as default
|
|
93
113
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;;cAUrE,gBAAgB,GAAG,SAAS;;cAA5B,gBAAgB,GAAG,SAAS;;AA+NxC,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"}
|