@scalar/api-client 2.2.48 → 2.2.50

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 (217) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts +15 -3
  3. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  5. package/dist/components/AddressBar/AddressBar.vue2.js +102 -94
  6. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -0
  7. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  9. package/dist/components/AddressBar/AddressBarHistory.vue2.js +54 -58
  10. package/dist/components/CodeInput/CodeInput.vue.d.ts +9 -0
  11. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  12. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  13. package/dist/components/CodeInput/CodeInput.vue2.js +95 -93
  14. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  15. package/dist/components/CodeInput/codeVariableWidget.js +1 -3
  16. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -22
  18. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  19. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +13 -13
  20. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  21. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +12 -12
  22. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  23. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +54 -49
  24. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
  25. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +9 -9
  26. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  27. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  28. package/dist/components/DataTable/DataTableCell.vue.js +11 -8
  29. package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -0
  30. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  31. package/dist/components/DataTable/DataTableInput.vue.js +4 -4
  32. package/dist/components/DataTable/DataTableInput.vue2.js +36 -30
  33. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  34. package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -15
  35. package/dist/components/Form/Form.vue.d.ts +3 -1
  36. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  37. package/dist/components/Form/Form.vue.js +30 -25
  38. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  39. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +41 -41
  40. package/dist/components/ImportCollection/ImportNowButton.vue.js +24 -24
  41. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  42. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
  43. package/dist/components/Server/ServerDropdown.vue.js +13 -13
  44. package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
  45. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  46. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  47. package/dist/components/Server/ServerDropdownItem.vue2.js +19 -19
  48. package/dist/layouts/App/create-api-client-app.d.ts +387 -477
  49. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  50. package/dist/layouts/Modal/create-api-client-modal.d.ts +774 -954
  51. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  52. package/dist/layouts/Web/create-api-client-web.d.ts +387 -477
  53. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  54. package/dist/libs/create-client.d.ts +390 -479
  55. package/dist/libs/create-client.d.ts.map +1 -1
  56. package/dist/libs/create-client.js +3 -15
  57. package/dist/libs/env-helpers.d.ts.map +1 -1
  58. package/dist/libs/find-request.d.ts +7 -7
  59. package/dist/libs/find-request.d.ts.map +1 -1
  60. package/dist/libs/hot-keys.d.ts +3 -1
  61. package/dist/libs/hot-keys.d.ts.map +1 -1
  62. package/dist/libs/hot-keys.js +11 -15
  63. package/dist/libs/hot-keys.test.d.ts +2 -0
  64. package/dist/libs/hot-keys.test.d.ts.map +1 -0
  65. package/dist/libs/index.js +27 -26
  66. package/dist/libs/send-request/build-request-security.d.ts +1 -1
  67. package/dist/libs/send-request/build-request-security.js +19 -16
  68. package/dist/libs/send-request/create-request-operation.test.d.ts +10 -10
  69. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  70. package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
  71. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  72. package/dist/libs/send-request/set-request-cookies.js +37 -34
  73. package/dist/store/active-entities.d.ts +58 -67
  74. package/dist/store/active-entities.d.ts.map +1 -1
  75. package/dist/store/active-entities.js +61 -74
  76. package/dist/store/collections.d.ts +90 -90
  77. package/dist/store/collections.d.ts.map +1 -1
  78. package/dist/store/collections.js +4 -17
  79. package/dist/store/cookies.d.ts +14 -14
  80. package/dist/store/environment.d.ts +19 -18
  81. package/dist/store/environment.d.ts.map +1 -1
  82. package/dist/store/environment.js +2 -8
  83. package/dist/store/import-spec.d.ts +16 -106
  84. package/dist/store/import-spec.d.ts.map +1 -1
  85. package/dist/store/import-spec.js +9 -14
  86. package/dist/store/request-example.d.ts +25 -25
  87. package/dist/store/request-example.d.ts.map +1 -1
  88. package/dist/store/request-example.js +15 -20
  89. package/dist/store/requests.d.ts +84 -84
  90. package/dist/store/requests.d.ts.map +1 -1
  91. package/dist/store/requests.js +17 -40
  92. package/dist/store/router-params.d.ts +13 -11
  93. package/dist/store/router-params.d.ts.map +1 -1
  94. package/dist/store/router-params.js +5 -5
  95. package/dist/store/security-schemes.d.ts +58 -58
  96. package/dist/store/security-schemes.d.ts.map +1 -1
  97. package/dist/store/security-schemes.js +1 -3
  98. package/dist/store/servers.d.ts +17 -17
  99. package/dist/store/servers.d.ts.map +1 -1
  100. package/dist/store/servers.js +2 -9
  101. package/dist/store/store.d.ts +387 -477
  102. package/dist/store/store.d.ts.map +1 -1
  103. package/dist/store/store.js +2 -4
  104. package/dist/store/tags.d.ts +28 -28
  105. package/dist/store/tags.d.ts.map +1 -1
  106. package/dist/store/tags.js +19 -34
  107. package/dist/store/workspace.d.ts +36 -36
  108. package/dist/store/workspace.d.ts.map +1 -1
  109. package/dist/store/workspace.js +1 -5
  110. package/dist/style.css +1 -1
  111. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  112. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  113. package/dist/views/Cookies/CookieForm.vue.js +18 -18
  114. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
  115. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  116. package/dist/views/Cookies/Cookies.vue2.js +24 -24
  117. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  118. package/dist/views/Environment/Environment.vue2.js +140 -132
  119. package/dist/views/Environment/EnvironmentModal.vue.d.ts +2 -2
  120. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
  121. package/dist/views/Environment/EnvironmentModal.vue.js +15 -15
  122. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  123. package/dist/views/Request/Request.vue.js +2 -2
  124. package/dist/views/Request/Request.vue2.js +160 -141
  125. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -1
  126. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +7 -7
  128. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +6 -2
  129. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +99 -95
  131. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +4 -0
  132. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  134. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +70 -64
  135. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +4 -0
  136. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
  138. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +40 -34
  139. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +6 -0
  140. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  141. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +32 -26
  142. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +4 -0
  143. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  144. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  145. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +93 -85
  146. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +9 -0
  147. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  148. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  149. package/dist/views/Request/RequestSection/RequestBody.vue2.js +214 -244
  150. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +10 -1
  151. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  152. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  153. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +77 -80
  154. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
  155. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  156. package/dist/views/Request/RequestSection/RequestParams.vue.js +89 -96
  157. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +10 -2
  158. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  159. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +59 -66
  160. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +11 -0
  161. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  162. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  163. package/dist/views/Request/RequestSection/RequestSection.vue2.js +176 -155
  164. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +6 -0
  165. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  166. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  167. package/dist/views/Request/RequestSection/RequestTable.vue2.js +97 -100
  168. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  169. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
  170. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +31 -22
  171. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +2 -2
  172. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -1
  173. package/dist/views/Request/RequestSection/helpers/getting-started.js +11 -13
  174. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  175. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  176. package/dist/views/Request/RequestSidebar.vue2.js +50 -48
  177. package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
  178. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  179. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  180. package/dist/views/Request/RequestSidebarItem.vue2.js +38 -44
  181. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +10 -0
  182. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  183. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  184. package/dist/views/Request/RequestSubpageHeader.vue2.js +77 -69
  185. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +7 -7
  186. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +4 -1
  187. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  188. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  189. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +41 -39
  190. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -0
  191. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  192. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  193. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +56 -52
  194. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  195. package/dist/views/Request/components/WorkspaceDropdown.vue.js +68 -68
  196. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  197. package/dist/views/Request/handle-drag.d.ts +1 -1
  198. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  199. package/dist/views/Request/handle-drag.js +38 -55
  200. package/dist/views/Request/libs/auth.d.ts +2 -2
  201. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  202. package/dist/views/Request/libs/auth.js +28 -29
  203. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  204. package/dist/views/Request/libs/oauth2.js +42 -65
  205. package/dist/views/Request/libs/request.d.ts +5 -0
  206. package/dist/views/Request/libs/request.d.ts.map +1 -1
  207. package/dist/views/Request/libs/request.js +37 -2
  208. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
  209. package/dist/views/Request/libs/watch-mode.js +10 -34
  210. package/dist/views/Servers/ServerForm.vue.d.ts +1 -8
  211. package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
  212. package/dist/views/Servers/ServerForm.vue.js +21 -22
  213. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  214. package/dist/views/Servers/Servers.vue2.js +73 -81
  215. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  216. package/dist/views/Settings/SettingsGeneral.vue.js +118 -134
  217. package/package.json +14 -14
