@scalar/api-client 2.0.46 → 2.0.48

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.
Files changed (93) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +77 -71
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -1
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  7. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  8. package/dist/components/CodeInput/CodeInput.vue2.js +49 -44
  9. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  11. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +97 -106
  12. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  13. package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
  14. package/dist/components/HttpMethod/HttpMethod.vue2.js +10 -10
  15. package/dist/components/Search/SearchModal.vue.d.ts.map +1 -1
  16. package/dist/components/Search/SearchModal.vue.js +1 -1
  17. package/dist/components/Search/SearchModal.vue2.js +43 -41
  18. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  19. package/dist/components/SideNav/SideNav.vue.js +1 -1
  20. package/dist/components/SideNav/SideNav.vue2.js +22 -19
  21. package/dist/components/Sidebar/Sidebar.vue.d.ts +24 -3
  22. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  23. package/dist/components/Sidebar/Sidebar.vue.js +57 -19
  24. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  25. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  26. package/dist/components/Sidebar/SidebarListElement.vue2.js +1 -1
  27. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +2 -0
  28. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  29. package/dist/components/Sidebar/SidebarListElementActions.vue.js +22 -21
  30. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  31. package/dist/components/TopNav/TopNav.vue.js +1 -1
  32. package/dist/components/TopNav/TopNav.vue2.js +46 -43
  33. package/dist/index.d.ts +1 -1
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +9 -9
  36. package/dist/layouts/App/ApiClientApp.vue.js +1 -1
  37. package/dist/layouts/App/create-api-client-app.d.ts +56 -46
  38. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  39. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  40. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  41. package/dist/layouts/Modal/ApiClientModal.vue2.js +20 -20
  42. package/dist/layouts/Modal/create-api-client-modal.d.ts +112 -92
  43. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  44. package/dist/libs/create-client.d.ts +56 -46
  45. package/dist/libs/create-client.d.ts.map +1 -1
  46. package/dist/libs/event-busses/{command-palette.d.ts → command-palette-bus.d.ts} +1 -1
  47. package/dist/libs/event-busses/command-palette-bus.d.ts.map +1 -0
  48. package/dist/libs/event-busses/{execute-requestBus.d.ts → execute-request-bus.d.ts} +1 -1
  49. package/dist/libs/event-busses/execute-request-bus.d.ts.map +1 -0
  50. package/dist/libs/event-busses/hot-keys-bus.d.ts +33 -0
  51. package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -0
  52. package/dist/libs/event-busses/hot-keys-bus.js +33 -0
  53. package/dist/libs/event-busses/index.d.ts +3 -3
  54. package/dist/libs/event-busses/index.d.ts.map +1 -1
  55. package/dist/libs/event-busses/index.js +3 -3
  56. package/dist/libs/index.js +3 -3
  57. package/dist/libs/local-storage.d.ts +1 -1
  58. package/dist/libs/local-storage.d.ts.map +1 -1
  59. package/dist/libs/local-storage.js +15 -30
  60. package/dist/router.d.ts +2 -2
  61. package/dist/router.d.ts.map +1 -1
  62. package/dist/router.js +3 -3
  63. package/dist/store/workspace.d.ts +112 -92
  64. package/dist/store/workspace.d.ts.map +1 -1
  65. package/dist/store/workspace.js +140 -137
  66. package/dist/style.css +1 -1
  67. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  68. package/dist/views/Cookies/CookieForm.vue.js +14 -15
  69. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  70. package/dist/views/Cookies/Cookies.vue2.js +114 -55
  71. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  72. package/dist/views/Environment/Environment.vue2.js +21 -20
  73. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  74. package/dist/views/Request/Request.vue.js +1 -1
  75. package/dist/views/Request/Request.vue2.js +132 -128
  76. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  77. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  78. package/dist/views/Request/RequestSidebarItem.vue2.js +253 -139
  79. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +27 -5
  80. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  81. package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
  82. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +83 -158
  83. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  84. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  85. package/dist/views/Request/components/WorkspaceDropdown.vue.js +214 -70
  86. package/package.json +6 -6
  87. package/dist/libs/event-busses/command-palette.d.ts.map +0 -1
  88. package/dist/libs/event-busses/execute-requestBus.d.ts.map +0 -1
  89. package/dist/libs/event-busses/hot-key.d.ts +0 -34
  90. package/dist/libs/event-busses/hot-key.d.ts.map +0 -1
  91. package/dist/libs/event-busses/hot-key.js +0 -25
  92. /package/dist/libs/event-busses/{command-palette.js → command-palette-bus.js} +0 -0
  93. /package/dist/libs/event-busses/{execute-requestBus.js → execute-request-bus.js} +0 -0
