@scalar/api-client 2.0.24 → 2.0.26

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 (168) hide show
  1. package/CHANGELOG.md +39 -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 +79 -83
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +38 -38
  7. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue.d.ts +10 -0
  9. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  10. package/dist/components/CodeInput/CodeInput.vue.js +2 -1
  11. package/dist/components/CodeInput/CodeInput.vue2.js +43 -38
  12. package/dist/components/CodeInput/codeDropdownWidget.d.ts +24 -0
  13. package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -0
  14. package/dist/components/CodeInput/codeDropdownWidget.js +110 -0
  15. package/dist/components/CodeInput/codeVariableWidget.d.ts +8 -0
  16. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -0
  17. package/dist/components/CodeInput/codeVariableWidget.js +124 -0
  18. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -15
  19. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  20. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +51 -54
  21. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +4 -2
  22. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  23. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +106 -92
  24. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts +2 -15
  25. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
  26. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +68 -74
  27. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -15
  28. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  29. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -62
  30. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -15
  31. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  32. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +106 -99
  33. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +7 -0
  34. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -0
  35. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +57 -0
  36. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +4 -0
  37. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +50 -0
  38. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -0
  39. package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
  40. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +198 -0
  41. package/dist/components/CommandPalette/index.d.ts +2 -0
  42. package/dist/components/CommandPalette/index.d.ts.map +1 -0
  43. package/dist/components/CommandPalette/index.js +4 -0
  44. package/dist/components/ContextBar.vue.js +4 -4
  45. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  46. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  47. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  48. package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
  49. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  50. package/dist/components/SideNav/SideNav.vue.js +26 -23
  51. package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
  52. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  53. package/dist/components/SideNav/SideNavLink.vue.js +5 -5
  54. package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
  55. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  56. package/dist/components/Sidebar/Sidebar.vue.js +14 -12
  57. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  58. package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
  59. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  60. package/dist/components/TopNav/TopNav.vue.js +2 -2
  61. package/dist/components/TopNav/TopNav.vue2.js +31 -28
  62. package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
  63. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  64. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  65. package/dist/components/TopNav/TopNavItem.vue2.js +16 -15
  66. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  67. package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
  68. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  69. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
  70. package/dist/constants.d.ts +13 -7
  71. package/dist/constants.d.ts.map +1 -1
  72. package/dist/constants.js +4 -4
  73. package/dist/index.d.ts +3 -4
  74. package/dist/index.d.ts.map +1 -1
  75. package/dist/index.js +14 -16
  76. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
  77. package/dist/layouts/App/ApiClientApp.vue.js +72 -0
  78. package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
  79. package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
  80. package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
  81. package/dist/layouts/App/index.d.ts.map +1 -0
  82. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
  83. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
  84. package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
  85. package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +1 -1
  86. package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
  87. package/dist/{Modal → layouts/Modal}/api-client-modal.js +42 -42
  88. package/dist/layouts/Modal/index.d.ts.map +1 -0
  89. package/dist/libs/eventBusses/command-palette.d.ts +14 -0
  90. package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
  91. package/dist/libs/eventBusses/command-palette.js +5 -0
  92. package/dist/libs/local-storage.d.ts +1 -1
  93. package/dist/libs/local-storage.d.ts.map +1 -1
  94. package/dist/libs/local-storage.js +19 -19
  95. package/dist/router.d.ts +5 -10
  96. package/dist/router.d.ts.map +1 -1
  97. package/dist/router.js +23 -19
  98. package/dist/store/topNav.d.ts +94 -82
  99. package/dist/store/topNav.d.ts.map +1 -1
  100. package/dist/store/topNav.js +21 -20
  101. package/dist/store/workspace.d.ts +348 -94
  102. package/dist/store/workspace.d.ts.map +1 -1
  103. package/dist/store/workspace.js +314 -221
  104. package/dist/style.css +1 -1
  105. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  106. package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
  107. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  108. package/dist/views/Cookies/Cookies.vue2.js +27 -30
  109. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  110. package/dist/views/Environment/Environment.vue2.js +22 -25
  111. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  112. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
  113. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  114. package/dist/views/Request/Request.vue.js +1 -1
  115. package/dist/views/Request/Request.vue2.js +130 -109
  116. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  117. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  118. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  119. package/dist/views/Request/RequestSection/RequestSection.vue.js +5 -4
  120. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  121. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  122. package/dist/views/Request/RequestSection/RequestTable.vue2.js +19 -19
  123. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  124. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
  125. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  126. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  127. package/dist/views/Request/RequestSidebarItem.vue2.js +78 -81
  128. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  129. package/dist/views/Request/RequestSidebarItemMenu.vue.js +60 -42
  130. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  131. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +6 -5
  132. package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
  133. package/dist/views/Request/components/OAuth2.vue.js +2 -0
  134. package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
  135. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
  136. package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
  137. package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
  138. package/dist/views/Request/components/index.d.ts +1 -0
  139. package/dist/views/Request/components/index.d.ts.map +1 -1
  140. package/dist/views/Request/components/index.js +4 -2
  141. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  142. package/dist/views/Servers/Servers.vue2.js +12 -15
  143. package/package.json +22 -18
  144. package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
  145. package/dist/App/ApiClientApp.vue.js +0 -56
  146. package/dist/App/createApiClientApp.d.ts.map +0 -1
  147. package/dist/App/index.d.ts.map +0 -1
  148. package/dist/App.vue.d.ts.map +0 -1
  149. package/dist/App.vue.js +0 -77
  150. package/dist/App.vue3.js +0 -5
  151. package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
  152. package/dist/Modal/api-client-modal.d.ts.map +0 -1
  153. package/dist/Modal/index.d.ts.map +0 -1
  154. package/dist/components/AddressBar/AddressBarServer.vue.js +0 -113
  155. package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
  156. package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
  157. package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
  158. package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
  159. package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -185
  160. package/dist/main.d.ts +0 -2
  161. package/dist/main.d.ts.map +0 -1
  162. /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
  163. /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
  164. /package/dist/{App → layouts/App}/index.d.ts +0 -0
  165. /package/dist/{App → layouts/App}/index.js +0 -0
  166. /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
  167. /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
  168. /package/dist/{Modal → layouts/Modal}/index.js +0 -0