@@ -9,4 +9,9 @@ import type { RequestExampleParameter } from '@scalar/oas-utils/entities/spec';
9
9
  * - maximum
10
10
  */
11
11
  export declare const hasItemProperties: (item: RequestExampleParameter) => boolean;
12
+ /**
13
+ * Checks if the value of a RequestExampleParameter is the expected type or format
14
+ * Returns an alert message if the value is not in the correct type or format, otherwise false
15
+ */
16
+ export declare const parameterIsInvalid: (item: RequestExampleParameter) => import("vue").ComputedRef<string | false>;
12
17
  //# sourceMappingURL=request.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAE9E;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,SAAU,uBAAuB,YAQ5D,CAAA"}
1
+ {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAG9E;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,SAAU,uBAAuB,YACwC,CAAA;AAEvG;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,uBAAuB,8CAqD/D,CAAA"}
@@ -1,4 +1,39 @@
1
- const a = (o) => !!(o.description || o.type || o.default || o.format || o.minimum || o.maximum);
1
+ import { computed as r } from "vue";
2
+ const m = (e) => !!(e.description || e.type || e.default || e.format || e.minimum || e.maximum), n = (e) => r(() => {
3
+ if (e.value === void 0 || e.value === "") return !1;
4
+ if (e.type) {
5
+ if (e.type === "integer") {
6
+ const a = Number(e.value);
7
+ if (isNaN(a) || !Number.isInteger(a))
8
+ return "Value must be a whole number (e.g., 42)";
9
+ if (e.minimum !== void 0 && a < e.minimum)
10
+ return `Value must be ${e.minimum} or greater`;
11
+ if (e.maximum !== void 0 && a > e.maximum)
12
+ return `Value must be ${e.maximum} or less`;
13
+ }
14
+ if (e.type === "number") {
15
+ const a = Number(e.value);
16
+ if (isNaN(a))
17
+ return "Value must be a number (e.g., 42.5)";
18
+ if (e.minimum !== void 0 && a < e.minimum)
19
+ return `Value must be ${e.minimum} or greater`;
20
+ if (e.maximum !== void 0 && a > e.maximum)
21
+ return `Value must be ${e.maximum} or less`;
22
+ }
23
+ if (e.type === "string" && e.format) {
24
+ if (e.format === "date" && !/^\d{4}-\d{2}-\d{2}$/.test(e.value))
25
+ return "Please enter a valid date in YYYY-MM-DD format (e.g., 2024-03-20)";
26
+ if (e.format === "date-time" && !/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/.test(e.value))
27
+ return "Please enter a valid date and time in RFC 3339 format (e.g., 2024-03-20T13:45:30Z)";
28
+ if (e.format === "email" && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.value))
29
+ return "Please enter a valid email address (e.g., user@example.com)";
30
+ if (e.format === "uri" && !/^[a-zA-Z][a-zA-Z0-9+.-]*:.+$/.test(e.value))
31
+ return "Please enter a valid URI (e.g., https://example.com)";
32
+ }
33
+ }
34
+ return !1;
35
+ });
2
36
  export {
3
- a as hasItemProperties
37
+ m as hasItemProperties,
38
+ n as parameterIsInvalid
4
39
  };
