@scalar/api-client 2.3.32 → 2.3.34
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 +52 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +63 -61
- package/dist/components/DataTable/DataTable.vue.js +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +58 -48
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +34 -32
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +6 -6
- package/dist/hooks/useClientConfig.d.ts +3 -0
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +64 -24
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +128 -48
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +64 -24
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +64 -24
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/index.js +32 -29
- package/dist/libs/local-storage.d.ts +8 -0
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +28 -24
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +8 -8
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/send-request/decode-buffer.js +4 -4
- package/dist/libs/send-request/index.d.ts +1 -0
- package/dist/libs/send-request/index.d.ts.map +1 -1
- package/dist/libs/send-request/index.js +6 -4
- package/dist/store/active-entities.d.ts +2 -2
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +22 -22
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +42 -2
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +64 -24
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.js +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue2.js +32 -32
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue.js +3 -2
- package/dist/views/Collection/CollectionEnvironment.vue2.js +233 -9
- package/dist/views/Collection/CollectionNavigation.vue.js +36 -36
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +6 -6
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +13 -0
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts.map +1 -0
- package/dist/views/Collection/components/EnvironmentForm.vue.js +7 -0
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +274 -0
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +35 -34
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +32 -28
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +67 -65
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +94 -97
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -0
- 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 +116 -99
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +27 -25
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +114 -73
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +15 -15
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -4
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +42 -40
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +8 -0
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/helpers/update-scheme.js +17 -0
- package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts +2 -0
- package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts.map +1 -0
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +87 -84
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +11 -11
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/consts/index.js +7 -5
- package/dist/views/Request/consts/mediaTypes.d.ts +4 -0
- package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -1
- package/dist/views/Request/consts/mediaTypes.js +21 -4
- package/dist/views/Request/consts/mediaTypes.test.d.ts +2 -0
- package/dist/views/Request/consts/mediaTypes.test.d.ts.map +1 -0
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +53 -47
- package/package.json +14 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarTooltip as
|
|
1
|
+
import { defineComponent as q, createBlock as p, openBlock as d, withCtx as n, createVNode as t, createElementBlock as b, createTextVNode as f, toDisplayString as c, Fragment as h, renderList as D, normalizeClass as v, unref as s, createCommentVNode as k, createElementVNode as i } from "vue";
|
|
2
|
+
import { ScalarTooltip as _, ScalarIcon as B, ScalarButton as x } from "@scalar/components";
|
|
3
3
|
import { ScalarIconTrash as E } from "@scalar/icons";
|
|
4
4
|
import { RouterLink as G } from "vue-router";
|
|
5
5
|
import R from "../../../components/CodeInput/CodeInput.vue.js";
|
|
@@ -9,11 +9,11 @@ import P from "../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
|
9
9
|
import w from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
10
10
|
import C from "../../../components/DataTable/DataTableRow.vue.js";
|
|
11
11
|
import { parameterIsInvalid as j, hasItemProperties as V } from "../libs/request.js";
|
|
12
|
-
import
|
|
13
|
-
const
|
|
12
|
+
import K from "./RequestTableTooltip.vue.js";
|
|
13
|
+
const O = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify-end overflow-hidden p-1" }, A = ["onClick"], L = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "p-0.5"
|
|
16
|
-
}, ne = /* @__PURE__ */
|
|
16
|
+
}, ne = /* @__PURE__ */ q({
|
|
17
17
|
__name: "RequestTable",
|
|
18
18
|
props: {
|
|
19
19
|
items: {},
|
|
@@ -28,62 +28,62 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
28
28
|
label: {}
|
|
29
29
|
},
|
|
30
30
|
emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
|
|
31
|
-
setup(
|
|
32
|
-
const m =
|
|
33
|
-
|
|
31
|
+
setup($, { emit: F }) {
|
|
32
|
+
const m = $, r = F, U = ["", "", "36px"], g = (e, o, l) => {
|
|
33
|
+
r("updateRow", e, o, l);
|
|
34
34
|
}, S = (e) => {
|
|
35
|
-
|
|
35
|
+
r("uploadFile", e);
|
|
36
36
|
}, z = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default, T = (e) => !!(e.key || e.value);
|
|
37
37
|
return (e, o) => (d(), p(N, {
|
|
38
38
|
class: "group/table flex-1",
|
|
39
|
-
columns:
|
|
39
|
+
columns: U
|
|
40
40
|
}, {
|
|
41
41
|
default: n(() => [
|
|
42
42
|
t(C, { class: "sr-only !block" }, {
|
|
43
43
|
default: n(() => [
|
|
44
44
|
t(w, null, {
|
|
45
45
|
default: n(() => [
|
|
46
|
-
|
|
46
|
+
f(c(e.label) + " Enabled", 1)
|
|
47
47
|
]),
|
|
48
48
|
_: 1
|
|
49
49
|
}),
|
|
50
50
|
t(w, null, {
|
|
51
51
|
default: n(() => [
|
|
52
|
-
|
|
52
|
+
f(c(e.label) + " Key", 1)
|
|
53
53
|
]),
|
|
54
54
|
_: 1
|
|
55
55
|
}),
|
|
56
56
|
t(w, null, {
|
|
57
57
|
default: n(() => [
|
|
58
|
-
|
|
58
|
+
f(c(e.label) + " Value", 1)
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
61
|
})
|
|
62
62
|
]),
|
|
63
63
|
_: 1
|
|
64
64
|
}),
|
|
65
|
-
(d(!0),
|
|
65
|
+
(d(!0), b(h, null, D(e.items, (l, u) => (d(), p(C, {
|
|
66
66
|
id: l.key,
|
|
67
67
|
key: u,
|
|
68
68
|
class: v({
|
|
69
|
-
alert:
|
|
69
|
+
alert: s(j)(l).value,
|
|
70
70
|
error: e.invalidParams && e.invalidParams.has(l.key)
|
|
71
71
|
})
|
|
72
72
|
}, {
|
|
73
73
|
default: n(() => [
|
|
74
|
-
e.isGlobal ? (d(), p(
|
|
74
|
+
e.isGlobal ? (d(), p(s(G), {
|
|
75
75
|
key: 0,
|
|
76
76
|
class: "!border-r-1/2 border-t-1/2 text-c-2 flex items-center justify-center",
|
|
77
77
|
to: l.route ?? {}
|
|
78
78
|
}, {
|
|
79
79
|
default: n(() => [
|
|
80
80
|
o[5] || (o[5] = i("span", { class: "sr-only" }, "Global", -1)),
|
|
81
|
-
t(
|
|
81
|
+
t(s(_), {
|
|
82
82
|
as: "div",
|
|
83
83
|
side: "top"
|
|
84
84
|
}, {
|
|
85
85
|
trigger: n(() => [
|
|
86
|
-
t(
|
|
86
|
+
t(s(B), {
|
|
87
87
|
class: "text-c-1",
|
|
88
88
|
icon: "Globe",
|
|
89
89
|
size: "xs"
|
|
@@ -105,11 +105,12 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
105
105
|
class: "!border-r-1/2",
|
|
106
106
|
disabled: m.hasCheckboxDisabled,
|
|
107
107
|
modelValue: l.enabled,
|
|
108
|
-
"onUpdate:modelValue": (a) =>
|
|
108
|
+
"onUpdate:modelValue": (a) => r("toggleRow", u, a)
|
|
109
109
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])),
|
|
110
110
|
t(y, null, {
|
|
111
111
|
default: n(() => [
|
|
112
112
|
t(R, {
|
|
113
|
+
"aria-label": `${e.label} Key`,
|
|
113
114
|
disableCloseBrackets: "",
|
|
114
115
|
disabled: m.isReadOnly,
|
|
115
116
|
disableEnter: "",
|
|
@@ -121,19 +122,20 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
121
122
|
placeholder: "Key",
|
|
122
123
|
required: !!l.required,
|
|
123
124
|
workspace: e.workspace,
|
|
124
|
-
onBlur: o[0] || (o[0] = (a) =>
|
|
125
|
-
onFocus: o[1] || (o[1] = (a) =>
|
|
125
|
+
onBlur: o[0] || (o[0] = (a) => r("inputBlur")),
|
|
126
|
+
onFocus: o[1] || (o[1] = (a) => r("inputFocus")),
|
|
126
127
|
onSelectVariable: (a) => g(u, "key", a),
|
|
127
|
-
"onUpdate:modelValue": (a) =>
|
|
128
|
-
}, null, 8, ["disabled", "envVariables", "environment", "modelValue", "required", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
128
|
+
"onUpdate:modelValue": (a) => r("updateRow", u, "key", a)
|
|
129
|
+
}, null, 8, ["aria-label", "disabled", "envVariables", "environment", "modelValue", "required", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
129
130
|
]),
|
|
130
131
|
_: 2
|
|
131
132
|
}, 1024),
|
|
132
133
|
t(y, null, {
|
|
133
134
|
default: n(() => [
|
|
134
135
|
t(R, {
|
|
136
|
+
"aria-label": `${e.label} Value`,
|
|
135
137
|
class: v(
|
|
136
|
-
|
|
138
|
+
s(V)(l) ? "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10" : "group-hover:pr-6 group-has-[.cm-focused]:pr-6"
|
|
137
139
|
),
|
|
138
140
|
default: l.default,
|
|
139
141
|
disableCloseBrackets: "",
|
|
@@ -152,33 +154,33 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
152
154
|
placeholder: "Value",
|
|
153
155
|
type: l.type,
|
|
154
156
|
workspace: e.workspace,
|
|
155
|
-
onBlur: o[2] || (o[2] = (a) =>
|
|
156
|
-
onFocus: o[3] || (o[3] = (a) =>
|
|
157
|
+
onBlur: o[2] || (o[2] = (a) => r("inputBlur")),
|
|
158
|
+
onFocus: o[3] || (o[3] = (a) => r("inputFocus")),
|
|
157
159
|
onSelectVariable: (a) => g(u, "value", a),
|
|
158
|
-
"onUpdate:modelValue": (a) =>
|
|
160
|
+
"onUpdate:modelValue": (a) => r("updateRow", u, "value", a)
|
|
159
161
|
}, {
|
|
160
162
|
icon: n(() => [
|
|
161
|
-
T(l) && !l.required ? (d(), p(
|
|
163
|
+
T(l) && !l.required ? (d(), p(s(x), {
|
|
162
164
|
key: 0,
|
|
163
165
|
class: v([{
|
|
164
|
-
"-mr-0.5":
|
|
166
|
+
"-mr-0.5": s(V)(l)
|
|
165
167
|
}, "text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex"]),
|
|
166
168
|
size: "sm",
|
|
167
169
|
variant: "ghost",
|
|
168
|
-
onClick: (a) =>
|
|
170
|
+
onClick: (a) => r("deleteRow", u)
|
|
169
171
|
}, {
|
|
170
172
|
default: n(() => [
|
|
171
|
-
t(
|
|
173
|
+
t(s(E), { class: "size-3.5" })
|
|
172
174
|
]),
|
|
173
175
|
_: 2
|
|
174
176
|
}, 1032, ["class", "onClick"])) : k("", !0),
|
|
175
|
-
|
|
177
|
+
s(V)(l) ? (d(), p(K, {
|
|
176
178
|
key: 1,
|
|
177
179
|
item: { ...l, default: z(l) }
|
|
178
180
|
}, null, 8, ["item"])) : k("", !0)
|
|
179
181
|
]),
|
|
180
182
|
_: 2
|
|
181
|
-
}, 1032, ["class", "default", "disabled", "enum", "envVariables", "environment", "examples", "max", "min", "modelValue", "nullable", "type", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
183
|
+
}, 1032, ["aria-label", "class", "default", "disabled", "enum", "envVariables", "environment", "examples", "max", "min", "modelValue", "nullable", "type", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
182
184
|
]),
|
|
183
185
|
_: 2
|
|
184
186
|
}, 1024),
|
|
@@ -189,17 +191,17 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
189
191
|
default: n(() => {
|
|
190
192
|
var a;
|
|
191
193
|
return [
|
|
192
|
-
l.file ? (d(),
|
|
193
|
-
i("div",
|
|
194
|
+
l.file ? (d(), b(h, { key: 0 }, [
|
|
195
|
+
i("div", O, [
|
|
194
196
|
i("span", null, c((a = l.file) == null ? void 0 : a.name), 1)
|
|
195
197
|
]),
|
|
196
198
|
i("button", {
|
|
197
199
|
class: "bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",
|
|
198
200
|
type: "button",
|
|
199
|
-
onClick: (I) =>
|
|
200
|
-
}, " Delete ", 8,
|
|
201
|
-
], 64)) : (d(),
|
|
202
|
-
t(
|
|
201
|
+
onClick: (I) => r("removeFile", u)
|
|
202
|
+
}, " Delete ", 8, A)
|
|
203
|
+
], 64)) : (d(), b("div", L, [
|
|
204
|
+
t(s(x), {
|
|
203
205
|
class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
|
|
204
206
|
size: "sm",
|
|
205
207
|
variant: "outlined",
|
|
@@ -207,7 +209,7 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
207
209
|
}, {
|
|
208
210
|
default: n(() => [
|
|
209
211
|
o[6] || (o[6] = i("span", null, "Upload File", -1)),
|
|
210
|
-
t(
|
|
212
|
+
t(s(B), {
|
|
211
213
|
class: "ml-1",
|
|
212
214
|
icon: "Upload",
|
|
213
215
|
size: "xs",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SecurityScheme } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import type { Path, PathValue } from '@scalar/object-utils/nested';
|
|
3
|
+
import type { WorkspaceStore } from '../../../../store/store';
|
|
4
|
+
/** Shape of the local storage auth object */
|
|
5
|
+
export type Auth<P extends Path<SecurityScheme>> = Record<string, Record<P, NonNullable<PathValue<SecurityScheme, P>>>>;
|
|
6
|
+
/** Update the security scheme with side effects */
|
|
7
|
+
export declare const updateScheme: <U extends SecurityScheme["uid"], P extends Path<SecurityScheme>>(uid: U, path: P, value: NonNullable<PathValue<SecurityScheme, P>>, { securitySchemeMutators, securitySchemes }: WorkspaceStore, persistAuth?: boolean) => void;
|
|
8
|
+
//# sourceMappingURL=update-scheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-scheme.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/helpers/update-scheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,6CAA6C;AAC7C,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAEvH,mDAAmD;AACnD,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,OACrF,CAAC,QACA,CAAC,SACA,WAAW,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,+CACH,cAAc,gCAsB5D,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CLIENT_LS_KEYS as a } from "../../../../libs/local-storage.js";
|
|
2
|
+
const l = (o, r, c, { securitySchemeMutators: m, securitySchemes: s }, S = !1) => {
|
|
3
|
+
var n;
|
|
4
|
+
if (m.edit(o, r, c), !!S)
|
|
5
|
+
try {
|
|
6
|
+
const e = JSON.parse(localStorage.getItem(a.AUTH) ?? "{}"), t = s[o];
|
|
7
|
+
if (e && (t != null && t.nameKey)) {
|
|
8
|
+
const f = e[n = t.nameKey] || (e[n] = {});
|
|
9
|
+
f[r] = c, localStorage.setItem(a.AUTH, JSON.stringify(e));
|
|
10
|
+
}
|
|
11
|
+
} catch (e) {
|
|
12
|
+
console.error(e);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
l as updateScheme
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-scheme.test.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/helpers/update-scheme.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":";;;cAokBuC,MAAM;aAAO,MAAM;;;;;cAAnB,MAAM;aAAO,MAAM;;;AAuzB1D,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestSidebar.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-8b424452"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|