@@ -1,13 +1,13 @@
1
- import { defineComponent as p, computed as u, openBlock as d, createBlock as m, withCtx as k, createElementVNode as o } from "vue";
2
- import _ from "../../components/Form/Form.vue.js";
1
+ import { defineComponent as p, computed as u, openBlock as d, createBlock as m, withCtx as k, createElementVNode as l } from "vue";
2
+ import v from "../../components/Form/Form.vue.js";
3
3
  import { useWorkspace as h } from "../../store/workspace.js";
4
- const v = { class: "flex items-center pointer-events-none" }, f = /* @__PURE__ */ o("span", null, "Cookie", -1), y = /* @__PURE__ */ o("label", {
4
+ const _ = { class: "flex items-center pointer-events-none" }, f = /* @__PURE__ */ l("label", {
5
5
  class: "absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text",
6
6
  for: "cookiename"
7
- }, null, -1), b = ["value"], T = /* @__PURE__ */ p({
7
+ }, null, -1), y = ["value"], F = /* @__PURE__ */ p({
8
8
  __name: "CookieForm",
9
- setup(x) {
10
- const { cookies: r, activeCookieId: l, cookieMutators: s } = h(), c = [
9
+ setup(b) {
10
+ const { cookies: r, activeCookieId: o, cookieMutators: c } = h(), s = [
11
11
  { label: "Key", key: "key", placeholder: "Username" },
12
12
  { label: "Value", key: "value", placeholder: "123" },
13
13
  { label: "Domain", key: "domain", placeholder: "scalar.com" },
@@ -16,26 +16,25 @@ const v = { class: "flex items-center pointer-events-none" }, f = /* @__PURE__ *
16
16
  { label: "Secure", key: "secure", placeholder: "True/False" },
17
17
  { label: "HttpOnly", key: "httpOnly", placeholder: "True/False" }
18
18
  ], t = u(
19
- () => r[l.value] || {}
19
+ () => r[o.value] || {}
20
20
  ), a = (n, e) => {
21
- l.value && s.edit(l.value, n, e);
21
+ o.value && c.edit(o.value, n, e);
22
22
  };
23
- return (n, e) => (d(), m(_, {
23
+ return (n, e) => (d(), m(v, {
24
24
  data: t.value,
25
25
  onUpdate: a,
26
- options: c
26
+ options: s
27
27
  }, {
28
28
  title: k(() => [
29
- o("div", v, [
29
+ l("div", _, [
30
30
  f,
31
- y,
32
- o("input", {
31
+ l("input", {
33
32
  id: "cookiename",
34
33
  class: "pl-1 outline-none border-0 text-c-2 rounded pointer-events-auto relative w-full",
35
34
  placeholder: "Cookie Name",
36
35
  value: t.value.name,
37
36
  onInput: e[0] || (e[0] = (i) => a("name", i.target.value))
38
- }, null, 40, b)
37
+ }, null, 40, y)
39
38
  ])
40
39
  ]),
41
40
  _: 1
@@ -43,5 +42,5 @@ const v = { class: "flex items-center pointer-events-none" }, f = /* @__PURE__ *
43
42
  }
44
43
  });
45
44
  export {
46
- T as default
45
+ F as default
47
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/Cookies.vue"],"names":[],"mappings":";AAwSA,wBAKG"}
1
+ {"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/Cookies.vue"],"names":[],"mappings":";AA+hBA,wBAKG"}
@@ -1,77 +1,136 @@
1
- import { defineComponent as f, openBlock as a, createBlock as s, withCtx as t, createVNode as o, unref as u, createElementVNode as p, createElementBlock as _, Fragment as k, renderList as h, createTextVNode as C } from "vue";
2
- import x from "../../components/Sidebar/SidebarButton.vue.js";
3
- import b from "../../components/Sidebar/SidebarList.vue.js";
4
- import v from "../../components/Sidebar/SidebarListElement.vue.js";
5
- import g from "../../components/SubpageHeader.vue.js";
6
- import L from "../../components/ViewLayout/ViewLayout.vue.js";
7
- import V from "../../components/ViewLayout/ViewLayoutContent.vue.js";
8
- import { useWorkspace as $ } from "../../store/workspace.js";
9
- import { createCookie as y } from "@scalar/oas-utils/entities/workspace/cookie";
10
- import { nanoid as N } from "nanoid";
11
- import { useRouter as S } from "vue-router";
12
- import w from "./CookieForm.vue.js";
13
- import B from "./CookieRaw.vue.js";
14
- import E from "../../components/Sidebar/Sidebar.vue.js";
1
+ import { defineComponent as L, computed as V, onMounted as D, openBlock as l, createBlock as y, withCtx as n, createVNode as s, unref as a, createElementVNode as m, createElementBlock as f, Fragment as h, renderList as x, normalizeClass as w, createTextVNode as v, toDisplayString as S, withDirectives as $, vShow as O } from "vue";
2
+ import M from "../../components/Sidebar/SidebarButton.vue.js";
3
+ import N from "../../components/Sidebar/SidebarList.vue.js";
4
+ import B from "../../components/Sidebar/SidebarListElement.vue.js";
5
+ import F from "../../components/SubpageHeader.vue.js";
6
+ import I from "../../components/ViewLayout/ViewLayout.vue.js";
7
+ import R from "../../components/ViewLayout/ViewLayoutContent.vue.js";
8
+ import { useWorkspace as A } from "../../store/workspace.js";
9
+ import { ScalarIcon as j } from "@scalar/components";
10
+ import { createCookie as H } from "@scalar/oas-utils/entities/workspace/cookie";
11
+ import { nanoid as P } from "nanoid";
12
+ import { useRouter as T } from "vue-router";
13
+ import W from "./CookieForm.vue.js";
14
+ import q from "./CookieRaw.vue.js";
15
+ import G from "../../components/Sidebar/Sidebar.vue.js";
15
16
  /* empty css */
16
- const D = { class: "flex-1" }, U = /* @__PURE__ */ f({
17
+ import { useSidebar as J } from "../../hooks/useSidebar.js";
18
+ const K = { class: "flex-1" }, Q = ["onClick"], U = { class: "before:bg-b-3 before:absolute before:left-[calc(1rem_-_1.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, X = ["onClick"], Y = { class: "before:bg-b-3 before:absolute before:left-[calc(1.75rem_-_1.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, xe = /* @__PURE__ */ L({
17
19
  __name: "Cookies",
18
- setup(H) {
19
- const { cookies: l, cookieMutators: m } = $(), n = S(), c = () => {
20
- const r = y({
21
- uid: N(),
22
- name: "Cookie",
20
+ setup(Z) {
21
+ const { cookies: p, cookieMutators: g } = A(), { collapsedSidebarFolders: i, toggleSidebarFolder: k } = J(), b = T(), E = () => {
22
+ const t = Object.keys(p).length, e = H({
23
+ uid: P(),
24
+ name: `Cookie ${t}`,
23
25
  value: "",
24
- domain: "",
26
+ domain: "example.com",
25
27
  path: "/",
26
28
  secure: !1,
27
29
  httpOnly: !1,
28
30
  sameSite: "None"
29
31
  });
30
- m.add(r), n.push(r.uid);
31
- }, d = (r) => {
32
- m.delete(r);
33
- const i = Object.values(l).filter(
34
- (e) => e.uid !== r
32
+ g.add(e), b.push(e.uid);
33
+ }, z = (t) => {
34
+ g.delete(t);
35
+ const e = Object.values(p).filter(
36
+ (o) => o.uid !== t
35
37
  );
36
- if (i.length > 1) {
37
- const e = i[i.length - 1];
38
- n.push(e.uid);
39
- } else i.length === 1 && i[0].uid === "default" && n.push("default");
40
- };
41
- return (r, i) => (a(), s(g, null, {
42
- default: t(() => [
43
- o(L, null, {
44
- default: t(() => [
45
- o(u(E), { title: "Cookies" }, {
46
- content: t(() => [
47
- p("div", D, [
48
- o(b, null, {
49
- default: t(() => [
50
- (a(!0), _(k, null, h(u(l), (e) => (a(), s(v, {
51
- key: e.uid,
52
- class: "text-xs",
53
- variable: { name: e.name, uid: e.uid },
54
- onDelete: (O) => d(e.uid)
55
- }, null, 8, ["variable", "onDelete"]))), 128))
38
+ if (e.length > 1) {
39
+ const o = e[e.length - 1];
40
+ b.push(o.uid);
41
+ } else e.length === 1 && e[0].uid === "default" && b.push("default");
42
+ }, _ = V(() => {
43
+ const t = {};
44
+ return Object.values(p).forEach((e) => {
45
+ e.domain && e.path && (t[e.domain] || (t[e.domain] = {}), t[e.domain][e.path] || (t[e.domain][e.path] = []), t[e.domain][e.path].push(e));
46
+ }), t;
47
+ }), C = (t) => i[t];
48
+ return D(() => {
49
+ const t = Object.keys(_.value), e = Object.entries(_.value).flatMap(
50
+ ([o, r]) => Object.keys(r).map((d) => o + d)
51
+ );
52
+ t.forEach((o) => {
53
+ i[o] = !0;
54
+ }), e.forEach((o) => {
55
+ i[o] = !0;
56
+ });
57
+ }), (t, e) => (l(), y(F, null, {
58
+ default: n(() => [
59
+ s(I, null, {
60
+ default: n(() => [
61
+ s(a(G), { title: "Cookies" }, {
62
+ content: n(() => [
63
+ m("div", K, [
64
+ s(N, null, {
65
+ default: n(() => [
66
+ (l(!0), f(h, null, x(_.value, (o, r) => (l(), f("div", { key: r }, [
67
+ m("button", {
68
+ class: "flex font-medium gap-1.5 items-center px-2 py-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
69
+ type: "button",
70
+ onClick: (d) => a(k)(r)
71
+ }, [
72
+ s(a(j), {
73
+ class: w(["text-c-3", {
74
+ "rotate-90": a(i)[r]
75
+ }]),
76
+ icon: "ChevronRight",
77
+ size: "sm",
78
+ thickness: "2.5"
79
+ }, null, 8, ["class"]),
80
+ v(" " + S(r), 1)
81
+ ], 8, Q),
82
+ $(m("div", U, [
83
+ (l(!0), f(h, null, x(o, (d, c) => (l(), f("div", { key: c }, [
84
+ m("button", {
85
+ class: "flex font-medium gap-1.5 items-center pl-5 pr-2 py-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
86
+ type: "button",
87
+ onClick: (u) => a(k)(r + c)
88
+ }, [
89
+ s(a(j), {
90
+ class: w(["text-c-3", {
91
+ "rotate-90": a(i)[r + c]
92
+ }]),
93
+ icon: "ChevronRight",
94
+ size: "sm",
95
+ thickness: "2.5"
96
+ }, null, 8, ["class"]),
97
+ v(" " + S(c), 1)
98
+ ], 8, X),
99
+ $(m("div", Y, [
100
+ (l(!0), f(h, null, x(d, (u) => (l(), y(B, {
101
+ key: u.uid,
102
+ class: "cookie text-xs",
103
+ variable: { name: u.name, uid: u.uid },
104
+ warningMessage: "Are you sure you want to delete this cookie?",
105
+ onDelete: (ee) => z(u.uid)
106
+ }, null, 8, ["variable", "onDelete"]))), 128))
107
+ ], 512), [
108
+ [O, C(r + c)]
109
+ ])
110
+ ]))), 128))
111
+ ], 512), [
112
+ [O, C(r)]
113
+ ])
114
+ ]))), 128))
56
115
  ]),
57
116
  _: 1
58
117
  })
59
118
  ])
60
119
  ]),
61
- button: t(() => [
62
- o(x, { click: c }, {
63
- title: t(() => [
64
- C("Add Item")
120
+ button: n(() => [
121
+ s(M, { click: E }, {
122
+ title: n(() => [
123
+ v("Add Item")
65
124
  ]),
66
125
  _: 1
67
126
  })
68
127
  ]),
69
128
  _: 1
70
129
  }),
71
- o(V, { class: "flex-1" }, {
72
- default: t(() => [
73
- o(w),
74
- o(B)
130
+ s(R, { class: "flex-1" }, {
131
+ default: n(() => [
132
+ s(W),
133
+ s(q)
75
134
  ]),
76
135
  _: 1
77
136
  })
@@ -84,5 +143,5 @@ const D = { class: "flex-1" }, U = /* @__PURE__ */ f({
84
143
  }
85
144
  });
86
145
  export {
87
- U as default
146
+ xe as default
88
147
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/Environment.vue"],"names":[],"mappings":";AAghBA,wBAKG"}
1
+ {"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/Environment.vue"],"names":[],"mappings":";AAihBA,wBAKG"}
@@ -1,6 +1,6 @@
1
- import { defineComponent as N, ref as c, onMounted as C, openBlock as r, createBlock as f, withCtx as o, createVNode as a, createElementVNode as _, createElementBlock as d, Fragment as w, renderList as S, unref as u, createTextVNode as $, createSlots as I, createCommentVNode as h, toDisplayString as L, withKeys as B, nextTick as R } from "vue";
2
- import K from "../../components/CodeInput/CodeInput.vue.js";
3
- import A from "../../components/Sidebar/Sidebar.vue.js";
1
+ import { defineComponent as D, ref as c, onMounted as N, openBlock as r, createBlock as f, withCtx as o, createVNode as a, createElementVNode as _, createElementBlock as d, Fragment as C, renderList as S, unref as u, createTextVNode as $, createSlots as h, createCommentVNode as I, toDisplayString as L, withKeys as B, nextTick as R } from "vue";
2
+ import A from "../../components/CodeInput/CodeInput.vue.js";
3
+ import K from "../../components/Sidebar/Sidebar.vue.js";
4
4
  /* empty css */
5
5
  import M from "../../components/Sidebar/SidebarButton.vue.js";
6
6
  import T from "../../components/Sidebar/SidebarList.vue.js";
@@ -13,11 +13,11 @@ import { useWorkspace as W } from "../../store/workspace.js";
13
13
  import { nanoid as j } from "nanoid";
14
14
  import { useRouter as q } from "vue-router";
15
15
  import z from "./EnvironmentColors.vue.js";
16
- const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, de = /* @__PURE__ */ N({
16
+ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, de = /* @__PURE__ */ D({
17
17
  __name: "Environment",
18
18
  setup(X) {
19
19
  const v = q(), { environments: l, environmentMutators: s } = W(), e = c(null), p = c(null), m = c(!1);
20
- function E() {
20
+ function y() {
21
21
  const t = {
22
22
  name: "New Environment",
23
23
  uid: j(),
@@ -28,14 +28,14 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
28
28
  };
29
29
  s.add(t), e.value = t.uid, v.push(e.value);
30
30
  }
31
- function k(t) {
31
+ function E(t) {
32
32
  e.value && s.edit(e.value, "raw", t);
33
33
  }
34
- const y = (t) => {
34
+ const k = (t) => {
35
35
  s.delete(t), e.value === t && (e.value = null);
36
- }, b = (t) => {
36
+ }, g = (t) => {
37
37
  e.value && (l[e.value].color = t);
38
- }, g = () => {
38
+ }, b = () => {
39
39
  v.currentRoute.value.params.environment === "default" && (e.value = l.default.uid);
40
40
  }, x = () => {
41
41
  e.value && !l[e.value].isDefault && (m.value = !0, R(() => {
@@ -46,16 +46,16 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
46
46
  const n = t.target.value;
47
47
  e.value && !l[e.value].isDefault && s.edit(e.value, "name", n);
48
48
  };
49
- return C(g), (t, i) => (r(), f(F, null, {
49
+ return N(b), (t, i) => (r(), f(F, null, {
50
50
  default: o(() => [
51
51
  a(H, null, {
52
52
  default: o(() => [
53
- a(A, { title: "Environment" }, {
53
+ a(K, { title: "Environment" }, {
54
54
  content: o(() => [
55
55
  _("div", G, [
56
56
  a(T, null, {
57
57
  default: o(() => [
58
- (r(!0), d(w, null, S(u(l), (n) => (r(), f(U, {
58
+ (r(!0), d(C, null, S(u(l), (n) => (r(), f(U, {
59
59
  key: n.uid,
60
60
  class: "text-xs",
61
61
  variable: {
@@ -64,8 +64,9 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
64
64
  color: n.color,
65
65
  isDefault: n.isDefault
66
66
  },
67
- onClick: (D) => e.value = n.uid,
68
- onDelete: (D) => y(n.uid)
67
+ warningMessage: "Are you sure you want to delete this environment?",
68
+ onClick: (w) => e.value = n.uid,
69
+ onDelete: (w) => k(n.uid)
69
70
  }, null, 8, ["variable", "onClick", "onDelete"]))), 128))
70
71
  ]),
71
72
  _: 1
@@ -73,7 +74,7 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
73
74
  ])
74
75
  ]),
75
76
  button: o(() => [
76
- a(M, { click: E }, {
77
+ a(M, { click: y }, {
77
78
  title: o(() => [
78
79
  $("Add Environment Variable")
79
80
  ]),
@@ -84,15 +85,15 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
84
85
  }),
85
86
  a(J, { class: "flex-1" }, {
86
87
  default: o(() => [
87
- a(O, null, I({
88
+ a(O, null, h({
88
89
  default: o(() => [
89
- e.value ? (r(), f(K, {
90
+ e.value ? (r(), f(A, {
90
91
  key: 0,
91
92
  class: "px-2 py-2.5",
92
93
  lineNumbers: "",
93
94
  modelValue: u(l)[e.value].raw,
94
- "onUpdate:modelValue": k
95
- }, null, 8, ["modelValue"])) : h("", !0)
95
+ "onUpdate:modelValue": E
96
+ }, null, 8, ["modelValue"])) : I("", !0)
96
97
  ]),
97
98
  _: 2
98
99
  }, [
@@ -117,7 +118,7 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
117
118
  _("div", Q, [
118
119
  a(z, {
119
120
  activeColor: u(l)[e.value].color,
120
- onSelect: b
121
+ onSelect: g
121
122
  }, null, 8, ["activeColor"])
122
123
  ])
123
124
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";AAyiCA,wBAKG"}
1
+ {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";AAujCA,wBAKG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Request.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-29657ccc"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a28a88b"]]);
5
5
  export {
6
6
  m as default
7
7
  };