@@ -1 +1 @@
1
- {"version":3,"file":"watch-mode.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/watch-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EAEf,MAAM,6BAA6B,CAAA;AAEpC,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,SACvB,UAAU,EAAE,eACN,MAAM,EAAE,KACnB,UAAU,EA8FZ,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,GAAI,CAAC,OACvB,MAAM,EAAE,aACF,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aACjB,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,KAClC,CAAC,GAAG,IAMN,CAAA;AAUD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WACpB,SAAS,QACX,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KACxB,SAAS,GAAG,IAqDd,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,UACjB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,QAC/B,UAAU,KACf;IACD,0DAA0D;IAC1D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,mGAAmG;IACnG,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACrB,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;CACzC,GAAG,IAwBH,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACzB,UAAU,wBACM,mBAAmB,0BACjB,cAAc,KACrC,OA0CF,CAAA;AAwBD;;GAEG;AACH,eAAO,MAAM,iBAAiB,SACtB,UAAU,wBACM,mBAAmB,SAClC,cAAc,KACpB,OA2IF,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,SACrB,UAAU,wBACM,mBAAmB,+BACZ,cAAc,KAC1C,OAsCF,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,aAAa,SAClB,UAAU,wBACM,mBAAmB,yBAClB,cAAc,KACpC,OAmCF,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,WACpB,SAAS,OACZ,MAAM,SACJ,MAAM,KACZ,SAAS,GAAG,IAmBd,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,SAC7B,UAAU,wBACM,mBAAmB,+CACI,cAAc,KAC1D,OA8CF,CAAA"}
1
+ {"version":3,"file":"watch-mode.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/watch-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,SAAS,EAAkB,MAAM,6BAA6B,CAAA;AAEvF,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,EAAE,eAAc,MAAM,EAAE,KAAQ,UAAU,EA+E5F,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,YAAY,GAAI,CAAC,OACvB,MAAM,EAAE,aACF,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aACjB,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,KAClC,CAAC,GAAG,IAMN,CAAA;AAUD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAAY,SAAS,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAG,SAAS,GAAG,IA8C5F,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,UACjB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,CAAC,QAC/B,UAAU,KACf;IACD,0DAA0D;IAC1D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,mGAAmG;IACnG,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACrB,2DAA2D;IAC3D,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;CACzC,GAAG,IAwBH,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACzB,UAAU,wBACM,mBAAmB,0BACjB,cAAc,KACrC,OA6BF,CAAA;AAqBD;;GAEG;AACH,eAAO,MAAM,iBAAiB,SACtB,UAAU,wBACM,mBAAmB,SAClC,cAAc,KACpB,OAsIF,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,SACrB,UAAU,wBACM,mBAAmB,+BACZ,cAAc,KAC1C,OAkCF,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,aAAa,SAClB,UAAU,wBACM,mBAAmB,yBAClB,cAAc,KACpC,OAmCF,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,WAAY,SAAS,OAAO,MAAM,SAAS,MAAM,KAAG,SAAS,GAAG,IAgB7F,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,SAC7B,UAAU,wBACM,mBAAmB,+CACI,cAAc,KAC1D,OAkCF,CAAA"}
@@ -20,9 +20,7 @@ const G = (e, s = []) => {
20
20
  continue;
21
21
  }
