@scalar/api-reference 0.1.1

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 (556) hide show
  1. package/.env.example +1 -0
  2. package/.eslintignore +1 -0
  3. package/.eslintrc.json +21 -0
  4. package/CHANGELOG.md +13 -0
  5. package/dist/components/ApiClientModal.vue.d.ts +14 -0
  6. package/dist/components/ApiClientModal.vue.d.ts.map +1 -0
  7. package/dist/components/ApiReference.vue.d.ts +56 -0
  8. package/dist/components/ApiReference.vue.d.ts.map +1 -0
  9. package/dist/components/Card/Card.vue.d.ts +10 -0
  10. package/dist/components/Card/Card.vue.d.ts.map +1 -0
  11. package/dist/components/Card/CardContent.vue.d.ts +40 -0
  12. package/dist/components/Card/CardContent.vue.d.ts.map +1 -0
  13. package/dist/components/Card/CardFooter.vue.d.ts +10 -0
  14. package/dist/components/Card/CardFooter.vue.d.ts.map +1 -0
  15. package/dist/components/Card/CardHeader.vue.d.ts +11 -0
  16. package/dist/components/Card/CardHeader.vue.d.ts.map +1 -0
  17. package/dist/components/Card/CardTab.vue.d.ts +10 -0
  18. package/dist/components/Card/CardTab.vue.d.ts.map +1 -0
  19. package/dist/components/Card/CardTabHeader.vue.d.ts +15 -0
  20. package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -0
  21. package/dist/components/Card/index.d.ts +7 -0
  22. package/dist/components/Card/index.d.ts.map +1 -0
  23. package/dist/components/Content/Content.vue.d.ts +22 -0
  24. package/dist/components/Content/Content.vue.d.ts.map +1 -0
  25. package/dist/components/Content/Introduction/BaseUrl.vue.d.ts +17 -0
  26. package/dist/components/Content/Introduction/BaseUrl.vue.d.ts.map +1 -0
  27. package/dist/components/Content/Introduction/Introduction.vue.d.ts +22 -0
  28. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -0
  29. package/dist/components/Content/Introduction/LanguageSelector.vue.d.ts +3 -0
  30. package/dist/components/Content/Introduction/LanguageSelector.vue.d.ts.map +1 -0
  31. package/dist/components/Content/Introduction/index.d.ts +2 -0
  32. package/dist/components/Content/Introduction/index.d.ts.map +1 -0
  33. package/dist/components/Content/MarkdownRenderer.vue.d.ts +13 -0
  34. package/dist/components/Content/MarkdownRenderer.vue.d.ts.map +1 -0
  35. package/dist/components/Content/ReferenceEndpoint/Copy.vue.d.ts +23 -0
  36. package/dist/components/Content/ReferenceEndpoint/Copy.vue.d.ts.map +1 -0
  37. package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts +22 -0
  38. package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts.map +1 -0
  39. package/dist/components/Content/ReferenceEndpoint/ExampleResponseTab.vue.d.ts +13 -0
  40. package/dist/components/Content/ReferenceEndpoint/ExampleResponseTab.vue.d.ts.map +1 -0
  41. package/dist/components/Content/ReferenceEndpoint/ExampleResponses.vue.d.ts +14 -0
  42. package/dist/components/Content/ReferenceEndpoint/ExampleResponses.vue.d.ts.map +1 -0
  43. package/dist/components/Content/ReferenceEndpoint/ParameterItem.vue.d.ts +14 -0
  44. package/dist/components/Content/ReferenceEndpoint/ParameterItem.vue.d.ts.map +1 -0
  45. package/dist/components/Content/ReferenceEndpoint/Parameters.vue.d.ts +20 -0
  46. package/dist/components/Content/ReferenceEndpoint/Parameters.vue.d.ts.map +1 -0
  47. package/dist/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue.d.ts +30 -0
  48. package/dist/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue.d.ts.map +1 -0
  49. package/dist/components/Content/ReferenceEndpoint/RequestBody.vue.d.ts +12 -0
  50. package/dist/components/Content/ReferenceEndpoint/RequestBody.vue.d.ts.map +1 -0
  51. package/dist/components/Content/ReferenceEndpoint/RequestBodyProperties.vue.d.ts +22 -0
  52. package/dist/components/Content/ReferenceEndpoint/RequestBodyProperties.vue.d.ts.map +1 -0
  53. package/dist/components/Content/ReferenceEndpoint/RequestBodyPropertiesChild.vue.d.ts +14 -0
  54. package/dist/components/Content/ReferenceEndpoint/RequestBodyPropertiesChild.vue.d.ts.map +1 -0
  55. package/dist/components/Content/ReferenceEndpoint/index.d.ts +2 -0
  56. package/dist/components/Content/ReferenceEndpoint/index.d.ts.map +1 -0
  57. package/dist/components/Content/ReferenceTag.vue.d.ts +22 -0
  58. package/dist/components/Content/ReferenceTag.vue.d.ts.map +1 -0
  59. package/dist/components/Content/Spinner.vue.d.ts +3 -0
  60. package/dist/components/Content/Spinner.vue.d.ts.map +1 -0
  61. package/dist/components/Content/index.d.ts +2 -0
  62. package/dist/components/Content/index.d.ts.map +1 -0
  63. package/dist/components/FindAnythingButton.vue.d.ts +3 -0
  64. package/dist/components/FindAnythingButton.vue.d.ts.map +1 -0
  65. package/dist/components/FlowButton.vue.d.ts +53 -0
  66. package/dist/components/FlowButton.vue.d.ts.map +1 -0
  67. package/dist/components/FlowIconButton.vue.d.ts +33 -0
  68. package/dist/components/FlowIconButton.vue.d.ts.map +1 -0
  69. package/dist/components/FlowLoader.vue.d.ts +41 -0
  70. package/dist/components/FlowLoader.vue.d.ts.map +1 -0
  71. package/dist/components/Icon/FlowIcon.vue.d.ts +14 -0
  72. package/dist/components/Icon/FlowIcon.vue.d.ts.map +1 -0
  73. package/dist/components/Icon/Icon.vue.d.ts +19 -0
  74. package/dist/components/Icon/Icon.vue.d.ts.map +1 -0
  75. package/dist/components/Icon/SvgRenderer.d.ts +13 -0
  76. package/dist/components/Icon/SvgRenderer.d.ts.map +1 -0
  77. package/dist/components/Icon/icons/index.d.ts +3 -0
  78. package/dist/components/Icon/icons/index.d.ts.map +1 -0
  79. package/dist/components/Icon/index.d.ts +3 -0
  80. package/dist/components/Icon/index.d.ts.map +1 -0
  81. package/dist/components/Icon/localIcons.d.ts +11 -0
  82. package/dist/components/Icon/localIcons.d.ts.map +1 -0
  83. package/dist/components/Sidebar.vue.d.ts +14 -0
  84. package/dist/components/Sidebar.vue.d.ts.map +1 -0
  85. package/dist/components/SidebarElement.vue.d.ts +61 -0
  86. package/dist/components/SidebarElement.vue.d.ts.map +1 -0
  87. package/dist/components/SidebarGroup.vue.d.ts +20 -0
  88. package/dist/components/SidebarGroup.vue.d.ts.map +1 -0
  89. package/dist/helpers/generateAxiosCodeFromRequest.d.ts +12 -0
  90. package/dist/helpers/generateAxiosCodeFromRequest.d.ts.map +1 -0
  91. package/dist/helpers/generateLaravelCodeFromRequest.d.ts +7 -0
  92. package/dist/helpers/generateLaravelCodeFromRequest.d.ts.map +1 -0
  93. package/dist/helpers/index.d.ts +5 -0
  94. package/dist/helpers/index.d.ts.map +1 -0
  95. package/dist/helpers/objectMerge.d.ts +5 -0
  96. package/dist/helpers/objectMerge.d.ts.map +1 -0
  97. package/dist/helpers/transformToJson.d.ts +5 -0
  98. package/dist/helpers/transformToJson.d.ts.map +1 -0
  99. package/dist/hooks/useSwaggerParser.d.ts +10 -0
  100. package/dist/hooks/useSwaggerParser.d.ts.map +1 -0
  101. package/dist/index-14a526d0.js +61730 -0
  102. package/dist/index-ffa2c382.js +34107 -0
  103. package/dist/index.d.ts +6 -0
  104. package/dist/index.d.ts.map +1 -0
  105. package/dist/index.js +8 -0
  106. package/dist/stores/template.d.ts +47 -0
  107. package/dist/stores/template.d.ts.map +1 -0
  108. package/dist/stores/utility.d.ts +10 -0
  109. package/dist/stores/utility.d.ts.map +1 -0
  110. package/dist/style.css +4174 -0
  111. package/dist/types.d.ts +122 -0
  112. package/dist/types.d.ts.map +1 -0
  113. package/package.json +66 -0
  114. package/src/assets/css/reset.css +154 -0
  115. package/src/assets/css/variables.css +64 -0
  116. package/src/components/ApiClientModal.vue +184 -0
  117. package/src/components/ApiReference.vue +675 -0
  118. package/src/components/Card/Card.vue +12 -0
  119. package/src/components/Card/CardContent.vue +45 -0
  120. package/src/components/Card/CardFooter.vue +13 -0
  121. package/src/components/Card/CardHeader.vue +37 -0
  122. package/src/components/Card/CardTab.vue +31 -0
  123. package/src/components/Card/CardTabHeader.vue +32 -0
  124. package/src/components/Card/index.ts +6 -0
  125. package/src/components/Content/Content.vue +128 -0
  126. package/src/components/Content/Introduction/BaseUrl.vue +32 -0
  127. package/src/components/Content/Introduction/Introduction.vue +143 -0
  128. package/src/components/Content/Introduction/LanguageSelector.vue +339 -0
  129. package/src/components/Content/Introduction/index.ts +1 -0
  130. package/src/components/Content/MarkdownRenderer.vue +165 -0
  131. package/src/components/Content/ReferenceEndpoint/Copy.vue +97 -0
  132. package/src/components/Content/ReferenceEndpoint/ExampleRequest.vue +363 -0
  133. package/src/components/Content/ReferenceEndpoint/ExampleResponseTab.vue +22 -0
  134. package/src/components/Content/ReferenceEndpoint/ExampleResponses.vue +134 -0
  135. package/src/components/Content/ReferenceEndpoint/ParameterItem.vue +26 -0
  136. package/src/components/Content/ReferenceEndpoint/Parameters.vue +23 -0
  137. package/src/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue +29 -0
  138. package/src/components/Content/ReferenceEndpoint/RequestBody.vue +125 -0
  139. package/src/components/Content/ReferenceEndpoint/RequestBodyProperties.vue +54 -0
  140. package/src/components/Content/ReferenceEndpoint/RequestBodyPropertiesChild.vue +39 -0
  141. package/src/components/Content/ReferenceEndpoint/index.ts +1 -0
  142. package/src/components/Content/ReferenceTag.vue +99 -0
  143. package/src/components/Content/Spinner.vue +51 -0
  144. package/src/components/Content/index.ts +1 -0
  145. package/src/components/FindAnythingButton.vue +57 -0
  146. package/src/components/FlowButton.vue +184 -0
  147. package/src/components/FlowIconButton.vue +25 -0
  148. package/src/components/FlowLoader.vue +207 -0
  149. package/src/components/Icon/FlowIcon.vue +19 -0
  150. package/src/components/Icon/Icon.vue +23 -0
  151. package/src/components/Icon/SvgRenderer.ts +43 -0
  152. package/src/components/Icon/brand/brand-adobe.svg +1 -0
  153. package/src/components/Icon/brand/brand-amazon.svg +1 -0
  154. package/src/components/Icon/brand/brand-browser-firefox.svg +5 -0
  155. package/src/components/Icon/brand/brand-browser-googlechrome.svg +5 -0
  156. package/src/components/Icon/brand/brand-creative-commons.svg +1 -0
  157. package/src/components/Icon/brand/brand-ecommerce-etsy.svg +1 -0
  158. package/src/components/Icon/brand/brand-ecommerce-patreon.svg +1 -0
  159. package/src/components/Icon/brand/brand-ecommerce-shopify.svg +5 -0
  160. package/src/components/Icon/brand/brand-ecommerce-wordpress.svg +1 -0
  161. package/src/components/Icon/brand/brand-gaming-nintendo-switch.svg +5 -0
  162. package/src/components/Icon/brand/brand-gaming-playstation.svg +1 -0
  163. package/src/components/Icon/brand/brand-gaming-xbox-live.svg +5 -0
  164. package/src/components/Icon/brand/brand-google-drive.svg +5 -0
  165. package/src/components/Icon/brand/brand-google-gmail.svg +5 -0
  166. package/src/components/Icon/brand/brand-google.svg +1 -0
  167. package/src/components/Icon/brand/brand-music-itunes.svg +1 -0
  168. package/src/components/Icon/brand/brand-music-soundcloud.svg +1 -0
  169. package/src/components/Icon/brand/brand-music-spotify.svg +1 -0
  170. package/src/components/Icon/brand/brand-office-dropbox.svg +5 -0
  171. package/src/components/Icon/brand/brand-office-slack.svg +5 -0
  172. package/src/components/Icon/brand/brand-office-zoom.svg +1 -0
  173. package/src/components/Icon/brand/brand-payments-alipay.svg +1 -0
  174. package/src/components/Icon/brand/brand-payments-paypal.svg +1 -0
  175. package/src/components/Icon/brand/brand-payments-stripe.svg +1 -0
  176. package/src/components/Icon/brand/brand-platform-android.svg +1 -0
  177. package/src/components/Icon/brand/brand-platform-apple.svg +5 -0
  178. package/src/components/Icon/brand/brand-platform-linux.svg +5 -0
  179. package/src/components/Icon/brand/brand-platform-microsoft-windows.svg +4 -0
  180. package/src/components/Icon/brand/brand-social-chat-discord.svg +5 -0
  181. package/src/components/Icon/brand/brand-social-chat-kuaishou.svg +5 -0
  182. package/src/components/Icon/brand/brand-social-chat-line.svg +5 -0
  183. package/src/components/Icon/brand/brand-social-chat-messenger.svg +5 -0
  184. package/src/components/Icon/brand/brand-social-chat-signal.svg +5 -0
  185. package/src/components/Icon/brand/brand-social-chat-snapchat.svg +5 -0
  186. package/src/components/Icon/brand/brand-social-chat-telegram.svg +5 -0
  187. package/src/components/Icon/brand/brand-social-chat-wechat.svg +5 -0
  188. package/src/components/Icon/brand/brand-social-chat-whatsapp.svg +5 -0
  189. package/src/components/Icon/brand/brand-social-media-deviantart.svg +5 -0
  190. package/src/components/Icon/brand/brand-social-media-dribbble.svg +1 -0
  191. package/src/components/Icon/brand/brand-social-media-facebook.svg +1 -0
  192. package/src/components/Icon/brand/brand-social-media-instagram.svg +5 -0
  193. package/src/components/Icon/brand/brand-social-media-linkedin.svg +5 -0
  194. package/src/components/Icon/brand/brand-social-media-pinterest.svg +5 -0
  195. package/src/components/Icon/brand/brand-social-media-reddit.svg +1 -0
  196. package/src/components/Icon/brand/brand-social-media-sina-weibo.svg +5 -0
  197. package/src/components/Icon/brand/brand-social-media-threads.svg +1 -0
  198. package/src/components/Icon/brand/brand-social-media-tiktok.svg +5 -0
  199. package/src/components/Icon/brand/brand-social-media-tinder.svg +1 -0
  200. package/src/components/Icon/brand/brand-social-media-tumblr.svg +5 -0
  201. package/src/components/Icon/brand/brand-social-media-twitter.svg +5 -0
  202. package/src/components/Icon/brand/brand-software-design-figma.svg +1 -0
  203. package/src/components/Icon/brand/brand-software-development-authy.svg +1 -0
  204. package/src/components/Icon/brand/brand-software-development-digital-ocean.svg +1 -0
  205. package/src/components/Icon/brand/brand-software-development-docker.svg +5 -0
  206. package/src/components/Icon/brand/brand-software-development-github.svg +5 -0
  207. package/src/components/Icon/brand/brand-software-development-jira.svg +1 -0
  208. package/src/components/Icon/brand/brand-software-development-openai.svg +1 -0
  209. package/src/components/Icon/brand/brand-software-development-stackexchange.svg +5 -0
  210. package/src/components/Icon/brand/brand-software-development-stackoverflow.svg +1 -0
  211. package/src/components/Icon/brand/brand-video-netflix.svg +5 -0
  212. package/src/components/Icon/brand/brand-video-twitch.svg +1 -0
  213. package/src/components/Icon/brand/brand-video-vimeo.svg +5 -0
  214. package/src/components/Icon/brand/brand-video-youtube.svg +5 -0
  215. package/src/components/Icon/brand/programming-framework-angular.svg +5 -0
  216. package/src/components/Icon/brand/programming-framework-astro.svg +5 -0
  217. package/src/components/Icon/brand/programming-framework-laravel.svg +1 -0
  218. package/src/components/Icon/brand/programming-framework-nextdotjs.svg +5 -0
  219. package/src/components/Icon/brand/programming-framework-react.svg +5 -0
  220. package/src/components/Icon/brand/programming-framework-vuedotjs.svg +1 -0
  221. package/src/components/Icon/brand/programming-language-c.svg +5 -0
  222. package/src/components/Icon/brand/programming-language-clojure.svg +5 -0
  223. package/src/components/Icon/brand/programming-language-csharp.svg +4 -0
  224. package/src/components/Icon/brand/programming-language-css3.svg +4 -0
  225. package/src/components/Icon/brand/programming-language-go.svg +4 -0
  226. package/src/components/Icon/brand/programming-language-html5.svg +4 -0
  227. package/src/components/Icon/brand/programming-language-java.svg +21 -0
  228. package/src/components/Icon/brand/programming-language-javascript-js.svg +4 -0
  229. package/src/components/Icon/brand/programming-language-json.svg +8 -0
  230. package/src/components/Icon/brand/programming-language-kotlin.svg +3 -0
  231. package/src/components/Icon/brand/programming-language-node.svg +10 -0
  232. package/src/components/Icon/brand/programming-language-objc.svg +6 -0
  233. package/src/components/Icon/brand/programming-language-ocaml.svg +4 -0
  234. package/src/components/Icon/brand/programming-language-php.svg +4 -0
  235. package/src/components/Icon/brand/programming-language-powershell.svg +10 -0
  236. package/src/components/Icon/brand/programming-language-python.svg +4 -0
  237. package/src/components/Icon/brand/programming-language-r.svg +7 -0
  238. package/src/components/Icon/brand/programming-language-ruby.svg +5 -0
  239. package/src/components/Icon/brand/programming-language-scala.svg +5 -0
  240. package/src/components/Icon/brand/programming-language-shell.svg +5 -0
  241. package/src/components/Icon/brand/programming-language-swift.svg +4 -0
  242. package/src/components/Icon/brand/programming-language-typescript.svg +5 -0
  243. package/src/components/Icon/brand/programming-tool-git.svg +1 -0
  244. package/src/components/Icon/brand/programming-tool-tailwindcss.svg +5 -0
  245. package/src/components/Icon/icons/Add.svg +4 -0
  246. package/src/components/Icon/icons/ArrowDown.svg +3 -0
  247. package/src/components/Icon/icons/ArrowLeft.svg +3 -0
  248. package/src/components/Icon/icons/ArrowRight.svg +3 -0
  249. package/src/components/Icon/icons/ArrowUp.svg +3 -0
  250. package/src/components/Icon/icons/Background.svg +8 -0
  251. package/src/components/Icon/icons/CallToAction.svg +5 -0
  252. package/src/components/Icon/icons/CheckMark.svg +3 -0
  253. package/src/components/Icon/icons/ChevronDown.svg +3 -0
  254. package/src/components/Icon/icons/ChevronLeft.svg +3 -0
  255. package/src/components/Icon/icons/ChevronRight.svg +3 -0
  256. package/src/components/Icon/icons/ChevronUp.svg +3 -0
  257. package/src/components/Icon/icons/Close.svg +3 -0
  258. package/src/components/Icon/icons/DarkMode.svg +4 -0
  259. package/src/components/Icon/icons/Delete.svg +5 -0
  260. package/src/components/Icon/icons/Discord.svg +5 -0
  261. package/src/components/Icon/icons/Duplicate.svg +6 -0
  262. package/src/components/Icon/icons/Edit.svg +4 -0
  263. package/src/components/Icon/icons/EditorBold.svg +4 -0
  264. package/src/components/Icon/icons/EditorCode.svg +6 -0
  265. package/src/components/Icon/icons/EditorHighlight.svg +12 -0
  266. package/src/components/Icon/icons/EditorItalic.svg +4 -0
  267. package/src/components/Icon/icons/EditorLink.svg +8 -0
  268. package/src/components/Icon/icons/EditorStrike.svg +4 -0
  269. package/src/components/Icon/icons/EditorUnderline.svg +6 -0
  270. package/src/components/Icon/icons/Ellipses.svg +4 -0
  271. package/src/components/Icon/icons/Error.svg +4 -0
  272. package/src/components/Icon/icons/ExternalLink.svg +7 -0
  273. package/src/components/Icon/icons/Folder.svg +4 -0
  274. package/src/components/Icon/icons/GitHub.svg +4 -0
  275. package/src/components/Icon/icons/Google.svg +4 -0
  276. package/src/components/Icon/icons/Hide.svg +5 -0
  277. package/src/components/Icon/icons/Key.svg +5 -0
  278. package/src/components/Icon/icons/Leave.svg +5 -0
  279. package/src/components/Icon/icons/LightMode.svg +6 -0
  280. package/src/components/Icon/icons/Link.svg +5 -0
  281. package/src/components/Icon/icons/Lock.svg +4 -0
  282. package/src/components/Icon/icons/Logo.svg +4 -0
  283. package/src/components/Icon/icons/LogoAPI.svg +4 -0
  284. package/src/components/Icon/icons/LogoClient.svg +4 -0
  285. package/src/components/Icon/icons/LogoMarket.svg +4 -0
  286. package/src/components/Icon/icons/LogoSwagger.svg +4 -0
  287. package/src/components/Icon/icons/Magic.svg +5 -0
  288. package/src/components/Icon/icons/Menu.svg +3 -0
  289. package/src/components/Icon/icons/Page.svg +8 -0
  290. package/src/components/Icon/icons/Payment.svg +5 -0
  291. package/src/components/Icon/icons/Refresh.svg +4 -0
  292. package/src/components/Icon/icons/Search.svg +4 -0
  293. package/src/components/Icon/icons/Show.svg +5 -0
  294. package/src/components/Icon/icons/Sigma.svg +4 -0
  295. package/src/components/Icon/icons/Trash.svg +5 -0
  296. package/src/components/Icon/icons/index.ts +65 -0
  297. package/src/components/Icon/index.ts +2 -0
  298. package/src/components/Icon/line/arrow-chevron-down.svg +1 -0
  299. package/src/components/Icon/line/arrow-chevron-left.svg +1 -0
  300. package/src/components/Icon/line/arrow-chevron-right.svg +1 -0
  301. package/src/components/Icon/line/arrow-chevron-up.svg +1 -0
  302. package/src/components/Icon/line/arrow-down.svg +1 -0
  303. package/src/components/Icon/line/arrow-left.svg +1 -0
  304. package/src/components/Icon/line/arrow-right.svg +1 -0
  305. package/src/components/Icon/line/arrow-up.svg +1 -0
  306. package/src/components/Icon/line/basic-shape-diamond.svg +1 -0
  307. package/src/components/Icon/line/basic-shape-hexagon.svg +1 -0
  308. package/src/components/Icon/line/basic-shape-primary-circle-ellipse-round.svg +1 -0
  309. package/src/components/Icon/line/basic-shape-primary-square-rectangle.svg +1 -0
  310. package/src/components/Icon/line/basic-shape-shield.svg +1 -0
  311. package/src/components/Icon/line/computer-device-desktop-monitor.svg +1 -0
  312. package/src/components/Icon/line/computer-device-desktop.svg +1 -0
  313. package/src/components/Icon/line/computer-device-laptop.svg +1 -0
  314. package/src/components/Icon/line/computer-device-mobile-phone-android-samsung-back.svg +1 -0
  315. package/src/components/Icon/line/computer-device-mobile-phone-android-samsung.svg +1 -0
  316. package/src/components/Icon/line/computer-device-mobile-phone-iphone-x-back.svg +1 -0
  317. package/src/components/Icon/line/computer-device-mobile-phone-iphone-x.svg +1 -0
  318. package/src/components/Icon/line/computer-device-mobile-tablet-touch.svg +1 -0
  319. package/src/components/Icon/line/computer-device-mobile-tablet.svg +1 -0
  320. package/src/components/Icon/line/computer-device-network-ethernet-cat6.svg +1 -0
  321. package/src/components/Icon/line/computer-device-network-lan-www.svg +1 -0
  322. package/src/components/Icon/line/computer-device-network-wifi-connection.svg +1 -0
  323. package/src/components/Icon/line/computer-device-network-wifi-router.svg +1 -0
  324. package/src/components/Icon/line/computer-keyboard-alt.svg +1 -0
  325. package/src/components/Icon/line/computer-keyboard-command-cmd-control-ctrl.svg +1 -0
  326. package/src/components/Icon/line/computer-keyboard-option.svg +1 -0
  327. package/src/components/Icon/line/computer-keyboard-shift.svg +1 -0
  328. package/src/components/Icon/line/ecology-science-erlenmeyer-flask.svg +1 -0
  329. package/src/components/Icon/line/entertainment-control-button-circle-left-arrow-rewind.svg +1 -0
  330. package/src/components/Icon/line/entertainment-control-button-circle-pause.svg +1 -0
  331. package/src/components/Icon/line/entertainment-control-button-circle-right-arrow-fast-forward.svg +1 -0
  332. package/src/components/Icon/line/entertainment-control-button-circle-stop-square.svg +1 -0
  333. package/src/components/Icon/line/entertainment-control-button-play-circle.svg +1 -0
  334. package/src/components/Icon/line/entertainment-party-popper-confetti.svg +1 -0
  335. package/src/components/Icon/line/image-flash-lightning.svg +1 -0
  336. package/src/components/Icon/line/image-photo-frame.svg +1 -0
  337. package/src/components/Icon/line/image-picture-flower.svg +1 -0
  338. package/src/components/Icon/line/interface-add.svg +1 -0
  339. package/src/components/Icon/line/interface-alert-error-exclamation-block-square.svg +1 -0
  340. package/src/components/Icon/line/interface-alert-error-x-block-square.svg +1 -0
  341. package/src/components/Icon/line/interface-alert-exclamation-diamond.svg +1 -0
  342. package/src/components/Icon/line/interface-alert-exclamation-triangle-warning.svg +1 -0
  343. package/src/components/Icon/line/interface-alert-information-circle.svg +1 -0
  344. package/src/components/Icon/line/interface-award-crown.svg +1 -0
  345. package/src/components/Icon/line/interface-bookmark-tag.svg +1 -0
  346. package/src/components/Icon/line/interface-bookmark.svg +1 -0
  347. package/src/components/Icon/line/interface-calendar-date-one.svg +1 -0
  348. package/src/components/Icon/line/interface-close.svg +1 -0
  349. package/src/components/Icon/line/interface-content-book-open-pages.svg +1 -0
  350. package/src/components/Icon/line/interface-content-book-page.svg +1 -0
  351. package/src/components/Icon/line/interface-content-file.svg +8 -0
  352. package/src/components/Icon/line/interface-content-folder.svg +1 -0
  353. package/src/components/Icon/line/interface-copy-clipboard.svg +1 -0
  354. package/src/components/Icon/line/interface-delete-bin-trash.svg +1 -0
  355. package/src/components/Icon/line/interface-dots-horizontal.svg +1 -0
  356. package/src/components/Icon/line/interface-dots-vertical.svg +1 -0
  357. package/src/components/Icon/line/interface-edit-attachment.svg +1 -0
  358. package/src/components/Icon/line/interface-edit-binocular.svg +1 -0
  359. package/src/components/Icon/line/interface-edit-magic-wand.svg +1 -0
  360. package/src/components/Icon/line/interface-edit-tool-eraser.svg +1 -0
  361. package/src/components/Icon/line/interface-edit-tool-paint-brush.svg +1 -0
  362. package/src/components/Icon/line/interface-edit-tool-paint-roller.svg +1 -0
  363. package/src/components/Icon/line/interface-edit-tool-pen.svg +1 -0
  364. package/src/components/Icon/line/interface-edit-tool-pencil.svg +1 -0
  365. package/src/components/Icon/line/interface-edit-view-eye.svg +1 -0
  366. package/src/components/Icon/line/interface-favorite-award.svg +1 -0
  367. package/src/components/Icon/line/interface-favorite-flag.svg +1 -0
  368. package/src/components/Icon/line/interface-favorite-heart.svg +1 -0
  369. package/src/components/Icon/line/interface-favorite-star.svg +1 -0
  370. package/src/components/Icon/line/interface-favorite-stars-shining.svg +1 -0
  371. package/src/components/Icon/line/interface-favorite-stars-sparkles.svg +1 -0
  372. package/src/components/Icon/line/interface-hierarchy-flowchart.svg +1 -0
  373. package/src/components/Icon/line/interface-home-house.svg +1 -0
  374. package/src/components/Icon/line/interface-hyperlink.svg +1 -0
  375. package/src/components/Icon/line/interface-lighting-brightness.svg +1 -0
  376. package/src/components/Icon/line/interface-lock-closed.svg +1 -0
  377. package/src/components/Icon/line/interface-lock-open-unlock.svg +1 -0
  378. package/src/components/Icon/line/interface-login-key.svg +1 -0
  379. package/src/components/Icon/line/interface-search.svg +1 -0
  380. package/src/components/Icon/line/interface-setting-cog.svg +1 -0
  381. package/src/components/Icon/line/interface-share-megaphone-bullhorn.svg +1 -0
  382. package/src/components/Icon/line/interface-share-rocket.svg +1 -0
  383. package/src/components/Icon/line/interface-share-satellite.svg +1 -0
  384. package/src/components/Icon/line/interface-share-space-ship.svg +1 -0
  385. package/src/components/Icon/line/interface-share.svg +1 -0
  386. package/src/components/Icon/line/interface-signal-square.svg +1 -0
  387. package/src/components/Icon/line/interface-text-formatting-left-open-quote.svg +1 -0
  388. package/src/components/Icon/line/interface-text-formatting-right-close-quote.svg +1 -0
  389. package/src/components/Icon/line/interface-time-clock-circle.svg +1 -0
  390. package/src/components/Icon/line/interface-time-hour-glass.svg +1 -0
  391. package/src/components/Icon/line/interface-users-multiple.svg +1 -0
  392. package/src/components/Icon/line/interface-validation-checkbox-square.svg +1 -0
  393. package/src/components/Icon/line/interface-weather-moon.svg +1 -0
  394. package/src/components/Icon/line/legal-justice-hammer-gavel.svg +1 -0
  395. package/src/components/Icon/line/mail-chat-bubble-square.svg +1 -0
  396. package/src/components/Icon/line/mail-send-email-paper-airplane.svg +1 -0
  397. package/src/components/Icon/line/mail-send-envelope.svg +1 -0
  398. package/src/components/Icon/line/mail-sign-hashtag.svg +1 -0
  399. package/src/components/Icon/line/money-cashier-receipt.svg +1 -0
  400. package/src/components/Icon/line/money-currency-dollar-pay.svg +1 -0
  401. package/src/components/Icon/line/money-graph-arrow-increase.svg +1 -0
  402. package/src/components/Icon/line/money-graph-bar-chart-increase.svg +1 -0
  403. package/src/components/Icon/line/nature-ecology-leaf.svg +1 -0
  404. package/src/components/Icon/line/phone-telephone.svg +1 -0
  405. package/src/components/Icon/line/programming-bug.svg +1 -0
  406. package/src/components/Icon/line/programming-cloud.svg +1 -0
  407. package/src/components/Icon/line/programming-computer-database-server.svg +1 -0
  408. package/src/components/Icon/line/programming-computer-database.svg +1 -0
  409. package/src/components/Icon/line/programming-module-four-layout.svg +1 -0
  410. package/src/components/Icon/line/programming-module-three.svg +1 -0
  411. package/src/components/Icon/line/programming-module.svg +1 -0
  412. package/src/components/Icon/line/programming-script-code.svg +1 -0
  413. package/src/components/Icon/line/shopping-cart.svg +8 -0
  414. package/src/components/Icon/line/shopping-gift-present.svg +1 -0
  415. package/src/components/Icon/line/shopping-shipping-box-parcel-package.svg +1 -0
  416. package/src/components/Icon/line/tag-new-circle.svg +1 -0
  417. package/src/components/Icon/line/travel-map-earth-globe.svg +1 -0
  418. package/src/components/Icon/localIcons.ts +68 -0
  419. package/src/components/Icon/solid/arrow-chevron-down.svg +1 -0
  420. package/src/components/Icon/solid/arrow-chevron-left.svg +1 -0
  421. package/src/components/Icon/solid/arrow-chevron-right.svg +1 -0
  422. package/src/components/Icon/solid/arrow-chevron-up.svg +1 -0
  423. package/src/components/Icon/solid/arrow-down.svg +1 -0
  424. package/src/components/Icon/solid/arrow-left.svg +1 -0
  425. package/src/components/Icon/solid/arrow-right.svg +1 -0
  426. package/src/components/Icon/solid/arrow-up.svg +1 -0
  427. package/src/components/Icon/solid/basic-shape-diamond.svg +1 -0
  428. package/src/components/Icon/solid/basic-shape-hexagon.svg +1 -0
  429. package/src/components/Icon/solid/basic-shape-primary-circle-ellipse-round.svg +1 -0
  430. package/src/components/Icon/solid/basic-shape-primary-square-rectangle.svg +1 -0
  431. package/src/components/Icon/solid/basic-shape-shield.svg +1 -0
  432. package/src/components/Icon/solid/computer-device-desktop-monitor.svg +1 -0
  433. package/src/components/Icon/solid/computer-device-desktop.svg +1 -0
  434. package/src/components/Icon/solid/computer-device-laptop.svg +1 -0
  435. package/src/components/Icon/solid/computer-device-mobile-phone-android-samsung-back.svg +1 -0
  436. package/src/components/Icon/solid/computer-device-mobile-phone-android-samsung.svg +1 -0
  437. package/src/components/Icon/solid/computer-device-mobile-phone-iphone-x-back.svg +1 -0
  438. package/src/components/Icon/solid/computer-device-mobile-phone-iphone-x.svg +1 -0
  439. package/src/components/Icon/solid/computer-device-mobile-tablet-touch.svg +1 -0
  440. package/src/components/Icon/solid/computer-device-mobile-tablet.svg +1 -0
  441. package/src/components/Icon/solid/computer-device-network-ethernet-cat6.svg +1 -0
  442. package/src/components/Icon/solid/computer-device-network-lan-www.svg +1 -0
  443. package/src/components/Icon/solid/computer-device-network-wifi-connection.svg +5 -0
  444. package/src/components/Icon/solid/computer-device-network-wifi-router.svg +1 -0
  445. package/src/components/Icon/solid/computer-keyboard-alt.svg +1 -0
  446. package/src/components/Icon/solid/computer-keyboard-command-cmd-control-ctrl.svg +1 -0
  447. package/src/components/Icon/solid/computer-keyboard-option.svg +1 -0
  448. package/src/components/Icon/solid/computer-keyboard-shift.svg +1 -0
  449. package/src/components/Icon/solid/ecology-science-erlenmeyer-flask.svg +1 -0
  450. package/src/components/Icon/solid/entertainment-control-button-circle-left-arrow-rewind.svg +1 -0
  451. package/src/components/Icon/solid/entertainment-control-button-circle-pause.svg +1 -0
  452. package/src/components/Icon/solid/entertainment-control-button-circle-play.svg +5 -0
  453. package/src/components/Icon/solid/entertainment-control-button-circle-right-arrow-fast-forward.svg +1 -0
  454. package/src/components/Icon/solid/entertainment-control-button-circle-stop-square.svg +1 -0
  455. package/src/components/Icon/solid/entertainment-party-popper-confetti.svg +1 -0
  456. package/src/components/Icon/solid/image-flash-lightning.svg +5 -0
  457. package/src/components/Icon/solid/image-photo-frame.svg +11 -0
  458. package/src/components/Icon/solid/image-picture-flower.svg +5 -0
  459. package/src/components/Icon/solid/interface-add-square.svg +5 -0
  460. package/src/components/Icon/solid/interface-alert-error-exclamation-block-square.svg +1 -0
  461. package/src/components/Icon/solid/interface-alert-error-x-block-square.svg +1 -0
  462. package/src/components/Icon/solid/interface-alert-exclamation-diamond.svg +1 -0
  463. package/src/components/Icon/solid/interface-alert-exclamation-triangle-warning.svg +1 -0
  464. package/src/components/Icon/solid/interface-alert-information-circle.svg +5 -0
  465. package/src/components/Icon/solid/interface-award-crown.svg +5 -0
  466. package/src/components/Icon/solid/interface-bookmark-tag.svg +1 -0
  467. package/src/components/Icon/solid/interface-bookmark.svg +5 -0
  468. package/src/components/Icon/solid/interface-calendar-date-one.svg +5 -0
  469. package/src/components/Icon/solid/interface-close.svg +8 -0
  470. package/src/components/Icon/solid/interface-content-book-open-pages.svg +13 -0
  471. package/src/components/Icon/solid/interface-content-book-page.svg +5 -0
  472. package/src/components/Icon/solid/interface-content-file.svg +5 -0
  473. package/src/components/Icon/solid/interface-content-folder.svg +1 -0
  474. package/src/components/Icon/solid/interface-copy-clipboard.svg +5 -0
  475. package/src/components/Icon/solid/interface-delete-bin-trash.svg +1 -0
  476. package/src/components/Icon/solid/interface-dots-horizontal.svg +1 -0
  477. package/src/components/Icon/solid/interface-dots-vertical.svg +1 -0
  478. package/src/components/Icon/solid/interface-edit-attachment.svg +5 -0
  479. package/src/components/Icon/solid/interface-edit-binocular.svg +5 -0
  480. package/src/components/Icon/solid/interface-edit-magic-wand.svg +7 -0
  481. package/src/components/Icon/solid/interface-edit-tool-eraser.svg +1 -0
  482. package/src/components/Icon/solid/interface-edit-tool-paint-brush.svg +1 -0
  483. package/src/components/Icon/solid/interface-edit-tool-paint-roller.svg +5 -0
  484. package/src/components/Icon/solid/interface-edit-tool-pen.svg +5 -0
  485. package/src/components/Icon/solid/interface-edit-tool-pencil.svg +1 -0
  486. package/src/components/Icon/solid/interface-edit-view-eye.svg +7 -0
  487. package/src/components/Icon/solid/interface-favorite-award.svg +5 -0
  488. package/src/components/Icon/solid/interface-favorite-flag.svg +1 -0
  489. package/src/components/Icon/solid/interface-favorite-heart.svg +5 -0
  490. package/src/components/Icon/solid/interface-favorite-star.svg +5 -0
  491. package/src/components/Icon/solid/interface-favorite-stars-shining.svg +1 -0
  492. package/src/components/Icon/solid/interface-favorite-stars-sparkles.svg +1 -0
  493. package/src/components/Icon/solid/interface-hierarchy-flowchart.svg +5 -0
  494. package/src/components/Icon/solid/interface-home-house.svg +5 -0
  495. package/src/components/Icon/solid/interface-hyperlink.svg +5 -0
  496. package/src/components/Icon/solid/interface-lighting-brightness.svg +22 -0
  497. package/src/components/Icon/solid/interface-lock-closed.svg +5 -0
  498. package/src/components/Icon/solid/interface-lock-open-unlock.svg +1 -0
  499. package/src/components/Icon/solid/interface-login-key.svg +5 -0
  500. package/src/components/Icon/solid/interface-search.svg +5 -0
  501. package/src/components/Icon/solid/interface-setting-cog.svg +5 -0
  502. package/src/components/Icon/solid/interface-share-megaphone-bullhorn.svg +5 -0
  503. package/src/components/Icon/solid/interface-share-rocket.svg +1 -0
  504. package/src/components/Icon/solid/interface-share-satellite.svg +8 -0
  505. package/src/components/Icon/solid/interface-share-space-ship.svg +1 -0
  506. package/src/components/Icon/solid/interface-share.svg +5 -0
  507. package/src/components/Icon/solid/interface-signal-square.svg +5 -0
  508. package/src/components/Icon/solid/interface-text-formatting-left-open-quote.svg +1 -0
  509. package/src/components/Icon/solid/interface-text-formatting-right-close-quote.svg +1 -0
  510. package/src/components/Icon/solid/interface-time-clock-circle.svg +5 -0
  511. package/src/components/Icon/solid/interface-time-hour-glass.svg +1 -0
  512. package/src/components/Icon/solid/interface-users-multiple.svg +11 -0
  513. package/src/components/Icon/solid/interface-validation-checkbox-square.svg +5 -0
  514. package/src/components/Icon/solid/interface-weather-moon.svg +5 -0
  515. package/src/components/Icon/solid/legal-justice-hammer-gavel.svg +1 -0
  516. package/src/components/Icon/solid/mail-chat-bubble-square.svg +5 -0
  517. package/src/components/Icon/solid/mail-send-email-paper-airplane.svg +5 -0
  518. package/src/components/Icon/solid/mail-send-envelope.svg +1 -0
  519. package/src/components/Icon/solid/mail-sign-hashtag.svg +5 -0
  520. package/src/components/Icon/solid/money-cashier-receipt.svg +1 -0
  521. package/src/components/Icon/solid/money-currency-dollar-pay.svg +5 -0
  522. package/src/components/Icon/solid/money-graph-arrow-increase.svg +5 -0
  523. package/src/components/Icon/solid/money-graph-bar-chart-increase.svg +1 -0
  524. package/src/components/Icon/solid/nature-ecology-leaf.svg +5 -0
  525. package/src/components/Icon/solid/phone-telephone.svg +5 -0
  526. package/src/components/Icon/solid/programming-bug.svg +5 -0
  527. package/src/components/Icon/solid/programming-cloud.svg +4 -0
  528. package/src/components/Icon/solid/programming-computer-database-server.svg +5 -0
  529. package/src/components/Icon/solid/programming-computer-database.svg +5 -0
  530. package/src/components/Icon/solid/programming-module-four-layout.svg +1 -0
  531. package/src/components/Icon/solid/programming-module-three.svg +1 -0
  532. package/src/components/Icon/solid/programming-module.svg +1 -0
  533. package/src/components/Icon/solid/programming-script-code.svg +5 -0
  534. package/src/components/Icon/solid/shopping-cart.svg +1 -0
  535. package/src/components/Icon/solid/shopping-gift-present.svg +16 -0
  536. package/src/components/Icon/solid/shopping-shipping-box-parcel-package.svg +11 -0
  537. package/src/components/Icon/solid/tag-new-circle.svg +7 -0
  538. package/src/components/Icon/solid/travel-map-earth-globe.svg +5 -0
  539. package/src/components/Sidebar.vue +282 -0
  540. package/src/components/SidebarElement.vue +133 -0
  541. package/src/components/SidebarGroup.vue +12 -0
  542. package/src/declarations/typographic-base.d.ts +1 -0
  543. package/src/helpers/generateAxiosCodeFromRequest.ts +42 -0
  544. package/src/helpers/generateLaravelCodeFromRequest.ts +20 -0
  545. package/src/helpers/index.ts +4 -0
  546. package/src/helpers/objectMerge.ts +19 -0
  547. package/src/helpers/transformToJson.ts +22 -0
  548. package/src/hooks/useSwaggerParser.test.ts +7 -0
  549. package/src/hooks/useSwaggerParser.ts +79 -0
  550. package/src/index.ts +6 -0
  551. package/src/stores/template.ts +66 -0
  552. package/src/stores/utility.ts +23 -0
  553. package/src/types.ts +151 -0
  554. package/tsconfig.build.json +11 -0
  555. package/tsconfig.json +20 -0
  556. package/vite.config.ts +18 -0