@@ -1,12 +1,13 @@
1
- import { defineComponent as V, useCssVars as j, computed as l, resolveComponent as F, openBlock as n, createElementBlock as p, normalizeClass as u, unref as t, createVNode as f, withCtx as k, createBlock as b, createElementVNode as o, toDisplayString as w, createCommentVNode as g, createTextVNode as q, renderSlot as L, withDirectives as T, Fragment as W, renderList as K, vShow as A } from "vue";
2
- import { useWorkspace as G } from "../../store/workspace.js";
3
- import { ScalarIcon as H } from "@scalar/components";
4
- import { Draggable as J } from "@scalar/draggable";
5
- import { useRouter as M, RouterLink as P } from "vue-router";
1
+ import { defineComponent as N, useCssVars as j, computed as o, resolveComponent as F, openBlock as a, createElementBlock as d, normalizeClass as u, unref as i, createVNode as m, withCtx as D, createBlock as p, createElementVNode as n, toDisplayString as y, createCommentVNode as f, createTextVNode as k, renderSlot as L, withDirectives as P, Fragment as T, renderList as W, vShow as A } from "vue";
2
+ import { activeRouterParams as _, PathId as G } from "../../router.js";
3
+ import { useWorkspace as H } from "../../store/workspace.js";
4
+ import { ScalarIcon as J } from "@scalar/components";
5
+ import { Draggable as K } from "@scalar/draggable";
6
+ import { RouterLink as M } from "vue-router";
6
7
  import Q from "./RequestSidebarItemMenu.vue.js";
7
8
  import X from "../../components/HttpMethod/HttpMethod.vue.js";
8
9
  import { useSidebar as Y } from "../../hooks/useSidebar.js";
9
- const Z = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" }, _ = { class: "relative" }, ee = { class: "flex" }, te = { class: "z-10 flex h-fit items-center justify-center max-w-[14px]" }, ie = { class: "z-10 font-medium" }, re = { key: 2 }, $ = "hover:bg-sidebar-active-b indent-padding-left", me = /* @__PURE__ */ V({
10
+ const Z = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" }, ee = { class: "relative" }, te = { class: "flex" }, ie = { class: "z-10 flex h-fit items-center justify-center max-w-[14px]" }, se = { class: "z-10 font-medium" }, re = { key: 2 }, q = "hover:bg-sidebar-active-b indent-padding-left", be = /* @__PURE__ */ N({
10
11
  __name: "RequestSidebarItem",
11
12
  props: {
12
13
  isDraggable: { type: Boolean, default: !1 },
@@ -15,118 +16,114 @@ const Z = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" },
15
16
  item: {}
16
17
  },
17
18
  emits: ["onDragEnd"],