22
22
  if (r.type === "REMOVE" && (n == null ? void 0 : n.type) === "CREATE") {
23
- const [, l, p] = r.path, [, o, h] = n.path, c = ["paths", o].filter(
24
- (f) => typeof f == "string"
25
- );
23
+ const [, l, p] = r.path, [, o, h] = n.path, c = ["paths", o].filter((f) => typeof f == "string");
26
24
  if (l !== o && t.push({
27
25
  type: "CHANGE",
28
26
  path: ["paths", "path"],
@@ -99,32 +97,19 @@ const G = (e, s = []) => {
99
97
  path: e.path
100
98
  });
101
99
  if (!a) return !1;
102
- const u = [
103
- ...N(s.value, a.pathMinusOne)
104
- ];
105
- e.type === "CREATE" ? u.push(a.value) : e.type === "REMOVE" && u.pop(), t.edit(
106
- s.value.uid,
107
- a.pathMinusOne,
108
- u
109
- );
100
+ const u = [...N(s.value, a.pathMinusOne)];
101
+ e.type === "CREATE" ? u.push(a.value) : e.type === "REMOVE" && u.pop(), t.edit(s.value.uid, a.pathMinusOne, u);
110
102
  } else {
111
103
  const a = E(M, e);
112
104
  if (!a) return !1;
113
- t.edit(
114
- s.value.uid,
115
- a.path,
116
- a.value
117
- );
105
+ t.edit(s.value.uid, a.path, a.value);
118
106
  }
119
107
  return !0;
120
108
  }, D = (e, s) => {
121
109
  const { requests: t, requestExamples: a, requestExampleMutators: u } = s, r = t[e];
122
110
  r == null || r.examples.forEach((n) => {
123
111
  var p;
124
- const l = H(
125
- r,
126
- ((p = a[n]) == null ? void 0 : p.name) ?? "Default"
127
- );
112
+ const l = H(r, ((p = a[n]) == null ? void 0 : p.name) ?? "Default");
128
113
  l && u.set({
129
114
  ...l,
130
115
  uid: n
@@ -169,7 +154,8 @@ const G = (e, s = []) => {
169
154
  return O ? {
170
155
  [O]: m[O]
171
156
  } : m;
172
- } else return m;
157
+ }
158
+ return m;
173
159
  }));
174
160
  const b = R(A, V, !1);
175
161
  if (!b) return !1;
@@ -204,10 +190,7 @@ const G = (e, s = []) => {
204
190
  a.edit(n, p.path, h);
205
191
  } else if (e.type === "REMOVE") {
206
192
  if (!s.value.servers[u]) return !1;
207
- a.delete(
208
- s.value.servers[u],
209
- s.value.uid
210
- );
193
+ a.delete(s.value.servers[u], s.value.uid);
211
194
  } else if (e.type === "CREATE") {
212
195
  const n = R(e.value, q, !1);
213
196
  if (!n) return !1;
@@ -251,11 +234,7 @@ const G = (e, s = []) => {
251
234
  (l) => l.nameKey === u
252
235
  );
253
236
  if (r != null && r.length) {
254
- const l = w(
255
- Z,
256
- "type",
257
- (n == null ? void 0 : n.type) ?? ""
258
- );
237
+ const l = w(Z, "type", (n == null ? void 0 : n.type) ?? "");
259
238
  if (!l || !n) return !1;
260
239
  const p = E(l, { ...e, path: r });
261
240
  if (!p) return !1;
@@ -264,10 +243,7 @@ const G = (e, s = []) => {
264
243
  } else if (e.type === "REMOVE") {
265
244
  if (!n) return !1;
266
245
  a.delete(n.uid);
267
- } else e.type === "CREATE" && a.add(
268
- Z.parse(e.value),
269
- s.value.uid
270
- );
246
+ } else e.type === "CREATE" && a.add(Z.parse(e.value), s.value.uid);
271
247
  return !0;
272
248
  };
273
249
  export {
@@ -1,10 +1,3 @@
1
- type __VLS_Props = {
2
- collectionId: string | string[];
3
- serverUid: string | string[];
4
- };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
- collectionId: string | string[];
7
- serverUid: string | string[];
8
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
9
2
  export default _default;
10
3
  //# sourceMappingURL=ServerForm.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ServerForm.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/ServerForm.vue"],"names":[],"mappings":"AAqEA,KAAK,WAAW,GAAG;IACf,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAC7B,CAAC;;kBAFc,MAAM,GAAG,MAAM,EAAE;eACpB,MAAM,GAAG,MAAM,EAAE;;AA+GhC,wBAQG"}
1
+ {"version":3,"file":"ServerForm.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/ServerForm.vue"],"names":[],"mappings":";AAmKA,wBAMG"}
@@ -1,15 +1,11 @@
1
- import { defineComponent as u, computed as p, openBlock as a, createElementBlock as v, createBlock as m, createCommentVNode as f } from "vue";
2
- import _ from "../../components/Form/Form.vue.js";
3
- import { useActiveEntities as k } from "../../store/active-entities.js";
4
- import { useWorkspace as U } from "../../store/store.js";
5
- const h = { class: "divide-0.5 divide-x flex w-full" }, B = /* @__PURE__ */ u({
1
+ import { defineComponent as d, computed as p, openBlock as s, createElementBlock as m, createBlock as f, createCommentVNode as _ } from "vue";
2
+ import k from "../../components/Form/Form.vue.js";
3
+ import { useActiveEntities as h } from "../../store/active-entities.js";
4
+ import { useWorkspace as y } from "../../store/store.js";
5
+ const x = { class: "divide-0.5 flex w-full divide-x" }, L = /* @__PURE__ */ d({
6
6
  __name: "ServerForm",
7
- props: {
8
- collectionId: { default: "" },
9
- serverUid: { default: "" }
10
- },
11
- setup(i) {
12
- const t = i, { activeWorkspaceCollections: s } = k(), { servers: c, serverMutators: l } = U(), d = [
7
+ setup(S) {
8
+ const { activeRouterParams: t, activeWorkspaceCollections: a } = h(), { collections: c, servers: l, serverMutators: i } = y(), n = [
13
9
  { label: "URL", key: "url", placeholder: "https://void.scalar.com/api" },
14
10
  {
15
11
  label: "Label",
@@ -17,24 +13,27 @@ const h = { class: "divide-0.5 divide-x flex w-full" }, B = /* @__PURE__ */ u({
17
13
  placeholder: "Production"
18
14
  }
19
15
  ], o = p(() => {
20
- const e = s.value.find(
21
- (r) => r.uid === t.collectionId
16
+ const e = c[t.value.collection];
17
+ if (!e) return;
18
+ const r = typeof t.value.servers == "string" && t.value.servers === "default" ? e.servers[0] : e.servers.find(
19
+ (v) => v === t.value.servers
22
20
  );
23
- return c[e && typeof t.serverUid == "string" && t.serverUid === "default" ? e.servers[0] ?? "" : (e == null ? void 0 : e.servers.find((r) => r === t.serverUid)) ?? ""];
24
- }), n = (e, r) => {
25
- !s.value || !o.value || l.edit(o.value.uid, e, r);
21
+ if (r)
22
+ return l[r];
23
+ }), u = (e, r) => {
24
+ !a.value || !o.value || i.edit(o.value.uid, e, r);
26
25
  };
27
- return (e, r) => (a(), v("div", h, [
28
- o.value ? (a(), m(_, {
26
+ return (e, r) => (s(), m("div", x, [
27
+ o.value ? (s(), f(k, {
29
28
  key: 0,
30
29
  data: o.value,
31
- onUpdate: n,
32
- options: d,
30
+ onUpdate: u,
31
+ options: n,
33
32
  title: "Server"
34
- }, null, 8, ["data"])) : f("", !0)
33
+ }, null, 8, ["data"])) : _("", !0)
35
34
  ]));
36
35
  }
37
36
  });
38
37
  export {
39
- B as default
38
+ L as default
40
39
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/Servers.vue"],"names":[],"mappings":";AA8lBA,wBAMG"}
1
+ {"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/Servers.vue"],"names":[],"mappings":";AAilBA,wBAMG"}
@@ -1,97 +1,93 @@
1
- import { defineComponent as O, computed as m, openBlock as i, createBlock as u, withCtx as l, createVNode as a, unref as s, createElementVNode as n, createElementBlock as v, Fragment as y, renderList as S, normalizeClass as C, toDisplayString as R, withModifiers as M, withDirectives as U, createCommentVNode as q, vShow as K, createTextVNode as T } from "vue";
1
+ import { defineComponent as P, computed as x, openBlock as i, createBlock as m, withCtx as l, createVNode as a, unref as o, createElementVNode as n, createElementBlock as d, Fragment as k, renderList as _, normalizeClass as g, toDisplayString as W, withModifiers as F, withDirectives as O, createCommentVNode as R, vShow as M, createTextVNode as q } from "vue";
2
+ import { ScalarIcon as p, ScalarButton as y } from "@scalar/components";
3
+ import { LibraryIcon as K } from "@scalar/icons";
4
+ import { useRouter as T } from "vue-router";
2
5
  import G from "../../components/EmptyState.vue.js";
3
6
  import H from "../../components/Sidebar/SidebarButton.vue.js";
4
7
  import J from "../../components/Sidebar/SidebarList.vue.js";
5
8
  import Q from "../../components/Sidebar/SidebarListElement.vue.js";
6
9
  import X from "../../components/ViewLayout/ViewLayout.vue.js";
7
10
  import Y from "../../components/ViewLayout/ViewLayoutContent.vue.js";
8
- import { PathId as d } from "../../routes.js";
11
+ import { PathId as f } from "../../routes.js";
9
12
  import { useActiveEntities as Z } from "../../store/active-entities.js";
10
- import { ScalarIcon as b, ScalarButton as w } from "@scalar/components";
11
- import { LibraryIcon as ee } from "@scalar/icons";
12
- import { useRouter as te, useRoute as re } from "vue-router";
13
- import oe from "./ServerForm.vue.js";
14
- import { useWorkspace as se } from "../../store/store.js";
15
- import ae from "../../components/Sidebar/Sidebar.vue.js";
16
- import { useSidebar as ie } from "../../hooks/useSidebar.js";
17
- const le = { class: "flex-1" }, ne = ["onClick"], ce = { class: "flex h-5 items-center justify-center max-w-[14px] pr-px" }, ue = { class: "break-all line-clamp-1 font-medium text-left w-full" }, Ie = /* @__PURE__ */ O({
13
+ import U from "./ServerForm.vue.js";
14
+ import { useWorkspace as ee } from "../../store/store.js";
15
+ import te from "../../components/Sidebar/Sidebar.vue.js";
16
+ import { useSidebar as re } from "../../hooks/useSidebar.js";
17
+ const oe = { class: "flex-1" }, se = ["onClick"], ae = { class: "flex h-5 max-w-[14px] items-center justify-center pr-px" }, ie = { class: "line-clamp-1 w-full break-all text-left font-medium" }, Ce = /* @__PURE__ */ P({
18
18
  __name: "Servers",
19
- setup(de) {
20
- const { activeWorkspaceCollections: z, activeWorkspace: D, activeCollection: p } = Z(), { servers: h, events: I, serverMutators: A } = se(), { push: L, resolve: N } = te(), x = re(), { collapsedSidebarFolders: k, toggleSidebarFolder: V } = ie(), _ = m(
21
- () => x.params[d.Collection]
22
- ), j = m(() => x.params[d.Servers]), E = (r) => k[r];
23
- function f(r) {
24
- I.commandPalette.emit({
19
+ setup(le) {
20
+ const { activeWorkspaceCollections: S, activeWorkspace: C, activeRouterParams: w } = Z(), { servers: v, events: z, serverMutators: D } = ee(), { push: A, resolve: L } = T(), { collapsedSidebarFolders: b, toggleSidebarFolder: N } = re(), V = (t) => b[t];
21
+ function u(t) {
22
+ z.commandPalette.emit({
25
23
  commandName: "Add Server",
26
- metaData: { parentUid: r }
24
+ metaData: { parentUid: t }
27
25
  });
28
26
  }
29
- const P = m(() => z.value.filter(
30
- (r) => {
31
- var t;
32
- return ((t = r.info) == null ? void 0 : t.title) !== "Drafts";
27
+ const j = x(() => S.value.filter(
28
+ (t) => {
29
+ var s;
30
+ return ((s = t.info) == null ? void 0 : s.title) !== "Drafts";
33
31
  }
34
- )), $ = (r, t, e) => {
35
- var o;
32
+ )), E = (t, s, e) => {
33
+ var r;
36
34
  const c = {
37
35
  name: "servers",
38
36
  params: {
39
- [d.Workspace]: (o = D.value) == null ? void 0 : o.uid,
40
- [d.Collection]: e,
41
- [d.Servers]: t
37
+ [f.Workspace]: (r = C.value) == null ? void 0 : r.uid,
38
+ [f.Collection]: e,
39
+ [f.Servers]: s
42
40
  }
43
41
  };
44
- r.metaKey ? window.open(N(c).href, "_blank") : L(c);
45
- };
46
- function B(r) {
47
- var t;
48
- (t = p == null ? void 0 : p.value) != null && t.uid && A.delete(r, _.value);
49
- }
50
- const W = m(() => Object.keys(h).length > 0);
51
- return (r, t) => (i(), u(X, null, {
42
+ t.metaKey ? window.open(L(c).href, "_blank") : A(c);
43
+ }, I = (t) => D.delete(
44
+ t,
45
+ w.value.collection
46
+ ), $ = x(() => Object.keys(v).length > 0);
47
+ return (t, s) => (i(), m(X, null, {
52
48
  default: l(() => [
53
- a(s(ae), { title: "Servers" }, {
49
+ a(o(te), { title: "Servers" }, {
54
50
  content: l(() => [
55
- n("div", le, [
51
+ n("div", oe, [
56
52
  a(J, null, {
57
53
  default: l(() => [
58
- (i(!0), v(y, null, S(P.value, (e) => {
54
+ (i(!0), d(k, null, _(j.value, (e) => {
59
55
  var c;
60
- return i(), v("li", {
56
+ return i(), d("li", {
61
57
  key: e.uid,
62
- class: "flex flex-col gap-1/2"
58
+ class: "gap-1/2 flex flex-col"
63
59
  }, [
64
60
  n("button", {
65
- class: "flex font-medium gap-1.5 group items-center p-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
61
+ class: "hover:bg-b-2 group flex w-full items-center gap-1.5 break-words rounded p-1.5 text-left text-sm font-medium",
66
62
  type: "button",
67
- onClick: (o) => s(V)(e.uid)
63
+ onClick: (r) => o(N)(e.uid)
68
64
  }, [
69
- n("span", ce, [
70
- a(s(ee), {
71
- class: "min-w-3.5 text-sidebar-c-2 size-3.5 stroke-2 group-hover:hidden",
65
+ n("span", ae, [
66
+ a(o(K), {
67
+ class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
72
68
  src: e["x-scalar-icon"] || "interface-content-folder"
73
69
  }, null, 8, ["src"]),
74
70
  n("div", {
75
- class: C({
76
- "rotate-90": s(k)[e.uid]
71
+ class: g({
72
+ "rotate-90": o(b)[e.uid]
77
73
  })
78
74
  }, [
79
- a(s(b), {
80
- class: "text-c-3 hidden text-sm group-hover:block hover:text-c-1",
75
+ a(o(p), {
76
+ class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
81
77
  icon: "ChevronRight",
82
78
  size: "md"
83
79
  })
84
80
  ], 2)
85
81
  ]),
86
- n("span", ue, R(((c = e.info) == null ? void 0 : c.title) ?? ""), 1),
87
- a(s(w), {
88
- class: "hidden group-hover:block px-0.5 py-0 hover:bg-b-3 hover:text-c-1 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 aspect-square h-fit",
82
+ n("span", ie, W(((c = e.info) == null ? void 0 : c.title) ?? ""), 1),
83
+ a(o(y), {
84
+ class: "hover:bg-b-3 hover:text-c-1 hidden aspect-square h-fit px-0.5 py-0 group-hover:block group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
89
85
  size: "sm",
90
86
  variant: "ghost",
91
- onClick: M((o) => f(e.uid), ["stop", "prevent"])
87
+ onClick: F((r) => u(e.uid), ["stop", "prevent"])
92
88
  }, {
93
89
  default: l(() => [
94
- a(s(b), {
90
+ a(o(p), {
95
91
  icon: "Add",
96
92
  size: "md",
97
93
  thickness: "2"
@@ -99,45 +95,45 @@ const le = { class: "flex-1" }, ne = ["onClick"], ce = { class: "flex h-5 items-
99
95
  ]),
100
96
  _: 2
101
97
  }, 1032, ["onClick"])
102
- ], 8, ne),
103
- U(n("div", {
104
- class: C({
105
- "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-3 before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] flex flex-col gap-1/2 mb-[.5px] last:mb-0 relative": Object.keys(e.servers || {}).length > 0
98
+ ], 8, se),
99
+ O(n("div", {
100
+ class: g({
101
+ "before:bg-border before:z-1 gap-1/2 relative mb-[.5px] flex flex-col before:pointer-events-none before:absolute before:left-3 before:top-0 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full": Object.keys(e.servers || {}).length > 0
106
102
  })
107
103
  }, [
108
- (i(!0), v(y, null, S(e.servers, (o) => {
109
- var g;
110
- return i(), u(Q, {
111
- key: o,
104
+ (i(!0), d(k, null, _(e.servers, (r) => {
105
+ var h;
106
+ return i(), m(Q, {
107
+ key: r,
112
108
  class: "[&>a]:pl-[1.625rem]",
113
109
  collectionId: e.uid,
114
110
  isDeletable: !0,
115
111
  type: "servers",
116
112
  variable: {
117
- name: ((g = s(h)[o]) == null ? void 0 : g.url) ?? "",
118
- uid: o
113
+ name: ((h = o(v)[r]) == null ? void 0 : h.url) ?? "",
114
+ uid: r
119
115
  },
120
- onClick: (F) => $(F, o, e.uid),
121
- onDelete: B
116
+ onClick: (B) => E(B, r, e.uid),
117
+ onDelete: I
122
118
  }, null, 8, ["collectionId", "variable", "onClick"]);
123
119
  }), 128)),
124
- Object.keys(e.servers || {}).length === 0 ? (i(), u(s(w), {
120
+ Object.keys(e.servers || {}).length === 0 ? (i(), m(o(y), {
125
121
  key: 0,
126
- class: "mb-[.5px] flex gap-1.5 h-8 text-c-1 pl-6 py-0 justify-start text-xs w-full hover:bg-b-2",
122
+ class: "text-c-1 hover:bg-b-2 mb-[.5px] flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",
127
123
  variant: "ghost",
128
- onClick: (o) => f(e.uid)
124
+ onClick: (r) => u(e.uid)
129
125
  }, {
130
126
  default: l(() => [
131
- a(s(b), {
127
+ a(o(p), {
132
128
  icon: "Add",
133
129
  size: "sm"
134
130
  }),
135
- t[0] || (t[0] = n("span", null, "Add Server", -1))
131
+ s[0] || (s[0] = n("span", null, "Add Server", -1))
136
132
  ]),
137
133
  _: 2
138
- }, 1032, ["onClick"])) : q("", !0)
134
+ }, 1032, ["onClick"])) : R("", !0)
139
135
  ], 2), [
140
- [K, E(e.uid)]
136
+ [M, V(e.uid)]
141
137
  ])
142
138
  ]);
143
139
  }), 128))
@@ -147,9 +143,9 @@ const le = { class: "flex-1" }, ne = ["onClick"], ce = { class: "flex h-5 items-
147
143
  ])
148
144
  ]),
149
145
  button: l(() => [
150
- a(H, { click: f }, {
151
- title: l(() => t[1] || (t[1] = [
152
- T("Add Server")
146
+ a(H, { click: u }, {
147
+ title: l(() => s[1] || (s[1] = [
148
+ q(" Add Server ")
153
149
  ])),
154
150
  _: 1
155
151
  })
@@ -158,11 +154,7 @@ const le = { class: "flex-1" }, ne = ["onClick"], ce = { class: "flex h-5 items-
158
154
  }),
159
155
  a(Y, { class: "flex-1" }, {
160
156
  default: l(() => [
161
- W.value ? (i(), u(oe, {
162
- key: 0,
163
- collectionId: _.value,
164
- serverUid: j.value
165
- }, null, 8, ["collectionId", "serverUid"])) : (i(), u(G, { key: 1 }))
157
+ $.value ? (i(), m(U, { key: 0 })) : (i(), m(G, { key: 1 }))
166
158
  ]),
167
159
  _: 1
168
160
  })
@@ -172,5 +164,5 @@ const le = { class: "flex-1" }, ne = ["onClick"], ce = { class: "flex h-5 items-
172
164
  }
173
165
  });
174
166
  export {
175
- Ie as default
167
+ Ce as default
176
168
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AA44BA,wBAMG"}
1
+ {"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AA62BA,wBAMG"}