@scalar/api-client 2.0.45 → 2.0.47
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 +27 -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 +16 -16
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +24 -25
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +23 -23
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +6 -6
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +1 -1
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +10 -10
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +5 -67
- package/dist/components/HttpMethod/HttpMethod.vue2.js +61 -2
- package/dist/components/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchModal.vue.js +1 -1
- package/dist/components/Search/SearchModal.vue2.js +44 -42
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue2.js +22 -19
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +2 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +22 -21
- package/dist/components/SubpageHeader.vue.js +2 -2
- package/dist/components/SubpageHeader.vue2.js +2 -2
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +46 -43
- package/dist/layouts/App/create-api-client-app.d.ts +158 -81
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +24 -20
- package/dist/layouts/Modal/create-api-client-modal.d.ts +316 -162
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +159 -83
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +18 -19
- package/dist/libs/event-busses/command-palette.d.ts.map +1 -0
- package/dist/libs/{eventBusses/executeRequestBus.d.ts → event-busses/execute-requestBus.d.ts} +1 -1
- package/dist/libs/event-busses/execute-requestBus.d.ts.map +1 -0
- package/dist/libs/event-busses/hot-key.d.ts +34 -0
- package/dist/libs/event-busses/hot-key.d.ts.map +1 -0
- package/dist/libs/event-busses/hot-key.js +25 -0
- package/dist/libs/event-busses/index.d.ts +5 -0
- package/dist/libs/event-busses/index.d.ts.map +1 -0
- package/dist/libs/event-busses/index.js +12 -0
- package/dist/libs/{eventBusses/requestStatusBus.d.ts → event-busses/request-status-bus.d.ts} +1 -1
- package/dist/libs/event-busses/request-status-bus.d.ts.map +1 -0
- package/dist/libs/index.d.ts +1 -1
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +19 -13
- package/dist/store/workspace.d.ts +316 -162
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +14 -15
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +114 -55
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +21 -20
- 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 +118 -118
- 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 +20 -20
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +19 -19
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +13 -13
- package/package.json +10 -10
- package/dist/libs/eventBusses/command-palette.d.ts.map +0 -1
- package/dist/libs/eventBusses/executeRequestBus.d.ts.map +0 -1
- package/dist/libs/eventBusses/index.d.ts +0 -3
- package/dist/libs/eventBusses/index.d.ts.map +0 -1
- package/dist/libs/eventBusses/index.js +0 -6
- package/dist/libs/eventBusses/requestStatusBus.d.ts.map +0 -1
- /package/dist/libs/{eventBusses → event-busses}/command-palette.d.ts +0 -0
- /package/dist/libs/{eventBusses → event-busses}/command-palette.js +0 -0
- /package/dist/libs/{eventBusses/executeRequestBus.js → event-busses/execute-requestBus.js} +0 -0
- /package/dist/libs/{eventBusses/requestStatusBus.js → event-busses/request-status-bus.js} +0 -0
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { commandPaletteBus as
|
|
10
|
-
import { useWorkspace as
|
|
11
|
-
import
|
|
1
|
+
import { defineComponent as ie, ref as ae, watch as F, onMounted as le, onBeforeUnmount as ne, openBlock as h, createElementBlock as U, Fragment as N, createElementVNode as v, normalizeClass as b, unref as s, createVNode as c, createCommentVNode as R, withCtx as p, withDirectives as de, createSlots as ce, withModifiers as P, renderList as ue, createBlock as O, createTextVNode as me, vShow as fe, pushScopeId as pe, popScopeId as ve } from "vue";
|
|
2
|
+
import he from "../../components/AddressBar/AddressBar.vue.js";
|
|
3
|
+
import be from "../../components/Search/SearchButton.vue.js";
|
|
4
|
+
import xe from "../../components/Search/SearchModal.vue.js";
|
|
5
|
+
import ye from "../../components/Sidebar/SidebarButton.vue.js";
|
|
6
|
+
import ge from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
7
|
+
import we from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
8
|
+
import _e from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
9
|
+
import { commandPaletteBus as W } from "../../libs/event-busses/command-palette.js";
|
|
10
|
+
import { useWorkspace as ke } from "../../store/workspace.js";
|
|
11
|
+
import Se from "./RequestSection/RequestSection.vue.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import
|
|
14
|
-
import { useModal as
|
|
15
|
-
import { useToasts as
|
|
16
|
-
import { isMacOS as
|
|
17
|
-
import { useMagicKeys as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
13
|
+
import Ue from "./ResponseSection/ResponseSection.vue.js";
|
|
14
|
+
import { useModal as Re, ScalarIcon as C } from "@scalar/components";
|
|
15
|
+
import { useToasts as Oe } from "@scalar/use-toasts";
|
|
16
|
+
import { isMacOS as z } from "@scalar/use-tooltip";
|
|
17
|
+
import { useMediaQuery as Ce, useMagicKeys as Me, useEventListener as qe } from "@vueuse/core";
|
|
18
|
+
import De from "./RequestSidebarItem.vue.js";
|
|
19
|
+
import Be from "../../components/Sidebar/Sidebar.vue.js";
|
|
20
20
|
/* empty css */
|
|
21
|
-
import
|
|
22
|
-
import { useSidebar as
|
|
23
|
-
import { sendRequest as
|
|
24
|
-
import { executeRequestBus as
|
|
25
|
-
import { requestStatusBus as k } from "../../libs/
|
|
26
|
-
const
|
|
21
|
+
import Ie from "./components/WorkspaceDropdown.vue.js";
|
|
22
|
+
import { useSidebar as Ve } from "../../hooks/useSidebar.js";
|
|
23
|
+
import { sendRequest as $e } from "../../libs/sendRequest.js";
|
|
24
|
+
import { executeRequestBus as L } from "../../libs/event-busses/execute-requestBus.js";
|
|
25
|
+
import { requestStatusBus as k } from "../../libs/event-busses/request-status-bus.js";
|
|
26
|
+
const Ee = (g) => (pe("data-v-660ba379"), g = g(), ve(), g), Fe = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container border-b-1/2" }, Ne = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, Pe = /* @__PURE__ */ Ee(() => /* @__PURE__ */ v("a", {
|
|
27
27
|
class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
|
|
28
28
|
href: "https://scalar.com/",
|
|
29
29
|
target: "_blank"
|
|
30
|
-
}, " Powered by Scalar.com ", -1)),
|
|
30
|
+
}, " Powered by Scalar.com ", -1)), We = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, mt = /* @__PURE__ */ ie({
|
|
31
31
|
__name: "Request",
|
|
32
32
|
setup(g) {
|
|
33
33
|
var E;
|
|
34
34
|
const {
|
|
35
35
|
activeExample: w,
|
|
36
|
-
activeRequest:
|
|
37
|
-
activeSecuritySchemes:
|
|
36
|
+
activeRequest: f,
|
|
37
|
+
activeSecuritySchemes: j,
|
|
38
38
|
activeWorkspace: l,
|
|
39
|
-
activeWorkspaceCollections:
|
|
40
|
-
activeWorkspaceServers:
|
|
41
|
-
activeWorkspaceRequests:
|
|
42
|
-
collectionMutators:
|
|
39
|
+
activeWorkspaceCollections: T,
|
|
40
|
+
activeWorkspaceServers: A,
|
|
41
|
+
activeWorkspaceRequests: H,
|
|
42
|
+
collectionMutators: M,
|
|
43
43
|
collections: u,
|
|
44
|
-
cookies:
|
|
45
|
-
environments:
|
|
46
|
-
findRequestFolders:
|
|
44
|
+
cookies: J,
|
|
45
|
+
environments: K,
|
|
46
|
+
findRequestFolders: Q,
|
|
47
47
|
folders: x,
|
|
48
|
-
folderMutators:
|
|
48
|
+
folderMutators: q,
|
|
49
49
|
modalState: G,
|
|
50
|
-
requestMutators:
|
|
51
|
-
workspaceMutators:
|
|
52
|
-
} =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
(
|
|
56
|
-
|
|
57
|
-
(
|
|
50
|
+
requestMutators: X,
|
|
51
|
+
workspaceMutators: D
|
|
52
|
+
} = ke(), { collapsedSidebarFolders: Y, setCollapsedSidebarFolder: Z } = Ve(), { toast: B } = Oe(), I = Re(), ee = Ce("(max-width: 780px)"), m = ae(!((E = l.value) != null && E.isReadOnly));
|
|
53
|
+
F(ee, (t) => m.value = !t), F(
|
|
54
|
+
f,
|
|
55
|
+
(t) => {
|
|
56
|
+
t && Q(t.uid).forEach(
|
|
57
|
+
(o) => Z(o, !0)
|
|
58
58
|
);
|
|
59
59
|
},
|
|
60
60
|
{ immediate: !0 }
|
|
61
61
|
);
|
|
62
62
|
const V = async () => {
|
|
63
63
|
var i;
|
|
64
|
-
if (!
|
|
64
|
+
if (!f.value || !w.value) {
|
|
65
65
|
console.warn(
|
|
66
66
|
"There is no request active at the moment. Please select one then try again."
|
|
67
67
|
);
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
let
|
|
71
|
-
const
|
|
70
|
+
let t = w.value.url;
|
|
71
|
+
const o = Object.values(K).reduce(
|
|
72
72
|
(e, a) => {
|
|
73
73
|
try {
|
|
74
74
|
return { ...e, ...JSON.parse(a.raw) };
|
|
@@ -77,22 +77,22 @@ const Ve = (g) => (fe("data-v-e97689ec"), g = g(), pe(), g), $e = { class: "lg:m
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
{}
|
|
80
|
-
),
|
|
81
|
-
|
|
80
|
+
), r = /\{\{(.*?)\}\}/g;
|
|
81
|
+
t = t.replace(r, (e, a) => (A.value.forEach((n) => {
|
|
82
82
|
if (n.url === a)
|
|
83
83
|
return a;
|
|
84
|
-
}),
|
|
84
|
+
}), o[a] || a)), k.emit("start");
|
|
85
85
|
try {
|
|
86
|
-
const { request: e, response: a, error: n } = await
|
|
87
|
-
|
|
86
|
+
const { request: e, response: a, error: n } = await $e(
|
|
87
|
+
f.value,
|
|
88
88
|
w.value,
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
t,
|
|
90
|
+
j.value,
|
|
91
91
|
(i = l.value) == null ? void 0 : i.proxyUrl,
|
|
92
|
-
|
|
92
|
+
J
|
|
93
93
|
);
|
|
94
|
-
e && a ? (
|
|
95
|
-
...
|
|
94
|
+
e && a ? (X.edit(f.value.uid, "history", [
|
|
95
|
+
...f.value.history,
|
|
96
96
|
{
|
|
97
97
|
request: e,
|
|
98
98
|
response: a,
|
|
@@ -104,70 +104,70 @@ const Ve = (g) => (fe("data-v-e97689ec"), g = g(), pe(), g), $e = { class: "lg:m
|
|
|
104
104
|
${e}`, "error"), k.emit("abort");
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
|
-
|
|
108
|
-
const $ = (
|
|
109
|
-
u[
|
|
110
|
-
},
|
|
111
|
-
if (!
|
|
112
|
-
const { id:
|
|
113
|
-
if (i ? u[i] ?
|
|
107
|
+
le(() => L.on(V)), ne(() => L.off(V));
|
|
108
|
+
const $ = (t, o) => {
|
|
109
|
+
u[t] ? M.edit(t, "childUids", o) : x[t] && q.edit(t, "childUids", o);
|
|
110
|
+
}, te = (t, o) => {
|
|
111
|
+
if (!t || !o) return;
|
|
112
|
+
const { id: r, parentId: i } = t, { id: e, parentId: a, offset: n } = o;
|
|
113
|
+
if (i ? u[i] ? M.edit(
|
|
114
114
|
i,
|
|
115
115
|
"childUids",
|
|
116
116
|
u[i].childUids.filter(
|
|
117
|
-
(d) => d !==
|
|
117
|
+
(d) => d !== r
|
|
118
118
|
)
|
|
119
|
-
) : x[i] &&
|
|
119
|
+
) : x[i] && q.edit(
|
|
120
120
|
i,
|
|
121
121
|
"childUids",
|
|
122
|
-
x[i].childUids.filter((d) => d !==
|
|
123
|
-
) :
|
|
122
|
+
x[i].childUids.filter((d) => d !== r)
|
|
123
|
+
) : D.edit(
|
|
124
124
|
l.value.uid,
|
|
125
125
|
"collectionUids",
|
|
126
|
-
l.value.collectionUids.filter((d) => d !==
|
|
126
|
+
l.value.collectionUids.filter((d) => d !== r)
|
|
127
127
|
), n === 2) {
|
|
128
128
|
const d = u[e] || x[e];
|
|
129
|
-
$(e, [...d.childUids,
|
|
129
|
+
$(e, [...d.childUids, r]);
|
|
130
130
|
} else if (a) {
|
|
131
|
-
const y = [...(u[a] || x[a]).childUids], S = y.findIndex((
|
|
132
|
-
y.splice(S + n, 0,
|
|
131
|
+
const y = [...(u[a] || x[a]).childUids], S = y.findIndex((se) => e === se) ?? 0;
|
|
132
|
+
y.splice(S + n, 0, r), $(a, y);
|
|
133
133
|
} else {
|
|
134
134
|
const d = [...l.value.collectionUids], y = d.findIndex((S) => e === S) ?? 0;
|
|
135
|
-
d.splice(y + n, 0,
|
|
135
|
+
d.splice(y + n, 0, r), D.edit(
|
|
136
136
|
l.value.uid,
|
|
137
137
|
"collectionUids",
|
|
138
138
|
d
|
|
139
139
|
);
|
|
140
140
|
}
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
(
|
|
141
|
+
}, oe = () => W.emit(), _ = Me();
|
|
142
|
+
qe(document, "keydown", (t) => {
|
|
143
|
+
(z() ? _.meta.value : _.ctrl.value) && t.key === "b" && (m.value = !m.value), !l.value.isReadOnly && (z() ? _.meta.value : _.ctrl.value) && t.key === "k" && W.emit();
|
|
144
144
|
});
|
|
145
|
-
const
|
|
146
|
-
var
|
|
147
|
-
return !(l.value.isReadOnly || !u[
|
|
145
|
+
const re = (t, o) => {
|
|
146
|
+
var r, i, e;
|
|
147
|
+
return !(l.value.isReadOnly || !u[t.id] && o.offset !== 2 || u[t.id] && ((e = (i = (r = u[o.id]) == null ? void 0 : r.spec) == null ? void 0 : i.info) == null ? void 0 : e.title) === "Drafts");
|
|
148
148
|
};
|
|
149
|
-
return (
|
|
149
|
+
return (t, o) => (h(), U(N, null, [
|
|
150
150
|
v("div", {
|
|
151
151
|
class: b(["flex flex-1 flex-col rounded pt-0 h-full bg-b-1 relative border-1/2 rounded mr-1.5 mb-1.5 overflow-hidden", {
|
|
152
152
|
"!mr-0 !mb-0 !border-0": s(l).isReadOnly
|
|
153
153
|
}])
|
|
154
154
|
}, [
|
|
155
|
-
v("div",
|
|
156
|
-
v("div",
|
|
157
|
-
c(
|
|
158
|
-
modelValue:
|
|
159
|
-
"onUpdate:modelValue":
|
|
155
|
+
v("div", Fe, [
|
|
156
|
+
v("div", Ne, [
|
|
157
|
+
c(ge, {
|
|
158
|
+
modelValue: m.value,
|
|
159
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => m.value = r),
|
|
160
160
|
class: "gitbook-hidden"
|
|
161
161
|
}, null, 8, ["modelValue"]),
|
|
162
|
-
|
|
162
|
+
Pe
|
|
163
163
|
]),
|
|
164
|
-
c(
|
|
165
|
-
v("div",
|
|
164
|
+
c(he),
|
|
165
|
+
v("div", We, [
|
|
166
166
|
s(l).isReadOnly ? (h(), U("button", {
|
|
167
167
|
key: 0,
|
|
168
168
|
class: "text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",
|
|
169
169
|
type: "button",
|
|
170
|
-
onClick:
|
|
170
|
+
onClick: o[1] || (o[1] = (r) => s(G).hide())
|
|
171
171
|
}, [
|
|
172
172
|
c(s(C), {
|
|
173
173
|
icon: "Close",
|
|
@@ -177,33 +177,33 @@ ${e}`, "error"), k.emit("abort");
|
|
|
177
177
|
])) : R("", !0)
|
|
178
178
|
])
|
|
179
179
|
]),
|
|
180
|
-
c(
|
|
180
|
+
c(we, null, {
|
|
181
181
|
default: p(() => [
|
|
182
|
-
|
|
183
|
-
class: b([
|
|
184
|
-
},
|
|
182
|
+
de(c(s(Be), {
|
|
183
|
+
class: b([m.value ? "sidebar-active-width" : ""])
|
|
184
|
+
}, ce({
|
|
185
185
|
content: p(() => [
|
|
186
|
-
c(
|
|
187
|
-
onOpenSearchModal:
|
|
186
|
+
c(be, {
|
|
187
|
+
onOpenSearchModal: o[2] || (o[2] = (r) => s(I).show())
|
|
188
188
|
}),
|
|
189
189
|
v("div", {
|
|
190
190
|
class: b(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
|
|
191
191
|
"pb-14": !s(l).isReadOnly
|
|
192
192
|
}]),
|
|
193
|
-
onDragenter:
|
|
193
|
+
onDragenter: o[3] || (o[3] = P(() => {
|
|
194
194
|
}, ["prevent"])),
|
|
195
|
-
onDragover:
|
|
195
|
+
onDragover: o[4] || (o[4] = P(() => {
|
|
196
196
|
}, ["prevent"]))
|
|
197
197
|
}, [
|
|
198
|
-
(h(!0), U(
|
|
198
|
+
(h(!0), U(N, null, ue(s(T), (r) => {
|
|
199
199
|
var i, e;
|
|
200
|
-
return h(), O(
|
|
201
|
-
key:
|
|
202
|
-
isDraggable: !s(l).isReadOnly && ((e = (i =
|
|
203
|
-
isDroppable:
|
|
204
|
-
item:
|
|
200
|
+
return h(), O(De, {
|
|
201
|
+
key: r.uid,
|
|
202
|
+
isDraggable: !s(l).isReadOnly && ((e = (i = r.spec) == null ? void 0 : i.info) == null ? void 0 : e.title) !== "Drafts",
|
|
203
|
+
isDroppable: re,
|
|
204
|
+
item: r,
|
|
205
205
|
parentUids: [],
|
|
206
|
-
onOnDragEnd:
|
|
206
|
+
onOnDragEnd: te
|
|
207
207
|
}, {
|
|
208
208
|
leftIcon: p(() => [
|
|
209
209
|
c(s(C), {
|
|
@@ -214,7 +214,7 @@ ${e}`, "error"), k.emit("abort");
|
|
|
214
214
|
}),
|
|
215
215
|
v("div", {
|
|
216
216
|
class: b({
|
|
217
|
-
"rotate-90": s(
|
|
217
|
+
"rotate-90": s(Y)[r.uid]
|
|
218
218
|
})
|
|
219
219
|
}, [
|
|
220
220
|
c(s(C), {
|
|
@@ -230,15 +230,15 @@ ${e}`, "error"), k.emit("abort");
|
|
|
230
230
|
], 34)
|
|
231
231
|
]),
|
|
232
232
|
button: p(() => [
|
|
233
|
-
s(l).isReadOnly ? R("", !0) : (h(), O(
|
|
233
|
+
s(l).isReadOnly ? R("", !0) : (h(), O(ye, {
|
|
234
234
|
key: 0,
|
|
235
235
|
class: b({
|
|
236
|
-
"empty-sidebar-item": s(
|
|
236
|
+
"empty-sidebar-item": s(H).length === 1
|
|
237
237
|
}),
|
|
238
|
-
click:
|
|
238
|
+
click: oe
|
|
239
239
|
}, {
|
|
240
240
|
title: p(() => [
|
|
241
|
-
|
|
241
|
+
me("Add Item")
|
|
242
242
|
]),
|
|
243
243
|
_: 1
|
|
244
244
|
}, 8, ["class"]))
|
|
@@ -248,23 +248,23 @@ ${e}`, "error"), k.emit("abort");
|
|
|
248
248
|
s(l).isReadOnly ? void 0 : {
|
|
249
249
|
name: "header",
|
|
250
250
|
fn: p(() => [
|
|
251
|
-
c(s(
|
|
251
|
+
c(s(Ie))
|
|
252
252
|
]),
|
|
253
253
|
key: "0"
|
|
254
254
|
}
|
|
255
255
|
]), 1032, ["class"]), [
|
|
256
|
-
[
|
|
256
|
+
[fe, m.value]
|
|
257
257
|
]),
|
|
258
|
-
s(w) ? (h(), O(
|
|
258
|
+
s(w) ? (h(), O(_e, {
|
|
259
259
|
key: 0,
|
|
260
|
-
class: b(["flex-1", [
|
|
260
|
+
class: b(["flex-1", [m.value ? "sidebar-active-hide-layout" : ""]])
|
|
261
261
|
}, {
|
|
262
262
|
default: p(() => {
|
|
263
|
-
var
|
|
263
|
+
var r, i, e, a, n;
|
|
264
264
|
return [
|
|
265
|
-
c(
|
|
266
|
-
c(
|
|
267
|
-
response: (n = (a = (
|
|
265
|
+
c(Se),
|
|
266
|
+
c(Ue, {
|
|
267
|
+
response: (n = (a = (r = s(f)) == null ? void 0 : r.history) == null ? void 0 : a[((e = (i = s(f)) == null ? void 0 : i.history) == null ? void 0 : e.length) - 1]) == null ? void 0 : n.response
|
|
268
268
|
}, null, 8, ["response"])
|
|
269
269
|
];
|
|
270
270
|
}),
|
|
@@ -274,10 +274,10 @@ ${e}`, "error"), k.emit("abort");
|
|
|
274
274
|
_: 1
|
|
275
275
|
})
|
|
276
276
|
], 2),
|
|
277
|
-
c(
|
|
277
|
+
c(xe, { modalState: s(I) }, null, 8, ["modalState"])
|
|
278
278
|
], 64));
|
|
279
279
|
}
|
|
280
280
|
});
|
|
281
281
|
export {
|
|
282
|
-
|
|
282
|
+
mt as default
|
|
283
283
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA+TA,OAAO,EAEL,KAAK,cAAc,EACnB,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;AAgKlD,iBAAS,cAAc;gBA7HT,IAAI;;gBAAJ,IAAI;
|
|
1
|
+
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA+TA,OAAO,EAEL,KAAK,cAAc,EACnB,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;AAgKlD,iBAAS,cAAc;gBA7HT,IAAI;;gBAAJ,IAAI;EA0cjB;AACD,QAAA,MAAM,eAAe;IArejB;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;IAdpD;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;;iBATtC,OAAO;MAuevB,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-481dd9cc"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as H, useCssVars as G, computed as l, ref as J, resolveComponent as K, openBlock as o, createElementBlock as m, normalizeClass as d, unref as i, createVNode as U, withCtx as C, createBlock as c, createElementVNode as s, toDisplayString as I, createCommentVNode as b, createTextVNode as E, renderSlot as Q, withDirectives as X, Fragment as Y, renderList as Z, vShow as ee, pushScopeId as te, popScopeId as ie } from "vue";
|
|
2
2
|
import { PathId as re } from "../../router.js";
|
|
3
3
|
import { useWorkspace as se } from "../../store/workspace.js";
|
|
4
4
|
import { ScalarIcon as ae } from "@scalar/components";
|
|
@@ -7,7 +7,7 @@ import { RouterLink as ne } from "vue-router";
|
|
|
7
7
|
import z from "./RequestSidebarItemMenu.vue.js";
|
|
8
8
|
import oe from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
9
9
|
import { useSidebar as de } from "../../hooks/useSidebar.js";
|
|
10
|
-
const ue = (u) => (te("data-v-
|
|
10
|
+
const ue = (u) => (te("data-v-481dd9cc"), u = u(), ie(), u), pe = { class: "flex flex-row gap-1 items-center" }, fe = { class: "relative" }, me = { class: "flex items-start" }, ce = { class: "z-10 flex h-5 items-center justify-center max-w-[14px]" }, be = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, ge = { class: "relative flex h-fit" }, ve = /* @__PURE__ */ ue(() => /* @__PURE__ */ s("span", null, " ", -1)), he = { key: 2 }, O = "hover:bg-sidebar-active-b indent-padding-left", $e = /* @__PURE__ */ H({
|
|
11
11
|
__name: "RequestSidebarItem",
|
|
12
12
|
props: {
|
|
13
13
|
isDraggable: { type: Boolean, default: !1 },
|
|
@@ -17,35 +17,35 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
|
|
|
17
17
|
},
|
|
18
18
|
emits: ["onDragEnd"],
|
|
19
19
|
setup(u) {
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
20
|
+
G((e) => ({
|
|
21
|
+
"9215ea88": N.value,
|
|
22
|
+
"602f2182": _.value
|
|
23
23
|
}));
|
|
24
24
|
const t = u, {
|
|
25
25
|
activeRequest: w,
|
|
26
|
-
activeRouterParams:
|
|
26
|
+
activeRouterParams: B,
|
|
27
27
|
activeWorkspace: g,
|
|
28
28
|
collections: D,
|
|
29
|
-
folders:
|
|
29
|
+
folders: V,
|
|
30
30
|
isReadOnly: a,
|
|
31
31
|
requests: k,
|
|
32
32
|
requestExamples: v
|
|
33
|
-
} = se(), { collapsedSidebarFolders: y, toggleSidebarFolder:
|
|
33
|
+
} = se(), { collapsedSidebarFolders: y, toggleSidebarFolder: j } = de(), F = l(() => "childUids" in t.item), q = l(() => "spec" in t.item), x = l(() => "summary" in t.item), N = l(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), _ = l(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), R = (e) => {
|
|
34
34
|
var r;
|
|
35
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
|
-
}, L = l(() => ("requestUid" in t.item ? k[t.item.requestUid] : t.item).method),
|
|
36
|
+
}, L = l(() => ("requestUid" in t.item ? k[t.item.requestUid] : t.item).method), M = l(
|
|
37
37
|
() => {
|
|
38
38
|
var e;
|
|
39
39
|
return y[t.item.uid] || ((e = w.value) == null ? void 0 : e.uid) === t.item.uid && t.item.childUids.length > 1;
|
|
40
40
|
}
|
|
41
|
-
),
|
|
42
|
-
() =>
|
|
41
|
+
), P = () => "requestUid" in t.item ? `/workspace/${g.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${g.value.uid}/request/${t.item.uid}`, T = l(
|
|
42
|
+
() => B.value[re.Request] === "default" && w.value.uid === t.item.uid
|
|
43
43
|
), h = J(null), S = l(() => {
|
|
44
44
|
let e = 0.5, r = 0.5;
|
|
45
45
|
if (!h.value) return { ceiling: e, floor: r };
|
|
46
46
|
const { draggingItem: p } = h.value;
|
|
47
|
-
return !D[p == null ? void 0 : p.id] && q.value ? (e = 1, r = 0) :
|
|
48
|
-
}),
|
|
47
|
+
return !D[p == null ? void 0 : p.id] && q.value ? (e = 1, r = 0) : F.value && !x.value && !q.value && (e = 0.8, r = 0.2), { ceiling: e, floor: r };
|
|
48
|
+
}), W = (e, r) => !(g.value.isReadOnly || v[r.id] || D[e.id]);
|
|
49
49
|
return (e, r) => {
|
|
50
50
|
const p = K("RequestSidebarItem", !0);
|
|
51
51
|
return o(), m("div", {
|
|
@@ -71,13 +71,13 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
|
|
|
71
71
|
"summary" in e.item || "requestUid" in e.item ? (o(), c(i(ne), {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: "no-underline",
|
|
74
|
-
to:
|
|
74
|
+
to: P()
|
|
75
75
|
}, {
|
|
76
76
|
default: C(({ isExactActive: n }) => [
|
|
77
77
|
s("div", {
|
|
78
78
|
class: d(["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", [
|
|
79
79
|
O,
|
|
80
|
-
n ||
|
|
80
|
+
n || T.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
|
|
81
81
|
]]),
|
|
82
82
|
tabindex: "0"
|
|
83
83
|
}, [
|
|
@@ -109,7 +109,7 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
|
|
|
109
109
|
key: 1,
|
|
110
110
|
class: d(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", O]),
|
|
111
111
|
type: "button",
|
|
112
|
-
onClick: r[0] || (r[0] = (n) => i(
|
|
112
|
+
onClick: r[0] || (r[0] = (n) => i(j)(e.item.uid))
|
|
113
113
|
}, [
|
|
114
114
|
s("span", ce, [
|
|
115
115
|
Q(e.$slots, "leftIcon", {}, () => [
|
|
@@ -148,13 +148,13 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
|
|
|
148
148
|
(o(!0), m(Y, null, Z(x.value ? e.item.childUids.slice(1) : e.item.childUids, (n) => (o(), c(p, {
|
|
149
149
|
key: n,
|
|
150
150
|
isDraggable: !i(v)[n],
|
|
151
|
-
isDroppable:
|
|
152
|
-
item: i(
|
|
151
|
+
isDroppable: W,
|
|
152
|
+
item: i(V)[n] || i(k)[n] || i(v)[n],
|
|
153
153
|
parentUids: [...e.parentUids, e.item.uid],
|
|
154
|
-
onOnDragEnd: r[1] || (r[1] = (...
|
|
154
|
+
onOnDragEnd: r[1] || (r[1] = (...A) => e.$emit("onDragEnd", ...A))
|
|
155
155
|
}, null, 8, ["isDraggable", "item", "parentUids"]))), 128))
|
|
156
156
|
], 512)), [
|
|
157
|
-
[ee,
|
|
157
|
+
[ee, M.value]
|
|
158
158
|
]) : b("", !0)
|
|
159
159
|
];
|
|
160
160
|
}),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./RequestSidebarItemMenu.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = /* @__PURE__ */ t(e, [["__scopeId", "data-v-52248ee9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as V, computed as f, ref as B, openBlock as
|
|
1
|
+
import { defineComponent as V, computed as f, ref as B, openBlock as b, createElementBlock as A, Fragment as F, createVNode as i, unref as t, withCtx as l, createBlock as P, createCommentVNode as T, withKeys as K, withModifiers as W, createElementVNode as d, createTextVNode as E, pushScopeId as j, popScopeId as G } from "vue";
|
|
2
2
|
import H from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
3
|
-
import { commandPaletteBus as J } from "../../libs/eventBusses/command-palette.js";
|
|
4
3
|
import { PathId as R } from "../../router.js";
|
|
5
|
-
import { useWorkspace as
|
|
6
|
-
import { useModal as I, ScalarDropdown as
|
|
7
|
-
import { useRouter as
|
|
8
|
-
|
|
4
|
+
import { useWorkspace as J } from "../../store/workspace.js";
|
|
5
|
+
import { useModal as I, ScalarDropdown as L, ScalarDropdownItem as v, ScalarIcon as u, ScalarButton as h, ScalarModal as N, ScalarTextField as O } from "@scalar/components";
|
|
6
|
+
import { useRouter as Q } from "vue-router";
|
|
7
|
+
import { commandPaletteBus as X } from "../../libs/event-busses/command-palette.js";
|
|
8
|
+
const x = (o) => (j("data-v-52248ee9"), o = o(), G(), o), Y = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Add Example", -1)), Z = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Rename", -1)), ee = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Delete", -1)), te = { class: "flex gap-3" }, me = /* @__PURE__ */ V({
|
|
9
9
|
__name: "RequestSidebarItemMenu",
|
|
10
10
|
props: {
|
|
11
11
|
parentUids: {},
|
|
@@ -19,29 +19,29 @@ const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(
|
|
|
19
19
|
folderMutators: w,
|
|
20
20
|
requestMutators: y,
|
|
21
21
|
requestExampleMutators: C
|
|
22
|
-
} =
|
|
22
|
+
} = J(), { replace: q } = Q(), U = () => X.emit({
|
|
23
23
|
commandName: "Add Example",
|
|
24
24
|
metaData: e.item.uid
|
|
25
25
|
}), D = () => {
|
|
26
|
-
"requestUid" in e.item ? (C.delete(e.item), g.value[R.Examples] === e.item.uid &&
|
|
26
|
+
"requestUid" in e.item ? (C.delete(e.item), g.value[R.Examples] === e.item.uid && q(`/workspace/${k.value}/request/default`)) : "summary" in e.item ? (y.delete(
|
|
27
27
|
e.item,
|
|
28
28
|
e.parentUids[e.parentUids.length - 1]
|
|
29
|
-
), g.value[R.Request] === e.item.uid &&
|
|
29
|
+
), g.value[R.Request] === e.item.uid && q(`/workspace/${k.value.uid}/request/default`)) : "spec" in e.item ? _.delete(e.item) : "name" in e.item && w.delete(
|
|
30
30
|
e.item,
|
|
31
31
|
e.parentUids[e.parentUids.length - 1]
|
|
32
32
|
);
|
|
33
|
-
}, $ = f(() => "summary" in e.item),
|
|
33
|
+
}, $ = f(() => "summary" in e.item), M = f(() => {
|
|
34
34
|
var p;
|
|
35
35
|
return "summary" in e.item ? e.item.summary || "" : "name" in e.item ? e.item.name || "" : "spec" in e.item && ((p = e.item.spec.info) == null ? void 0 : p.title) || "";
|
|
36
|
-
}), s = B(""),
|
|
36
|
+
}), s = B(""), S = () => {
|
|
37
37
|
"summary" in e.item ? y.edit(e.item.uid, "summary", s.value) : "requestUid" in e.item ? C.edit(e.item.uid, "name", s.value) : "spec" in e.item ? _.edit(e.item.uid, "spec.info.title", s.value) : w.edit(e.item.uid, "name", s.value), m.hide();
|
|
38
38
|
}, m = I(), c = I(), z = () => {
|
|
39
|
-
s.value =
|
|
39
|
+
s.value = M.value, m.show();
|
|
40
40
|
}, r = f(() => "requestUid" in e.item ? "Example" : "summary" in e.item ? "Request" : "spec" in e.item ? "Collection" : "Folder");
|
|
41
|
-
return (p, a) => (
|
|
42
|
-
i(t(
|
|
41
|
+
return (p, a) => (b(), A(F, null, [
|
|
42
|
+
i(t(L), { teleport: "#scalar-client" }, {
|
|
43
43
|
items: l(() => [
|
|
44
|
-
$.value ? (
|
|
44
|
+
$.value ? (b(), P(t(v), {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "flex !gap-2",
|
|
47
47
|
onClick: U
|
|
@@ -115,7 +115,7 @@ const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(
|
|
|
115
115
|
}, {
|
|
116
116
|
default: l(() => [
|
|
117
117
|
i(H, {
|
|
118
|
-
variableName:
|
|
118
|
+
variableName: M.value,
|
|
119
119
|
warningMessage: "Warning: Deleting this will delete all items inside of this",
|
|
120
120
|
onClose: a[2] || (a[2] = (n) => t(c).hide()),
|
|
121
121
|
onDelete: D
|
|
@@ -128,12 +128,12 @@ const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(
|
|
|
128
128
|
title: `Rename ${r.value}`
|
|
129
129
|
}, {
|
|
130
130
|
default: l(() => [
|
|
131
|
-
i(t(
|
|
131
|
+
i(t(O), {
|
|
132
132
|
modelValue: s.value,
|
|
133
133
|
"onUpdate:modelValue": a[3] || (a[3] = (n) => s.value = n),
|
|
134
134
|
label: r.value,
|
|
135
135
|
labelShadowColor: "var(--scalar-background-1)",
|
|
136
|
-
onKeydown: K(W(
|
|
136
|
+
onKeydown: K(W(S, ["prevent"]), ["enter"])
|
|
137
137
|
}, null, 8, ["modelValue", "label", "onKeydown"]),
|
|
138
138
|
d("div", te, [
|
|
139
139
|
i(t(h), {
|
|
@@ -149,7 +149,7 @@ const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(
|
|
|
149
149
|
i(t(h), {
|
|
150
150
|
class: "flex-1",
|
|
151
151
|
type: "submit",
|
|
152
|
-
onClick:
|
|
152
|
+
onClick: S
|
|
153
153
|
}, {
|
|
154
154
|
default: l(() => [
|
|
155
155
|
E(" Save ")
|
|
@@ -3,7 +3,7 @@ import h from "../../../assets/computer.ascii.js";
|
|
|
3
3
|
import x from "../../../components/ScalarAsciiArt.vue.js";
|
|
4
4
|
import i from "../../../components/ScalarHotkey.vue.js";
|
|
5
5
|
import { useWorkspace as k } from "../../../store/workspace.js";
|
|
6
|
-
import { executeRequestBus as v } from "../../../libs/
|
|
6
|
+
import { executeRequestBus as v } from "../../../libs/event-busses/execute-requestBus.js";
|
|
7
7
|
const p = (t) => (_("data-v-84b69d7e"), t = t(), f(), t), y = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, b = { class: "flex h-[calc(100%_-_50px)] flex-col items-center justify-center" }, R = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "scalar-version-number"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AAqWA,wBAKG"}
|