18
- setup(C) {
19
+ setup($) {
19
20
  j((e) => ({
20
- "0e609a18": z.value,
21
- e3e1f6b4: I.value
21
+ "28f0b1bd": S.value,
22
+ "9782e23e": R.value
22
23
  }));
23
- const i = C, {
24
- activeRequest: c,
25
- activeWorkspace: h,
26
- folders: S,
27
- isReadOnly: a,
28
- requests: v,
24
+ const t = $, {
25
+ activeRequest: b,
26
+ activeWorkspace: c,
27
+ folders: w,
28
+ isReadOnly: l,
29
+ requests: g,
29
30
  requestExamples: x
30
- } = G(), { collapsedSidebarFolders: D, toggleSidebarFolder: E } = Y(), R = M(), U = l(() => "childUids" in i.item), z = l(() => i.parentUids.length ? a.value ? `${(i.parentUids.length - 1) * 12}px` : `${i.parentUids.length * 12}px` : "12px"), I = l(() => i.parentUids.length ? a.value ? `${(i.parentUids.length - 1) * 12}px` : `${i.parentUids.length * 12}px` : "0px"), B = (e, r) => {
31
- const d = `/workspace/${h.value.uid}/request/${r}`;
32
- e.metaKey ? window.open(d, "_blank") : R.push(d);
33
- }, y = (e) => {
34
- var r;
35
- return "spec" in e ? (r = e.spec.info) == null ? void 0 : r.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
36
- }, N = l(() => ("requestUid" in i.item ? v[i.item.requestUid] : i.item).method), O = l(
31
+ } = H(), { collapsedSidebarFolders: h, toggleSidebarFolder: C } = Y(), v = o(() => "childUids" in t.item), S = o(() => t.parentUids.length ? l.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), R = o(() => t.parentUids.length ? l.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), U = (e) => {
32
+ var s;
33
+ return "spec" in e ? (s = e.spec.info) == null ? void 0 : s.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
34
+ }, E = o(() => ("requestUid" in t.item ? g[t.item.requestUid] : t.item).method), I = o(
37
35
  () => {
38
36
  var e;
39
- return D[i.item.uid] || ((e = c.value) == null ? void 0 : e.uid) === i.item.uid && i.item.childUids.length > 1;
37
+ return h[t.item.uid] || ((e = b.value) == null ? void 0 : e.uid) === t.item.uid && t.item.childUids.length > 1;
40
38
  }
39
+ ), z = () => "requestUid" in t.item ? `/workspace/${c.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${c.value.uid}/request/${t.item.uid}`, B = o(
40
+ () => _.value[G.Request] === "default" && b.value.uid === t.item.uid
41
41
  );
42
- return (e, r) => {
43
- const d = F("RequestSidebarItem", !0);
44
- return n(), p("div", {
42
+ return (e, s) => {
43
+ const O = F("RequestSidebarItem", !0);
44
+ return a(), d("div", {
45
45
  class: u(["relative flex flex-row", [
46
- t(a) && e.parentUids.length > 1 || !t(a) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-px mb-[.5px] last:mb-0 indent-border-line-offset" : ""
46
+ i(l) && e.parentUids.length > 1 || !i(l) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-px mb-[.5px] last:mb-0 indent-border-line-offset" : ""
47
47
  ]])
48
48
  }, [
49
- f(t(J), {
49
+ m(i(K), {
50
50
  id: e.item.uid,
51
- ceiling: U.value ? 0.8 : 0.5,
51
+ ceiling: v.value ? 0.8 : 0.5,
52
52
  class: "flex flex-1 flex-col gap-[.5px] text-sm",
53
- floor: U.value ? 0.2 : 0.5,
53
+ floor: v.value ? 0.2 : 0.5,
54
54
  isDraggable: e.parentUids.length > 0 && e.isDraggable,
55
55
  isDroppable: e.isDroppable,
56
56
  parentIds: e.parentUids,
57
- onOnDragEnd: r[3] || (r[3] = (...s) => e.$emit("onDragEnd", ...s))
57
+ onOnDragEnd: s[2] || (s[2] = (...r) => e.$emit("onDragEnd", ...r))
58
58
  }, {
59
- default: k(() => [
60
- "summary" in e.item || "requestUid" in e.item ? (n(), b(t(P), {
59
+ default: D(() => [
60
+ "summary" in e.item || "requestUid" in e.item ? (a(), p(i(M), {
61
61
  key: 0,
62
- custom: "",
63
- to: `/workspace/${t(h).uid}/request/${e.item.uid}`
62
+ class: "no-underline",
63
+ to: z()
64
64
  }, {
65
- default: k(() => {
66
- var s;
67
- return [
68
- o("div", {
69
- class: u(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover", [
70
- $,
71
- ((s = t(c)) == null ? void 0 : s.uid) === e.item.uid ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
72
- ]]),
73
- tabindex: "0",
74
- onClick: r[0] || (r[0] = (m) => B(m, e.item.uid))
75
- }, [
76
- o("span", Z, w(y(e.item)), 1),
77
- o("div", _, [
78
- t(a) ? g("", !0) : (n(), b(Q, {
79
- key: 0,
80
- item: e.item
81
- }, null, 8, ["item"])),
82
- o("span", ee, [
83
- q("   "),
84
- f(t(X), {
85
- class: "font-bold",
86
- method: N.value
87
- }, null, 8, ["method"])
88
- ])
65
+ default: D(({ isExactActive: r }) => [
66
+ n("div", {
67
+ class: u(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover", [
68
+ q,
69
+ r || B.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
70
+ ]]),
71
+ tabindex: "0"
72
+ }, [
73
+ n("span", Z, y(U(e.item)), 1),
74
+ n("div", ee, [
75
+ i(l) ? f("", !0) : (a(), p(Q, {
76
+ key: 0,
77
+ item: e.item
78
+ }, null, 8, ["item"])),
79
+ n("span", te, [
80
+ k("   "),
81
+ m(i(X), {
82
+ class: "font-bold",
83
+ method: E.value
84
+ }, null, 8, ["method"])
89
85
  ])
90
- ], 2)
91
- ];
92
- }),
86
+ ])
87
+ ], 2)
88
+ ]),
93
89
  _: 1
94
- }, 8, ["to"])) : !t(a) || e.parentUids.length ? (n(), p("button", {
90
+ }, 8, ["to"])) : !i(l) || e.parentUids.length ? (a(), d("button", {
95
91
  key: 1,
96
- class: u(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", $]),
92
+ class: u(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", q]),
97
93
  type: "button",
98
- onClick: r[1] || (r[1] = (s) => t(E)(e.item.uid))
94
+ onClick: s[0] || (s[0] = (r) => i(C)(e.item.uid))
99
95
  }, [
100
- o("span", te, [
96
+ n("span", ie, [
101
97
  L(e.$slots, "leftIcon", {}, () => [
102
- o("div", {
98
+ n("div", {
103
99
  class: u({
104
- "rotate-90": t(D)[e.item.uid]
100
+ "rotate-90": i(h)[e.item.uid]
105
101
  })
106
102
  }, [
107
- f(t(H), {
103
+ m(i(J), {
108
104
  class: "text-c-3 text-sm",
109
105
  icon: "ChevronRight",
110
- size: "sm"
106
+ size: "sm",
107
+ thickness: "2.5"
111
108
  })
112
109
  ], 2)
113
110
  ], !0),
114
- q("   ")
111
+ k("   ")
115
112
  ]),
116
- o("span", ie, w(y(e.item)), 1)
117
- ])) : g("", !0),
118
- "childUids" in e.item ? T((n(), p("div", re, [
119
- (n(!0), p(W, null, K(e.item.childUids, (s) => (n(), b(d, {
120
- key: s,
113
+ n("span", se, y(U(e.item)), 1)
114
+ ])) : f("", !0),
115
+ "childUids" in e.item ? P((a(), d("div", re, [
116
+ (a(!0), d(T, null, W("summary" in e.item ? e.item.childUids.slice(1) : e.item.childUids, (r) => (a(), p(O, {
117
+ key: r,
121
118
  isDraggable: e.isDraggable,
122
119
  isDroppable: e.isDroppable,
123
- item: t(S)[s] || t(v)[s] || t(x)[s],
120
+ item: i(w)[r] || i(g)[r] || i(x)[r],
124
121
  parentUids: [...e.parentUids, e.item.uid],
125
- onOnDragEnd: r[2] || (r[2] = (...m) => e.$emit("onDragEnd", ...m))
122
+ onOnDragEnd: s[1] || (s[1] = (...V) => e.$emit("onDragEnd", ...V))
126
123
  }, null, 8, ["isDraggable", "isDroppable", "item", "parentUids"]))), 128))
127
124
  ], 512)), [
128
- [A, O.value]
129
- ]) : g("", !0)
125
+ [A, I.value]
126
+ ]) : f("", !0)
130
127
  ]),
131
128
  _: 3
132
129
  }, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
@@ -135,5 +132,5 @@ const Z = { class: "z-10 font-medium w-full editable-sidebar-hover-item pl-2" },
135
132
  }
136
133
  });
137
134
  export {
138
- me as default
135
+ be as default
139
136
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;;UAM1C,OAAO,GAAG,cAAc;;UAAxB,OAAO,GAAG,cAAc;;AA+RhC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AAyIA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;;UAO1C,OAAO,GAAG,cAAc;;UAAxB,OAAO,GAAG,cAAc;;AAiVhC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,82 +1,100 @@
1
- import { defineComponent as _, computed as h, openBlock as c, createBlock as m, unref as e, withCtx as s, createVNode as t, createCommentVNode as g, withModifiers as z, createElementVNode as n } from "vue";
2
- import { useWorkspace as D } from "../../store/workspace.js";
3
- import { ScalarDropdown as k, ScalarDropdownItem as a, ScalarIcon as i, ScalarDropdownDivider as E, ScalarButton as S } from "@scalar/components";
4
- const v = /* @__PURE__ */ n("span", null, "Add Example", -1), w = /* @__PURE__ */ n("span", null, "Rename", -1), C = /* @__PURE__ */ n("span", null, "Duplicate", -1), b = /* @__PURE__ */ n("span", null, "Delete", -1), B = /* @__PURE__ */ _({
1
+ import { defineComponent as q, computed as E, openBlock as m, createBlock as u, unref as e, withCtx as l, createVNode as t, createCommentVNode as R, createElementVNode as n } from "vue";
2
+ import { commandPaletteBus as z } from "../../libs/eventBusses/command-palette.js";
3
+ import { activeRouterParams as d, PathId as p } from "../../router.js";
4
+ import { useWorkspace as C, findRequestFolders as I } from "../../store/workspace.js";
5
+ import { ScalarDropdown as w, ScalarDropdownItem as o, ScalarIcon as s, ScalarDropdownDivider as S, ScalarButton as b } from "@scalar/components";
6
+ import { useRouter as A } from "vue-router";
7
+ const B = /* @__PURE__ */ n("span", null, "Add Example", -1), N = /* @__PURE__ */ n("span", null, "Rename", -1), M = /* @__PURE__ */ n("span", null, "Duplicate", -1), P = /* @__PURE__ */ n("span", null, "Delete", -1), j = /* @__PURE__ */ q({
5
8
  __name: "RequestSidebarItemMenu",
6
9
  props: {
7
10
  item: {}
8
11
  },
9
- setup(d) {
10
- const l = d, { createExampleFromRequest: u, requestMutators: p } = D(), f = () => {
11
- if (!("summary" in l.item)) return;
12
- const o = u(l.item);
13
- p.edit(l.item.uid, "childUids", [
14
- ...l.item.childUids,
15
- o.uid
16
- ]);
17
- }, x = h(() => "summary" in l.item);
18
- return (o, r) => (c(), m(e(k), { teleport: "#scalar-client" }, {
19
- items: s(() => [
20
- x.value ? (c(), m(e(a), {
12
+ setup(f) {
13
+ const a = f, { activeWorkspace: c, requestMutators: _, requestExampleMutators: x } = C(), { replace: r } = A(), h = () => z.emit({
14
+ commandName: "Add Example",
15
+ metaData: a.item.uid
16
+ }), k = () => {
17
+ console.log("rename");
18
+ }, v = () => {
19
+ console.log("duplicate");
20
+ }, g = () => {
21
+ if ("requestUid" in a.item)
22
+ x.delete(a.item), d.value[p.Examples] === a.item.uid && r(`/workspace/${c.value}/request/default`);
23
+ else {
24
+ const i = I(a.item.uid);
25
+ if (!i.length) return;
26
+ _.delete(a.item, i[0]), d.value[p.Request] === a.item.uid && r(`/workspace/${c.value.uid}/request/default`);
27
+ }
28
+ }, D = E(() => "summary" in a.item);
29
+ return (i, V) => (m(), u(e(w), { teleport: "#scalar-client" }, {
30
+ items: l(() => [
31
+ D.value ? (m(), u(e(o), {
21
32
  key: 0,
22
33
  class: "flex !gap-2",
23
- onClick: f
34
+ onClick: h
24
35
  }, {
25
- default: s(() => [
26
- t(e(i), {
36
+ default: l(() => [
37
+ t(e(s), {
27
38
  class: "inline-flex",
28
39
  icon: "Add",
29
40
  size: "sm"
30
41
  }),
31
- v
42
+ B
32
43
  ]),
33
44
  _: 1
34
- })) : g("", !0),
35
- t(e(a), { class: "flex !gap-2" }, {
36
- default: s(() => [
37
- t(e(i), {
45
+ })) : R("", !0),
46
+ t(e(o), {
47
+ class: "flex !gap-2",
48
+ onClick: k
49
+ }, {
50
+ default: l(() => [
51
+ t(e(s), {
38
52
  class: "inline-flex",
39
53
  icon: "Edit",
40
54
  size: "sm"
41
55
  }),
42
- w
56
+ N
43
57
  ]),
44
58
  _: 1
45
59
  }),
46
- t(e(a), { class: "flex !gap-2" }, {
47
- default: s(() => [
48
- t(e(i), {
60
+ t(e(o), {
61
+ class: "flex !gap-2",
62
+ onClick: v
63
+ }, {
64
+ default: l(() => [
65
+ t(e(s), {
49
66
  class: "inline-flex",
50
67
  icon: "Duplicate",
51
68
  size: "sm"
52
69
  }),
53
- C
70
+ M
54
71
  ]),
55
72
  _: 1
56
73
  }),
57
- t(e(E)),
58
- t(e(a), { class: "flex !gap-2" }, {
59
- default: s(() => [
60
- t(e(i), {
74
+ t(e(S)),
75
+ t(e(o), {
76
+ class: "flex !gap-2",
77
+ onClick: g
78
+ }, {
79
+ default: l(() => [
80
+ t(e(s), {
61
81
  class: "inline-flex",
62
82
  icon: "Trash",
63
83
  size: "sm"
64
84
  }),
65
- b
85
+ P
66
86
  ]),
67
87
  _: 1
68
88
  })
69
89
  ]),
70
- default: s(() => [
71
- t(e(S), {
90
+ default: l(() => [
91
+ t(e(b), {
72
92
  class: "z-10 hover:bg-b-3 transition-none p-1 group-hover:flex ui-open:flex absolute left-0 hidden -translate-x-full -ml-1",
73
93
  size: "sm",
74
- variant: "ghost",
75
- onClick: r[0] || (r[0] = z(() => {
76
- }, ["stop"]))
94
+ variant: "ghost"
77
95
  }, {
78
- default: s(() => [
79
- t(e(i), {
96
+ default: l(() => [
97
+ t(e(s), {
80
98
  icon: "Ellipses",
81
99
  size: "sm"
82
100
  })
@@ -89,5 +107,5 @@ const v = /* @__PURE__ */ n("span", null, "Add Example", -1), w = /* @__PURE__ *
89
107
  }
90
108
  });
91
109
  export {
92
- B as default
110
+ j as default
93
111
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;;cAUrE,gBAAgB,GAAG,SAAS;;cAA5B,gBAAgB,GAAG,SAAS;;AA+NxC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ResponseSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseSection.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;;cAUrE,gBAAgB,GAAG,SAAS;;cAA5B,gBAAgB,GAAG,SAAS;;AA+NxC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -35,17 +35,18 @@ const E = { class: "flex items-center flex-1" }, H = { class: "custom-scroll fle
35
35
  value: e[m],
36
36
  required: !1
37
37
  })) : [];
38
- }), _ = i(() => {
38
+ }), k = i(() => {
39
39
  var o;
40
40
  const e = (o = a.response) == null ? void 0 : o.data;
41
41
  return e && V(e) ? JSON.stringify(JSON.parse(e), null, 2) : e && typeof h(e) == "object" ? JSON.stringify(e, null, 2) : e;
42
- }), k = ["All", "Body", "Headers", "Cookies"], s = x("All");
42
+ }), _ = ["All", "Body", "Headers", "Cookies"], s = x("All");
43
43
  return (e, o) => (r(), n(g, null, {
44
44
  title: u(() => [
45
45
  p(S(R), {
46
46
  class: "text-c-3 mr-2 rotate-180",
47
47
  icon: "ExternalLink",
48
- size: "sm"
48
+ size: "sm",
49
+ thickness: "2.5"
49
50
  }),
50
51
  f("div", E, [
51
52
  C(" Response "),
@@ -60,7 +61,7 @@ const E = { class: "flex items-center flex-1" }, H = { class: "custom-scroll fle
60
61
  e.response ? (r(), A(B, { key: 1 }, [
61
62
  p(N, {
62
63
  activeSection: s.value,
63
- sections: k,
64
+ sections: _,
64
65
  onSetActiveSection: o[0] || (o[0] = (t) => s.value = t)
65
66
  }, null, 8, ["activeSection"]),
66
67
  s.value === "All" || s.value === "Cookies" ? (r(), n(b, {
@@ -74,7 +75,7 @@ const E = { class: "flex items-center flex-1" }, H = { class: "custom-scroll fle
74
75
  s.value === "All" || s.value === "Body" ? (r(), n($, {
75
76
  key: 2,
76
77
  active: !0,
77
- data: _.value,
78
+ data: k.value,
78
79
  headers: c.value,
79
80
  title: "Body"
80
81
  }, null, 8, ["data", "headers"])) : l("", !0)
@@ -1 +1 @@
1
- {"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/OAuth2.vue"],"names":[],"mappings":"AAuKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAA;;kBAOzE,oBAAoB;iBACrB,yBAAyB;kBACxB,YAAY;;kBAFZ,oBAAoB;iBACrB,yBAAyB;kBACxB,YAAY;;AA2a5B,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/OAuth2.vue"],"names":[],"mappings":"AAyKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAA;;kBAOzE,oBAAoB;iBACrB,yBAAyB;kBACxB,YAAY;;kBAFZ,oBAAoB;iBACrB,yBAAyB;kBACxB,YAAY;;AA+a5B,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -156,8 +156,10 @@ const U = { class: "h-8 flex items-center justify-self-end" }, L = /* @__PURE__
156
156
  default: l(() => [
157
157
  v("div", U, [
158
158
  a(d(w), {
159
+ class: "p-0 py-0.5 px-2 mr-1",
159
160
  loading: d(n),
160
161
  size: "sm",
162
+ variant: "outlined",
161
163
  onClick: y
162
164
  }, {
163
165
  default: l(() => [
@@ -1,4 +1,3 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
3
-
4
- //# sourceMappingURL=App.vue.d.ts.map
3
+ //# sourceMappingURL=WorkspaceDropdown.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AAgWA,wBAKG"}
@@ -0,0 +1,80 @@
1
+ import { defineComponent as k, openBlock as c, createElementBlock as i, createVNode as t, unref as e, withCtx as o, Fragment as w, renderList as v, createBlock as g, withModifiers as C, createElementVNode as r, normalizeClass as b, createTextVNode as m, toDisplayString as p } from "vue";
2
+ import { commandPaletteBus as y } from "../../../libs/eventBusses/command-palette.js";
3
+ import { useWorkspace as D } from "../../../store/workspace.js";
4
+ import { ScalarDropdown as S, ScalarDropdownItem as d, ScalarIcon as l, ScalarDropdownDivider as W, ScalarButton as B } from "@scalar/components";
5
+ import { useRouter as N } from "vue-router";
6
+ const j = { class: "xl:min-h-header py-2.5 flex items-center border-b px-2.5 text-sm" }, z = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, V = { class: "flex items-center justify-center h-4 w-4" }, E = /* @__PURE__ */ r("span", null, "Create new workspace", -1), T = /* @__PURE__ */ k({
7
+ __name: "WorkspaceDropdown",
8
+ setup(I) {
9
+ const { activeWorkspace: s, workspaces: u } = D(), { push: f } = N(), h = (a) => {
10
+ a !== s.value.uid && f(`/workspace/${a}`);
11
+ }, x = () => y.emit({ commandName: "Create Workspace" });
12
+ return (a, $) => (c(), i("div", j, [
13
+ t(e(S), null, {
14
+ items: o(() => [
15
+ (c(!0), i(w, null, v(e(u), (_, n) => (c(), g(e(d), {
16
+ key: n,
17
+ class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
18
+ onClick: C((A) => h(n), ["stop"])
19
+ }, {
20
+ default: o(() => [
21
+ r("div", {
22
+ class: b([
23
+ "flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
24
+ e(s).uid === n ? "bg-blue text-b-1" : "text-transparent"
25
+ ])
26
+ }, [
27
+ t(e(l), {
28
+ class: "size-2.5",
29
+ icon: "Checkmark",
30
+ thickness: "3.5"
31
+ })
32
+ ], 2),
33
+ m(" " + p(_.name), 1)
34
+ ]),
35
+ _: 2
36
+ }, 1032, ["onClick"]))), 128)),
37
+ t(e(W)),
38
+ t(e(d), {
39
+ class: "flex items-center gap-1.5",
40
+ onClick: x
41
+ }, {
42
+ default: o(() => [
43
+ r("div", V, [
44
+ t(e(l), {
45
+ class: "h-2.5",
46
+ icon: "Add"
47
+ })
48
+ ]),
49
+ E
50
+ ]),
51
+ _: 1
52
+ })
53
+ ]),
54
+ default: o(() => [
55
+ t(e(B), {
56
+ class: "font-normal h-full justify-start py-1.5 px-1.5 text-c-1 hover:bg-b-2 w-fit",
57
+ fullWidth: "",
58
+ variant: "ghost"
59
+ }, {
60
+ default: o(() => [
61
+ r("h2", z, [
62
+ m(p(e(s).name) + " ", 1),
63
+ t(e(l), {
64
+ class: "size-2.5",
65
+ icon: "ChevronDown",
66
+ thickness: "3.5"
67
+ })
68
+ ])
69
+ ]),
70
+ _: 1
71
+ })
72
+ ]),
73
+ _: 1
74
+ })
75
+ ]));
76
+ }
77
+ });
78
+ export {
79
+ T as default
80
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./WorkspaceDropdown.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,2 +1,3 @@
1
1
  export { default as OAuth2 } from './OAuth2.vue.js';
2
+ export { default as WorkspaceDropdown } from './WorkspaceDropdown.vue.js';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -1,4 +1,6 @@
1
- import { default as e } from "./OAuth2.vue.js";
1
+ import { default as a } from "./OAuth2.vue.js";
2
+ import { default as t } from "./WorkspaceDropdown.vue.js";
2
3
  export {
3
- e as OAuth2
4
+ a as OAuth2,
5
+ t as WorkspaceDropdown
4
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/Servers.vue"],"names":[],"mappings":";AA6MA,wBAKG"}
1
+ {"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/Servers.vue"],"names":[],"mappings":";AAwMA,wBAKG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, openBlock as l, createBlock as i, withCtx as e, createVNode as r, unref as n, createTextVNode as m, createElementVNode as _, createElementBlock as v, Fragment as x, renderList as S } from "vue";
1
+ import { defineComponent as d, openBlock as n, createBlock as l, withCtx as e, createVNode as r, unref as s, createElementVNode as p, createElementBlock as _, Fragment as v, renderList as x, createTextVNode as S } from "vue";
2
2
  import h from "../../components/Sidebar/SidebarButton.vue.js";
3
3
  import k from "../../components/Sidebar/SidebarList.vue.js";
4
4
  import b from "../../components/Sidebar/SidebarListElement.vue.js";
@@ -10,30 +10,27 @@ import { useRouter as $ } from "vue-router";
10
10
  import y from "./ServerForm.vue.js";
11
11
  import B from "../../components/Sidebar/Sidebar.vue.js";
12
12
  /* empty css */
13
- const E = { class: "flex-1" }, I = /* @__PURE__ */ p({
13
+ const E = { class: "flex-1" }, I = /* @__PURE__ */ d({
14
14
  __name: "Servers",
15
15
  setup(N) {
16
- const { activeCollection: t, servers: c, serverMutators: u } = w(), { push: f } = $(), d = () => {
16
+ const { activeCollection: t, servers: m, serverMutators: c } = w(), { push: u } = $(), f = () => {
17
17
  if (!t.value) return;
18
18
  const o = C({ url: "http://localhost" });
19
- u.add(o, t.value.uid), f(`/servers/${o.uid}`);
19
+ c.add(o, t.value.uid), u(`/servers/${o.uid}`);
20
20
  };
21
- return (o, g) => (l(), i(L, null, {
21
+ return (o, g) => (n(), l(L, null, {
22
22
  default: e(() => [
23
- r(n(B), null, {
24
- title: e(() => [
25
- m("Servers")
26
- ]),
23
+ r(s(B), { title: "Servers" }, {
27
24
  content: e(() => [
28
- _("div", E, [
25
+ p("div", E, [
29
26
  r(k, null, {
30
27
  default: e(() => {
31
- var s;
28
+ var i;
32
29
  return [
33
- (l(!0), v(x, null, S((s = n(t)) == null ? void 0 : s.spec.serverUids, (a) => (l(), i(b, {
30
+ (n(!0), _(v, null, x((i = s(t)) == null ? void 0 : i.spec.serverUids, (a) => (n(), l(b, {
34
31
  key: a,
35
32
  class: "text-xs",
36
- variable: { name: n(c)[a].url, uid: a }
33
+ variable: { name: s(m)[a].url, uid: a }
37
34
  }, null, 8, ["variable"]))), 128))
38
35
  ];
39
36
  }),
@@ -42,9 +39,9 @@ const E = { class: "flex-1" }, I = /* @__PURE__ */ p({
42
39
  ])
43
40
  ]),
44
41
  button: e(() => [
45
- r(h, { click: d }, {
42
+ r(h, { click: f }, {
46
43
  title: e(() => [
47
- m("Add Server")
44
+ S("Add Server")
48
45
  ]),
49
46
  _: 1
50
47
  })