@@ -0,0 +1,16 @@
1
+ <svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M4.488,3.12a.25.25,0,0,0-.25-.25H1.5a1,1,0,0,0-1,.989V4.882a.994.994,0,0,0,1,.988H4.242a.249.249,0,0,0,.25-.25Z"
4
+ fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
5
+ <path
6
+ d="M9.5,3.859a1,1,0,0,0-1-.989H5.738a.252.252,0,0,0-.177.074.249.249,0,0,0-.073.177l0,2.5a.249.249,0,0,0,.25.249H8.5a.994.994,0,0,0,1-.988Z"
7
+ fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
8
+ <path
9
+ d="M4.5,7.12a.251.251,0,0,0-.25-.25H1.5a.5.5,0,0,0-.5.5V8.882A.994.994,0,0,0,2,9.87H4.249A.251.251,0,0,0,4.426,9.8.255.255,0,0,0,4.5,9.62Z"
10
+ fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
11
+ <path
12
+ d="M5.745,6.87a.25.25,0,0,0-.177.074.245.245,0,0,0-.073.177l0,2.5a.249.249,0,0,0,.25.249H8a.994.994,0,0,0,1-.988V7.37a.5.5,0,0,0-.5-.5Z"
13
+ fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
14
+ <path d="M6.8.23a.5.5,0,0,0-.7.1L5,1.8,3.9.33a.5.5,0,0,0-.8.6l1.5,2a.5.5,0,0,0,.8,0l1.5-2A.5.5,0,0,0,6.8.23Z"
15
+ fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
16
+ </svg>
@@ -0,0 +1,11 @@
1
+ <svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M9.429,2.75A.251.251,0,0,0,9.657,2.4L8.836.552A1,1,0,0,0,7.941,0H5.75A.25.25,0,0,0,5.5.25V2.5a.25.25,0,0,0,.25.25Z"
4
+ fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
5
+ <path
6
+ d="M4.25,2.75A.25.25,0,0,0,4.5,2.5V.25A.25.25,0,0,0,4.25,0H2.059a1,1,0,0,0-.905.573L.344,2.4a.247.247,0,0,0,.018.237.251.251,0,0,0,.21.114Z"
7
+ fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
8
+ <path
9
+ d="M9.75,3.75H.25A.25.25,0,0,0,0,4V8.5A1.5,1.5,0,0,0,1.5,10h7A1.5,1.5,0,0,0,10,8.5V4A.25.25,0,0,0,9.75,3.75Zm-2,4.375H6.5a.625.625,0,0,1,0-1.25H7.75a.625.625,0,0,1,0,1.25Z"
10
+ fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
11
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
2
+ <g>
3
+ <path fill="currentColor" fill-rule="evenodd"
4
+ d="M7 14C10.866 14 14 10.866 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14ZM5.46623 5.1152C5.55999 5.02143 5.68717 4.96875 5.81978 4.96875H7.65939C7.93553 4.96875 8.15939 5.19261 8.15939 5.46875C8.15939 5.74489 7.93553 5.96875 7.65939 5.96875H6.31978V6.37244H7.42944C7.70558 6.37244 7.92944 6.59629 7.92944 6.87244C7.92944 7.14858 7.70558 7.37244 7.42944 7.37244H6.31978V8.03125H7.65939C7.93553 8.03125 8.15939 8.25511 8.15939 8.53125C8.15939 8.80739 7.93553 9.03125 7.65939 9.03125H5.81978C5.54364 9.03125 5.31978 8.80739 5.31978 8.53125V6.87244V5.46875C5.31978 5.33614 5.37246 5.20896 5.46623 5.1152ZM1.88323 4.9902C2.09411 4.92635 2.32193 5.00807 2.44415 5.1914L3.56979 6.87986V5.46875C3.56979 5.19261 3.79365 4.96875 4.06979 4.96875C4.34593 4.96875 4.56979 5.19261 4.56979 5.46875V8.53125C4.56979 8.75158 4.42556 8.94595 4.21468 9.0098C4.0038 9.07365 3.77598 8.99193 3.65376 8.8086L2.52812 7.12014V8.53125C2.52812 8.80739 2.30426 9.03125 2.02812 9.03125C1.75198 9.03125 1.52812 8.80739 1.52812 8.53125V5.46875C1.52812 5.24842 1.67235 5.05405 1.88323 4.9902ZM11.3229 9.03125C11.6473 9.03125 11.9241 8.79676 11.9774 8.47682L12.4651 5.55095C12.5105 5.27856 12.3265 5.02095 12.0541 4.97555C11.7817 4.93016 11.5241 5.11417 11.4787 5.38655L11.2094 7.00229L10.998 6.38738C10.9162 6.14938 10.6923 5.98958 10.4406 5.98958C10.189 5.98958 9.96505 6.14938 9.88324 6.38738L9.67186 7.00229L9.40257 5.38655C9.35718 5.11417 9.09956 4.93016 8.82718 4.97556C8.55479 5.02095 8.37078 5.27857 8.41618 5.55095L8.90383 8.47682C8.95715 8.79676 9.23396 9.03125 9.55831 9.03125C9.84162 9.03125 10.0937 8.85136 10.1858 8.58343L10.4406 7.84206L10.6955 8.58343C10.7876 8.85136 11.0396 9.03125 11.3229 9.03125Z"
5
+ clip-rule="evenodd"></path>
6
+ </g>
7
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
2
+ <path fill="currentColor" fill-rule="evenodd"
3
+ d="M1.50226 6.99999C1.50226 3.96368 3.96368 1.50226 6.99999 1.50226C7.78361 1.50226 8.52894 1.66621 9.20354 1.96167V2.23813C9.20354 2.68368 9.02655 3.11098 8.7115 3.42603C8.39645 3.74108 7.96915 3.91808 7.5236 3.91808C7.29823 3.91795 7.07515 3.96318 6.86762 4.05105C6.6601 4.13893 6.47237 4.26767 6.31563 4.42959C6.15888 4.59152 6.03632 4.78333 5.95523 4.9936C5.87415 5.20388 5.83621 5.42832 5.84366 5.65356V7.04194C5.84366 7.26256 5.8002 7.48101 5.71578 7.68483C5.63135 7.88865 5.50761 8.07385 5.35161 8.22984C5.19561 8.38584 5.01042 8.50959 4.8066 8.59401C4.60278 8.67844 4.38432 8.72189 4.16371 8.72189H2.46988H1.7773C1.59883 8.18025 1.50226 7.6014 1.50226 6.99999ZM9.71406 11.7822C10.8973 11.1092 11.8063 10.0098 12.2321 8.69311L12.0961 8.5934C11.6577 8.36683 11.1726 8.24555 10.6791 8.23917H8.80677C8.42317 8.274 8.06645 8.45101 7.8067 8.73543C7.54694 9.01984 7.40292 9.39111 7.40292 9.77629C7.40292 10.1615 7.54694 10.5327 7.8067 10.8171C8.06645 11.1016 8.42317 11.2786 8.80677 11.3134C8.95071 11.3117 9.09355 11.3386 9.22702 11.3926C9.36049 11.4465 9.48192 11.5264 9.5843 11.6276C9.63237 11.6751 9.67579 11.7269 9.71406 11.7822ZM6.99999 0.0022583C3.13525 0.0022583 0.0022583 3.13525 0.0022583 6.99999C0.0022583 10.8647 3.13525 13.9977 6.99999 13.9977C10.8647 13.9977 13.9977 10.8647 13.9977 6.99999C13.9977 3.13525 10.8647 0.0022583 6.99999 0.0022583Z"
4
+ clip-rule="evenodd"></path>
5
+ </svg>
@@ -0,0 +1,282 @@
1
+ <script setup lang="ts">
2
+ import { generateRequest, useApiClientRequestStore } from '@scalar/api-client'
3
+ import { useApiClientStore, useOperation } from '@scalar/api-client'
4
+ import { useMediaQuery } from '@vueuse/core'
5
+
6
+ import { useTemplateStore } from '../stores/template'
7
+ import type { Operation, Spec } from '../types'
8
+ import FindAnythingButton from './FindAnythingButton.vue'
9
+ import SidebarElement from './SidebarElement.vue'
10
+ import SidebarGroup from './SidebarGroup.vue'
11
+
12
+ const props = defineProps<{ spec: Spec }>()
13
+
14
+ const { state, setActiveSidebar, toggleApiClient } = useApiClientStore()
15
+
16
+ const { setActiveRequest } = useApiClientRequestStore()
17
+
18
+ function showItemInClient(operation: Operation) {
19
+ const { parameterMap } = useOperation({ operation })
20
+ const item = generateRequest(
21
+ operation,
22
+ parameterMap.value,
23
+ props.spec.servers[0],
24
+ )
25
+ setActiveRequest(item)
26
+ toggleApiClient(item, true)
27
+ }
28
+
29
+ const scrollToEndpoint = (item: Operation) => {
30
+ setActiveSidebar(item.operationId)
31
+ if (state.showApiClient) {
32
+ showItemInClient(item)
33
+ }
34
+ document.getElementById(`endpoint/${item.operationId}`)?.scrollIntoView()
35
+ }
36
+
37
+ const isMobile = useMediaQuery('(max-width: 1000px)')
38
+
39
+ const {
40
+ state: templateState,
41
+ setItem: setTemplateItem,
42
+ toggleCollapsedSidebarItem,
43
+ setCollapsedSidebarItem,
44
+ } = useTemplateStore()
45
+ </script>
46
+ <template>
47
+ <div class="sidebar">
48
+ <FindAnythingButton
49
+ v-if="!isMobile"
50
+ @click="setTemplateItem('showSearch', true)" />
51
+ <div class="pages custom-scroll custom-scroll-self-contain-overflow">
52
+ <SidebarGroup :level="0">
53
+ <template v-for="tag in spec.tags">
54
+ <SidebarElement
55
+ v-if="tag.operations?.length > 0"
56
+ :key="tag.name"
57
+ :hasChildren="true"
58
+ :isActive="false"
59
+ :item="{
60
+ uid: '',
61
+ title: tag.name.toUpperCase(),
62
+ type: 'Folder',
63
+ }"
64
+ :open="templateState.collapsedSidebarItems[tag.name]"
65
+ @select="() => toggleCollapsedSidebarItem(tag.name)"
66
+ @toggleOpen="toggleCollapsedSidebarItem(tag.name)">
67
+ <SidebarGroup :level="0">
68
+ <SidebarElement
69
+ v-for="operation in tag.operations"
70
+ :key="operation.operationId"
71
+ :isActive="state.activeSidebar === operation.operationId"
72
+ :item="{
73
+ uid: '',
74
+ title: operation.name || operation.path,
75
+ type: 'Page',
76
+ }"
77
+ @select="
78
+ () => {
79
+ setCollapsedSidebarItem(tag.name, true)
80
+ scrollToEndpoint(operation)
81
+ }
82
+ " />
83
+ </SidebarGroup>
84
+ </SidebarElement>
85
+ </template>
86
+ </SidebarGroup>
87
+ </div>
88
+ </div>
89
+ </template>
90
+
91
+ <style>
92
+ .sidebar {
93
+ --theme-sidebar-indent-base: 6px;
94
+ /* prettier-ignore */
95
+ background: var(--scalar-api-reference-sidebar-background-1, var(--scalar-api-reference-theme-background-1));
96
+ }
97
+
98
+ /* ----------------------------------------------------- */
99
+ /* Main sidebar styles */
100
+
101
+ .sidebar {
102
+ flex: 1;
103
+ height: 100%;
104
+ display: flex;
105
+ flex-direction: column;
106
+ /* prettier-ignore */
107
+ background: var(--scalar-api-reference-sidebar-background-1, var(--scalar-api-reference-theme-background-1));
108
+ --sidebar-level: 0;
109
+ }
110
+
111
+ .pages {
112
+ padding-top: 9px;
113
+ padding-bottom: 9px;
114
+ }
115
+
116
+ .sidebar-group {
117
+ list-style: none;
118
+ width: 100%;
119
+ }
120
+
121
+ .sidebar-heading {
122
+ display: flex;
123
+ gap: 6px;
124
+
125
+ /* prettier-ignore */
126
+ color: var(--scalar-api-reference-sidebar-color-2, var(--scalar-api-reference-theme-color-2));
127
+ font-size: var(--scalar-api-reference-theme-mini);
128
+ font-weight: var(--scalar-api-reference-theme-semibold);
129
+ word-break: break-word;
130
+ line-height: 1.385;
131
+ display: flex;
132
+ align-items: center;
133
+ max-width: 100%;
134
+ position: relative;
135
+ cursor: pointer;
136
+ /* prettier-ignore */
137
+ border-radius: 0 var(--scalar-api-reference-theme-radius) var(--scalar-api-reference-theme-radius) 0;
138
+ flex: 1;
139
+ padding-right: 12px;
140
+ user-select: none;
141
+ }
142
+
143
+ /* Folder/page collapse icon */
144
+ .toggle-nested-icon {
145
+ border: none;
146
+ position: absolute !important;
147
+ left: 2px;
148
+ top: 50%;
149
+ transform: translateY(-50%);
150
+ color: currentColor;
151
+ }
152
+
153
+ .toggle-nested-icon:hover,
154
+ .toggle-nested-icon:focus-visible {
155
+ color: currentColor;
156
+ filter: drop-shadow(0 0.125px 0 currentColor)
157
+ drop-shadow(0 -0.125px 0 currentColor);
158
+ }
159
+
160
+ /* We indent each level of nesting further */
161
+ .sidebar-indent-nested .sidebar-heading {
162
+ /* prettier-ignore */
163
+ padding-left: calc((var(--sidebar-level) * var(--theme-sidebar-indent-base)) + 24px) !important;
164
+ }
165
+
166
+ /* Collapse/expand icons must also be offset */
167
+ .sidebar-indent-nested .sidebar-heading .toggle-nested-icon {
168
+ /* prettier-ignore */
169
+ left: calc((var(--sidebar-level) * var(--theme-sidebar-indent-base)) + 2px) !important;
170
+ }
171
+
172
+ .sidebar-heading-link {
173
+ padding-right: 12px;
174
+ padding: 6px 0;
175
+ display: flex;
176
+ align-items: center;
177
+ }
178
+
179
+ /* Sidebar link icon */
180
+ .link-icon {
181
+ position: relative;
182
+ left: 4px;
183
+ }
184
+
185
+ .sidebar-icon {
186
+ display: flex;
187
+ align-items: center;
188
+ justify-content: center;
189
+ margin-right: 6px;
190
+
191
+ width: 13px;
192
+ height: 13px;
193
+ }
194
+
195
+ .sidebar-icon > svg {
196
+ width: 13px;
197
+ height: 13px;
198
+ }
199
+
200
+ .sidebar-heading:hover {
201
+ /* prettier-ignore */
202
+ color: var(--scalar-api-reference-sidebar-color-1, var(--scalar-api-reference-theme-color-1));
203
+ /* prettier-ignore */
204
+ background: var(--scalar-api-reference-sidebar-item-hover-background, var(--scalar-api-reference-theme-background-3));
205
+ }
206
+
207
+ .active_page.sidebar-heading:hover,
208
+ .active_page.sidebar-heading,
209
+ .marc_active .sidebar-heading {
210
+ /* prettier-ignore */
211
+ background: var(--sidebar-item-active-background, var(--scalar-api-reference-theme-background-3)) !important;
212
+ /* prettier-ignore */
213
+ color: var(--scalar-api-reference-sidebar-color-active, var(--scalar-api-reference-theme-color-accent)) !important;
214
+ }
215
+ .sidebar-group-item {
216
+ position: relative;
217
+ }
218
+
219
+ /* Change font colors and weights for nested items */
220
+ .sidebar-indent-nested .sidebar-heading {
221
+ /* prettier-ignore */
222
+ color: var(--scalar-api-reference-sidebar-color-1, var(--scalar-api-reference-theme-color-1));
223
+ }
224
+ .sidebar-indent-nested .sidebar-indent-nested .sidebar-heading {
225
+ /* prettier-ignore */
226
+ color: var(--scalar-api-reference-sidebar-color-2, var(--scalar-api-reference-theme-color-2));
227
+ }
228
+ .sidebar-indent-nested > div:has(.active_page) .sidebar-heading {
229
+ font-weight: var(--scalar-api-reference-theme-bold);
230
+ }
231
+
232
+ .sidebar-mobile-header {
233
+ display: flex;
234
+ align-items: center;
235
+ gap: 12px;
236
+ height: 100%;
237
+ width: 100%;
238
+ padding: 0 6px;
239
+ }
240
+
241
+ .sidebar-mobile-breadcrumbs {
242
+ flex: 1;
243
+ min-width: 0;
244
+ overflow: hidden;
245
+ white-space: nowrap;
246
+ text-overflow: ellipsis;
247
+ font-size: var(--scalar-api-reference-theme-small);
248
+ font-weight: var(--scalar-api-reference-theme-semibold);
249
+ }
250
+
251
+ .sidebar-mobile-actions {
252
+ display: flex;
253
+ flex-direction: row;
254
+ gap: 4px;
255
+ height: 24px;
256
+ align-items: center;
257
+ padding: 0 4px;
258
+ }
259
+
260
+ .sidebar-mobile-actions .sidebar-mobile-darkmode-toggle {
261
+ height: 16px;
262
+ width: 16px;
263
+ }
264
+
265
+ @media (max-width: 1000px) {
266
+ .sidebar {
267
+ min-height: 0;
268
+ }
269
+
270
+ .pages {
271
+ padding-top: 12px;
272
+ }
273
+ }
274
+
275
+ @media (max-width: 500px) {
276
+ .header-item-link.header-item-active,
277
+ .sidebar-section,
278
+ .sidebar-heading {
279
+ font-size: var(--scalar-api-reference-theme-mini);
280
+ }
281
+ }
282
+ </style>
@@ -0,0 +1,133 @@
1
+ <script setup lang="ts">
2
+ import { computed } from 'vue'
3
+
4
+ import FlowIconButton from '../components/FlowIconButton.vue'
5
+ import { FlowIcon, Icon } from './Icon'
6
+
7
+ const props = defineProps<{
8
+ item: {
9
+ uid: string
10
+ title: string
11
+ type: 'Page' | 'Folder' | 'Link'
12
+ link?: string
13
+ icon?: {
14
+ src: string
15
+ }
16
+ }
17
+ isActive?: boolean
18
+ hasChildren?: boolean
19
+ open?: boolean
20
+ }>()
21
+
22
+ const emit = defineEmits<{
23
+ (e: 'select'): void
24
+ (e: 'toggleOpen'): void
25
+ }>()
26
+
27
+ enum ElementType {
28
+ Page = 'Page',
29
+ Folder = 'Folder',
30
+ Link = 'Link',
31
+ }
32
+
33
+ const linkProps = computed(() => {
34
+ const item = props.item
35
+ if (item.type === ElementType.Link) {
36
+ return {
37
+ href: item.link,
38
+ rel: 'noopener noreferrer',
39
+ target: '_blank',
40
+ }
41
+ }
42
+
43
+ return {}
44
+ })
45
+
46
+ function handleClick() {
47
+ if (props.item.type === ElementType.Link) return
48
+
49
+ if (props.item.type === ElementType.Folder) {
50
+ emit('toggleOpen')
51
+ return
52
+ }
53
+
54
+ emit('select')
55
+ }
56
+
57
+ function handleToggleOpen() {
58
+ // Allow bubbled event to trigger folder open
59
+ if (props.item.type === ElementType.Folder) return
60
+
61
+ emit('toggleOpen')
62
+ }
63
+ </script>
64
+ <template>
65
+ <li class="sidebar-group-item">
66
+ <div
67
+ class="sidebar-heading"
68
+ :class="{ active_page: isActive }"
69
+ @click="handleClick">
70
+ <!-- If children are detected then show the nesting icon -->
71
+ <FlowIconButton
72
+ v-if="hasChildren || item.type === ElementType.Folder"
73
+ class="toggle-nested-icon"
74
+ :icon="open ? 'ChevronDown' : 'ChevronRight'"
75
+ label="Toggle group"
76
+ variant="text"
77
+ width="20px"
78
+ @click="handleToggleOpen" />
79
+ <a
80
+ class="flex-1 sidebar-heading-link"
81
+ v-bind="linkProps">
82
+ <Icon
83
+ v-if="item?.icon?.src"
84
+ class="sidebar-icon"
85
+ :src="item.icon.src" />
86
+ <p>{{ item.title }}</p>
87
+ </a>
88
+ <FlowIcon
89
+ v-if="item?.type === ElementType.Link"
90
+ class="link-icon"
91
+ icon="ExternalLink"
92
+ width="16px" />
93
+ </div>
94
+ <slot v-if="open" />
95
+ <div
96
+ v-if="$slots['action-menu']"
97
+ class="action-menu">
98
+ <slot name="action-menu"></slot>
99
+ </div>
100
+ </li>
101
+ </template>
102
+ <style scoped>
103
+ .action-menu {
104
+ position: absolute;
105
+ top: 5px;
106
+ right: 5px;
107
+ display: flex;
108
+ gap: 6px;
109
+ }
110
+ /**
111
+ * Some awkwardness to make the dropdown buttons hidden when not hovered
112
+ * but still show when the panel is open and focused
113
+ */
114
+ .action-menu :deep(.button-wrapper button) {
115
+ /* Hide the icons by default */
116
+ opacity: 0;
117
+ width: 20px;
118
+ height: 20px;
119
+ padding: 4px;
120
+ }
121
+ .action-menu:hover :deep(.button-wrapper button),
122
+ .action-menu :deep(.button-wrapper button:hover),
123
+ .sidebar-heading:hover ~ .action-menu :deep(.button-wrapper button),
124
+ .action-menu :deep(.button-wrapper button[aria-expanded='true']) {
125
+ opacity: 1;
126
+ }
127
+ .sidebar-heading:has(~ .action-menu:hover) {
128
+ /* prettier-ignore */
129
+ color: var(--scalar-api-reference-sidebar-color-1, var(--scalar-api-reference-theme-color-1));
130
+ /* prettier-ignore */
131
+ background: var(--scalar-api-reference-sidebar-item-hover-background, var(--scalar-api-reference-theme-background-3));
132
+ }
133
+ </style>
@@ -0,0 +1,12 @@
1
+ <script setup lang="ts">
2
+ defineProps<{
3
+ level: number
4
+ }>()
5
+ </script>
6
+ <template>
7
+ <ul
8
+ class="sidebar-group sidebar-indent-nested"
9
+ :style="{ '--sidebar-level': level }">
10
+ <slot />
11
+ </ul>
12
+ </template>
@@ -0,0 +1 @@
1
+ declare module 'typographic-base'
@@ -0,0 +1,42 @@
1
+ type HarRequestHeader = {
2
+ name: string
3
+ value: string
4
+ }
5
+
6
+ type HarRequest = {
7
+ url: string
8
+ method: string
9
+ headers?: HarRequestHeader[]
10
+ }
11
+
12
+ export const generateAxiosCodeFromRequest = (request: HarRequest) => {
13
+ const lines: string[] = []
14
+
15
+ lines.push(`import axios from 'axios'`)
16
+ lines.push(``)
17
+ lines.push(`axios({`)
18
+
19
+ const url = request.url
20
+ lines.push(` url: '${url}',`)
21
+
22
+ const method = request.method.toLowerCase()
23
+ lines.push(` method: '${method}',`)
24
+
25
+ if (request.headers) {
26
+ const headers = request.headers
27
+ .map((header) => {
28
+ return ` '${header.name}': '${header.value}',`
29
+ })
30
+ .join('\n')
31
+
32
+ lines.push(` headers: [`)
33
+ lines.push(`${headers}`)
34
+ lines.push(` ],`)
35
+ }
36
+
37
+ lines.push(`}).then(response => {`)
38
+ lines.push(` console.log(response)`)
39
+ lines.push(`})`)
40
+
41
+ return lines.join('\n')
42
+ }
@@ -0,0 +1,20 @@
1
+ type HarRequest = {
2
+ url: string
3
+ method: string
4
+ }
5
+
6
+ export const generateLaravelCodeFromRequest = (request: HarRequest) => {
7
+ const lines: string[] = []
8
+
9
+ lines.push(`<?php`)
10
+ lines.push(``)
11
+ lines.push(`use Illuminate\\Support\\Facades\\Http;`)
12
+ lines.push(``)
13
+
14
+ const method = request.method.toLowerCase()
15
+ const url = request.url
16
+
17
+ lines.push(`$response = Http::${method}('${url}');`)
18
+
19
+ return lines.join('\n')
20
+ }
@@ -0,0 +1,4 @@
1
+ export { generateAxiosCodeFromRequest } from './generateAxiosCodeFromRequest'
2
+ export { generateLaravelCodeFromRequest } from './generateLaravelCodeFromRequest'
3
+ export { objectMerge } from './objectMerge'
4
+ export { transformToJson } from './transformToJson'
@@ -0,0 +1,19 @@
1
+ // TODO: This is a copy of packages/core-interface/src/database/utility.ts
2
+ /**
3
+ * Overwrite a target object a new replacement object handling removed keys
4
+ **/
5
+ export function objectMerge<A extends object, B extends object>(
6
+ target: A,
7
+ replacement: B,
8
+ ) {
9
+ // Clear any keys that have been removed in the replacement
10
+ Object.keys(target).forEach((key) => {
11
+ if (!Object.hasOwn(replacement, key)) {
12
+ delete target[key as keyof A]
13
+ }
14
+ })
15
+
16
+ Object.assign(target, replacement)
17
+
18
+ return target as unknown as B
19
+ }
@@ -0,0 +1,22 @@
1
+ import yaml from 'js-yaml'
2
+
3
+ /**
4
+ * This helper is used to transform the content of the swagger file to JSON, even it was YAML.
5
+ */
6
+ export const transformToJson = (value: string) => {
7
+ try {
8
+ // JSON
9
+ JSON.parse(value)
10
+
11
+ return value
12
+ } catch {
13
+ try {
14
+ // Yaml to JSON
15
+ const doc = yaml.load(value)
16
+ return JSON.stringify(doc)
17
+ } catch {
18
+ // Invalid
19
+ return value
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,7 @@
1
+ import { describe, expect, it } from 'vitest'
2
+
3
+ describe('example', () => {
4
+ it('executes tests', () => {
5
+ expect(true).toBe(true)
6
+ })
7
+ })
@@ -0,0 +1,79 @@
1
+ import { useWebWorker } from '@vueuse/core'
2
+ import { nextTick, ref, watch } from 'vue'
3
+
4
+ import { transformToJson } from '../helpers/transformToJson'
5
+
6
+ const { data, post } = useWebWorker('/web-worker.js')
7
+
8
+ const parserResult = ref<Record<any, any>>()
9
+ const parserError = ref<string>('')
10
+ const parserReady = ref(true)
11
+
12
+ type ErrorObject = { error: string }
13
+
14
+ /**
15
+ * Takes the content of a swagger file and asynchronously calls the given callback with the result.
16
+ */
17
+ export const useSwaggerParser = () => {
18
+ const parseSwaggerFile = async (
19
+ value: string,
20
+ callback: (result: Record<any, any>) => void,
21
+ ) => {
22
+ const jsonValue = transformToJson(value)
23
+
24
+ // Send data to WASM parser.
25
+ const triggeredAction = watch(data, (result: string | ErrorObject) => {
26
+ // Skip if the value is empty.
27
+ if (typeof result === 'string' && result === '') {
28
+ return
29
+ }
30
+
31
+ // Check if the parser had an error.
32
+ if (typeof result === 'object') {
33
+ console.warn('[parseSwaggerFile] ERROR:', result.error)
34
+ parserError.value = result.error
35
+ return
36
+ }
37
+
38
+ // Something with the Parser went really wrong.
39
+ if (typeof result === 'undefined') {
40
+ console.error('[parseSwaggerFile] ERROR: result is undefined')
41
+ parserError.value =
42
+ 'Something went wrong. The parser failed to parse the content.'
43
+ return
44
+ }
45
+
46
+ // Execute the given callback.
47
+ const content = JSON.parse(result)
48
+
49
+ // Check if content is empty.
50
+ if (!content) {
51
+ return
52
+ }
53
+
54
+ parserError.value = ''
55
+ parserResult.value = content
56
+ callback(content)
57
+
58
+ // Don’t watch `data` anymore.
59
+ triggeredAction()
60
+ })
61
+
62
+ post(jsonValue)
63
+
64
+ if (parserReady.value) {
65
+ return
66
+ }
67
+
68
+ await nextTick()
69
+
70
+ parserReady.value = true
71
+ }
72
+
73
+ return {
74
+ parseSwaggerFile,
75
+ parserResult,
76
+ parserError,
77
+ parserReady,
78
+ }
79
+ }
package/src/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ export { default as ApiClientModal } from './components/ApiClientModal.vue'
2
+ export { default as ApiReference } from './components/ApiReference.vue'
3
+ export { default as Sidebar } from './components/Sidebar.vue'
4
+ export { default as RenderedReference } from './components/Content/Content.vue'
5
+
6
+ export * from './types'