@scalar/api-client 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/computer.ascii.js +34 -0
- package/dist/clientBus.js +5 -0
- package/dist/components/ApiClient/AddressBar.vue.d.ts +3 -3
- package/dist/components/ApiClient/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/AddressBar.vue.js +8 -0
- package/dist/components/ApiClient/AddressBar.vue2.js +158 -0
- package/dist/components/ApiClient/AddressBar.vue3.js +4 -0
- package/dist/components/ApiClient/AddressBar.vue4.js +4 -0
- package/dist/components/ApiClient/ApiClient.vue.d.ts +11 -11
- package/dist/components/ApiClient/ApiClient.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/ApiClient.vue.js +124 -0
- package/dist/components/ApiClient/ApiClient.vue2.js +4 -0
- package/dist/components/ApiClient/ApiClient.vue3.js +5 -0
- package/dist/components/ApiClient/Request/Request.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/Request.vue.js +79 -0
- package/dist/components/ApiClient/Request/Request.vue2.js +4 -0
- package/dist/components/ApiClient/Request/Request.vue3.js +5 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.js +13 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue2.js +18 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.js +13 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.js +13 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts +8 -8
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue2.js +37 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue2.js +86 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue2.js +357 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue2.js +96 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue2.js +64 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/index.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestBody.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestBody.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestBody.vue.js +39 -0
- package/dist/components/ApiClient/Request/RequestBody.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestCookies.vue.js +74 -0
- package/dist/components/ApiClient/Request/RequestCookies.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestCookies.vue3.js +5 -0
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestHeaders.vue.js +74 -0
- package/dist/components/ApiClient/Request/RequestHeaders.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestQuery.vue.js +75 -0
- package/dist/components/ApiClient/Request/RequestQuery.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestVariables.vue.js +69 -0
- package/dist/components/ApiClient/Request/RequestVariables.vue2.js +4 -0
- package/dist/components/ApiClient/Request/index.d.ts +1 -1
- package/dist/components/ApiClient/RequestHistory.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/RequestHistory.vue.js +27 -0
- package/dist/components/ApiClient/RequestHistory.vue2.js +4 -0
- package/dist/components/ApiClient/RequestHistory.vue3.js +5 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue.d.ts +3 -3
- package/dist/components/ApiClient/RequestHistoryItem.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/RequestHistoryItem.vue.js +7 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue2.js +49 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue3.js +4 -0
- package/dist/components/ApiClient/RequestMethodSelect.vue.d.ts +11 -11
- package/dist/components/ApiClient/RequestMethodSelect.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/RequestMethodSelect.vue.js +7 -0
- package/dist/components/ApiClient/RequestMethodSelect.vue2.js +42 -0
- package/dist/components/ApiClient/RequestMethodSelect.vue3.js +4 -0
- package/dist/components/ApiClient/Response/Response.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/Response.vue.js +65 -0
- package/dist/components/ApiClient/Response/Response.vue2.js +4 -0
- package/dist/components/ApiClient/Response/Response.vue3.js +5 -0
- package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts +3 -3
- package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/ResponseBody.vue.js +54 -0
- package/dist/components/ApiClient/Response/ResponseBody.vue2.js +4 -0
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts +3 -3
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.js +76 -0
- package/dist/components/ApiClient/Response/ResponseHeaders.vue2.js +4 -0
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts +3 -3
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.js +56 -0
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue2.js +4 -0
- package/dist/components/ApiClient/Response/index.d.ts +1 -1
- package/dist/components/ApiClient/index.d.ts +1 -1
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts +11 -11
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts.map +1 -1
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.js +76 -0
- package/dist/components/CollapsibleSection/CollapsibleSection.vue2.js +4 -0
- package/dist/components/CollapsibleSection/CollapsibleSection.vue3.js +5 -0
- package/dist/components/CollapsibleSection/index.d.ts +1 -1
- package/dist/components/Grid/Grid.vue.d.ts +3 -3
- package/dist/components/Grid/Grid.vue.d.ts.map +1 -1
- package/dist/components/Grid/Grid.vue.js +7 -0
- package/dist/components/Grid/Grid.vue2.js +77 -0
- package/dist/components/Grid/Grid.vue3.js +4 -0
- package/dist/components/Grid/GridHeader.vue.d.ts +3 -3
- package/dist/components/Grid/GridHeader.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridHeader.vue.js +7 -0
- package/dist/components/Grid/GridHeader.vue2.js +46 -0
- package/dist/components/Grid/GridHeader.vue3.js +4 -0
- package/dist/components/Grid/GridRow.vue.d.ts +8 -8
- package/dist/components/Grid/GridRow.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridRow.vue.js +7 -0
- package/dist/components/Grid/GridRow.vue2.js +29 -0
- package/dist/components/Grid/GridRow.vue3.js +4 -0
- package/dist/components/Grid/GridRowEditable.vue.d.ts +3 -3
- package/dist/components/Grid/GridRowEditable.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridRowEditable.vue.js +7 -0
- package/dist/components/Grid/GridRowEditable.vue2.js +105 -0
- package/dist/components/Grid/GridRowEditable.vue3.js +4 -0
- package/dist/components/Grid/GridRowGenerated.vue.d.ts +4 -4
- package/dist/components/Grid/GridRowGenerated.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridRowGenerated.vue.js +7 -0
- package/dist/components/Grid/GridRowGenerated.vue2.js +37 -0
- package/dist/components/Grid/GridRowGenerated.vue3.js +4 -0
- package/dist/components/Grid/SimpleGrid.vue.d.ts +3 -3
- package/dist/components/Grid/SimpleGrid.vue.d.ts.map +1 -1
- package/dist/components/Grid/SimpleGrid.vue.js +7 -0
- package/dist/components/Grid/SimpleGrid.vue2.js +28 -0
- package/dist/components/Grid/SimpleGrid.vue3.js +4 -0
- package/dist/components/Grid/index.d.ts +2 -2
- package/dist/components/HelpfulLink.vue.d.ts +8 -8
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.js +7 -0
- package/dist/components/HelpfulLink.vue2.js +19 -0
- package/dist/components/HelpfulLink.vue3.js +4 -0
- package/dist/components/HttpMethod.vue.d.ts +9 -8
- package/dist/components/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod.vue.js +27 -0
- package/dist/components/HttpMethod.vue2.js +4 -0
- package/dist/components/ScalarAsciiArt.vue.d.ts +3 -3
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue.js +7 -0
- package/dist/components/ScalarAsciiArt.vue2.js +23 -0
- package/dist/components/ScalarAsciiArt.vue3.js +4 -0
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts +13 -12
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleCell.vue.js +7 -0
- package/dist/components/SimpleTable/SimpleCell.vue2.js +28 -0
- package/dist/components/SimpleTable/SimpleCell.vue3.js +4 -0
- package/dist/components/SimpleTable/SimpleHeader.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleHeader.vue.js +7 -0
- package/dist/components/SimpleTable/SimpleHeader.vue2.js +19 -0
- package/dist/components/SimpleTable/SimpleHeader.vue3.js +4 -0
- package/dist/components/SimpleTable/SimpleRow.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleRow.vue.js +13 -0
- package/dist/components/SimpleTable/SimpleRow.vue2.js +4 -0
- package/dist/components/SimpleTable/SimpleTable.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.vue.js +15 -0
- package/dist/components/SimpleTable/SimpleTable.vue2.js +4 -0
- package/dist/components/SimpleTable/index.d.ts +4 -4
- package/dist/fixtures/httpHeaders.js +529 -0
- package/dist/fixtures/httpRequestMethods.js +41 -0
- package/dist/fixtures/index.d.ts +2 -2
- package/dist/helpers/concatenateUrlAndPath.js +9 -0
- package/dist/helpers/createPlaceholderRequest.js +14 -0
- package/dist/helpers/encodeStringAsBase64.js +6 -0
- package/dist/helpers/findVariables.js +7 -0
- package/dist/helpers/getRequestFromAuthentication.js +85 -0
- package/dist/helpers/getUrlFromServerState.js +12 -0
- package/dist/helpers/humanDiff.js +21 -0
- package/dist/helpers/index.d.ts +16 -16
- package/dist/helpers/mapFromArray.js +9 -0
- package/dist/helpers/normalizeHeaders.js +6 -0
- package/dist/helpers/normalizePath.js +9 -0
- package/dist/helpers/normalizeRequestMethod.d.ts +2 -1
- package/dist/helpers/normalizeRequestMethod.d.ts.map +1 -1
- package/dist/helpers/normalizeRequestMethod.js +14 -0
- package/dist/helpers/normalizeUrl.js +13 -0
- package/dist/helpers/prepareClientRequestConfig.d.ts +0 -7
- package/dist/helpers/prepareClientRequestConfig.d.ts.map +1 -1
- package/dist/helpers/prepareClientRequestConfig.js +41 -0
- package/dist/helpers/redirectToProxy.js +7 -0
- package/dist/helpers/replaceVariables.js +10 -0
- package/dist/helpers/sendRequest.js +111 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +83 -33496
- package/dist/stores/index.d.ts +5 -5
- package/dist/stores/useApiClientStore.js +32 -0
- package/dist/stores/useAuthenticationStore.d.ts +1 -1
- package/dist/stores/useAuthenticationStore.d.ts.map +1 -1
- package/dist/stores/useAuthenticationStore.js +36 -0
- package/dist/stores/useOpenApiStore.d.ts +1 -1
- package/dist/stores/useOpenApiStore.js +24 -0
- package/dist/stores/useRequestStore.js +29 -0
- package/dist/stores/useServerStore.js +18 -0
- package/dist/style.css +1 -2567
- package/package.json +19 -18
- package/dist/Add-yNxGpRcH-B1LyqGlJ.js +0 -21
- package/dist/ArrowLeft-D7tW1xQo-BY1SMb43.js +0 -20
- package/dist/ArrowRight-DmO-sdb2-DYqgcTpu.js +0 -20
- package/dist/Background-CU9VIbfN-DvxzmwCx.js +0 -17
- package/dist/Brackets-CI207-BL-BBaUg7lM.js +0 -21
- package/dist/Branch-CXwj8YuG-IxKqRWkx.js +0 -34
- package/dist/CallToAction-XLYRSI1h-DkdGfSAS.js +0 -20
- package/dist/Checkmark-DhbrPM0P-Bnd3e6-4.js +0 -21
- package/dist/ChevronDown-Co7EAKAv-DHNwXUbS.js +0 -21
- package/dist/ChevronLeft-DYt0idAu-DAzCtmws.js +0 -21
- package/dist/ChevronRight-ylxToVWl-CDFDuBE1.js +0 -21
- package/dist/ChevronUp-xAnukIfj-CuKFLVD3.js +0 -21
- package/dist/Clipboard-CU_KxGEv-DWrQtWVi.js +0 -16
- package/dist/Close-xHiYwS8Q-CWI8mlaM.js +0 -21
- package/dist/CodeFolder-Cv_igzJE-CoWfaY0Z.js +0 -27
- package/dist/Cookie-CEHvXpqB-D960ImBy.js +0 -37
- package/dist/DarkMode-BMR457PH-CVcoMGeO.js +0 -16
- package/dist/Delete-BCZmxrDD-BHoCf_u4.js +0 -21
- package/dist/Discord-BHYOFBB2-NYBGYy-_.js +0 -16
- package/dist/DocsPage-Dwx7ZMU9-D3s0nKun.js +0 -27
- package/dist/Duplicate-DRWEv4R_-5xIOj7QF.js +0 -17
- package/dist/Edit-Br04RNYb-BhCyac4t.js +0 -19
- package/dist/Ellipses-Bo_X36Hx-CsJmKvlE.js +0 -16
- package/dist/Error-C5LiISnw-BIMzByff.js +0 -16
- package/dist/ExternalLink-DK8L-EH7-ANJEzoHO.js +0 -21
- package/dist/FilterList-CS8Il7NE-CagRN2wd.js +0 -21
- package/dist/Folder-CTvnVSEo-B2z_4abD.js +0 -16
- package/dist/GitHub-NdE6Zs9k-BAGzgXH_.js +0 -16
- package/dist/Hide-BgcCtErz-CAC_2jsk.js +0 -27
- package/dist/History-D9nmhNIn-BU9mR55a.js +0 -27
- package/dist/JsonObject-hGdHUQ4M-Cm1hXgAn.js +0 -21
- package/dist/Key-CWXJqX28-DdNUhB11.js +0 -21
- package/dist/Leave-K1J3uwoG-WgTmlwgs.js +0 -21
- package/dist/LightDarkModeToggle-De3vO47x-D3WCuqcH.js +0 -16
- package/dist/LightMode-BeoMphBY-CDedz2JM.js +0 -16
- package/dist/Link-Bzuc__Nc-Bvtx0HZG.js +0 -21
- package/dist/Lock-xhiH1mKz-Rrlr3fGv.js +0 -21
- package/dist/Logo-DwEDtgj--pmO6SPQX.js +0 -19
- package/dist/LogoAPI-CohCfL3L-CzbaXJLs.js +0 -19
- package/dist/LogoClient-Bq5O2QL2-Bw2epmD5.js +0 -16
- package/dist/LogoMarket-DwlApcab-_INRDSLs.js +0 -16
- package/dist/LogoSwagger-CH60H5qW-DFEpFXIU.js +0 -16
- package/dist/Magic-Dsi9_bEc-BYN42_eH.js +0 -21
- package/dist/Menu-CFK5cOsm-CqE9Tsgr.js +0 -21
- package/dist/Page-DA7CO5gc-DfccxJJv.js +0 -17
- package/dist/PaperAirplane-BC-4mGEB-BrV5fX8s.js +0 -21
- package/dist/Payment-hzcXP1Xb-B2G1p4-i.js +0 -21
- package/dist/Play-Cd4-o7Ji-xTTrC7nd.js +0 -16
- package/dist/Refresh-BHRzzQ8P-DMGXg62S.js +0 -27
- package/dist/Response-DsTlT4S--CGVlb2Cj.js +0 -20
- package/dist/Search-DqtlswRG-D-hprEk0.js +0 -19
- package/dist/Show-CbiiMLUa-G7jnye-t.js +0 -27
- package/dist/SideBarClosed-K53-CtXh-DmurFyoL.js +0 -17
- package/dist/SideBarOpen-C7UgT82P-BG6NE13Z.js +0 -21
- package/dist/Sort-CaVMT7jM-CseseOA9.js +0 -16
- package/dist/Terminal-DJ7x2McL-BUB3Qs0m.js +0 -27
- package/dist/ThumbsDown-BMgnsASL-B2YFxB8i.js +0 -21
- package/dist/ThumbsUp-C1j6zY2j-DKqh3z1D.js +0 -21
- package/dist/Trash-BpA3zWPD-BAjuQdys.js +0 -21
- package/dist/Unlock-HVYHMLxl-D89vmw_N.js +0 -16
- package/dist/Upload-D_pwqBDY-Bg4YHBfw.js +0 -16
- package/dist/User-BLGkPc5I-XzPjc0Gv.js +0 -16
- package/dist/prism-autoloader-Dlh8Vzlw-BR-Zk31i.js +0 -370
- package/dist/programming-framework-angular-DD4Vjgbk-Bzc9D9am.js +0 -16
- package/dist/programming-framework-astro-CLfrRt19-CfPlyy6T.js +0 -16
- package/dist/programming-framework-laravel-kAy2wVLy-Cty_4oXq.js +0 -21
- package/dist/programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js +0 -16
- package/dist/programming-framework-react-PDgmtZuN-DdUogL85.js +0 -16
- package/dist/programming-framework-vuedotjs-Cim7D5tw-COH3lflr.js +0 -17
- package/dist/programming-language-c-hPGu2Zvg-QG1pSdJG.js +0 -16
- package/dist/programming-language-clojure-uqYXn7U6-UAUP9oZz.js +0 -16
- package/dist/programming-language-csharp-CGxYkVA6-DkAhKOzF.js +0 -16
- package/dist/programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js +0 -16
- package/dist/programming-language-go-CuKo8iD9-Dkewryvm.js +0 -16
- package/dist/programming-language-html5-DlqJK4EL-Bl9dTA-D.js +0 -16
- package/dist/programming-language-http-f3NXC-Ae-BY_awyxD.js +0 -16
- package/dist/programming-language-java-BBodetdf-BHELDLTj.js +0 -18
- package/dist/programming-language-javascript-VxLvi1QG-DFjYF_MP.js +0 -16
- package/dist/programming-language-json-Dq_K-q5f-BlovheYp.js +0 -17
- package/dist/programming-language-kotlin-eTASnmL3-D8AoUcB1.js +0 -16
- package/dist/programming-language-node-oucaVOgY-CzP8mlvs.js +0 -17
- package/dist/programming-language-objc-CPgQxmNi-DjsFgTok.js +0 -17
- package/dist/programming-language-ocaml-Q1-Jv5Q5-D2vDLKwp.js +0 -16
- package/dist/programming-language-php-GY38f8r4-DQ_8EMFH.js +0 -16
- package/dist/programming-language-powershell-xLOxAYP_-DAvJS1A9.js +0 -20
- package/dist/programming-language-python-Ct-_kNjo-BCrlyfv0.js +0 -16
- package/dist/programming-language-r-Ch3T1qiC-I_IE4uwz.js +0 -20
- package/dist/programming-language-ruby-DhdM4d7g-Dd3La6Kn.js +0 -16
- package/dist/programming-language-scala-BVg0dToJ-Bz_n-CNw.js +0 -16
- package/dist/programming-language-shell-uj1zoCVW-Bg0d3E28.js +0 -16
- package/dist/programming-language-swift-Dn72xPjg-BUvu5_SV.js +0 -16
- package/dist/programming-language-typescript-CdF-HuRi-CaDO02MW.js +0 -16
- package/dist/programming-script-code-CUHv6qR8-CzD7HjI2.js +0 -21
- package/dist/programming-tool-git-C-BMJCAo-BFJIU2--.js +0 -16
- package/dist/programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js +0 -16
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { defineComponent as m, computed as p, openBlock as n, createBlock as u, unref as l, withCtx as h, createElementBlock as f, createElementVNode as o, createTextVNode as g } from "vue";
|
|
2
|
+
import w from "../../CollapsibleSection/CollapsibleSection.vue.js";
|
|
3
|
+
import "../../CollapsibleSection/CollapsibleSection.vue2.js";
|
|
4
|
+
import _ from "../../Grid/Grid.vue.js";
|
|
5
|
+
import { useRequestStore as v } from "../../../stores/useRequestStore.js";
|
|
6
|
+
const y = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "scalar-api-client__empty-state"
|
|
9
|
+
}, k = /* @__PURE__ */ o("svg", {
|
|
10
|
+
class: "flow-icon",
|
|
11
|
+
"data-v-aa4fbd2d": "",
|
|
12
|
+
height: "100%",
|
|
13
|
+
viewBox: "0 0 48 48",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, [
|
|
16
|
+
/* @__PURE__ */ o("path", {
|
|
17
|
+
d: "M24 1.714v44.572M1.714 24h44.572",
|
|
18
|
+
fill: "none",
|
|
19
|
+
stroke: "currentColor",
|
|
20
|
+
"stroke-linecap": "round",
|
|
21
|
+
"stroke-linejoin": "round",
|
|
22
|
+
"stroke-width": "5",
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
24
|
+
})
|
|
25
|
+
], -1), C = /* @__PURE__ */ m({
|
|
26
|
+
__name: "RequestQuery",
|
|
27
|
+
props: {
|
|
28
|
+
queries: {},
|
|
29
|
+
generatedQueries: {}
|
|
30
|
+
},
|
|
31
|
+
setup(d) {
|
|
32
|
+
const a = d, { activeRequest: r } = v();
|
|
33
|
+
function c(e) {
|
|
34
|
+
var t;
|
|
35
|
+
(t = r.query) == null || t.splice(e, 1);
|
|
36
|
+
}
|
|
37
|
+
function s() {
|
|
38
|
+
var e;
|
|
39
|
+
r.query === void 0 && (r.query = []), (e = r.query) == null || e.push({ name: "", value: "", enabled: !0 });
|
|
40
|
+
}
|
|
41
|
+
const i = p(() => {
|
|
42
|
+
var e, t;
|
|
43
|
+
return !!((e = a.queries) != null && e.length || (t = a.generatedQueries) != null && t.length);
|
|
44
|
+
});
|
|
45
|
+
return (e, t) => (n(), u(l(w), {
|
|
46
|
+
defaultOpen: i.value,
|
|
47
|
+
title: "Query Parameters"
|
|
48
|
+
}, {
|
|
49
|
+
default: h(() => [
|
|
50
|
+
i.value ? (n(), u(l(_), {
|
|
51
|
+
key: 1,
|
|
52
|
+
addLabel: "Query Parameter",
|
|
53
|
+
generatedItems: e.generatedQueries,
|
|
54
|
+
items: e.queries,
|
|
55
|
+
showMoreFilter: !0,
|
|
56
|
+
onAddAnother: s,
|
|
57
|
+
onDeleteIndex: c
|
|
58
|
+
}, null, 8, ["generatedItems", "items"])) : (n(), f("div", y, [
|
|
59
|
+
o("button", {
|
|
60
|
+
class: "scalar-api-client-add",
|
|
61
|
+
type: "button",
|
|
62
|
+
onClick: s
|
|
63
|
+
}, [
|
|
64
|
+
k,
|
|
65
|
+
g(" Query Parameter ")
|
|
66
|
+
])
|
|
67
|
+
]))
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}, 8, ["defaultOpen"]));
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
export {
|
|
74
|
+
C as default
|
|
75
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { BaseParameter } from '@scalar/oas-utils';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
variables?: BaseParameter[] | undefined;
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
5
5
|
variables?: BaseParameter[] | undefined;
|
|
6
6
|
}>>>, {}, {}>;
|
|
7
7
|
export default _default;
|
|
8
8
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
-
type
|
|
9
|
+
type __VLS_TypePropsToOption<T> = {
|
|
10
10
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
11
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
12
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestVariables.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestVariables.vue
|
|
1
|
+
{"version":3,"file":"RequestVariables.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestVariables.vue"],"names":[],"mappings":"AAgEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;;;;;;AAuHtD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { defineComponent as d, openBlock as o, createBlock as s, unref as a, withCtx as c, createElementBlock as p, createElementVNode as l, createTextVNode as u } from "vue";
|
|
2
|
+
import m from "../../CollapsibleSection/CollapsibleSection.vue.js";
|
|
3
|
+
import "../../CollapsibleSection/CollapsibleSection.vue2.js";
|
|
4
|
+
import v from "../../Grid/Grid.vue.js";
|
|
5
|
+
import { useRequestStore as b } from "../../../stores/useRequestStore.js";
|
|
6
|
+
const f = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "scalar-api-client__empty-state"
|
|
9
|
+
}, h = /* @__PURE__ */ l("svg", {
|
|
10
|
+
class: "flow-icon",
|
|
11
|
+
"data-v-aa4fbd2d": "",
|
|
12
|
+
height: "100%",
|
|
13
|
+
viewBox: "0 0 48 48",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, [
|
|
16
|
+
/* @__PURE__ */ l("path", {
|
|
17
|
+
d: "M24 1.714v44.572M1.714 24h44.572",
|
|
18
|
+
fill: "none",
|
|
19
|
+
stroke: "currentColor",
|
|
20
|
+
"stroke-linecap": "round",
|
|
21
|
+
"stroke-linejoin": "round",
|
|
22
|
+
"stroke-width": "5",
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
24
|
+
})
|
|
25
|
+
], -1), y = /* @__PURE__ */ d({
|
|
26
|
+
__name: "RequestVariables",
|
|
27
|
+
props: {
|
|
28
|
+
variables: {}
|
|
29
|
+
},
|
|
30
|
+
setup(_) {
|
|
31
|
+
const { activeRequest: t } = b();
|
|
32
|
+
function i(e) {
|
|
33
|
+
var r;
|
|
34
|
+
(r = t.variables) == null || r.splice(e, 1);
|
|
35
|
+
}
|
|
36
|
+
function n() {
|
|
37
|
+
var e;
|
|
38
|
+
t.variables === void 0 && (t.variables = []), (e = t.variables) == null || e.push({ name: "", value: "", enabled: !0 });
|
|
39
|
+
}
|
|
40
|
+
return (e, r) => (o(), s(a(m), {
|
|
41
|
+
defaultOpen: a(t).variables && a(t).variables.length > 0,
|
|
42
|
+
title: "Variables"
|
|
43
|
+
}, {
|
|
44
|
+
default: c(() => [
|
|
45
|
+
!e.variables || e.variables.length === 0 ? (o(), p("div", f, [
|
|
46
|
+
l("button", {
|
|
47
|
+
class: "scalar-api-client-add",
|
|
48
|
+
type: "button",
|
|
49
|
+
onClick: n
|
|
50
|
+
}, [
|
|
51
|
+
h,
|
|
52
|
+
u(" Variable ")
|
|
53
|
+
])
|
|
54
|
+
])) : (o(), s(a(v), {
|
|
55
|
+
key: 1,
|
|
56
|
+
addLabel: "Variable",
|
|
57
|
+
items: e.variables,
|
|
58
|
+
showMoreFilter: !0,
|
|
59
|
+
onAddAnother: n,
|
|
60
|
+
onDeleteIndex: i
|
|
61
|
+
}, null, 8, ["items"]))
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
}, 8, ["defaultOpen"]));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
y as default
|
|
69
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Request } from './Request.vue';
|
|
1
|
+
export { default as Request } from './Request.vue.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestHistory.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/RequestHistory.vue
|
|
1
|
+
{"version":3,"file":"RequestHistory.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/RequestHistory.vue"],"names":[],"mappings":";;;;;AAgcA,wBAMG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as o, openBlock as e, createElementBlock as s, createElementVNode as t, Fragment as n, renderList as v, unref as c, createBlock as d, createStaticVNode as i } from "vue";
|
|
2
|
+
import r from "./RequestHistoryItem.vue.js";
|
|
3
|
+
import { useRequestStore as m } from "../../stores/useRequestStore.js";
|
|
4
|
+
const _ = { class: "navigation-content-item" }, b = { class: "navtable" }, u = { class: "navtable-table" }, p = /* @__PURE__ */ i('<div class="navtable-item navtable-item__top"><div class="navtable-item-40"><label for="">Request</label></div><div class="navtable-item-40"><label for="">Response</label></div><div class="navtable-item-20"><label for="">TIME</label></div></div>', 1), f = { class: "navtable-radios" }, h = /* @__PURE__ */ i('<div class="navtable-mock"><div class="navtable-item"><div class="navtable-item-40"></div><div class="navtable-item-40"></div><div class="navtable-item-20"></div></div></div>', 1), E = /* @__PURE__ */ o({
|
|
5
|
+
__name: "RequestHistory",
|
|
6
|
+
emits: ["toggle"],
|
|
7
|
+
setup(k) {
|
|
8
|
+
const { requestHistoryOrder: l } = m();
|
|
9
|
+
return (q, R) => (e(), s("div", _, [
|
|
10
|
+
t("div", b, [
|
|
11
|
+
t("div", u, [
|
|
12
|
+
p,
|
|
13
|
+
t("div", f, [
|
|
14
|
+
(e(!0), s(n, null, v(c(l), (a) => (e(), d(r, {
|
|
15
|
+
key: a,
|
|
16
|
+
history: a
|
|
17
|
+
}, null, 8, ["history"]))), 128))
|
|
18
|
+
]),
|
|
19
|
+
h
|
|
20
|
+
])
|
|
21
|
+
])
|
|
22
|
+
]));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
E as default
|
|
27
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
history: string;
|
|
3
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
4
|
history: string;
|
|
5
5
|
}>>>, {}, {}>;
|
|
6
6
|
export default _default;
|
|
7
7
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
-
type
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
9
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
10
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
11
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestHistoryItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/RequestHistoryItem.vue
|
|
1
|
+
{"version":3,"file":"RequestHistoryItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/RequestHistoryItem.vue"],"names":[],"mappings":";;;;;AAsLA,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as p, openBlock as h, createElementBlock as y, normalizeClass as i, unref as e, createElementVNode as s, toDisplayString as o, createTextVNode as d } from "vue";
|
|
2
|
+
import a from "pretty-bytes";
|
|
3
|
+
import v from "pretty-ms";
|
|
4
|
+
import { humanDiff as c } from "../../helpers/humanDiff.js";
|
|
5
|
+
import { useRequestStore as f } from "../../stores/useRequestStore.js";
|
|
6
|
+
const C = { class: "navtable-item-40 navtable-item-request" }, b = { class: "navtable-item-40 navtable-item-response" }, q = { class: "navtable-item-20 navtable-item-time" }, B = /* @__PURE__ */ p({
|
|
7
|
+
__name: "RequestHistoryItem",
|
|
8
|
+
props: {
|
|
9
|
+
history: {}
|
|
10
|
+
},
|
|
11
|
+
setup(g) {
|
|
12
|
+
const { requestHistory: n, activeRequestId: l, setActiveResponse: u } = f(), m = (t) => {
|
|
13
|
+
var r;
|
|
14
|
+
return (r = t == null ? void 0 : t.headers) != null && r["X-API-Client-Content-Length"] ? a(
|
|
15
|
+
parseFloat(t.headers["X-API-Client-Content-Length"])
|
|
16
|
+
) : a(0);
|
|
17
|
+
};
|
|
18
|
+
return (t, r) => (h(), y("div", {
|
|
19
|
+
class: i(["navtable-item", { "navtable-item__active": e(l) === t.history }]),
|
|
20
|
+
onClick: r[0] || (r[0] = (_) => e(u)(t.history))
|
|
21
|
+
}, [
|
|
22
|
+
s("div", C, [
|
|
23
|
+
s("button", {
|
|
24
|
+
class: i(["radio", e(n)[t.history].request.type.toLowerCase()]),
|
|
25
|
+
type: "button"
|
|
26
|
+
}, null, 2),
|
|
27
|
+
s("span", null, [
|
|
28
|
+
s("em", null, o(e(n)[t.history].request.type), 1),
|
|
29
|
+
d(" " + o(e(n)[t.history].request.url), 1)
|
|
30
|
+
])
|
|
31
|
+
]),
|
|
32
|
+
s("div", b, [
|
|
33
|
+
s("span", null, o(e(v)(e(n)[t.history].response.duration)), 1),
|
|
34
|
+
s("span", {
|
|
35
|
+
class: i(`scalar-api-client__status--${String(
|
|
36
|
+
e(n)[t.history].response.statusCode
|
|
37
|
+
).charAt(0)}xx`)
|
|
38
|
+
}, o(e(n)[t.history].response.statusCode), 3),
|
|
39
|
+
s("span", null, o(m(e(n)[t.history].response)), 1)
|
|
40
|
+
]),
|
|
41
|
+
s("div", q, [
|
|
42
|
+
s("span", null, o(e(c)(e(n)[t.history].sentTime)), 1)
|
|
43
|
+
])
|
|
44
|
+
], 2));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
B as default
|
|
49
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
requestMethod: string;
|
|
3
3
|
readOnly?: boolean | undefined;
|
|
4
4
|
}>, {
|
|
5
5
|
readOnly: boolean;
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
change: (value: string) => void;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
9
9
|
requestMethod: string;
|
|
10
10
|
readOnly?: boolean | undefined;
|
|
11
11
|
}>, {
|
|
@@ -16,15 +16,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
16
16
|
readOnly: boolean;
|
|
17
17
|
}, {}>;
|
|
18
18
|
export default _default;
|
|
19
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
-
} : {
|
|
24
|
-
type: import('vue').PropType<T[K]>;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
19
|
type __VLS_WithDefaults<P, D> = {
|
|
29
20
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
21
|
default: D[K];
|
|
@@ -33,4 +24,13 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
33
24
|
type __VLS_Prettify<T> = {
|
|
34
25
|
[K in keyof T]: T[K];
|
|
35
26
|
} & {};
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
type __VLS_TypePropsToOption<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: import('vue').PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
36
|
//# sourceMappingURL=RequestMethodSelect.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestMethodSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/RequestMethodSelect.vue
|
|
1
|
+
{"version":3,"file":"RequestMethodSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/RequestMethodSelect.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAwLA,wBAOG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as d, openBlock as n, createElementBlock as r, createElementVNode as s, normalizeClass as u, toDisplayString as a, Fragment as p, renderList as i } from "vue";
|
|
2
|
+
const m = { class: "request-method-select" }, c = ["disabled", "value"], h = ["value"], y = /* @__PURE__ */ d({
|
|
3
|
+
__name: "RequestMethodSelect",
|
|
4
|
+
props: {
|
|
5
|
+
requestMethod: {},
|
|
6
|
+
readOnly: { type: Boolean, default: !0 }
|
|
7
|
+
},
|
|
8
|
+
emits: ["change"],
|
|
9
|
+
setup(_) {
|
|
10
|
+
const l = [
|
|
11
|
+
"GET",
|
|
12
|
+
"POST",
|
|
13
|
+
"PUT",
|
|
14
|
+
// 'HEAD',
|
|
15
|
+
"DELETE",
|
|
16
|
+
"PATCH"
|
|
17
|
+
// 'OPTIONS',
|
|
18
|
+
// 'CONNECT',
|
|
19
|
+
// 'TRACE',
|
|
20
|
+
];
|
|
21
|
+
return (e, o) => (n(), r("div", m, [
|
|
22
|
+
s("span", {
|
|
23
|
+
class: u(["request-method", { "request-method--disabled": e.readOnly }])
|
|
24
|
+
}, [
|
|
25
|
+
s("span", null, a(e.requestMethod), 1)
|
|
26
|
+
], 2),
|
|
27
|
+
s("select", {
|
|
28
|
+
disabled: e.readOnly,
|
|
29
|
+
value: e.requestMethod.toLowerCase(),
|
|
30
|
+
onInput: o[0] || (o[0] = (t) => e.$emit("change", t.target.value))
|
|
31
|
+
}, [
|
|
32
|
+
(n(), r(p, null, i(l, (t) => s("option", {
|
|
33
|
+
key: t,
|
|
34
|
+
value: t.toLocaleLowerCase()
|
|
35
|
+
}, a(t), 9, h)), 64))
|
|
36
|
+
], 40, c)
|
|
37
|
+
]));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
y as default
|
|
42
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Response.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Response/Response.vue
|
|
1
|
+
{"version":3,"file":"Response.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Response/Response.vue"],"names":[],"mappings":";AAkQA,wBAKG"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineComponent as u, computed as m, openBlock as i, createElementBlock as c, createElementVNode as r, unref as e, createVNode as a, createCommentVNode as p, withCtx as h, withDirectives as v, vShow as f } from "vue";
|
|
2
|
+
import k from "../../../assets/computer.ascii.js";
|
|
3
|
+
import y from "../../ScalarAsciiArt.vue.js";
|
|
4
|
+
import C from "./ResponseBody.vue.js";
|
|
5
|
+
import R from "./ResponseHeaders.vue.js";
|
|
6
|
+
import b from "./ResponseMetaInformation.vue.js";
|
|
7
|
+
import N from "../../CollapsibleSection/CollapsibleSection.vue.js";
|
|
8
|
+
import "../../CollapsibleSection/CollapsibleSection.vue2.js";
|
|
9
|
+
import S from "../../Grid/SimpleGrid.vue.js";
|
|
10
|
+
import { useRequestStore as $ } from "../../../stores/useRequestStore.js";
|
|
11
|
+
const g = { class: "scalar-api-client__main__right custom-scroll" }, w = { class: "scalar-api-client__main__content" }, x = { class: "scalar-api-client__main__content__header" }, V = /* @__PURE__ */ r("label", null, "Response", -1), j = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "meta"
|
|
14
|
+
}, q = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "scalar-api-client__main__content__body"
|
|
17
|
+
}, A = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "scalar-api-client__empty-state"
|
|
20
|
+
}, B = /* @__PURE__ */ r("div", { class: "scalar-api-client__main__scroll-container" }, null, -1), E = {
|
|
21
|
+
key: 1,
|
|
22
|
+
class: "scalar-api-client__main__content empty-state"
|
|
23
|
+
}, P = /* @__PURE__ */ u({
|
|
24
|
+
__name: "Response",
|
|
25
|
+
setup(O) {
|
|
26
|
+
const { activeResponse: s, activeRequestId: l } = $(), d = m(() => {
|
|
27
|
+
var o;
|
|
28
|
+
const t = (o = s.value) == null ? void 0 : o.headers;
|
|
29
|
+
return t ? Object.keys(t).map((n) => ({ name: n, value: t[n] })) : [];
|
|
30
|
+
}), _ = m(() => {
|
|
31
|
+
var o;
|
|
32
|
+
const t = (o = s.value) == null ? void 0 : o.cookies;
|
|
33
|
+
return t ? Object.keys(t).map((n) => ({ name: n, value: t[n] })) : [];
|
|
34
|
+
});
|
|
35
|
+
return (t, o) => (i(), c("div", g, [
|
|
36
|
+
r("div", w, [
|
|
37
|
+
r("div", x, [
|
|
38
|
+
V,
|
|
39
|
+
e(l) && e(s) ? (i(), c("div", j, [
|
|
40
|
+
a(b, { response: e(s) }, null, 8, ["response"])
|
|
41
|
+
])) : p("", !0)
|
|
42
|
+
]),
|
|
43
|
+
e(l) && e(s) ? (i(), c("div", q, [
|
|
44
|
+
a(C, { response: e(s) }, null, 8, ["response"]),
|
|
45
|
+
a(R, { headers: d.value }, null, 8, ["headers"]),
|
|
46
|
+
a(e(N), { title: "Cookies" }, {
|
|
47
|
+
default: h(() => [
|
|
48
|
+
v(a(e(S), { items: _.value }, null, 8, ["items"]), [
|
|
49
|
+
[f, _.value.length > 0]
|
|
50
|
+
]),
|
|
51
|
+
_.value.length === 0 ? (i(), c("div", A, "No Cookies")) : p("", !0)
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
}),
|
|
55
|
+
B
|
|
56
|
+
])) : (i(), c("div", E, [
|
|
57
|
+
a(y, { art: e(k) }, null, 8, ["art"])
|
|
58
|
+
]))
|
|
59
|
+
])
|
|
60
|
+
]));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
P as default
|
|
65
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
response?: any;
|
|
3
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
4
|
response?: any;
|
|
5
5
|
}>>>, {}, {}>;
|
|
6
6
|
export default _default;
|
|
7
7
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
-
type
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
9
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
10
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
11
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Response/ResponseBody.vue
|
|
1
|
+
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Response/ResponseBody.vue"],"names":[],"mappings":";;;;;AAoOA,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineComponent as v, computed as a, toRaw as _, openBlock as t, createBlock as m, unref as u, withCtx as h, createElementBlock as s, Fragment as l, createTextVNode as d, toDisplayString as g } from "vue";
|
|
2
|
+
import { ScalarCodeBlock as k } from "@scalar/components";
|
|
3
|
+
import { normalizeMimeType as B, isJsonString as N } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { normalizeHeaders as S } from "../../../helpers/normalizeHeaders.js";
|
|
5
|
+
import T from "../../CollapsibleSection/CollapsibleSection.vue.js";
|
|
6
|
+
import "../../CollapsibleSection/CollapsibleSection.vue2.js";
|
|
7
|
+
const w = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "scalar-api-client__empty-state"
|
|
10
|
+
}, C = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "scalar-api-client__empty-state"
|
|
13
|
+
}, z = /* @__PURE__ */ v({
|
|
14
|
+
__name: "ResponseBody",
|
|
15
|
+
props: {
|
|
16
|
+
response: {}
|
|
17
|
+
},
|
|
18
|
+
setup(f) {
|
|
19
|
+
const i = f, n = a(() => {
|
|
20
|
+
var o;
|
|
21
|
+
const r = `${S((o = i.response) == null ? void 0 : o.headers)["content-type"]}`;
|
|
22
|
+
return r ? B(r) : null;
|
|
23
|
+
}), p = a(() => n.value === "application/json" ? "json" : (n.value === "text/html" || n.value === "text/plain", "html")), y = a(() => {
|
|
24
|
+
var r;
|
|
25
|
+
const e = (r = i.response) == null ? void 0 : r.data;
|
|
26
|
+
return e && N(e) ? JSON.stringify(JSON.parse(e), null, 2) : e && typeof _(e) == "object" ? JSON.stringify(e, null, 2) : e;
|
|
27
|
+
});
|
|
28
|
+
return (e, r) => (t(), m(u(T), { title: "Body" }, {
|
|
29
|
+
default: h(() => {
|
|
30
|
+
var o, c;
|
|
31
|
+
return [
|
|
32
|
+
e.response ? (t(), s(l, { key: 0 }, [
|
|
33
|
+
p.value || typeof e.response.data == "string" ? (t(), m(u(k), {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "custom-scroll",
|
|
36
|
+
content: y.value || ((c = (o = e.response) == null ? void 0 : o.error) == null ? void 0 : c.message),
|
|
37
|
+
lang: p.value
|
|
38
|
+
}, null, 8, ["content", "lang"])) : (t(), s("div", w, [
|
|
39
|
+
n.value ? (t(), s(l, { key: 0 }, [
|
|
40
|
+
d(" No preview available for " + g(n.value), 1)
|
|
41
|
+
], 64)) : (t(), s(l, { key: 1 }, [
|
|
42
|
+
d(" Can’t render a preview. The Content-Type header is missing or unknown. ")
|
|
43
|
+
], 64))
|
|
44
|
+
]))
|
|
45
|
+
], 64)) : (t(), s("div", C, " No Response "))
|
|
46
|
+
];
|
|
47
|
+
}),
|
|
48
|
+
_: 1
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
z as default
|
|
54
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
headers: Record<string, string>[];
|
|
3
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
4
|
headers: Record<string, string>[];
|
|
5
5
|
}>>>, {}, {}>;
|
|
6
6
|
export default _default;
|
|
7
7
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
-
type
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
9
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
10
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
11
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Response/ResponseHeaders.vue
|
|
1
|
+
{"version":3,"file":"ResponseHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Response/ResponseHeaders.vue"],"names":[],"mappings":";;;;;AAgOA,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|