@scalar/api-client 2.5.12 → 2.5.15
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 +76 -0
- package/README.md +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.js +11 -10
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +10 -10
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +129 -116
- package/dist/components/DataTable/DataTableCell.vue.js +8 -8
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +7 -7
- package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +1 -1
- package/dist/components/ImportCollection/utils/get-openapi-version.d.ts +5 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.js +20 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts +2 -0
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/import-collection.js +1 -1
- package/dist/components/ImportCollection/utils/{isDocument.d.ts → is-document.d.ts} +2 -2
- package/dist/components/ImportCollection/utils/is-document.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/is-document.js +9 -0
- package/dist/components/ImportCollection/utils/is-document.test.d.ts +2 -0
- package/dist/components/ImportCollection/utils/is-document.test.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/is-url.d.ts +5 -0
- package/dist/components/ImportCollection/utils/is-url.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/is-url.js +9 -0
- package/dist/components/ImportCollection/utils/is-url.test.d.ts +2 -0
- package/dist/components/ImportCollection/utils/is-url.test.d.ts.map +1 -0
- package/dist/components/OpenApiClientButton.vue.js +2 -2
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +8 -8
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerSelector.vue.js +13 -13
- package/dist/components/TopNav/TopNav.vue.js +10 -10
- package/dist/components/TopNav/TopNavItem.vue.js +1 -1
- package/dist/components/TopNav/TopNavItem.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +5 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +42 -36
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +4 -4
- package/dist/hooks/useClientConfig.d.ts +42 -36
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +160 -160
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +320 -320
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +160 -160
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +160 -160
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +5 -5
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +10 -10
- package/dist/libs/send-request/create-request-operation.test.d.ts +33 -33
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.d.ts +5 -3
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.js +17 -9
- package/dist/plugins/plugin-manager.test.d.ts +2 -0
- package/dist/plugins/plugin-manager.test.d.ts.map +1 -0
- package/dist/store/active-entities.d.ts +33 -33
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +130 -130
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +55 -55
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +162 -162
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue.js +2 -2
- package/dist/views/Collection/components/EnvironmentForm.vue.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.js +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue2.js +32 -26
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +15 -14
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +2 -9
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +16 -30
- package/dist/views/Cookies/CookieForm.vue.js +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +67 -61
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +98 -92
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +6 -6
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +125 -121
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +22 -22
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- 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 +9 -9
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +9 -9
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +9 -9
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/dist/views/Settings/SettingsGeneral.vue.js +2 -2
- package/package.json +22 -21
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.d.ts +0 -5
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.js +0 -20
- package/dist/components/ImportCollection/utils/isDocument.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/isDocument.js +0 -7
- package/dist/components/ImportCollection/utils/isUrl.d.ts +0 -3
- package/dist/components/ImportCollection/utils/isUrl.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/isUrl.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as j, ScalarIcon as
|
|
3
|
-
import { LibraryIcon as
|
|
1
|
+
import { defineComponent as ve, ref as k, computed as fe, watch as B, onMounted as pe, onBeforeUnmount as be, createBlock as _, openBlock as f, withCtx as c, createVNode as u, createTextVNode as L, createElementVNode as b, createElementBlock as O, unref as l, Fragment as K, renderList as G, withDirectives as xe, normalizeClass as J, toDisplayString as T, createCommentVNode as H, withModifiers as he, vShow as Ee, createSlots as Ce } from "vue";
|
|
2
|
+
import { useModal as j, ScalarIcon as q, ScalarButton as ke, ScalarModal as ye } from "@scalar/components";
|
|
3
|
+
import { LibraryIcon as ge } from "@scalar/icons/library";
|
|
4
4
|
import { useToasts as _e } from "@scalar/use-toasts";
|
|
5
|
-
import { useRouter as we, useRoute as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import { useRouter as we, useRoute as Me } from "vue-router";
|
|
6
|
+
import De from "../../components/CodeInput/CodeInput.vue.js";
|
|
7
|
+
import Ie from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
8
8
|
import Se from "../../components/Sidebar/Sidebar.vue.js";
|
|
9
9
|
import $e from "../../components/Sidebar/SidebarButton.vue.js";
|
|
10
10
|
import Ve from "../../components/Sidebar/SidebarList.vue.js";
|
|
@@ -19,15 +19,15 @@ import We from "./EnvironmentColorModal.vue.js";
|
|
|
19
19
|
import Ue from "./EnvironmentModal.vue.js";
|
|
20
20
|
import { environmentDragHandlerFactory as ze } from "./handle-drag.js";
|
|
21
21
|
import { useWorkspace as Ae } from "../../store/store.js";
|
|
22
|
-
const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-[14px] items-center justify-center" }, vn = /* @__PURE__ */
|
|
22
|
+
const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-[14px] items-center justify-center" }, vn = /* @__PURE__ */ ve({
|
|
23
23
|
__name: "Environment",
|
|
24
24
|
setup(Ge) {
|
|
25
|
-
const
|
|
25
|
+
const y = we(), x = Me(), {
|
|
26
26
|
activeWorkspace: p,
|
|
27
27
|
activeEnvironment: F,
|
|
28
28
|
activeWorkspaceCollections: d,
|
|
29
|
-
activeEnvVariables:
|
|
30
|
-
} = Re(), { events: N, workspaceMutators:
|
|
29
|
+
activeEnvVariables: Q
|
|
30
|
+
} = Re(), { events: N, workspaceMutators: X, collectionMutators: h } = Ae(), { collapsedSidebarFolders: g, toggleSidebarFolder: w } = Ne(), M = j(), D = j(), I = j(), R = k(null), s = k("default"), W = k(""), E = k(void 0), v = k(void 0), S = k(void 0), { toast: U } = _e(), Y = (e) => JSON.parse(e);
|
|
31
31
|
function z(e, o, n) {
|
|
32
32
|
var t;
|
|
33
33
|
e && (o.uid === n ? U(
|
|
@@ -35,42 +35,42 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
35
35
|
"error"
|
|
36
36
|
) : U("Environment name already used in another collection", "error"));
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const C = fe(() => d.value.filter(
|
|
39
39
|
(e) => {
|
|
40
40
|
var o;
|
|
41
41
|
return ((o = e.info) == null ? void 0 : o.title) !== "Drafts";
|
|
42
42
|
}
|
|
43
43
|
));
|
|
44
|
-
function
|
|
45
|
-
|
|
44
|
+
function Z(e) {
|
|
45
|
+
C.value.some(
|
|
46
46
|
(n) => {
|
|
47
47
|
const t = Object.keys(
|
|
48
48
|
n["x-scalar-environments"] || {}
|
|
49
49
|
).includes(e.name);
|
|
50
50
|
return z(t, n, e.collectionId), t;
|
|
51
51
|
}
|
|
52
|
-
) || (e.collectionId && (
|
|
52
|
+
) || (e.collectionId && (h.addEnvironment(
|
|
53
53
|
e.name,
|
|
54
54
|
{
|
|
55
55
|
variables: {},
|
|
56
56
|
color: e.color
|
|
57
57
|
},
|
|
58
58
|
e.collectionId
|
|
59
|
-
),
|
|
59
|
+
), g[e.collectionId] || w(e.collectionId), y.push({
|
|
60
60
|
name: "environment.collection",
|
|
61
61
|
params: {
|
|
62
62
|
[i.Collection]: e.collectionId,
|
|
63
63
|
[i.Environment]: e.name
|
|
64
64
|
}
|
|
65
|
-
})),
|
|
65
|
+
})), D.hide());
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function ee(e) {
|
|
68
68
|
var n, t;
|
|
69
69
|
if (!F)
|
|
70
70
|
return;
|
|
71
|
-
const o =
|
|
71
|
+
const o = Y(e);
|
|
72
72
|
if (s.value === "default")
|
|
73
|
-
|
|
73
|
+
X.edit(
|
|
74
74
|
(n = p.value) == null ? void 0 : n.uid,
|
|
75
75
|
"environments",
|
|
76
76
|
o
|
|
@@ -84,7 +84,7 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
84
84
|
);
|
|
85
85
|
if ((t = a == null ? void 0 : a["x-scalar-environments"]) != null && t[s.value ?? ""]) {
|
|
86
86
|
const r = a["x-scalar-environments"][s.value ?? ""];
|
|
87
|
-
r && (r.variables = o,
|
|
87
|
+
r && (r.variables = o, h.edit(
|
|
88
88
|
a.uid,
|
|
89
89
|
"x-scalar-environments",
|
|
90
90
|
a["x-scalar-environments"]
|
|
@@ -93,18 +93,18 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
const $ = (e) => {
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
v.value = e,
|
|
99
|
-
},
|
|
96
|
+
E.value = e, D.show();
|
|
97
|
+
}, ne = (e, o) => {
|
|
98
|
+
v.value = e, E.value = o, S.value = e, I.show();
|
|
99
|
+
}, te = (e) => {
|
|
100
100
|
var o, n, t;
|
|
101
101
|
R.value = e, W.value = ((t = (n = (o = d.value.find(
|
|
102
102
|
(a) => {
|
|
103
103
|
var r;
|
|
104
104
|
return (r = a["x-scalar-environments"]) == null ? void 0 : r[e];
|
|
105
105
|
}
|
|
106
|
-
)) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[e]) == null ? void 0 : t.color) ?? "",
|
|
107
|
-
},
|
|
106
|
+
)) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[e]) == null ? void 0 : t.color) ?? "", M.show();
|
|
107
|
+
}, oe = (e) => {
|
|
108
108
|
const o = R.value;
|
|
109
109
|
typeof o == "string" && (d.value.some(
|
|
110
110
|
(t) => {
|
|
@@ -113,19 +113,19 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
113
113
|
}
|
|
114
114
|
) && d.value.forEach((t) => {
|
|
115
115
|
var a;
|
|
116
|
-
(a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e,
|
|
116
|
+
(a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e, h.edit(
|
|
117
117
|
t.uid,
|
|
118
118
|
"x-scalar-environments",
|
|
119
119
|
t["x-scalar-environments"]
|
|
120
120
|
));
|
|
121
|
-
}),
|
|
121
|
+
}), M.hide());
|
|
122
122
|
};
|
|
123
|
-
function
|
|
123
|
+
function ae(e) {
|
|
124
124
|
var n;
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
C.value.forEach((t) => {
|
|
126
|
+
h.removeEnvironment(e, t.uid);
|
|
127
127
|
});
|
|
128
|
-
const o =
|
|
128
|
+
const o = C.value.flatMap(
|
|
129
129
|
(t) => Object.keys(t["x-scalar-environments"] || {})
|
|
130
130
|
);
|
|
131
131
|
if (o.length > 0) {
|
|
@@ -137,22 +137,22 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
137
137
|
t
|
|
138
138
|
)
|
|
139
139
|
);
|
|
140
|
-
s.value = t,
|
|
140
|
+
s.value = t, y.push({
|
|
141
141
|
name: "environment.collection",
|
|
142
142
|
params: {
|
|
143
143
|
[i.Collection]: a == null ? void 0 : a.uid,
|
|
144
144
|
[i.Environment]: t
|
|
145
145
|
}
|
|
146
|
-
}), a && !
|
|
146
|
+
}), a && !g[a.uid] && w(a.uid);
|
|
147
147
|
} else
|
|
148
|
-
s.value = "default",
|
|
148
|
+
s.value = "default", y.push({
|
|
149
149
|
name: "environment.default",
|
|
150
150
|
params: {
|
|
151
151
|
[i.Workspace]: (n = p.value) == null ? void 0 : n.uid
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const re = () => s.value === "default" ? "Global Environment" : s.value, le = () => {
|
|
156
156
|
var e, o, n, t;
|
|
157
157
|
return s.value === "default" ? JSON.stringify((e = p.value) == null ? void 0 : e.environments, null, 2) : JSON.stringify(
|
|
158
158
|
(t = (n = (o = d.value.find(
|
|
@@ -164,20 +164,20 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
164
164
|
null,
|
|
165
165
|
2
|
|
166
166
|
);
|
|
167
|
-
},
|
|
168
|
-
e != null && e.createNew &&
|
|
167
|
+
}, se = (e) => g[e], A = (e) => {
|
|
168
|
+
e != null && e.createNew && x.name === "environment" && $();
|
|
169
169
|
};
|
|
170
|
-
|
|
171
|
-
() => [
|
|
170
|
+
B(
|
|
171
|
+
() => [x.params[i.Collection], x.params[i.Environment]],
|
|
172
172
|
([e, o]) => {
|
|
173
173
|
e ? s.value = o : s.value = "default";
|
|
174
174
|
}
|
|
175
175
|
), pe(() => {
|
|
176
|
-
s.value =
|
|
177
|
-
const e =
|
|
178
|
-
e && !
|
|
176
|
+
s.value = x.params[i.Environment] || "default", N.hotKeys.on(A);
|
|
177
|
+
const e = x.params[i.Collection];
|
|
178
|
+
e && !g[e] && w(e);
|
|
179
179
|
}), be(() => N.hotKeys.off(A));
|
|
180
|
-
const
|
|
180
|
+
const ie = (e, o, n) => {
|
|
181
181
|
var a, r;
|
|
182
182
|
const t = n ? {
|
|
183
183
|
name: "environment.collection",
|
|
@@ -193,13 +193,13 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
193
193
|
[i.Environment]: o
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
|
-
e.metaKey ? window.open(
|
|
196
|
+
e.metaKey ? window.open(y.resolve(t).href, "_blank") : y.push(t);
|
|
197
197
|
};
|
|
198
|
-
function
|
|
199
|
-
v.value = void 0,
|
|
198
|
+
function ue() {
|
|
199
|
+
v.value = void 0, E.value = void 0, S.value = void 0, I.hide();
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
201
|
+
function me(e) {
|
|
202
|
+
C.value.some(
|
|
203
203
|
(n) => {
|
|
204
204
|
const t = Object.keys(
|
|
205
205
|
n["x-scalar-environments"] || {}
|
|
@@ -207,7 +207,7 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
207
207
|
return z(
|
|
208
208
|
t,
|
|
209
209
|
n,
|
|
210
|
-
|
|
210
|
+
E.value
|
|
211
211
|
), t;
|
|
212
212
|
}
|
|
213
213
|
) || (e && v.value !== "default" && d.value.forEach((n) => {
|
|
@@ -217,19 +217,25 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
217
217
|
Object.keys(a).forEach((m) => {
|
|
218
218
|
const V = a[m];
|
|
219
219
|
V && (m === v.value ? r[e] = V : r[m] = V);
|
|
220
|
-
}), n["x-scalar-environments"] = r,
|
|
220
|
+
}), n["x-scalar-environments"] = r, h.edit(
|
|
221
221
|
n.uid,
|
|
222
222
|
"x-scalar-environments",
|
|
223
223
|
n["x-scalar-environments"]
|
|
224
224
|
);
|
|
225
225
|
}
|
|
226
|
-
}), e && s.value === v.value && (s.value = e), v.value = void 0,
|
|
226
|
+
}), e && s.value === v.value && (s.value = e), v.value = void 0, E.value = void 0, S.value = void 0, I.hide());
|
|
227
227
|
}
|
|
228
|
-
const { handleDragEnd:
|
|
228
|
+
const { handleDragEnd: ce, isDroppable: de } = ze(
|
|
229
229
|
d,
|
|
230
|
-
|
|
230
|
+
h
|
|
231
231
|
);
|
|
232
|
-
return (
|
|
232
|
+
return B(
|
|
233
|
+
() => x.query.openEnvironmentModal,
|
|
234
|
+
(e) => {
|
|
235
|
+
e === "true" && $();
|
|
236
|
+
},
|
|
237
|
+
{ immediate: !0 }
|
|
238
|
+
), (e, o) => (f(), _(Oe, null, {
|
|
233
239
|
default: c(() => [
|
|
234
240
|
u(Se, { title: "Collections" }, {
|
|
235
241
|
content: c(() => [
|
|
@@ -254,7 +260,7 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
254
260
|
isDefault: !0
|
|
255
261
|
}
|
|
256
262
|
}, null, 8, ["to"])),
|
|
257
|
-
(f(!0), O(
|
|
263
|
+
(f(!0), O(K, null, G(C.value, (n) => {
|
|
258
264
|
var t;
|
|
259
265
|
return f(), O("li", {
|
|
260
266
|
key: n.uid,
|
|
@@ -266,30 +272,30 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
266
272
|
onClick: (a) => l(w)(n.uid)
|
|
267
273
|
}, [
|
|
268
274
|
b("span", Ke, [
|
|
269
|
-
u(l(
|
|
275
|
+
u(l(ge), {
|
|
270
276
|
class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
|
|
271
277
|
src: n["x-scalar-icon"] || "interface-content-folder"
|
|
272
278
|
}, null, 8, ["src"]),
|
|
273
279
|
b("div", {
|
|
274
|
-
class:
|
|
275
|
-
"rotate-90": l(
|
|
280
|
+
class: J({
|
|
281
|
+
"rotate-90": l(g)[n.uid]
|
|
276
282
|
})
|
|
277
283
|
}, [
|
|
278
|
-
u(l(
|
|
284
|
+
u(l(q), {
|
|
279
285
|
class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
|
|
280
286
|
icon: "ChevronRight",
|
|
281
287
|
size: "md"
|
|
282
288
|
})
|
|
283
289
|
], 2)
|
|
284
290
|
]),
|
|
285
|
-
|
|
291
|
+
L(" " + T(((t = n.info) == null ? void 0 : t.title) ?? ""), 1)
|
|
286
292
|
], 8, Le),
|
|
287
293
|
xe(b("div", {
|
|
288
|
-
class:
|
|
294
|
+
class: J({
|
|
289
295
|
"before:bg-border relative mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-3 before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full": Object.keys(n["x-scalar-environments"] || {}).length > 0
|
|
290
296
|
})
|
|
291
297
|
}, [
|
|
292
|
-
(f(!0), O(
|
|
298
|
+
(f(!0), O(K, null, G(n["x-scalar-environments"], (a, r) => (f(), _(P, {
|
|
293
299
|
key: r,
|
|
294
300
|
class: "text-xs",
|
|
295
301
|
collectionId: n.uid,
|
|
@@ -297,7 +303,7 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
297
303
|
isDeletable: !0,
|
|
298
304
|
isRenameable: !0,
|
|
299
305
|
isDraggable: !0,
|
|
300
|
-
isDroppable: l(
|
|
306
|
+
isDroppable: l(de),
|
|
301
307
|
to: {
|
|
302
308
|
name: "environment.collection",
|
|
303
309
|
params: {
|
|
@@ -313,11 +319,11 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
313
319
|
isDefault: !1
|
|
314
320
|
},
|
|
315
321
|
warningMessage: "Are you sure you want to delete this environment?",
|
|
316
|
-
onClick: he((m) =>
|
|
317
|
-
onColorModal: (m) =>
|
|
318
|
-
onDelete: (m) =>
|
|
319
|
-
onRename: (m) =>
|
|
320
|
-
onOnDragEnd: l(
|
|
322
|
+
onClick: he((m) => ie(m, r, n.uid), ["prevent"]),
|
|
323
|
+
onColorModal: (m) => te(r),
|
|
324
|
+
onDelete: (m) => ae(r),
|
|
325
|
+
onRename: (m) => ne(r, n.uid),
|
|
326
|
+
onOnDragEnd: l(ce)
|
|
321
327
|
}, null, 8, ["collectionId", "isDroppable", "to", "variable", "onClick", "onColorModal", "onDelete", "onRename", "onOnDragEnd"]))), 128)),
|
|
322
328
|
Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (f(), _(l(ke), {
|
|
323
329
|
key: 0,
|
|
@@ -326,16 +332,16 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
326
332
|
onClick: (a) => $(n.uid)
|
|
327
333
|
}, {
|
|
328
334
|
default: c(() => [
|
|
329
|
-
u(l(
|
|
335
|
+
u(l(q), {
|
|
330
336
|
icon: "Add",
|
|
331
337
|
size: "sm"
|
|
332
338
|
}),
|
|
333
339
|
o[2] || (o[2] = b("span", null, "Add Environment", -1))
|
|
334
340
|
]),
|
|
335
341
|
_: 2
|
|
336
|
-
}, 1032, ["onClick"])) :
|
|
342
|
+
}, 1032, ["onClick"])) : H("", !0)
|
|
337
343
|
], 2), [
|
|
338
|
-
[Ee,
|
|
344
|
+
[Ee, se(n.uid)]
|
|
339
345
|
])
|
|
340
346
|
]);
|
|
341
347
|
}), 128))
|
|
@@ -350,7 +356,7 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
350
356
|
hotkey: "N"
|
|
351
357
|
}, {
|
|
352
358
|
title: c(() => o[3] || (o[3] = [
|
|
353
|
-
|
|
359
|
+
L(" Add Environment ")
|
|
354
360
|
])),
|
|
355
361
|
_: 1
|
|
356
362
|
})
|
|
@@ -361,26 +367,26 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
361
367
|
default: c(() => [
|
|
362
368
|
u(Fe, null, Ce({
|
|
363
369
|
default: c(() => [
|
|
364
|
-
s.value && l(p) ? (f(), _(
|
|
370
|
+
s.value && l(p) ? (f(), _(De, {
|
|
365
371
|
key: 0,
|
|
366
372
|
class: "py-2 pr-2 pl-px md:px-4",
|
|
367
|
-
envVariables: l(
|
|
373
|
+
envVariables: l(Q),
|
|
368
374
|
environment: l(F),
|
|
369
375
|
isCopyable: "",
|
|
370
376
|
language: "json",
|
|
371
377
|
lineNumbers: "",
|
|
372
378
|
lint: "",
|
|
373
|
-
modelValue:
|
|
379
|
+
modelValue: le(),
|
|
374
380
|
workspace: l(p),
|
|
375
|
-
"onUpdate:modelValue":
|
|
376
|
-
}, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) :
|
|
381
|
+
"onUpdate:modelValue": ee
|
|
382
|
+
}, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) : H("", !0)
|
|
377
383
|
]),
|
|
378
384
|
_: 2
|
|
379
385
|
}, [
|
|
380
386
|
s.value ? {
|
|
381
387
|
name: "title",
|
|
382
388
|
fn: c(() => [
|
|
383
|
-
b("span", null,
|
|
389
|
+
b("span", null, T(re()), 1)
|
|
384
390
|
]),
|
|
385
391
|
key: "0"
|
|
386
392
|
} : void 0
|
|
@@ -390,27 +396,27 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
390
396
|
}),
|
|
391
397
|
u(We, {
|
|
392
398
|
selectedColor: W.value,
|
|
393
|
-
state: l(
|
|
394
|
-
onCancel: o[0] || (o[0] = (n) => l(
|
|
395
|
-
onSubmit:
|
|
399
|
+
state: l(M),
|
|
400
|
+
onCancel: o[0] || (o[0] = (n) => l(M).hide()),
|
|
401
|
+
onSubmit: oe
|
|
396
402
|
}, null, 8, ["selectedColor", "state"]),
|
|
397
403
|
u(Ue, {
|
|
398
|
-
activeWorkspaceCollections:
|
|
399
|
-
collectionId:
|
|
400
|
-
state: l(
|
|
401
|
-
onCancel: o[1] || (o[1] = (n) => l(
|
|
402
|
-
onSubmit:
|
|
404
|
+
activeWorkspaceCollections: C.value,
|
|
405
|
+
collectionId: E.value,
|
|
406
|
+
state: l(D),
|
|
407
|
+
onCancel: o[1] || (o[1] = (n) => l(D).hide()),
|
|
408
|
+
onSubmit: Z
|
|
403
409
|
}, null, 8, ["activeWorkspaceCollections", "collectionId", "state"]),
|
|
404
|
-
u(l(
|
|
410
|
+
u(l(ye), {
|
|
405
411
|
size: "xxs",
|
|
406
|
-
state: l(
|
|
412
|
+
state: l(I),
|
|
407
413
|
title: `Edit ${v.value}`
|
|
408
414
|
}, {
|
|
409
415
|
default: c(() => [
|
|
410
|
-
u(
|
|
416
|
+
u(Ie, {
|
|
411
417
|
name: S.value ?? "",
|
|
412
|
-
onClose:
|
|
413
|
-
onEdit:
|
|
418
|
+
onClose: ue,
|
|
419
|
+
onEdit: me
|
|
414
420
|
}, null, 8, ["name"])
|
|
415
421
|
]),
|
|
416
422
|
_: 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as R, ref as m, computed as w, onMounted as I, createBlock as v, createCommentVNode as
|
|
1
|
+
import { defineComponent as R, ref as m, computed as w, onMounted as I, createBlock as v, createCommentVNode as x, openBlock as r, unref as l, withCtx as y, createElementVNode as c, normalizeStyle as b, createElementBlock as u, Fragment as P, renderList as T, normalizeClass as j, createTextVNode as k, toDisplayString as g, createVNode as q } from "vue";
|
|
2
2
|
import { ScalarTeleport as D, ScalarIcon as V, ScalarButton as F } from "@scalar/components";
|
|
3
3
|
import { onClickOutside as K } from "@vueuse/core";
|
|
4
4
|
import O from "fuse.js";
|
|
@@ -71,7 +71,7 @@ const M = {
|
|
|
71
71
|
key: 0,
|
|
72
72
|
class: "scalar-client"
|
|
73
73
|
}, {
|
|
74
|
-
default:
|
|
74
|
+
default: y(() => [
|
|
75
75
|
c("div", {
|
|
76
76
|
ref_key: "dropdownRef",
|
|
77
77
|
ref: p,
|
|
@@ -103,10 +103,10 @@ const M = {
|
|
|
103
103
|
])) : l(f) ? (r(), v(l(F), {
|
|
104
104
|
key: 1,
|
|
105
105
|
class: "font-code text-xxs hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150",
|
|
106
|
-
variant: "
|
|
106
|
+
variant: "outlined",
|
|
107
107
|
onClick: A
|
|
108
108
|
}, {
|
|
109
|
-
default:
|
|
109
|
+
default: y(() => [
|
|
110
110
|
q(l(V), {
|
|
111
111
|
icon: "Add",
|
|
112
112
|
size: "sm"
|
|
@@ -114,12 +114,12 @@ const M = {
|
|
|
114
114
|
o[0] || (o[0] = k(" Add Variable "))
|
|
115
115
|
]),
|
|
116
116
|
_: 1
|
|
117
|
-
})) :
|
|
117
|
+
})) : x("", !0),
|
|
118
118
|
o[1] || (o[1] = c("div", { class: "bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg" }, null, -1))
|
|
119
119
|
], 4)
|
|
120
120
|
]),
|
|
121
121
|
_: 1
|
|
122
|
-
})) :
|
|
122
|
+
})) : x("", !0);
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
export {
|
|
@@ -21,7 +21,7 @@ const k = { class: "text-c-2 mb-4 text-sm leading-normal" }, C = { class: "flex
|
|
|
21
21
|
default: n(() => {
|
|
22
22
|
var a;
|
|
23
23
|
return [
|
|
24
|
-
r("p", k, " This cannot be undone. You
|
|
24
|
+
r("p", k, " This cannot be undone. You're about to delete the " + i((a = e.scheme) == null ? void 0 : a.label) + " security scheme from the collection. ", 1),
|
|
25
25
|
r("div", C, [
|
|
26
26
|
m(s(d), {
|
|
27
27
|
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AA+XA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAMrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAe1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAwbF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestAuth.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-c19d214a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|