@scalar/api-client 2.38.1 → 2.38.2
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 +9 -0
- package/dist/AddressBar-B4xnl66I.js +302 -0
- package/dist/AddressBar-B4xnl66I.js.map +1 -0
- package/dist/App-BVH4lIe8.js +533 -0
- package/dist/App-BVH4lIe8.js.map +1 -0
- package/dist/App-CvClwSlM.js +2510 -0
- package/dist/App-CvClwSlM.js.map +1 -0
- package/dist/CodeInput-C-igR77V.js +694 -0
- package/dist/CodeInput-C-igR77V.js.map +1 -0
- package/dist/CodeSnippet-D7Heh1nd.js +218 -0
- package/dist/CodeSnippet-D7Heh1nd.js.map +1 -0
- package/dist/Collection-4MT9WmDD.js +219 -0
- package/dist/Collection-4MT9WmDD.js.map +1 -0
- package/dist/CollectionAuthentication-MHWQpw74.js +56 -0
- package/dist/CollectionAuthentication-MHWQpw74.js.map +1 -0
- package/dist/CollectionCookies-DyjPPMdt.js +19 -0
- package/dist/CollectionCookies-DyjPPMdt.js.map +1 -0
- package/dist/CollectionEnvironment-Dw35vIqo.js +514 -0
- package/dist/CollectionEnvironment-Dw35vIqo.js.map +1 -0
- package/dist/CollectionOverview-TUdDIu5f.js +131 -0
- package/dist/CollectionOverview-TUdDIu5f.js.map +1 -0
- package/dist/CollectionScripts-CMNlBlby.js +19 -0
- package/dist/CollectionScripts-CMNlBlby.js.map +1 -0
- package/dist/CollectionServers-BrjTCfDe.js +168 -0
- package/dist/CollectionServers-BrjTCfDe.js.map +1 -0
- package/dist/CollectionSettings-HVSlp2Gv.js +87 -0
- package/dist/CollectionSettings-HVSlp2Gv.js.map +1 -0
- package/dist/CollectionSync-CAflc5yW.js +19 -0
- package/dist/CollectionSync-CAflc5yW.js.map +1 -0
- package/dist/CommandActionInput-TkcAx6E8.js +97 -0
- package/dist/CommandActionInput-TkcAx6E8.js.map +1 -0
- package/dist/CommandPalette-CL8k4CoN.js +964 -0
- package/dist/CommandPalette-CL8k4CoN.js.map +1 -0
- package/dist/CommandPaletteImport-Diu5dDIY.js +622 -0
- package/dist/CommandPaletteImport-Diu5dDIY.js.map +1 -0
- package/dist/Cookies-DbOKTi1f.js +284 -0
- package/dist/Cookies-DbOKTi1f.js.map +1 -0
- package/dist/DataTable-BqbZKW3K.js +62 -0
- package/dist/DataTable-BqbZKW3K.js.map +1 -0
- package/dist/DataTableHeader-DJVB0jCZ.js +21 -0
- package/dist/DataTableHeader-DJVB0jCZ.js.map +1 -0
- package/dist/DataTableInput-yaU5g-kP.js +166 -0
- package/dist/DataTableInput-yaU5g-kP.js.map +1 -0
- package/dist/DataTableRow-c3XveEUO.js +57 -0
- package/dist/DataTableRow-c3XveEUO.js.map +1 -0
- package/dist/DeleteSidebarListElement-C-p87d03.js +78 -0
- package/dist/DeleteSidebarListElement-C-p87d03.js.map +1 -0
- package/dist/EditSidebarListElement-CodWPnM6.js +32 -0
- package/dist/EditSidebarListElement-CodWPnM6.js.map +1 -0
- package/dist/Editor-BomsGWHx.js +909 -0
- package/dist/Editor-BomsGWHx.js.map +1 -0
- package/dist/EmptyState-Cnm7hGW5.js +46 -0
- package/dist/EmptyState-Cnm7hGW5.js.map +1 -0
- package/dist/Environment-DJatRQIg.js +416 -0
- package/dist/Environment-DJatRQIg.js.map +1 -0
- package/dist/EnvironmentModal-DBEJ4Kzj.js +288 -0
- package/dist/EnvironmentModal-DBEJ4Kzj.js.map +1 -0
- package/dist/Form-CSKzyHGO.js +83 -0
- package/dist/Form-CSKzyHGO.js.map +1 -0
- package/dist/HttpMethod-rnWEgC3T.js +78 -0
- package/dist/HttpMethod-rnWEgC3T.js.map +1 -0
- package/dist/IconSelector-BDC_GQXv.js +67 -0
- package/dist/IconSelector-BDC_GQXv.js.map +1 -0
- package/dist/ImportCollection-DfX1UQ5u.js +804 -0
- package/dist/ImportCollection-DfX1UQ5u.js.map +1 -0
- package/dist/IntegrationLogo-B9EDW8db.js +51 -0
- package/dist/IntegrationLogo-B9EDW8db.js.map +1 -0
- package/dist/MainLayout-BEFMl1ud.js +281 -0
- package/dist/MainLayout-BEFMl1ud.js.map +1 -0
- package/dist/Modal-sQ9vH6MN.js +67 -0
- package/dist/Modal-sQ9vH6MN.js.map +1 -0
- package/dist/ModalClientContainer-qHsZi4wQ.js +65 -0
- package/dist/ModalClientContainer-qHsZi4wQ.js.map +1 -0
- package/dist/Request-gscRsGQ8.js +212 -0
- package/dist/Request-gscRsGQ8.js.map +1 -0
- package/dist/RequestAuth-BzBfIysT.js +989 -0
- package/dist/RequestAuth-BzBfIysT.js.map +1 -0
- package/dist/RequestRoot-3Bj8JZD-.js +1611 -0
- package/dist/RequestRoot-3Bj8JZD-.js.map +1 -0
- package/dist/RequestSection-HhdJj9hW.js +1582 -0
- package/dist/RequestSection-HhdJj9hW.js.map +1 -0
- package/dist/ResponseSection-DMJ0tw8E.js +949 -0
- package/dist/ResponseSection-DMJ0tw8E.js.map +1 -0
- package/dist/ScalarAsciiArt-BjuSnj8e.js +45 -0
- package/dist/ScalarAsciiArt-BjuSnj8e.js.map +1 -0
- package/dist/SectionFilter-hrtoRLwj.js +99 -0
- package/dist/SectionFilter-hrtoRLwj.js.map +1 -0
- package/dist/Server-DnA_BzPS.js +303 -0
- package/dist/Server-DnA_BzPS.js.map +1 -0
- package/dist/ServerVariablesForm-BRZ9XC8o.js +145 -0
- package/dist/ServerVariablesForm-BRZ9XC8o.js.map +1 -0
- package/dist/Settings-CYZzdJPO.js +347 -0
- package/dist/Settings-CYZzdJPO.js.map +1 -0
- package/dist/Sidebar-C6AdX6-N.js +73 -0
- package/dist/Sidebar-C6AdX6-N.js.map +1 -0
- package/dist/SidebarButton-BAagdMDe.js +37 -0
- package/dist/SidebarButton-BAagdMDe.js.map +1 -0
- package/dist/SidebarListElement-BfTPiihc.js +232 -0
- package/dist/SidebarListElement-BfTPiihc.js.map +1 -0
- package/dist/TheCommandPalette-Dl9TAeke.js +204 -0
- package/dist/TheCommandPalette-Dl9TAeke.js.map +1 -0
- package/dist/ValueEmitter-QYkZ9Hdc.js +20 -0
- package/dist/ValueEmitter-QYkZ9Hdc.js.map +1 -0
- package/dist/ViewLayout-BOXN0IYo.js +17 -0
- package/dist/ViewLayout-BOXN0IYo.js.map +1 -0
- package/dist/ViewLayoutCollapse-CiTb-Uml.js +86 -0
- package/dist/ViewLayoutCollapse-CiTb-Uml.js.map +1 -0
- package/dist/ViewLayoutContent-CvMoJYPF.js +13 -0
- package/dist/ViewLayoutContent-CvMoJYPF.js.map +1 -0
- package/dist/ViewLayoutSection-mUqKbQry.js +23 -0
- package/dist/ViewLayoutSection-mUqKbQry.js.map +1 -0
- package/dist/WatchModeToggle-D_eAiTWJ.js +41 -0
- package/dist/WatchModeToggle-D_eAiTWJ.js.map +1 -0
- package/dist/_plugin-vue_export-helper-BmmBcIzD.js +8 -0
- package/dist/analytics-BZimCWcw.js +7 -0
- package/dist/analytics-BZimCWcw.js.map +1 -0
- package/dist/build-request-security-BQjNr2MD.js +41 -0
- package/dist/build-request-security-BQjNr2MD.js.map +1 -0
- package/dist/code-input-iq-moLxi.js +775 -0
- package/dist/code-input-iq-moLxi.js.map +1 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +1 -1
- package/dist/components/AddressBar/index.d.ts +1 -1
- package/dist/components/AddressBar/index.js +5 -4
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -1
- package/dist/components/CodeInput/index.d.ts +1 -1
- package/dist/components/CodeInput/index.js +2 -4
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/CommandPalette/index.js +3 -4
- package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -2
- package/dist/components/DataTable/index.d.ts +8 -8
- package/dist/components/DataTable/index.js +6 -18
- package/dist/components/Form/LabelInput.vue.d.ts +1 -1
- package/dist/components/HttpMethod/index.d.ts +1 -1
- package/dist/components/HttpMethod/index.js +2 -4
- package/dist/components/ImportCollection/index.d.ts +1 -1
- package/dist/components/ImportCollection/index.js +2 -4
- package/dist/components/ImportCollection/utils/import-collection.d.ts +1 -1
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +1 -1
- package/dist/components/Server/index.d.ts +3 -3
- package/dist/components/Server/index.js +3 -8
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.js +2 -4
- package/dist/components/ViewLayout/index.d.ts +1 -1
- package/dist/components/ViewLayout/index.js +2 -4
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +7 -8
- package/dist/components-CSxJTn6F.js +183 -0
- package/dist/components-CSxJTn6F.js.map +1 -0
- package/dist/components-ChixwQhN.js +61 -0
- package/dist/components-ChixwQhN.js.map +1 -0
- package/dist/computer-D7VW3Ruy.js +562 -0
- package/dist/computer-D7VW3Ruy.js.map +1 -0
- package/dist/consts-CyGRb9dl.js +318 -0
- package/dist/consts-CyGRb9dl.js.map +1 -0
- package/dist/curl-nbw1OxbV.js +54 -0
- package/dist/curl-nbw1OxbV.js.map +1 -0
- package/dist/data-table-PL7e8NRO.js +282 -0
- package/dist/data-table-PL7e8NRO.js.map +1 -0
- package/dist/editor-BZ_J0eze.js +466 -0
- package/dist/editor-BZ_J0eze.js.map +1 -0
- package/dist/environments-ByLK9lnC.js +592 -0
- package/dist/environments-ByLK9lnC.js.map +1 -0
- package/dist/formatters-DOGXZq9R.js +36 -0
- package/dist/formatters-DOGXZq9R.js.map +1 -0
- package/dist/forms-CZX6cFDS.js +42 -0
- package/dist/forms-CZX6cFDS.js.map +1 -0
- package/dist/get-active-environment-CkxyQ1dM.js +19 -0
- package/dist/get-active-environment-CkxyQ1dM.js.map +1 -0
- package/dist/get-resolved-url-BUCwrBzc.js +30 -0
- package/dist/get-resolved-url-BUCwrBzc.js.map +1 -0
- package/dist/get-server-url-o3On8CEr.js +32 -0
- package/dist/get-server-url-o3On8CEr.js.map +1 -0
- package/dist/get-servers-B_WNlQWB.js +106 -0
- package/dist/get-servers-B_WNlQWB.js.map +1 -0
- package/dist/get-snippet-DBRUSfZ2.js +39 -0
- package/dist/get-snippet-DBRUSfZ2.js.map +1 -0
- package/dist/global-cookies-D3ZS9ON3.js +184 -0
- package/dist/global-cookies-D3ZS9ON3.js.map +1 -0
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.js +3 -11
- package/dist/hooks/useSidebar.d.ts +1 -1
- package/dist/hooks-BvZxH4XB.js +80 -0
- package/dist/hooks-BvZxH4XB.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -12
- package/dist/layout-BWiL7dfb.js +81 -0
- package/dist/layout-BWiL7dfb.js.map +1 -0
- package/dist/layouts/App/create-api-client-app.d.ts +9 -9
- package/dist/layouts/App/index.d.ts +2 -2
- package/dist/layouts/App/index.js +5 -7
- package/dist/layouts/Modal/create-api-client-modal.d.ts +1 -1
- package/dist/layouts/Modal/index.d.ts +2 -2
- package/dist/layouts/Modal/index.js +3 -4
- package/dist/layouts/Web/create-api-client-web.d.ts +9 -9
- package/dist/layouts/Web/index.d.ts +2 -2
- package/dist/layouts/Web/index.js +101 -6
- package/dist/layouts/Web/index.js.map +1 -0
- package/dist/libs/create-client.d.ts +9 -9
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/environment-parser.d.ts +1 -1
- package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/importers/index.d.ts +1 -1
- package/dist/libs/importers/index.js +2 -4
- package/dist/libs/index.d.ts +15 -15
- package/dist/libs/index.js +6 -45
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts +3 -3
- package/dist/libs/send-request/index.d.ts +3 -3
- package/dist/libs/send-request/index.js +3 -8
- package/dist/libs-spbv4P0g.js +249 -0
- package/dist/libs-spbv4P0g.js.map +1 -0
- package/dist/monacoeditorwork/json.worker.bundle.js +8 -8
- package/dist/monacoeditorwork/yaml.worker.bundle.js +151 -151
- package/dist/operation-block-BnMIKAOh.js +1624 -0
- package/dist/operation-block-BnMIKAOh.js.map +1 -0
- package/dist/operation-code-sample-ZUTueV3v.js +1726 -0
- package/dist/operation-code-sample-ZUTueV3v.js.map +1 -0
- package/dist/parse-curl-BtypQT3D.js +106 -0
- package/dist/parse-curl-BtypQT3D.js.map +1 -0
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/index.d.ts +2 -2
- package/dist/plugins/index.js +2 -7
- package/dist/plugins/plugin-manager.d.ts +10 -4
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/plugins-B52hCIyZ.js +50 -0
- package/dist/plugins-B52hCIyZ.js.map +1 -0
- package/dist/rabbitjump-CMZXAR6d.js +9 -0
- package/dist/rabbitjump-CMZXAR6d.js.map +1 -0
- package/dist/request-block-DwsGy64Q.js +1466 -0
- package/dist/request-block-DwsGy64Q.js.map +1 -0
- package/dist/resize-D2IYvVdh.js +114 -0
- package/dist/resize-D2IYvVdh.js.map +1 -0
- package/dist/response-block-DmkaDZYs.js +1188 -0
- package/dist/response-block-DmkaDZYs.js.map +1 -0
- package/dist/scalar-address-bar-block--Vs6IBU1.js +425 -0
- package/dist/scalar-address-bar-block--Vs6IBU1.js.map +1 -0
- package/dist/scalar-auth-selector-block-DI3DLag9.js +1886 -0
- package/dist/scalar-auth-selector-block-DI3DLag9.js.map +1 -0
- package/dist/search-CmsQQkjn.js +151 -0
- package/dist/search-CmsQQkjn.js.map +1 -0
- package/dist/send-request-BsTfRiBC.js +348 -0
- package/dist/send-request-BsTfRiBC.js.map +1 -0
- package/dist/server-tcI-OCyx.js +140 -0
- package/dist/server-tcI-OCyx.js.map +1 -0
- package/dist/set-request-cookies-BJJhsU4A.js +88 -0
- package/dist/set-request-cookies-BJJhsU4A.js.map +1 -0
- package/dist/settings-BKk_1lcH.js +455 -0
- package/dist/settings-BKk_1lcH.js.map +1 -0
- package/dist/sidebar-ceSbYmnt.js +217 -0
- package/dist/sidebar-ceSbYmnt.js.map +1 -0
- package/dist/store/collections.d.ts +1 -1
- package/dist/store/environment.d.ts +1 -1
- package/dist/store/events.d.ts +8 -8
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/index.d.ts +2 -2
- package/dist/store/index.js +2 -10
- package/dist/store/request-example.d.ts +1 -1
- package/dist/store/requests.d.ts +1 -1
- package/dist/store/security-schemes.d.ts +1 -1
- package/dist/store/servers.d.ts +1 -1
- package/dist/store/store.d.ts +7 -7
- package/dist/store/tags.d.ts +1 -1
- package/dist/store/workspace.d.ts +1 -1
- package/dist/store-DpSUVhjp.js +1512 -0
- package/dist/store-DpSUVhjp.js.map +1 -0
- package/dist/string-template-sS5PtY6T.js +64 -0
- package/dist/string-template-sS5PtY6T.js.map +1 -0
- package/dist/style.css +10372 -1
- package/dist/types/index.js +0 -1
- package/dist/use-global-hot-keys-D8Ai8Qbm.js +274 -0
- package/dist/use-global-hot-keys-D8Ai8Qbm.js.map +1 -0
- package/dist/useSidebar-DLTwHDI-.js +45 -0
- package/dist/useSidebar-DLTwHDI-.js.map +1 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +3 -3
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +2 -2
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +2 -2
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +2 -2
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.d.ts +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
- package/dist/v2/blocks/operation-block/index.d.ts +4 -4
- package/dist/v2/blocks/operation-block/index.js +20 -11
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts +6 -6
- package/dist/v2/blocks/operation-code-sample/index.js +2 -16
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +3 -2
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +1 -1
- package/dist/v2/blocks/request-block/index.d.ts +1 -1
- package/dist/v2/blocks/request-block/index.js +9 -4
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/index.d.ts +1 -1
- package/dist/v2/blocks/response-block/index.js +6 -4
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/index.js +5 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +4 -4
- package/dist/v2/blocks/scalar-auth-selector-block/index.js +6 -8
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +1 -1
- package/dist/v2/components/code-input/index.d.ts +1 -1
- package/dist/v2/components/code-input/index.js +2 -4
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +1 -1
- package/dist/v2/components/data-table/index.d.ts +8 -8
- package/dist/v2/components/data-table/index.js +3 -18
- package/dist/v2/components/forms/index.d.ts +1 -1
- package/dist/v2/components/forms/index.js +2 -4
- package/dist/v2/components/layout/index.d.ts +1 -1
- package/dist/v2/components/layout/index.js +2 -4
- package/dist/v2/components/modals/index.d.ts +1 -1
- package/dist/v2/components/modals/index.js +37 -3
- package/dist/v2/components/modals/index.js.map +1 -0
- package/dist/v2/components/resize/index.d.ts +2 -2
- package/dist/v2/components/resize/index.js +2 -6
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +1 -1
- package/dist/v2/components/server/index.d.ts +1 -1
- package/dist/v2/components/server/index.js +2 -4
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/v2/components/sidebar/index.d.ts +3 -3
- package/dist/v2/components/sidebar/index.js +3 -8
- package/dist/v2/features/app/App.vue.d.ts +4 -4
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +1 -1
- package/dist/v2/features/app/components/index.d.ts +1 -1
- package/dist/v2/features/app/components/index.js +10 -5
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +3 -3
- package/dist/v2/features/app/helpers/get-route-param.d.ts +1 -1
- package/dist/v2/features/app/helpers/routes.d.ts +5 -5
- package/dist/v2/features/app/hooks/use-theme.d.ts +1 -1
- package/dist/v2/features/app/index.d.ts +8 -8
- package/dist/v2/features/app/index.js +3161 -19
- package/dist/v2/features/app/index.js.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/OperationCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Editor/index.d.ts +1 -1
- package/dist/v2/features/collection/components/Editor/index.js +2 -4
- package/dist/v2/features/collection/components/Environment.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Overview.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Servers.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Settings.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +1 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +10 -45
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/index.d.ts +2 -2
- package/dist/v2/features/command-palette/index.js +3 -6
- package/dist/v2/features/editor/helpers/json/create-json-model.d.ts +1 -1
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts +1 -1
- package/dist/v2/features/editor/helpers/json/json-pointer-path.d.ts +1 -1
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts +1 -1
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts +1 -1
- package/dist/v2/features/editor/hooks/use-editor.d.ts +1 -1
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts +1 -1
- package/dist/v2/features/editor/index.d.ts +4 -4
- package/dist/v2/features/editor/index.js +2 -10
- package/dist/v2/features/environments/index.d.ts +1 -1
- package/dist/v2/features/environments/index.js +4 -4
- package/dist/v2/features/global-cookies/index.d.ts +1 -1
- package/dist/v2/features/global-cookies/index.js +4 -4
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -2
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts +1 -1
- package/dist/v2/features/modal/index.d.ts +3 -3
- package/dist/v2/features/modal/index.js +639 -7
- package/dist/v2/features/modal/index.js.map +1 -0
- package/dist/v2/features/modal/modal-events.d.ts +1 -1
- package/dist/v2/features/operation/Operation.vue.d.ts +2 -2
- package/dist/v2/features/operation/index.d.ts +5 -5
- package/dist/v2/features/operation/index.js +19 -12
- package/dist/v2/features/search/helpers/create-fuse-instance.d.ts +1 -1
- package/dist/v2/features/search/helpers/create-search-index.d.ts +1 -1
- package/dist/v2/features/search/index.d.ts +1 -1
- package/dist/v2/features/search/index.js +2 -4
- package/dist/v2/features/settings/index.d.ts +2 -2
- package/dist/v2/features/settings/index.js +2 -6
- package/dist/v2/helpers/get-active-proxy-url.d.ts +1 -1
- package/dist/v2/helpers/get-tab-details.d.ts +1 -1
- package/dist/v2/helpers/handle-hotkeys.d.ts +1 -1
- package/dist/v2/helpers/index.d.ts +2 -2
- package/dist/v2/helpers/index.js +3 -6
- package/dist/v2/hooks/use-global-hot-keys.d.ts +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/index.d.ts +4 -4
- package/dist/views/Components/CodeSnippet/index.js +3 -10
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
- package/dist/views/Environment/handle-drag.d.ts +1 -1
- package/dist/views/Request/Request.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -8
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.d.ts +2 -2
- package/dist/views/Request/RequestSection/index.js +42 -5
- package/dist/views/Request/RequestSection/index.js.map +1 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -3
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/index.d.ts +2 -2
- package/dist/views/Request/ResponseSection/index.js +7 -6
- package/dist/views/Request/components/index.d.ts +1 -1
- package/dist/views/Request/components/index.js +2 -4
- package/dist/views/Request/consts/index.d.ts +2 -2
- package/dist/views/Request/consts/index.js +2 -10
- package/dist/views/Request/handle-drag.d.ts +2 -2
- package/dist/views/Request/libs/auth.d.ts +1 -1
- package/dist/views/Request/libs/index.d.ts +3 -3
- package/dist/views/Request/libs/index.js +3 -22
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/watch-mode.d.ts +2 -2
- package/dist/views/Request/types/index.js +0 -1
- package/dist/watch-mode-Dbaqd9bG.js +375 -0
- package/dist/watch-mode-Dbaqd9bG.js.map +1 -0
- package/package.json +29 -33
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/analytics.js +0 -9
- package/dist/assets/computer.ascii.js +0 -34
- package/dist/assets/keycap.ascii.js +0 -25
- package/dist/assets/rabbit.ascii.js +0 -11
- package/dist/assets/rabbitjump.ascii.js +0 -11
- package/dist/components/AddressBar/AddressBar.vue.js +0 -7
- package/dist/components/AddressBar/AddressBar.vue2.js +0 -160
- package/dist/components/AddressBar/AddressBarHistory.vue.js +0 -7
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +0 -98
- package/dist/components/AddressBar/httpStatusCodeColors.js +0 -38
- package/dist/components/CodeInput/CodeInput.vue.js +0 -8
- package/dist/components/CodeInput/CodeInput.vue2.js +0 -209
- package/dist/components/CodeInput/codeVariableWidget.js +0 -111
- package/dist/components/CommandPalette/CommandActionForm.vue.js +0 -44
- package/dist/components/CommandPalette/CommandActionForm.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandActionInput.vue.js +0 -52
- package/dist/components/CommandPalette/CommandActionInput.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +0 -80
- package/dist/components/CommandPalette/CommandPaletteCollection.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +0 -116
- package/dist/components/CommandPalette/CommandPaletteExample.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +0 -217
- package/dist/components/CommandPalette/CommandPaletteImport.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +0 -136
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +0 -123
- package/dist/components/CommandPalette/CommandPaletteServer.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +0 -84
- package/dist/components/CommandPalette/CommandPaletteTag.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +0 -48
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +0 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +0 -7
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -305
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +0 -39
- package/dist/components/CommandPalette/WatchModeToggle.vue2.js +0 -4
- package/dist/components/DataTable/DataTable.vue.js +0 -38
- package/dist/components/DataTable/DataTable.vue2.js +0 -4
- package/dist/components/DataTable/DataTableCell.vue.js +0 -26
- package/dist/components/DataTable/DataTableCell.vue2.js +0 -4
- package/dist/components/DataTable/DataTableCheckbox.vue.js +0 -53
- package/dist/components/DataTable/DataTableCheckbox.vue2.js +0 -4
- package/dist/components/DataTable/DataTableHeader.vue.js +0 -18
- package/dist/components/DataTable/DataTableHeader.vue2.js +0 -4
- package/dist/components/DataTable/DataTableInput.vue.js +0 -7
- package/dist/components/DataTable/DataTableInput.vue2.js +0 -124
- package/dist/components/DataTable/DataTableInputSelect.vue.js +0 -146
- package/dist/components/DataTable/DataTableInputSelect.vue2.js +0 -4
- package/dist/components/DataTable/DataTableRow.vue.js +0 -12
- package/dist/components/DataTable/DataTableText.vue.js +0 -23
- package/dist/components/DataTable/DataTableText.vue2.js +0 -4
- package/dist/components/EmptyState.vue.js +0 -7
- package/dist/components/EmptyState.vue2.js +0 -42
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +0 -113
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue2.js +0 -4
- package/dist/components/Form/Form.vue.js +0 -83
- package/dist/components/Form/Form.vue2.js +0 -4
- package/dist/components/Form/LabelInput.vue.js +0 -7
- package/dist/components/Form/LabelInput.vue2.js +0 -42
- package/dist/components/HelpfulLink.vue.js +0 -20
- package/dist/components/HelpfulLink.vue2.js +0 -4
- package/dist/components/HttpMethod/HttpMethod.vue.js +0 -7
- package/dist/components/HttpMethod/HttpMethod.vue2.js +0 -62
- package/dist/components/IconSelector.vue.js +0 -75
- package/dist/components/IconSelector.vue2.js +0 -4
- package/dist/components/ImportCollection/DropEventListener.vue.js +0 -81
- package/dist/components/ImportCollection/DropEventListener.vue2.js +0 -4
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +0 -77
- package/dist/components/ImportCollection/ImportCollectionListener.vue2.js +0 -4
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +0 -208
- package/dist/components/ImportCollection/ImportCollectionModal.vue3.js +0 -5
- package/dist/components/ImportCollection/ImportNowButton.vue.js +0 -73
- package/dist/components/ImportCollection/ImportNowButton.vue2.js +0 -4
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +0 -44
- package/dist/components/ImportCollection/IntegrationLogo.vue2.js +0 -4
- package/dist/components/ImportCollection/PasteEventListener.vue.js +0 -24
- package/dist/components/ImportCollection/PasteEventListener.vue2.js +0 -4
- package/dist/components/ImportCollection/PrefetchError.vue.js +0 -27
- package/dist/components/ImportCollection/PrefetchError.vue2.js +0 -4
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +0 -20
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue2.js +0 -4
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +0 -134
- package/dist/components/ImportCollection/WorkspaceSelector.vue2.js +0 -4
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +0 -106
- package/dist/components/ImportCollection/utils/get-openapi-version.js +0 -20
- package/dist/components/ImportCollection/utils/import-collection.js +0 -29
- package/dist/components/ImportCollection/utils/is-document.js +0 -9
- package/dist/components/ImportCollection/utils/is-url.js +0 -9
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.js +0 -7
- package/dist/components/OpenApiClientButton.vue.js +0 -7
- package/dist/components/OpenApiClientButton.vue2.js +0 -48
- package/dist/components/ScalarAsciiArt.vue.js +0 -7
- package/dist/components/ScalarAsciiArt.vue2.js +0 -37
- package/dist/components/Search/useSearch.js +0 -78
- package/dist/components/SectionFilter.vue.js +0 -7
- package/dist/components/SectionFilter.vue2.js +0 -64
- package/dist/components/SectionFilterButton.vue.js +0 -23
- package/dist/components/SectionFilterButton.vue2.js +0 -4
- package/dist/components/Server/ServerDropdown.vue.js +0 -132
- package/dist/components/Server/ServerDropdown.vue2.js +0 -4
- package/dist/components/Server/ServerDropdownItem.vue.js +0 -7
- package/dist/components/Server/ServerDropdownItem.vue2.js +0 -84
- package/dist/components/Server/ServerSelector.vue.js +0 -82
- package/dist/components/Server/ServerSelector.vue2.js +0 -4
- package/dist/components/Server/ServerVariablesForm.vue.js +0 -49
- package/dist/components/Server/ServerVariablesForm.vue2.js +0 -4
- package/dist/components/Server/ServerVariablesSelect.vue.js +0 -54
- package/dist/components/Server/ServerVariablesSelect.vue2.js +0 -4
- package/dist/components/Server/ServerVariablesTextbox.vue.js +0 -29
- package/dist/components/Server/ServerVariablesTextbox.vue2.js +0 -4
- package/dist/components/SideNav/DownloadAppButton.vue.js +0 -7
- package/dist/components/SideNav/DownloadAppButton.vue2.js +0 -33
- package/dist/components/SideNav/SideHelp.vue.js +0 -127
- package/dist/components/SideNav/SideHelp.vue2.js +0 -4
- package/dist/components/SideNav/SideNav.vue.js +0 -96
- package/dist/components/SideNav/SideNav.vue2.js +0 -4
- package/dist/components/SideNav/SideNavGroup.vue.js +0 -16
- package/dist/components/SideNav/SideNavGroup.vue2.js +0 -4
- package/dist/components/SideNav/SideNavLink.vue.js +0 -39
- package/dist/components/SideNav/SideNavLink.vue2.js +0 -4
- package/dist/components/SideNav/SideNavRouterLink.vue.js +0 -27
- package/dist/components/SideNav/SideNavRouterLink.vue2.js +0 -4
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +0 -30
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue2.js +0 -4
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +0 -58
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue2.js +0 -4
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +0 -29
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue2.js +0 -4
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +0 -46
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +0 -4
- package/dist/components/Sidebar/Sidebar.vue.js +0 -7
- package/dist/components/Sidebar/Sidebar.vue2.js +0 -63
- package/dist/components/Sidebar/SidebarButton.vue.js +0 -33
- package/dist/components/Sidebar/SidebarButton.vue2.js +0 -4
- package/dist/components/Sidebar/SidebarList.vue.js +0 -12
- package/dist/components/Sidebar/SidebarListElement.vue.js +0 -8
- package/dist/components/Sidebar/SidebarListElement.vue2.js +0 -94
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +0 -86
- package/dist/components/Sidebar/SidebarListElementActions.vue2.js +0 -4
- package/dist/components/Sidebar/SidebarToggle.vue.js +0 -49
- package/dist/components/Sidebar/SidebarToggle.vue2.js +0 -4
- package/dist/components/TopNav/TopNav.vue.js +0 -210
- package/dist/components/TopNav/TopNav.vue2.js +0 -4
- package/dist/components/TopNav/TopNavItem.vue.js +0 -7
- package/dist/components/TopNav/TopNavItem.vue2.js +0 -138
- package/dist/components/ViewLayout/ViewLayout.vue.js +0 -18
- package/dist/components/ViewLayout/ViewLayout.vue2.js +0 -4
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +0 -92
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue2.js +0 -4
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +0 -12
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +0 -23
- package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +0 -4
- package/dist/constants.js +0 -40
- package/dist/data/httpHeaders.js +0 -537
- package/dist/hooks/useAnalytics.js +0 -11
- package/dist/hooks/useClientConfig.js +0 -7
- package/dist/hooks/useFileDialog.js +0 -21
- package/dist/hooks/useLayout.js +0 -8
- package/dist/hooks/useResponseBody.js +0 -20
- package/dist/hooks/useSidebar.js +0 -28
- package/dist/layouts/App/ApiClientApp.vue.js +0 -70
- package/dist/layouts/App/ApiClientApp.vue3.js +0 -5
- package/dist/layouts/App/MainLayout.vue.js +0 -26
- package/dist/layouts/App/MainLayout.vue2.js +0 -4
- package/dist/layouts/App/create-api-client-app.js +0 -35
- package/dist/layouts/App/hotkeys.js +0 -21
- package/dist/layouts/Modal/ApiClientModal.vue.js +0 -30
- package/dist/layouts/Modal/ApiClientModal.vue2.js +0 -4
- package/dist/layouts/Modal/create-api-client-modal.js +0 -32
- package/dist/layouts/Web/ApiClientWeb.vue.js +0 -64
- package/dist/layouts/Web/ApiClientWeb.vue3.js +0 -5
- package/dist/layouts/Web/create-api-client-web.js +0 -32
- package/dist/libs/create-client.js +0 -189
- package/dist/libs/electron.js +0 -4
- package/dist/libs/env-helpers.js +0 -6
- package/dist/libs/environment-parser.js +0 -18
- package/dist/libs/errors.js +0 -16
- package/dist/libs/event-bus.js +0 -32
- package/dist/libs/extractAttachmentFilename.js +0 -18
- package/dist/libs/find-request.js +0 -23
- package/dist/libs/formatters.js +0 -10
- package/dist/libs/get-request-uid-by-path-method.js +0 -18
- package/dist/libs/getOpenApiDocumentDetails.js +0 -40
- package/dist/libs/hot-keys.js +0 -44
- package/dist/libs/importers/curl.js +0 -53
- package/dist/libs/isUrl.js +0 -7
- package/dist/libs/local-storage.js +0 -41
- package/dist/libs/normalize-headers.js +0 -27
- package/dist/libs/parse-curl.js +0 -59
- package/dist/libs/postman.js +0 -37
- package/dist/libs/send-request/build-request-security.js +0 -35
- package/dist/libs/send-request/create-fetch-body.js +0 -25
- package/dist/libs/send-request/create-fetch-headers.js +0 -11
- package/dist/libs/send-request/create-fetch-query-params.js +0 -33
- package/dist/libs/send-request/create-request-operation.js +0 -140
- package/dist/libs/send-request/decode-buffer.js +0 -9
- package/dist/libs/send-request/set-request-cookies.js +0 -58
- package/dist/libs/string-template.js +0 -42
- package/dist/libs/validate-parameters.js +0 -16
- package/dist/plugins/hooks/usePluginManager.js +0 -10
- package/dist/plugins/plugin-manager.js +0 -26
- package/dist/routes.js +0 -210
- package/dist/store/active-entities.js +0 -118
- package/dist/store/collections.js +0 -73
- package/dist/store/cookies.js +0 -13
- package/dist/store/environment.js +0 -32
- package/dist/store/events.js +0 -35
- package/dist/store/import-spec.js +0 -55
- package/dist/store/request-example.js +0 -43
- package/dist/store/requests.js +0 -97
- package/dist/store/router-params.js +0 -22
- package/dist/store/security-schemes.js +0 -55
- package/dist/store/servers.js +0 -39
- package/dist/store/store.js +0 -144
- package/dist/store/tags.js +0 -45
- package/dist/store/workspace.js +0 -52
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +0 -242
- package/dist/v2/blocks/operation-block/OperationBlock.vue2.js +0 -4
- package/dist/v2/blocks/operation-block/components/Header.vue.js +0 -7
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +0 -100
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +0 -40
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +0 -31
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +0 -107
- package/dist/v2/blocks/operation-block/helpers/build-request-security.js +0 -46
- package/dist/v2/blocks/operation-block/helpers/build-request.js +0 -70
- package/dist/v2/blocks/operation-block/helpers/de-serialize-parameter.js +0 -25
- package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +0 -9
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.js +0 -14
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js +0 -4
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.js +0 -7
- package/dist/v2/blocks/operation-block/helpers/get-example.js +0 -36
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.js +0 -17
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +0 -4
- package/dist/v2/blocks/operation-block/helpers/get-server-url.js +0 -12
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js +0 -31
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.js +0 -43
- package/dist/v2/blocks/operation-block/helpers/response-cache.js +0 -12
- package/dist/v2/blocks/operation-block/helpers/send-request.js +0 -122
- package/dist/v2/blocks/operation-block/helpers/serialize-parameter.js +0 -49
- package/dist/v2/blocks/operation-block/helpers/validate-path-parameters.js +0 -17
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +0 -56
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue2.js +0 -4
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +0 -30
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue2.js +0 -4
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +0 -7
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +0 -227
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.js +0 -22
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +0 -27
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +0 -40
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.js +0 -20
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.js +0 -4
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +0 -302
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +0 -28
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.js +0 -10
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +0 -67
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +0 -66
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -172
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.js +0 -55
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +0 -18
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +0 -7
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +0 -347
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +0 -7
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +0 -191
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +0 -84
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +0 -4
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +0 -135
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue2.js +0 -4
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +0 -78
- package/dist/v2/blocks/request-block/components/RequestParams.vue2.js +0 -4
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +0 -7
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +0 -74
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +0 -204
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue2.js +0 -4
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +0 -7
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +0 -63
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +0 -55
- package/dist/v2/blocks/request-block/helpers/files.js +0 -7
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +0 -26
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +0 -29
- package/dist/v2/blocks/request-block/helpers/get-parameter-content.js +0 -9
- package/dist/v2/blocks/request-block/helpers/get-parameter-schema.js +0 -6
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +0 -16
- package/dist/v2/blocks/request-block/helpers/group-by.js +0 -10
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.js +0 -7
- package/dist/v2/blocks/request-block/helpers/validate-parameter.js +0 -32
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +0 -7
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +0 -180
- package/dist/v2/blocks/response-block/components/Headers.vue.js +0 -96
- package/dist/v2/blocks/response-block/components/Headers.vue2.js +0 -4
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +0 -7
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +0 -87
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +0 -36
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue2.js +0 -4
- package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.js +0 -14
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +0 -7
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +0 -63
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +0 -7
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue2.js +0 -41
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +0 -94
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue2.js +0 -4
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +0 -25
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue2.js +0 -4
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js +0 -52
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue3.js +0 -5
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +0 -54
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue2.js +0 -4
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +0 -7
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +0 -79
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +0 -7
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +0 -46
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +0 -67
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue2.js +0 -4
- package/dist/v2/blocks/response-block/helpers/extract-filename.js +0 -18
- package/dist/v2/blocks/response-block/helpers/get-content-length.js +0 -12
- package/dist/v2/blocks/response-block/helpers/media-types.js +0 -126
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js +0 -12
- package/dist/v2/blocks/response-block/helpers/process-response-body.js +0 -16
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +0 -7
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +0 -208
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +0 -7
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +0 -95
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +0 -145
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue2.js +0 -4
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -38
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js +0 -25
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +0 -184
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +0 -51
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +0 -330
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +0 -7
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +0 -76
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +0 -165
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue3.js +0 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +0 -91
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +0 -83
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +0 -46
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +0 -244
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +0 -97
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +0 -135
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +0 -35
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.js +0 -7
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +0 -23
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +0 -139
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +0 -27
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +0 -64
- package/dist/v2/components/callout/Callout.vue.js +0 -7
- package/dist/v2/components/callout/Callout.vue2.js +0 -43
- package/dist/v2/components/code-input/CodeInput.vue.js +0 -8
- package/dist/v2/components/code-input/CodeInput.vue2.js +0 -213
- package/dist/v2/components/code-input/code-variable-widget.js +0 -106
- package/dist/v2/components/data-table/DataTable.vue.js +0 -38
- package/dist/v2/components/data-table/DataTable.vue2.js +0 -4
- package/dist/v2/components/data-table/DataTableCell.vue.js +0 -26
- package/dist/v2/components/data-table/DataTableCell.vue2.js +0 -4
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +0 -53
- package/dist/v2/components/data-table/DataTableCheckbox.vue2.js +0 -4
- package/dist/v2/components/data-table/DataTableHeader.vue.js +0 -18
- package/dist/v2/components/data-table/DataTableHeader.vue2.js +0 -4
- package/dist/v2/components/data-table/DataTableInput.vue.js +0 -7
- package/dist/v2/components/data-table/DataTableInput.vue2.js +0 -121
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +0 -149
- package/dist/v2/components/data-table/DataTableInputSelect.vue2.js +0 -4
- package/dist/v2/components/data-table/DataTableRow.vue.js +0 -12
- package/dist/v2/components/data-table/DataTableText.vue.js +0 -23
- package/dist/v2/components/data-table/DataTableText.vue2.js +0 -4
- package/dist/v2/components/forms/ConfirmationForm.vue.js +0 -45
- package/dist/v2/components/forms/ConfirmationForm.vue2.js +0 -4
- package/dist/v2/components/layout/CollapsibleSection.vue.js +0 -89
- package/dist/v2/components/layout/CollapsibleSection.vue2.js +0 -4
- package/dist/v2/components/layout/ValueEmitter.vue.js +0 -21
- package/dist/v2/components/layout/ValueEmitter.vue2.js +0 -4
- package/dist/v2/components/modals/DeleteModal.vue.js +0 -31
- package/dist/v2/components/modals/DeleteModal.vue2.js +0 -4
- package/dist/v2/components/modals/ModalClientContainer.vue.js +0 -7
- package/dist/v2/components/modals/ModalClientContainer.vue2.js +0 -60
- package/dist/v2/components/resize/Resize.vue.js +0 -8
- package/dist/v2/components/resize/Resize.vue2.js +0 -36
- package/dist/v2/components/resize/use-split-resize.js +0 -57
- package/dist/v2/components/server/ServerDropdown.vue.js +0 -91
- package/dist/v2/components/server/ServerDropdown.vue2.js +0 -4
- package/dist/v2/components/server/ServerDropdownItem.vue.js +0 -7
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +0 -49
- package/dist/v2/components/sidebar/Sidebar.vue.js +0 -115
- package/dist/v2/components/sidebar/Sidebar.vue2.js +0 -4
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +0 -52
- package/dist/v2/components/sidebar/SidebarMenu.vue2.js +0 -4
- package/dist/v2/components/sidebar/SidebarToggle.vue.js +0 -52
- package/dist/v2/components/sidebar/SidebarToggle.vue2.js +0 -4
- package/dist/v2/features/app/App.vue.js +0 -152
- package/dist/v2/features/app/App.vue3.js +0 -5
- package/dist/v2/features/app/app-events.js +0 -251
- package/dist/v2/features/app/app-state.js +0 -415
- package/dist/v2/features/app/components/AppSidebar.vue.js +0 -7
- package/dist/v2/features/app/components/AppSidebar.vue2.js +0 -304
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +0 -56
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue2.js +0 -4
- package/dist/v2/features/app/components/DesktopTab.vue.js +0 -7
- package/dist/v2/features/app/components/DesktopTab.vue2.js +0 -134
- package/dist/v2/features/app/components/DesktopTabs.vue.js +0 -56
- package/dist/v2/features/app/components/DesktopTabs.vue2.js +0 -4
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +0 -7
- package/dist/v2/features/app/components/DownloadAppButton.vue2.js +0 -19
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +0 -185
- package/dist/v2/features/app/components/SidebarItemMenu.vue2.js +0 -4
- package/dist/v2/features/app/components/SplashScreen.vue.js +0 -7
- package/dist/v2/features/app/components/SplashScreen.vue2.js +0 -18
- package/dist/v2/features/app/helpers/create-api-client-app.js +0 -36
- package/dist/v2/features/app/helpers/filter-workspaces.js +0 -5
- package/dist/v2/features/app/helpers/get-route-param.js +0 -9
- package/dist/v2/features/app/helpers/group-workspaces.js +0 -23
- package/dist/v2/features/app/helpers/routes.js +0 -157
- package/dist/v2/features/app/hooks/use-document-watcher.js +0 -66
- package/dist/v2/features/app/hooks/use-theme.js +0 -48
- package/dist/v2/features/collection/DocumentCollection.vue.js +0 -336
- package/dist/v2/features/collection/DocumentCollection.vue3.js +0 -5
- package/dist/v2/features/collection/OperationCollection.vue.js +0 -86
- package/dist/v2/features/collection/OperationCollection.vue2.js +0 -4
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +0 -68
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +0 -4
- package/dist/v2/features/collection/components/Authentication.vue.js +0 -7
- package/dist/v2/features/collection/components/Authentication.vue2.js +0 -154
- package/dist/v2/features/collection/components/Cookies.vue.js +0 -52
- package/dist/v2/features/collection/components/Cookies.vue2.js +0 -4
- package/dist/v2/features/collection/components/Editor/Editor.vue.js +0 -7
- package/dist/v2/features/collection/components/Editor/Editor.vue2.js +0 -344
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js +0 -78
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue2.js +0 -4
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js +0 -83
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue2.js +0 -4
- package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js +0 -10
- package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js +0 -5
- package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js +0 -5
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +0 -21
- package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js +0 -5
- package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js +0 -25
- package/dist/v2/features/collection/components/Environment.vue.js +0 -54
- package/dist/v2/features/collection/components/Environment.vue2.js +0 -4
- package/dist/v2/features/collection/components/Form.vue.js +0 -78
- package/dist/v2/features/collection/components/Form.vue2.js +0 -4
- package/dist/v2/features/collection/components/LabelInput.vue.js +0 -7
- package/dist/v2/features/collection/components/LabelInput.vue2.js +0 -35
- package/dist/v2/features/collection/components/Overview.vue.js +0 -7
- package/dist/v2/features/collection/components/Overview.vue2.js +0 -208
- package/dist/v2/features/collection/components/Servers.vue.js +0 -210
- package/dist/v2/features/collection/components/Servers.vue2.js +0 -4
- package/dist/v2/features/collection/components/Settings.vue.js +0 -61
- package/dist/v2/features/collection/components/Settings.vue2.js +0 -4
- package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue.js +0 -7
- package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue2.js +0 -136
- package/dist/v2/features/collection/components/Tabs.vue.js +0 -44
- package/dist/v2/features/collection/components/Tabs.vue2.js +0 -4
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +0 -13
- package/dist/v2/features/command-palette/TheCommandPalette.vue.js +0 -7
- package/dist/v2/features/command-palette/TheCommandPalette.vue2.js +0 -152
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +0 -48
- package/dist/v2/features/command-palette/components/CommandActionForm.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +0 -52
- package/dist/v2/features/command-palette/components/CommandActionInput.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +0 -211
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +0 -182
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue2.js +0 -115
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js +0 -78
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +0 -221
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +0 -114
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +0 -40
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue2.js +0 -4
- package/dist/v2/features/command-palette/helpers/generate-unique-slug.js +0 -11
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +0 -31
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +0 -11
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +0 -76
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +0 -18
- package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js +0 -33
- package/dist/v2/features/command-palette/helpers/is-postman-collection.js +0 -11
- package/dist/v2/features/command-palette/helpers/load-document-from-source.js +0 -52
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -139
- package/dist/v2/features/editor/config.js +0 -16
- package/dist/v2/features/editor/helpers/configure-language-support.js +0 -39
- package/dist/v2/features/editor/helpers/ensure-monaco-environment.js +0 -20
- package/dist/v2/features/editor/helpers/json/create-json-model.js +0 -19
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js +0 -9
- package/dist/v2/features/editor/helpers/json/json-ast.js +0 -24
- package/dist/v2/features/editor/helpers/json/json-pointer-links.js +0 -72
- package/dist/v2/features/editor/helpers/json/json-pointer-path.js +0 -21
- package/dist/v2/features/editor/helpers/range-to-whole-line.js +0 -8
- package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js +0 -56
- package/dist/v2/features/editor/helpers/theme/load-css-variables.js +0 -21
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js +0 -19
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js +0 -50
- package/dist/v2/features/editor/hooks/use-editor-markers.js +0 -34
- package/dist/v2/features/editor/hooks/use-editor.js +0 -107
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js +0 -27
- package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js +0 -316
- package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js +0 -25
- package/dist/v2/features/environments/EnvironmentsList.vue.js +0 -68
- package/dist/v2/features/environments/EnvironmentsList.vue2.js +0 -4
- package/dist/v2/features/environments/components/Environment.vue.js +0 -66
- package/dist/v2/features/environments/components/Environment.vue2.js +0 -4
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +0 -121
- package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +0 -4
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +0 -85
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +0 -4
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +0 -53
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +0 -4
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +0 -109
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue2.js +0 -4
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +0 -7
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +0 -136
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +0 -7
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +0 -189
- package/dist/v2/features/modal/Modal.vue.js +0 -122
- package/dist/v2/features/modal/Modal.vue2.js +0 -4
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +0 -89
- package/dist/v2/features/modal/helpers/map-hidden-clients-config.js +0 -36
- package/dist/v2/features/modal/helpers/resolve-route-parameters.js +0 -29
- package/dist/v2/features/modal/helpers/restore-workspace-state.js +0 -36
- package/dist/v2/features/modal/hooks/use-modal-sidebar.js +0 -93
- package/dist/v2/features/modal/modal-events.js +0 -44
- package/dist/v2/features/operation/Operation.vue.js +0 -126
- package/dist/v2/features/operation/Operation.vue2.js +0 -4
- package/dist/v2/features/operation/helpers/combine-params.js +0 -14
- package/dist/v2/features/operation/helpers/get-security-requirements.js +0 -4
- package/dist/v2/features/operation/helpers/get-selected-security.js +0 -18
- package/dist/v2/features/operation/helpers/get-selected-server.js +0 -4
- package/dist/v2/features/search/helpers/create-fuse-instance.js +0 -43
- package/dist/v2/features/search/helpers/create-search-index.js +0 -63
- package/dist/v2/features/search/hooks/use-search-index.js +0 -18
- package/dist/v2/features/settings/CollectionSettings.vue.js +0 -275
- package/dist/v2/features/settings/CollectionSettings.vue2.js +0 -4
- package/dist/v2/features/settings/DocumentSettings.vue.js +0 -115
- package/dist/v2/features/settings/DocumentSettings.vue2.js +0 -4
- package/dist/v2/features/settings/components/Appearance.vue.js +0 -88
- package/dist/v2/features/settings/components/Appearance.vue2.js +0 -4
- package/dist/v2/features/settings/components/Section.vue.js +0 -35
- package/dist/v2/features/settings/components/Section.vue2.js +0 -4
- package/dist/v2/features/settings/helpers/get-theme-colors.js +0 -16
- package/dist/v2/helpers/drag-handle-factory.js +0 -120
- package/dist/v2/helpers/generate-location-id.js +0 -10
- package/dist/v2/helpers/get-active-environment.js +0 -22
- package/dist/v2/helpers/get-active-proxy-url.js +0 -5
- package/dist/v2/helpers/get-servers.js +0 -66
- package/dist/v2/helpers/get-tab-details.js +0 -34
- package/dist/v2/helpers/handle-hotkeys.js +0 -54
- package/dist/v2/helpers/is-url.js +0 -5
- package/dist/v2/helpers/slugify.js +0 -4
- package/dist/v2/helpers/storage.js +0 -16
- package/dist/v2/hooks/use-color-mode.js +0 -24
- package/dist/v2/hooks/use-global-hot-keys.js +0 -11
- package/dist/v2/hooks/use-scroll-lock.js +0 -21
- package/dist/v2/workspace-events.js +0 -252
- package/dist/views/Collection/Collection.vue.js +0 -4
- package/dist/views/Collection/Collection.vue2.js +0 -49
- package/dist/views/Collection/CollectionAuthentication.vue.js +0 -7
- package/dist/views/Collection/CollectionAuthentication.vue2.js +0 -56
- package/dist/views/Collection/CollectionCookies.vue.js +0 -4
- package/dist/views/Collection/CollectionCookies.vue2.js +0 -16
- package/dist/views/Collection/CollectionEnvironment.vue.js +0 -5
- package/dist/views/Collection/CollectionEnvironment.vue2.js +0 -229
- package/dist/views/Collection/CollectionInfoForm.vue.js +0 -7
- package/dist/views/Collection/CollectionInfoForm.vue2.js +0 -63
- package/dist/views/Collection/CollectionNavigation.vue.js +0 -133
- package/dist/views/Collection/CollectionNavigation.vue2.js +0 -4
- package/dist/views/Collection/CollectionOverview.vue.js +0 -4
- package/dist/views/Collection/CollectionOverview.vue2.js +0 -34
- package/dist/views/Collection/CollectionScripts.vue.js +0 -4
- package/dist/views/Collection/CollectionScripts.vue2.js +0 -16
- package/dist/views/Collection/CollectionServerForm.vue.js +0 -75
- package/dist/views/Collection/CollectionServerForm.vue2.js +0 -4
- package/dist/views/Collection/CollectionServers.vue.js +0 -4
- package/dist/views/Collection/CollectionServers.vue2.js +0 -94
- package/dist/views/Collection/CollectionSettings.vue.js +0 -4
- package/dist/views/Collection/CollectionSettings.vue2.js +0 -118
- package/dist/views/Collection/CollectionSync.vue.js +0 -4
- package/dist/views/Collection/CollectionSync.vue2.js +0 -16
- package/dist/views/Collection/components/EnvironmentForm.vue.js +0 -7
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +0 -270
- package/dist/views/Collection/components/MarkdownInput.vue.js +0 -7
- package/dist/views/Collection/components/MarkdownInput.vue2.js +0 -100
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +0 -50
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue2.js +0 -4
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +0 -62
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +0 -82
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +0 -30
- package/dist/views/Cookies/CookieForm.vue.js +0 -34
- package/dist/views/Cookies/CookieForm.vue2.js +0 -4
- package/dist/views/Cookies/CookieModal.vue.js +0 -7
- package/dist/views/Cookies/CookieModal.vue2.js +0 -88
- package/dist/views/Cookies/Cookies.vue.js +0 -4
- package/dist/views/Cookies/Cookies.vue2.js +0 -162
- package/dist/views/Environment/Environment.vue.js +0 -4
- package/dist/views/Environment/Environment.vue2.js +0 -402
- package/dist/views/Environment/EnvironmentColorModal.vue.js +0 -42
- package/dist/views/Environment/EnvironmentColorModal.vue2.js +0 -4
- package/dist/views/Environment/EnvironmentColors.vue.js +0 -118
- package/dist/views/Environment/EnvironmentColors.vue2.js +0 -4
- package/dist/views/Environment/EnvironmentModal.vue.js +0 -131
- package/dist/views/Environment/EnvironmentModal.vue2.js +0 -4
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +0 -129
- package/dist/views/Environment/EnvironmentVariableDropdown.vue2.js +0 -4
- package/dist/views/Environment/handle-drag.js +0 -32
- package/dist/views/Request/Request.vue.js +0 -7
- package/dist/views/Request/Request.vue2.js +0 -105
- package/dist/views/Request/RequestRoot.vue.js +0 -7
- package/dist/views/Request/RequestRoot.vue2.js +0 -123
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +0 -52
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +0 -246
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +0 -135
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +0 -209
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +0 -116
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +0 -50
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +0 -219
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js +0 -28
- package/dist/views/Request/RequestSection/RequestBody.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +0 -451
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +0 -170
- package/dist/views/Request/RequestSection/RequestParams.vue.js +0 -162
- package/dist/views/Request/RequestSection/RequestParams.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +0 -96
- package/dist/views/Request/RequestSection/RequestPathParams.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestSection.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +0 -247
- package/dist/views/Request/RequestSection/RequestTable.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +0 -227
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +0 -61
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +0 -29
- package/dist/views/Request/RequestSection/helpers/getting-started.js +0 -13
- package/dist/views/Request/RequestSection/helpers/update-scheme.js +0 -16
- package/dist/views/Request/RequestSidebar.vue.js +0 -7
- package/dist/views/Request/RequestSidebar.vue2.js +0 -341
- package/dist/views/Request/RequestSidebarItem.vue.js +0 -8
- package/dist/views/Request/RequestSidebarItem.vue2.js +0 -464
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +0 -7
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +0 -236
- package/dist/views/Request/RequestSubpageHeader.vue.js +0 -7
- package/dist/views/Request/RequestSubpageHeader.vue2.js +0 -79
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +0 -96
- package/dist/views/Request/ResponseSection/RequestHeaders.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +0 -83
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +0 -36
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +0 -14
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +0 -63
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +0 -42
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +0 -74
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +0 -25
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +0 -50
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue3.js +0 -5
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +0 -51
- package/dist/views/Request/ResponseSection/ResponseCookies.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +0 -103
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +0 -96
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +0 -38
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +0 -67
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +0 -189
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +0 -182
- package/dist/views/Request/components/WorkspaceDropdown.vue2.js +0 -4
- package/dist/views/Request/consts/mediaTypes.js +0 -131
- package/dist/views/Request/consts/new-auth-options.js +0 -100
- package/dist/views/Request/handle-drag.js +0 -42
- package/dist/views/Request/hooks/useOpenApiWatcher.js +0 -57
- package/dist/views/Request/libs/auth.js +0 -52
- package/dist/views/Request/libs/oauth2.js +0 -127
- package/dist/views/Request/libs/request.js +0 -40
- package/dist/views/Request/libs/watch-mode.js +0 -337
- package/dist/views/Settings/Settings.vue.js +0 -4
- package/dist/views/Settings/Settings.vue2.js +0 -29
- package/dist/views/Settings/SettingsGeneral.vue.js +0 -286
- package/dist/views/Settings/SettingsGeneral.vue2.js +0 -4
- package/dist/views/Settings/components/SettingsAppearance.vue.js +0 -85
- package/dist/views/Settings/components/SettingsAppearance.vue2.js +0 -4
- package/dist/views/Settings/components/SettingsSection.vue.js +0 -24
- package/dist/views/Settings/components/SettingsSection.vue2.js +0 -4
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { r as useWorkspace, w as useActiveEntities } from "./store-DpSUVhjp.js";
|
|
2
|
+
import { t as IntegrationLogo_default } from "./IntegrationLogo-B9EDW8db.js";
|
|
3
|
+
import { t as ViewLayout_default } from "./ViewLayout-BOXN0IYo.js";
|
|
4
|
+
import { t as ViewLayoutContent_default } from "./ViewLayoutContent-CvMoJYPF.js";
|
|
5
|
+
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
|
|
6
|
+
import { ScalarButton, ScalarIcon, cva, cx } from "@scalar/components";
|
|
7
|
+
import { themeLabels } from "@scalar/themes";
|
|
8
|
+
import { useColorMode } from "@scalar/use-hooks/useColorMode";
|
|
9
|
+
//#region src/views/Settings/components/SettingsAppearance.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var _hoisted_1$2 = { class: "flex flex-col gap-2" };
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/views/Settings/components/SettingsAppearance.vue
|
|
13
|
+
var SettingsAppearance_default = /* @__PURE__ */ defineComponent({
|
|
14
|
+
__name: "SettingsAppearance",
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const { colorMode, setColorMode } = useColorMode();
|
|
17
|
+
const buttonStyles = cva({
|
|
18
|
+
base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",
|
|
19
|
+
variants: { active: {
|
|
20
|
+
true: "bg-primary text-c-1 hover:bg-inherit",
|
|
21
|
+
false: "bg-b-1 hover:bg-b-2"
|
|
22
|
+
} }
|
|
23
|
+
});
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
26
|
+
createVNode(unref(ScalarButton), {
|
|
27
|
+
class: normalizeClass(unref(cx)(unref(buttonStyles)({ active: unref(colorMode) === "system" }))),
|
|
28
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(setColorMode)("system"))
|
|
29
|
+
}, {
|
|
30
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", { "bg-c-accent text-b-1 border-transparent": unref(colorMode) === "system" }]) }, [unref(colorMode) === "system" ? (openBlock(), createBlock(unref(ScalarIcon), {
|
|
31
|
+
key: 0,
|
|
32
|
+
icon: "Checkmark",
|
|
33
|
+
size: "xs",
|
|
34
|
+
thickness: "3.5"
|
|
35
|
+
})) : createCommentVNode("", true)], 2), _cache[3] || (_cache[3] = createTextVNode(" System Preference (default) ", -1))]),
|
|
36
|
+
_: 1
|
|
37
|
+
}, 8, ["class"]),
|
|
38
|
+
createVNode(unref(ScalarButton), {
|
|
39
|
+
class: normalizeClass(unref(cx)(unref(buttonStyles)({ active: unref(colorMode) === "light" }))),
|
|
40
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(setColorMode)("light"))
|
|
41
|
+
}, {
|
|
42
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", { "bg-c-accent text-b-1 border-transparent": unref(colorMode) === "light" }]) }, [unref(colorMode) === "light" ? (openBlock(), createBlock(unref(ScalarIcon), {
|
|
43
|
+
key: 0,
|
|
44
|
+
icon: "Checkmark",
|
|
45
|
+
size: "xs",
|
|
46
|
+
thickness: "3.5"
|
|
47
|
+
})) : createCommentVNode("", true)], 2), _cache[4] || (_cache[4] = createTextVNode(" Light Mode Always ", -1))]),
|
|
48
|
+
_: 1
|
|
49
|
+
}, 8, ["class"]),
|
|
50
|
+
createVNode(unref(ScalarButton), {
|
|
51
|
+
class: normalizeClass(unref(cx)(unref(buttonStyles)({ active: unref(colorMode) === "dark" }))),
|
|
52
|
+
onClick: _cache[2] || (_cache[2] = ($event) => unref(setColorMode)("dark"))
|
|
53
|
+
}, {
|
|
54
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", { "bg-c-accent text-b-1 border-transparent": unref(colorMode) === "dark" }]) }, [unref(colorMode) === "dark" ? (openBlock(), createBlock(unref(ScalarIcon), {
|
|
55
|
+
key: 0,
|
|
56
|
+
icon: "Checkmark",
|
|
57
|
+
size: "xs",
|
|
58
|
+
thickness: "3.5"
|
|
59
|
+
})) : createCommentVNode("", true)], 2), _cache[5] || (_cache[5] = createTextVNode(" Dark Mode Always ", -1))]),
|
|
60
|
+
_: 1
|
|
61
|
+
}, 8, ["class"])
|
|
62
|
+
]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/views/Settings/components/SettingsSection.vue?vue&type=script&setup=true&lang.ts
|
|
68
|
+
var _hoisted_1$1 = { class: "flex flex-col gap-2" };
|
|
69
|
+
var _hoisted_2$1 = {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "font-bold"
|
|
72
|
+
};
|
|
73
|
+
var _hoisted_3$1 = {
|
|
74
|
+
key: 1,
|
|
75
|
+
class: "text-c-2 mb-4 leading-[21px]"
|
|
76
|
+
};
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/views/Settings/components/SettingsSection.vue
|
|
79
|
+
var SettingsSection_default = /* @__PURE__ */ defineComponent({
|
|
80
|
+
__name: "SettingsSection",
|
|
81
|
+
setup(__props) {
|
|
82
|
+
return (_ctx, _cache) => {
|
|
83
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
84
|
+
_ctx.$slots.title ? (openBlock(), createElementBlock("h3", _hoisted_2$1, [renderSlot(_ctx.$slots, "title")])) : createCommentVNode("", true),
|
|
85
|
+
_ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$1, [renderSlot(_ctx.$slots, "description")])) : createCommentVNode("", true),
|
|
86
|
+
renderSlot(_ctx.$slots, "default")
|
|
87
|
+
]);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/views/Settings/SettingsGeneral.vue?vue&type=script&setup=true&lang.ts
|
|
93
|
+
var _hoisted_1 = { class: "bg-b-1 h-full w-full overflow-auto" };
|
|
94
|
+
var _hoisted_2 = { class: "mr-auto ml-auto w-full max-w-[720px] px-5 py-5" };
|
|
95
|
+
var _hoisted_3 = { class: "flex flex-col gap-8" };
|
|
96
|
+
var _hoisted_4 = { class: "flex flex-col gap-2" };
|
|
97
|
+
var _hoisted_5 = { class: "flex flex-col gap-2" };
|
|
98
|
+
var _hoisted_6 = { class: "grid grid-cols-2 gap-2" };
|
|
99
|
+
var _hoisted_7 = { class: "flex items-center gap-2" };
|
|
100
|
+
var _hoisted_8 = { class: "flex items-center gap-1" };
|
|
101
|
+
var _hoisted_9 = { class: "grid grid-cols-2 gap-2" };
|
|
102
|
+
var _hoisted_10 = { class: "flex items-center gap-2" };
|
|
103
|
+
var _hoisted_11 = { class: "flex items-center gap-1" };
|
|
104
|
+
var _hoisted_12 = { class: "size-7 rounded-xl" };
|
|
105
|
+
var DEFAULT_PROXY_URL = "https://proxy.scalar.com";
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/views/Settings/SettingsGeneral.vue
|
|
108
|
+
var SettingsGeneral_default = /* @__PURE__ */ defineComponent({
|
|
109
|
+
__name: "SettingsGeneral",
|
|
110
|
+
setup(__props) {
|
|
111
|
+
const { activeWorkspace } = useActiveEntities();
|
|
112
|
+
const { proxyUrl, workspaceMutators } = useWorkspace();
|
|
113
|
+
const themeIds = [
|
|
114
|
+
"default",
|
|
115
|
+
"alternate",
|
|
116
|
+
"purple",
|
|
117
|
+
"solarized",
|
|
118
|
+
"saturn",
|
|
119
|
+
"kepler"
|
|
120
|
+
];
|
|
121
|
+
const integrationThemeIds = ["elysiajs", "fastify"];
|
|
122
|
+
const getThemeColors = (themeId) => {
|
|
123
|
+
return {
|
|
124
|
+
default: {
|
|
125
|
+
light: "#fff",
|
|
126
|
+
dark: "#0f0f0f",
|
|
127
|
+
accent: "#0099ff"
|
|
128
|
+
},
|
|
129
|
+
alternate: {
|
|
130
|
+
light: "#f9f9f9",
|
|
131
|
+
dark: "#131313",
|
|
132
|
+
accent: "#e7e7e7"
|
|
133
|
+
},
|
|
134
|
+
moon: {
|
|
135
|
+
light: "#ccc9b3",
|
|
136
|
+
dark: "#313332",
|
|
137
|
+
accent: "#645b0f"
|
|
138
|
+
},
|
|
139
|
+
purple: {
|
|
140
|
+
light: "#f5f6f8",
|
|
141
|
+
dark: "#22252b",
|
|
142
|
+
accent: "#5469d4"
|
|
143
|
+
},
|
|
144
|
+
solarized: {
|
|
145
|
+
light: "#fdf6e3",
|
|
146
|
+
dark: "#00212b",
|
|
147
|
+
accent: "#007acc"
|
|
148
|
+
},
|
|
149
|
+
bluePlanet: {
|
|
150
|
+
light: "#f0f2f5",
|
|
151
|
+
dark: "#000e23",
|
|
152
|
+
accent: "#e0e2e6"
|
|
153
|
+
},
|
|
154
|
+
saturn: {
|
|
155
|
+
light: "#e4e4df",
|
|
156
|
+
dark: "#2c2c30",
|
|
157
|
+
accent: "#1763a6"
|
|
158
|
+
},
|
|
159
|
+
kepler: {
|
|
160
|
+
light: "#f6f6f6",
|
|
161
|
+
dark: "#0d0f1e",
|
|
162
|
+
accent: "#7070ff"
|
|
163
|
+
},
|
|
164
|
+
mars: {
|
|
165
|
+
light: "#f2efe8",
|
|
166
|
+
dark: "#321116",
|
|
167
|
+
accent: "#c75549"
|
|
168
|
+
},
|
|
169
|
+
deepSpace: {
|
|
170
|
+
light: "#f4f4f5",
|
|
171
|
+
dark: "#09090b",
|
|
172
|
+
accent: "#8ab4f8"
|
|
173
|
+
},
|
|
174
|
+
laserwave: {
|
|
175
|
+
light: "#f4f2f7",
|
|
176
|
+
dark: "#27212e",
|
|
177
|
+
accent: "#ed78c2"
|
|
178
|
+
},
|
|
179
|
+
none: {
|
|
180
|
+
light: "#ffffff",
|
|
181
|
+
dark: "#000000",
|
|
182
|
+
accent: "#3b82f6"
|
|
183
|
+
}
|
|
184
|
+
}[themeId] || {
|
|
185
|
+
light: "#ffffff",
|
|
186
|
+
dark: "#000000",
|
|
187
|
+
accent: "#3b82f6"
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
const changeTheme = (themeId) => workspaceMutators.edit(activeWorkspace.value?.uid, "themeId", themeId);
|
|
191
|
+
const buttonStyles = cva({
|
|
192
|
+
base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",
|
|
193
|
+
variants: { active: {
|
|
194
|
+
true: "bg-primary text-c-1 hover:bg-inherit",
|
|
195
|
+
false: "bg-b-1 hover:bg-b-2"
|
|
196
|
+
} }
|
|
197
|
+
});
|
|
198
|
+
const setProxy = (newProxy) => workspaceMutators.edit(activeWorkspace.value?.uid, "proxyUrl", newProxy);
|
|
199
|
+
return (_ctx, _cache) => {
|
|
200
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [
|
|
201
|
+
_cache[13] || (_cache[13] = createElementVNode("div", null, [createElementVNode("h2", { class: "mt-10 text-xl font-bold" }, "Settings")], -1)),
|
|
202
|
+
createVNode(SettingsSection_default, null, {
|
|
203
|
+
title: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(" CORS Proxy ", -1)])]),
|
|
204
|
+
description: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
205
|
+
createTextVNode(" Browsers block cross-origin requests for security. We provide a public proxy to ", -1),
|
|
206
|
+
createElementVNode("a", {
|
|
207
|
+
class: "hover:text-c-1 underline-offset-2",
|
|
208
|
+
href: "https://en.wikipedia.org/wiki/Cross-origin_resource_sharing",
|
|
209
|
+
target: "_blank"
|
|
210
|
+
}, " bypass CORS issues ", -1),
|
|
211
|
+
createTextVNode(" . Check the ", -1),
|
|
212
|
+
createElementVNode("a", {
|
|
213
|
+
class: "hover:text-c-1 underline-offset-2",
|
|
214
|
+
href: "https://github.com/scalar/scalar/tree/main/examples/proxy-server",
|
|
215
|
+
target: "_blank"
|
|
216
|
+
}, " source code on GitHub ", -1),
|
|
217
|
+
createTextVNode(" . ", -1)
|
|
218
|
+
])]),
|
|
219
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_4, [
|
|
220
|
+
createVNode(unref(ScalarButton), {
|
|
221
|
+
class: normalizeClass(unref(cx)(unref(buttonStyles)({ active: unref(activeWorkspace)?.proxyUrl === DEFAULT_PROXY_URL }))),
|
|
222
|
+
onClick: _cache[0] || (_cache[0] = ($event) => setProxy(DEFAULT_PROXY_URL))
|
|
223
|
+
}, {
|
|
224
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", { "bg-c-accent text-b-1 border-transparent": unref(activeWorkspace)?.proxyUrl === DEFAULT_PROXY_URL }]) }, [unref(activeWorkspace)?.proxyUrl === DEFAULT_PROXY_URL ? (openBlock(), createBlock(unref(ScalarIcon), {
|
|
225
|
+
key: 0,
|
|
226
|
+
icon: "Checkmark",
|
|
227
|
+
size: "xs",
|
|
228
|
+
thickness: "3.5"
|
|
229
|
+
})) : createCommentVNode("", true)], 2), _cache[5] || (_cache[5] = createTextVNode(" Use proxy.scalar.com (default) ", -1))]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["class"]),
|
|
232
|
+
unref(proxyUrl) && unref(proxyUrl) !== DEFAULT_PROXY_URL ? (openBlock(), createBlock(unref(ScalarButton), {
|
|
233
|
+
key: 0,
|
|
234
|
+
class: normalizeClass(unref(cx)(unref(buttonStyles)({ active: unref(activeWorkspace)?.proxyUrl === unref(proxyUrl) }))),
|
|
235
|
+
onClick: _cache[1] || (_cache[1] = ($event) => setProxy(unref(proxyUrl)))
|
|
236
|
+
}, {
|
|
237
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", { "bg-c-accent text-b-1 border-transparent": unref(activeWorkspace)?.proxyUrl === unref(proxyUrl) }]) }, [unref(activeWorkspace)?.proxyUrl === unref(proxyUrl) ? (openBlock(), createBlock(unref(ScalarIcon), {
|
|
238
|
+
key: 0,
|
|
239
|
+
icon: "Checkmark",
|
|
240
|
+
size: "xs",
|
|
241
|
+
thickness: "3.5"
|
|
242
|
+
})) : createCommentVNode("", true)], 2), createTextVNode(" Use custom proxy (" + toDisplayString(unref(proxyUrl)) + ") ", 1)]),
|
|
243
|
+
_: 1
|
|
244
|
+
}, 8, ["class"])) : createCommentVNode("", true),
|
|
245
|
+
createVNode(unref(ScalarButton), {
|
|
246
|
+
class: normalizeClass(unref(cx)(unref(buttonStyles)({ active: !unref(activeWorkspace)?.proxyUrl }))),
|
|
247
|
+
onClick: _cache[2] || (_cache[2] = ($event) => setProxy(void 0))
|
|
248
|
+
}, {
|
|
249
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", !unref(activeWorkspace)?.proxyUrl && "bg-c-accent text-b-1 border-transparent"]) }, [!unref(activeWorkspace)?.proxyUrl ? (openBlock(), createBlock(unref(ScalarIcon), {
|
|
250
|
+
key: 0,
|
|
251
|
+
icon: "Checkmark",
|
|
252
|
+
size: "xs",
|
|
253
|
+
thickness: "3.5"
|
|
254
|
+
})) : createCommentVNode("", true)], 2), _cache[6] || (_cache[6] = createTextVNode(" Skip the proxy ", -1))]),
|
|
255
|
+
_: 1
|
|
256
|
+
}, 8, ["class"])
|
|
257
|
+
])]),
|
|
258
|
+
_: 1
|
|
259
|
+
}),
|
|
260
|
+
createVNode(SettingsSection_default, null, {
|
|
261
|
+
title: withCtx(() => [..._cache[7] || (_cache[7] = [createTextVNode(" Themes ", -1)])]),
|
|
262
|
+
description: withCtx(() => [..._cache[8] || (_cache[8] = [createTextVNode(" We've got a whole rainbow of themes for you to play with: ", -1)])]),
|
|
263
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [(openBlock(), createElementBlock(Fragment, null, renderList(themeIds, (themeId) => {
|
|
264
|
+
return createVNode(unref(ScalarButton), {
|
|
265
|
+
key: themeId,
|
|
266
|
+
class: normalizeClass(unref(cx)(unref(buttonStyles)({ active: unref(activeWorkspace)?.themeId === themeId }))),
|
|
267
|
+
onClick: ($event) => changeTheme(themeId)
|
|
268
|
+
}, {
|
|
269
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_7, [createElementVNode("div", { class: normalizeClass(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", { "bg-c-accent text-b-1 border-transparent": unref(activeWorkspace)?.themeId === themeId }]) }, [unref(activeWorkspace)?.themeId === themeId ? (openBlock(), createBlock(unref(ScalarIcon), {
|
|
270
|
+
key: 0,
|
|
271
|
+
icon: "Checkmark",
|
|
272
|
+
size: "xs",
|
|
273
|
+
thickness: "3.5"
|
|
274
|
+
})) : createCommentVNode("", true)], 2), createTextVNode(" " + toDisplayString(unref(themeLabels)[themeId]), 1)]), createElementVNode("div", _hoisted_8, [
|
|
275
|
+
createElementVNode("span", {
|
|
276
|
+
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
277
|
+
style: normalizeStyle({ backgroundColor: getThemeColors(themeId).light })
|
|
278
|
+
}, null, 4),
|
|
279
|
+
createElementVNode("span", {
|
|
280
|
+
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
281
|
+
style: normalizeStyle({ backgroundColor: getThemeColors(themeId).dark })
|
|
282
|
+
}, null, 4),
|
|
283
|
+
createElementVNode("span", {
|
|
284
|
+
class: "border-c-3 inline-block h-5 w-5 rounded-full",
|
|
285
|
+
style: normalizeStyle({ backgroundColor: getThemeColors(themeId).accent })
|
|
286
|
+
}, null, 4)
|
|
287
|
+
])]),
|
|
288
|
+
_: 2
|
|
289
|
+
}, 1032, ["class", "onClick"]);
|
|
290
|
+
}), 64))])])]),
|
|
291
|
+
_: 1
|
|
292
|
+
}),
|
|
293
|
+
createVNode(SettingsSection_default, null, {
|
|
294
|
+
title: withCtx(() => [..._cache[9] || (_cache[9] = [createTextVNode(" Framework Themes ", -1)])]),
|
|
295
|
+
description: withCtx(() => [..._cache[10] || (_cache[10] = [createTextVNode(" Are you a real fan? Show your support by using your favorite framework's theme! ", -1)])]),
|
|
296
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_9, [(openBlock(), createElementBlock(Fragment, null, renderList(integrationThemeIds, (themeId) => {
|
|
297
|
+
return createVNode(unref(ScalarButton), {
|
|
298
|
+
key: themeId,
|
|
299
|
+
class: normalizeClass(unref(cx)(unref(buttonStyles)({ active: unref(activeWorkspace)?.themeId === themeId }))),
|
|
300
|
+
onClick: ($event) => changeTheme(themeId)
|
|
301
|
+
}, {
|
|
302
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_10, [createElementVNode("div", { class: normalizeClass(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", { "bg-c-accent text-b-1 border-transparent": unref(activeWorkspace)?.themeId === themeId }]) }, [unref(activeWorkspace)?.themeId === themeId ? (openBlock(), createBlock(unref(ScalarIcon), {
|
|
303
|
+
key: 0,
|
|
304
|
+
icon: "Checkmark",
|
|
305
|
+
size: "xs",
|
|
306
|
+
thickness: "3.5"
|
|
307
|
+
})) : createCommentVNode("", true)], 2), createTextVNode(" " + toDisplayString(unref(themeLabels)[themeId]), 1)]), createElementVNode("div", _hoisted_11, [createElementVNode("div", _hoisted_12, [createVNode(IntegrationLogo_default, { integration: themeId }, null, 8, ["integration"])])])]),
|
|
308
|
+
_: 2
|
|
309
|
+
}, 1032, ["class", "onClick"]);
|
|
310
|
+
}), 64))])]),
|
|
311
|
+
_: 1
|
|
312
|
+
}),
|
|
313
|
+
createVNode(SettingsSection_default, null, {
|
|
314
|
+
title: withCtx(() => [..._cache[11] || (_cache[11] = [createTextVNode(" Appearance ", -1)])]),
|
|
315
|
+
description: withCtx(() => [..._cache[12] || (_cache[12] = [createTextVNode(" Choose between light, dark, or system-based appearance for your workspace. ", -1)])]),
|
|
316
|
+
default: withCtx(() => [createVNode(SettingsAppearance_default)]),
|
|
317
|
+
_: 1
|
|
318
|
+
})
|
|
319
|
+
])])]);
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region src/views/Settings/Settings.vue
|
|
325
|
+
var Settings_default = /* @__PURE__ */ defineComponent({
|
|
326
|
+
__name: "Settings",
|
|
327
|
+
setup(__props) {
|
|
328
|
+
const settings = { general: {
|
|
329
|
+
component: SettingsGeneral_default,
|
|
330
|
+
title: "general"
|
|
331
|
+
} };
|
|
332
|
+
const activeSetting = ref("general");
|
|
333
|
+
return (_ctx, _cache) => {
|
|
334
|
+
return openBlock(), createBlock(ViewLayout_default, null, {
|
|
335
|
+
default: withCtx(() => [createVNode(ViewLayoutContent_default, { class: "flex-1" }, {
|
|
336
|
+
default: withCtx(() => [settings[activeSetting.value] ? (openBlock(), createBlock(resolveDynamicComponent(settings[activeSetting.value].component), { key: 0 })) : createCommentVNode("", true)]),
|
|
337
|
+
_: 1
|
|
338
|
+
})]),
|
|
339
|
+
_: 1
|
|
340
|
+
});
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
//#endregion
|
|
345
|
+
export { Settings_default as default };
|
|
346
|
+
|
|
347
|
+
//# sourceMappingURL=Settings-CYZzdJPO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settings-CYZzdJPO.js","names":["$slots"],"sources":["../src/views/Settings/components/SettingsAppearance.vue","../src/views/Settings/components/SettingsAppearance.vue","../src/views/Settings/components/SettingsSection.vue","../src/views/Settings/components/SettingsSection.vue","../src/views/Settings/SettingsGeneral.vue","../src/views/Settings/SettingsGeneral.vue","../src/views/Settings/Settings.vue","../src/views/Settings/Settings.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { cva, cx, ScalarButton, ScalarIcon } from '@scalar/components'\nimport { useColorMode } from '@scalar/use-hooks/useColorMode'\n\nconst { colorMode, setColorMode } = useColorMode()\n\nconst buttonStyles = cva({\n base: 'w-full shadow-none text-c-1 justify-start pl-2 gap-2 border',\n variants: {\n active: {\n true: 'bg-primary text-c-1 hover:bg-inherit',\n false: 'bg-b-1 hover:bg-b-2',\n },\n },\n})\n</script>\n<template>\n <div class=\"flex flex-col gap-2\">\n <ScalarButton\n :class=\"cx(buttonStyles({ active: colorMode === 'system' }))\"\n @click=\"setColorMode('system')\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent': colorMode === 'system',\n }\">\n <ScalarIcon\n v-if=\"colorMode === 'system'\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n System Preference (default)\n </ScalarButton>\n <ScalarButton\n :class=\"cx(buttonStyles({ active: colorMode === 'light' }))\"\n @click=\"setColorMode('light')\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent': colorMode === 'light',\n }\">\n <ScalarIcon\n v-if=\"colorMode === 'light'\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n Light Mode Always\n </ScalarButton>\n <ScalarButton\n :class=\"cx(buttonStyles({ active: colorMode === 'dark' }))\"\n @click=\"setColorMode('dark')\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent': colorMode === 'dark',\n }\">\n <ScalarIcon\n v-if=\"colorMode === 'dark'\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n Dark Mode Always\n </ScalarButton>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { cva, cx, ScalarButton, ScalarIcon } from '@scalar/components'\nimport { useColorMode } from '@scalar/use-hooks/useColorMode'\n\nconst { colorMode, setColorMode } = useColorMode()\n\nconst buttonStyles = cva({\n base: 'w-full shadow-none text-c-1 justify-start pl-2 gap-2 border',\n variants: {\n active: {\n true: 'bg-primary text-c-1 hover:bg-inherit',\n false: 'bg-b-1 hover:bg-b-2',\n },\n },\n})\n</script>\n<template>\n <div class=\"flex flex-col gap-2\">\n <ScalarButton\n :class=\"cx(buttonStyles({ active: colorMode === 'system' }))\"\n @click=\"setColorMode('system')\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent': colorMode === 'system',\n }\">\n <ScalarIcon\n v-if=\"colorMode === 'system'\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n System Preference (default)\n </ScalarButton>\n <ScalarButton\n :class=\"cx(buttonStyles({ active: colorMode === 'light' }))\"\n @click=\"setColorMode('light')\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent': colorMode === 'light',\n }\">\n <ScalarIcon\n v-if=\"colorMode === 'light'\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n Light Mode Always\n </ScalarButton>\n <ScalarButton\n :class=\"cx(buttonStyles({ active: colorMode === 'dark' }))\"\n @click=\"setColorMode('dark')\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent': colorMode === 'dark',\n }\">\n <ScalarIcon\n v-if=\"colorMode === 'dark'\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n Dark Mode Always\n </ScalarButton>\n </div>\n</template>\n","<script setup lang=\"ts\">\ndefineSlots<{\n title?: () => string\n description?: () => string\n default: () => any\n}>()\n</script>\n\n<template>\n <div class=\"flex flex-col gap-2\">\n <template v-if=\"$slots.title\">\n <h3 class=\"font-bold\">\n <slot name=\"title\" />\n </h3>\n </template>\n\n <template v-if=\"$slots.description\">\n <p class=\"text-c-2 mb-4 leading-[21px]\">\n <slot name=\"description\" />\n </p>\n </template>\n\n <slot />\n </div>\n</template>\n","<script setup lang=\"ts\">\ndefineSlots<{\n title?: () => string\n description?: () => string\n default: () => any\n}>()\n</script>\n\n<template>\n <div class=\"flex flex-col gap-2\">\n <template v-if=\"$slots.title\">\n <h3 class=\"font-bold\">\n <slot name=\"title\" />\n </h3>\n </template>\n\n <template v-if=\"$slots.description\">\n <p class=\"text-c-2 mb-4 leading-[21px]\">\n <slot name=\"description\" />\n </p>\n </template>\n\n <slot />\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { cva, cx, ScalarButton, ScalarIcon } from '@scalar/components'\nimport {\n themeLabels,\n type IntegrationThemeId,\n type ThemeId,\n} from '@scalar/themes'\n\nimport IntegrationLogo from '@/components/ImportCollection/IntegrationLogo.vue'\nimport { useWorkspace } from '@/store'\nimport { useActiveEntities } from '@/store/active-entities'\n\nimport SettingsGeneralAppearance from './components/SettingsAppearance.vue'\nimport SettingsSection from './components/SettingsSection.vue'\n\nconst { activeWorkspace } = useActiveEntities()\nconst { proxyUrl, workspaceMutators } = useWorkspace()\n\nconst DEFAULT_PROXY_URL = 'https://proxy.scalar.com'\n\nconst themeIds: Exclude<ThemeId, IntegrationThemeId>[] = [\n 'default',\n 'alternate',\n // 'moon',\n 'purple',\n 'solarized',\n // 'bluePlanet',\n 'saturn',\n 'kepler',\n // 'mars',\n // 'deepSpace',\n // 'laserwave',\n]\n\nconst integrationThemeIds: IntegrationThemeId[] = ['elysiajs', 'fastify']\n\nconst getThemeColors = (\n themeId: Exclude<ThemeId, IntegrationThemeId>,\n): { light: string; dark: string; accent: string } => {\n const colors: Record<\n Exclude<ThemeId, IntegrationThemeId>,\n { light: string; dark: string; accent: string }\n > = {\n default: { light: '#fff', dark: '#0f0f0f', accent: '#0099ff' },\n alternate: { light: '#f9f9f9', dark: '#131313', accent: '#e7e7e7' },\n moon: { light: '#ccc9b3', dark: '#313332', accent: '#645b0f' },\n purple: { light: '#f5f6f8', dark: '#22252b', accent: '#5469d4' },\n solarized: { light: '#fdf6e3', dark: '#00212b', accent: '#007acc' },\n bluePlanet: { light: '#f0f2f5', dark: '#000e23', accent: '#e0e2e6' },\n saturn: { light: '#e4e4df', dark: '#2c2c30', accent: '#1763a6' },\n kepler: { light: '#f6f6f6', dark: '#0d0f1e', accent: '#7070ff' },\n mars: { light: '#f2efe8', dark: '#321116', accent: '#c75549' },\n deepSpace: { light: '#f4f4f5', dark: '#09090b', accent: '#8ab4f8' },\n laserwave: { light: '#f4f2f7', dark: '#27212e', accent: '#ed78c2' },\n none: { light: '#ffffff', dark: '#000000', accent: '#3b82f6' },\n }\n return (\n colors[themeId] || { light: '#ffffff', dark: '#000000', accent: '#3b82f6' }\n )\n}\n\nconst changeTheme = (themeId: ThemeId) =>\n workspaceMutators.edit(activeWorkspace.value?.uid, 'themeId', themeId)\n\nconst buttonStyles = cva({\n base: 'w-full shadow-none text-c-1 justify-start pl-2 gap-2 border',\n variants: {\n active: {\n true: 'bg-primary text-c-1 hover:bg-inherit',\n false: 'bg-b-1 hover:bg-b-2',\n },\n },\n})\n\nconst setProxy = (newProxy: string | undefined) =>\n workspaceMutators.edit(activeWorkspace.value?.uid, 'proxyUrl', newProxy)\n</script>\n<template>\n <div class=\"bg-b-1 h-full w-full overflow-auto\">\n <div class=\"mr-auto ml-auto w-full max-w-[720px] px-5 py-5\">\n <div class=\"flex flex-col gap-8\">\n <!-- Heading -->\n <div>\n <h2 class=\"mt-10 text-xl font-bold\">Settings</h2>\n </div>\n\n <!-- Proxy -->\n <SettingsSection>\n <template #title> CORS Proxy </template>\n <template #description>\n Browsers block cross-origin requests for security. We provide a\n public proxy to\n <a\n class=\"hover:text-c-1 underline-offset-2\"\n href=\"https://en.wikipedia.org/wiki/Cross-origin_resource_sharing\"\n target=\"_blank\">\n bypass CORS issues\n </a>\n . Check the\n <a\n class=\"hover:text-c-1 underline-offset-2\"\n href=\"https://github.com/scalar/scalar/tree/main/examples/proxy-server\"\n target=\"_blank\">\n source code on GitHub\n </a>\n .\n </template>\n\n <div class=\"flex flex-col gap-2\">\n <!-- Default proxy -->\n <ScalarButton\n :class=\"\n cx(\n buttonStyles({\n active: activeWorkspace?.proxyUrl === DEFAULT_PROXY_URL,\n }),\n )\n \"\n @click=\"setProxy(DEFAULT_PROXY_URL)\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent':\n activeWorkspace?.proxyUrl === DEFAULT_PROXY_URL,\n }\">\n <ScalarIcon\n v-if=\"activeWorkspace?.proxyUrl === DEFAULT_PROXY_URL\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n Use proxy.scalar.com (default)\n </ScalarButton>\n\n <!-- Custom proxy (only if configured) -->\n <ScalarButton\n v-if=\"proxyUrl && proxyUrl !== DEFAULT_PROXY_URL\"\n :class=\"\n cx(\n buttonStyles({\n active: activeWorkspace?.proxyUrl === proxyUrl,\n }),\n )\n \"\n @click=\"setProxy(proxyUrl)\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent':\n activeWorkspace?.proxyUrl === proxyUrl,\n }\">\n <ScalarIcon\n v-if=\"activeWorkspace?.proxyUrl === proxyUrl\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n Use custom proxy ({{ proxyUrl }})\n </ScalarButton>\n\n <!-- No proxy -->\n <ScalarButton\n :class=\"cx(buttonStyles({ active: !activeWorkspace?.proxyUrl }))\"\n @click=\"setProxy(undefined)\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"\n !activeWorkspace?.proxyUrl &&\n 'bg-c-accent text-b-1 border-transparent'\n \">\n <ScalarIcon\n v-if=\"!activeWorkspace?.proxyUrl\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n Skip the proxy\n </ScalarButton>\n </div>\n </SettingsSection>\n\n <!-- Themes -->\n <SettingsSection>\n <template #title> Themes </template>\n <template #description>\n We've got a whole rainbow of themes for you to play with:\n </template>\n\n <div class=\"flex flex-col gap-2\">\n <div class=\"grid grid-cols-2 gap-2\">\n <ScalarButton\n v-for=\"themeId in themeIds\"\n :key=\"themeId\"\n :class=\"\n cx(\n buttonStyles({\n active: activeWorkspace?.themeId === themeId,\n }),\n )\n \"\n @click=\"changeTheme(themeId)\">\n <div class=\"flex items-center gap-2\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent':\n activeWorkspace?.themeId === themeId,\n }\">\n <ScalarIcon\n v-if=\"activeWorkspace?.themeId === themeId\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n {{ themeLabels[themeId] }}\n </div>\n <div class=\"flex items-center gap-1\">\n <span\n class=\"border-c-3 -mr-3 inline-block h-5 w-5 rounded-full\"\n :style=\"{\n backgroundColor: getThemeColors(themeId).light,\n }\" />\n <span\n class=\"border-c-3 -mr-3 inline-block h-5 w-5 rounded-full\"\n :style=\"{\n backgroundColor: getThemeColors(themeId).dark,\n }\" />\n <span\n class=\"border-c-3 inline-block h-5 w-5 rounded-full\"\n :style=\"{\n backgroundColor: getThemeColors(themeId).accent,\n }\" />\n </div>\n </ScalarButton>\n </div>\n </div>\n </SettingsSection>\n\n <!-- Frameworks -->\n <SettingsSection>\n <template #title> Framework Themes </template>\n <template #description>\n Are you a real fan? Show your support by using your favorite\n framework's theme!\n </template>\n\n <div class=\"grid grid-cols-2 gap-2\">\n <ScalarButton\n v-for=\"themeId in integrationThemeIds\"\n :key=\"themeId\"\n :class=\"\n cx(\n buttonStyles({\n active: activeWorkspace?.themeId === themeId,\n }),\n )\n \"\n @click=\"changeTheme(themeId)\">\n <div class=\"flex items-center gap-2\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent':\n activeWorkspace?.themeId === themeId,\n }\">\n <ScalarIcon\n v-if=\"activeWorkspace?.themeId === themeId\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n {{ themeLabels[themeId] }}\n </div>\n <div class=\"flex items-center gap-1\">\n <div class=\"size-7 rounded-xl\">\n <IntegrationLogo :integration=\"themeId\" />\n </div>\n </div>\n </ScalarButton>\n </div>\n </SettingsSection>\n\n <!-- Appearance -->\n <SettingsSection>\n <template #title> Appearance </template>\n <template #description>\n Choose between light, dark, or system-based appearance for your\n workspace.\n </template>\n\n <SettingsGeneralAppearance />\n </SettingsSection>\n </div>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { cva, cx, ScalarButton, ScalarIcon } from '@scalar/components'\nimport {\n themeLabels,\n type IntegrationThemeId,\n type ThemeId,\n} from '@scalar/themes'\n\nimport IntegrationLogo from '@/components/ImportCollection/IntegrationLogo.vue'\nimport { useWorkspace } from '@/store'\nimport { useActiveEntities } from '@/store/active-entities'\n\nimport SettingsGeneralAppearance from './components/SettingsAppearance.vue'\nimport SettingsSection from './components/SettingsSection.vue'\n\nconst { activeWorkspace } = useActiveEntities()\nconst { proxyUrl, workspaceMutators } = useWorkspace()\n\nconst DEFAULT_PROXY_URL = 'https://proxy.scalar.com'\n\nconst themeIds: Exclude<ThemeId, IntegrationThemeId>[] = [\n 'default',\n 'alternate',\n // 'moon',\n 'purple',\n 'solarized',\n // 'bluePlanet',\n 'saturn',\n 'kepler',\n // 'mars',\n // 'deepSpace',\n // 'laserwave',\n]\n\nconst integrationThemeIds: IntegrationThemeId[] = ['elysiajs', 'fastify']\n\nconst getThemeColors = (\n themeId: Exclude<ThemeId, IntegrationThemeId>,\n): { light: string; dark: string; accent: string } => {\n const colors: Record<\n Exclude<ThemeId, IntegrationThemeId>,\n { light: string; dark: string; accent: string }\n > = {\n default: { light: '#fff', dark: '#0f0f0f', accent: '#0099ff' },\n alternate: { light: '#f9f9f9', dark: '#131313', accent: '#e7e7e7' },\n moon: { light: '#ccc9b3', dark: '#313332', accent: '#645b0f' },\n purple: { light: '#f5f6f8', dark: '#22252b', accent: '#5469d4' },\n solarized: { light: '#fdf6e3', dark: '#00212b', accent: '#007acc' },\n bluePlanet: { light: '#f0f2f5', dark: '#000e23', accent: '#e0e2e6' },\n saturn: { light: '#e4e4df', dark: '#2c2c30', accent: '#1763a6' },\n kepler: { light: '#f6f6f6', dark: '#0d0f1e', accent: '#7070ff' },\n mars: { light: '#f2efe8', dark: '#321116', accent: '#c75549' },\n deepSpace: { light: '#f4f4f5', dark: '#09090b', accent: '#8ab4f8' },\n laserwave: { light: '#f4f2f7', dark: '#27212e', accent: '#ed78c2' },\n none: { light: '#ffffff', dark: '#000000', accent: '#3b82f6' },\n }\n return (\n colors[themeId] || { light: '#ffffff', dark: '#000000', accent: '#3b82f6' }\n )\n}\n\nconst changeTheme = (themeId: ThemeId) =>\n workspaceMutators.edit(activeWorkspace.value?.uid, 'themeId', themeId)\n\nconst buttonStyles = cva({\n base: 'w-full shadow-none text-c-1 justify-start pl-2 gap-2 border',\n variants: {\n active: {\n true: 'bg-primary text-c-1 hover:bg-inherit',\n false: 'bg-b-1 hover:bg-b-2',\n },\n },\n})\n\nconst setProxy = (newProxy: string | undefined) =>\n workspaceMutators.edit(activeWorkspace.value?.uid, 'proxyUrl', newProxy)\n</script>\n<template>\n <div class=\"bg-b-1 h-full w-full overflow-auto\">\n <div class=\"mr-auto ml-auto w-full max-w-[720px] px-5 py-5\">\n <div class=\"flex flex-col gap-8\">\n <!-- Heading -->\n <div>\n <h2 class=\"mt-10 text-xl font-bold\">Settings</h2>\n </div>\n\n <!-- Proxy -->\n <SettingsSection>\n <template #title> CORS Proxy </template>\n <template #description>\n Browsers block cross-origin requests for security. We provide a\n public proxy to\n <a\n class=\"hover:text-c-1 underline-offset-2\"\n href=\"https://en.wikipedia.org/wiki/Cross-origin_resource_sharing\"\n target=\"_blank\">\n bypass CORS issues\n </a>\n . Check the\n <a\n class=\"hover:text-c-1 underline-offset-2\"\n href=\"https://github.com/scalar/scalar/tree/main/examples/proxy-server\"\n target=\"_blank\">\n source code on GitHub\n </a>\n .\n </template>\n\n <div class=\"flex flex-col gap-2\">\n <!-- Default proxy -->\n <ScalarButton\n :class=\"\n cx(\n buttonStyles({\n active: activeWorkspace?.proxyUrl === DEFAULT_PROXY_URL,\n }),\n )\n \"\n @click=\"setProxy(DEFAULT_PROXY_URL)\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent':\n activeWorkspace?.proxyUrl === DEFAULT_PROXY_URL,\n }\">\n <ScalarIcon\n v-if=\"activeWorkspace?.proxyUrl === DEFAULT_PROXY_URL\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n Use proxy.scalar.com (default)\n </ScalarButton>\n\n <!-- Custom proxy (only if configured) -->\n <ScalarButton\n v-if=\"proxyUrl && proxyUrl !== DEFAULT_PROXY_URL\"\n :class=\"\n cx(\n buttonStyles({\n active: activeWorkspace?.proxyUrl === proxyUrl,\n }),\n )\n \"\n @click=\"setProxy(proxyUrl)\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent':\n activeWorkspace?.proxyUrl === proxyUrl,\n }\">\n <ScalarIcon\n v-if=\"activeWorkspace?.proxyUrl === proxyUrl\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n Use custom proxy ({{ proxyUrl }})\n </ScalarButton>\n\n <!-- No proxy -->\n <ScalarButton\n :class=\"cx(buttonStyles({ active: !activeWorkspace?.proxyUrl }))\"\n @click=\"setProxy(undefined)\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"\n !activeWorkspace?.proxyUrl &&\n 'bg-c-accent text-b-1 border-transparent'\n \">\n <ScalarIcon\n v-if=\"!activeWorkspace?.proxyUrl\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n Skip the proxy\n </ScalarButton>\n </div>\n </SettingsSection>\n\n <!-- Themes -->\n <SettingsSection>\n <template #title> Themes </template>\n <template #description>\n We've got a whole rainbow of themes for you to play with:\n </template>\n\n <div class=\"flex flex-col gap-2\">\n <div class=\"grid grid-cols-2 gap-2\">\n <ScalarButton\n v-for=\"themeId in themeIds\"\n :key=\"themeId\"\n :class=\"\n cx(\n buttonStyles({\n active: activeWorkspace?.themeId === themeId,\n }),\n )\n \"\n @click=\"changeTheme(themeId)\">\n <div class=\"flex items-center gap-2\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent':\n activeWorkspace?.themeId === themeId,\n }\">\n <ScalarIcon\n v-if=\"activeWorkspace?.themeId === themeId\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n {{ themeLabels[themeId] }}\n </div>\n <div class=\"flex items-center gap-1\">\n <span\n class=\"border-c-3 -mr-3 inline-block h-5 w-5 rounded-full\"\n :style=\"{\n backgroundColor: getThemeColors(themeId).light,\n }\" />\n <span\n class=\"border-c-3 -mr-3 inline-block h-5 w-5 rounded-full\"\n :style=\"{\n backgroundColor: getThemeColors(themeId).dark,\n }\" />\n <span\n class=\"border-c-3 inline-block h-5 w-5 rounded-full\"\n :style=\"{\n backgroundColor: getThemeColors(themeId).accent,\n }\" />\n </div>\n </ScalarButton>\n </div>\n </div>\n </SettingsSection>\n\n <!-- Frameworks -->\n <SettingsSection>\n <template #title> Framework Themes </template>\n <template #description>\n Are you a real fan? Show your support by using your favorite\n framework's theme!\n </template>\n\n <div class=\"grid grid-cols-2 gap-2\">\n <ScalarButton\n v-for=\"themeId in integrationThemeIds\"\n :key=\"themeId\"\n :class=\"\n cx(\n buttonStyles({\n active: activeWorkspace?.themeId === themeId,\n }),\n )\n \"\n @click=\"changeTheme(themeId)\">\n <div class=\"flex items-center gap-2\">\n <div\n class=\"flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1\"\n :class=\"{\n 'bg-c-accent text-b-1 border-transparent':\n activeWorkspace?.themeId === themeId,\n }\">\n <ScalarIcon\n v-if=\"activeWorkspace?.themeId === themeId\"\n icon=\"Checkmark\"\n size=\"xs\"\n thickness=\"3.5\" />\n </div>\n {{ themeLabels[themeId] }}\n </div>\n <div class=\"flex items-center gap-1\">\n <div class=\"size-7 rounded-xl\">\n <IntegrationLogo :integration=\"themeId\" />\n </div>\n </div>\n </ScalarButton>\n </div>\n </SettingsSection>\n\n <!-- Appearance -->\n <SettingsSection>\n <template #title> Appearance </template>\n <template #description>\n Choose between light, dark, or system-based appearance for your\n workspace.\n </template>\n\n <SettingsGeneralAppearance />\n </SettingsSection>\n </div>\n </div>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { ref, type DefineComponent } from 'vue'\n\nimport ViewLayout from '@/components/ViewLayout/ViewLayout.vue'\nimport ViewLayoutContent from '@/components/ViewLayout/ViewLayoutContent.vue'\n\nimport SettingsGeneral from './SettingsGeneral.vue'\n\ntype SettingsGroup = {\n component: DefineComponent<any, any, any>\n title: string\n}\n\nconst settings: Record<string, SettingsGroup> = {\n general: {\n component: SettingsGeneral,\n title: 'general',\n },\n}\n\nconst activeSetting = ref('general')\n</script>\n<template>\n <ViewLayout>\n <ViewLayoutContent class=\"flex-1\">\n <component\n :is=\"settings[activeSetting]!.component\"\n v-if=\"settings[activeSetting]\" />\n </ViewLayoutContent>\n </ViewLayout>\n</template>\n","<script setup lang=\"ts\">\nimport { ref, type DefineComponent } from 'vue'\n\nimport ViewLayout from '@/components/ViewLayout/ViewLayout.vue'\nimport ViewLayoutContent from '@/components/ViewLayout/ViewLayoutContent.vue'\n\nimport SettingsGeneral from './SettingsGeneral.vue'\n\ntype SettingsGroup = {\n component: DefineComponent<any, any, any>\n title: string\n}\n\nconst settings: Record<string, SettingsGroup> = {\n general: {\n component: SettingsGeneral,\n title: 'general',\n },\n}\n\nconst activeSetting = ref('general')\n</script>\n<template>\n <ViewLayout>\n <ViewLayoutContent class=\"flex-1\">\n <component\n :is=\"settings[activeSetting]!.component\"\n v-if=\"settings[activeSetting]\" />\n </ViewLayoutContent>\n </ViewLayout>\n</template>\n"],"mappings":"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"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { r as useWorkspace } from "./store-DpSUVhjp.js";
|
|
2
|
+
import { a as useLayout, r as useSidebar } from "./useSidebar-DLTwHDI-.js";
|
|
3
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BmmBcIzD.js";
|
|
4
|
+
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, toDisplayString, unref, vShow, withDirectives } from "vue";
|
|
5
|
+
import { useBreakpoints } from "@scalar/use-hooks/useBreakpoints";
|
|
6
|
+
//#region src/components/Sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "xl:min-h-header flex min-h-12 items-center justify-between px-3 py-1.5 text-sm md:px-[18px] md:py-2.5"
|
|
10
|
+
};
|
|
11
|
+
var _hoisted_2 = { class: "m-0 text-sm font-medium whitespace-nowrap" };
|
|
12
|
+
var _hoisted_3 = { class: "bg-b-1 sticky bottom-0 z-10 w-[inherit] pt-0 has-[.empty-sidebar-item]:border-t md:px-2.5 md:pb-2.5" };
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/components/Sidebar/Sidebar.vue
|
|
15
|
+
var Sidebar_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
16
|
+
__name: "Sidebar",
|
|
17
|
+
props: { title: {} },
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const { isSidebarOpen } = useSidebar();
|
|
20
|
+
const { sidebarWidth, setSidebarWidth } = useWorkspace();
|
|
21
|
+
const { layout } = useLayout();
|
|
22
|
+
const isDragging = ref(false);
|
|
23
|
+
const sidebarRef = ref(null);
|
|
24
|
+
const { breakpoints } = useBreakpoints();
|
|
25
|
+
const startDrag = (event) => {
|
|
26
|
+
event.preventDefault();
|
|
27
|
+
const startX = event.clientX;
|
|
28
|
+
/** Current sidebar width when dragging starts */
|
|
29
|
+
const startWidth = Number.parseInt(getComputedStyle(sidebarRef.value).width || sidebarWidth.value, 10);
|
|
30
|
+
const doDrag = (dragEvent) => {
|
|
31
|
+
isDragging.value = true;
|
|
32
|
+
document.body.classList.add("dragging");
|
|
33
|
+
let newWidth = startWidth + dragEvent.clientX - startX;
|
|
34
|
+
if (newWidth > 420)
|
|
35
|
+
/** Elastic effect */
|
|
36
|
+
newWidth = 420 + (newWidth - 420) * .2;
|
|
37
|
+
if (newWidth < 240) newWidth = 240;
|
|
38
|
+
setSidebarWidth(`${newWidth}px`);
|
|
39
|
+
};
|
|
40
|
+
const stopDrag = () => {
|
|
41
|
+
isDragging.value = false;
|
|
42
|
+
document.body.classList.remove("dragging");
|
|
43
|
+
document.documentElement.removeEventListener("mousemove", doDrag, false);
|
|
44
|
+
document.documentElement.removeEventListener("mouseup", stopDrag, false);
|
|
45
|
+
/** Reset to max width if exceeded */
|
|
46
|
+
if (Number.parseInt(sidebarWidth.value, 10) > 420) setSidebarWidth("360px");
|
|
47
|
+
else if (Number.parseInt(sidebarWidth.value, 10) < 240) setSidebarWidth("240px");
|
|
48
|
+
};
|
|
49
|
+
document.documentElement.addEventListener("mousemove", doDrag, false);
|
|
50
|
+
document.documentElement.addEventListener("mouseup", stopDrag, false);
|
|
51
|
+
};
|
|
52
|
+
return (_ctx, _cache) => {
|
|
53
|
+
return withDirectives((openBlock(), createElementBlock("aside", {
|
|
54
|
+
ref_key: "sidebarRef",
|
|
55
|
+
ref: sidebarRef,
|
|
56
|
+
class: normalizeClass(["sidebar bg-b-1 relative flex min-w-full flex-1 flex-col overflow-hidden leading-5 md:min-w-fit md:flex-none md:border-r md:border-b-0", { dragging: isDragging.value }]),
|
|
57
|
+
style: normalizeStyle({ width: unref(breakpoints).lg ? unref(sidebarWidth) : "100%" })
|
|
58
|
+
}, [
|
|
59
|
+
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
60
|
+
unref(layout) !== "modal" && __props.title ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("h2", _hoisted_2, toDisplayString(__props.title), 1), !unref(breakpoints).lg ? renderSlot(_ctx.$slots, "button", { key: 0 }, void 0, true) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
61
|
+
createElementVNode("div", { class: normalizeClass(["custom-scroll sidebar-height w-[inherit] pb-0 md:pb-[37px]", { "sidebar-mask": unref(layout) !== "modal" }]) }, [renderSlot(_ctx.$slots, "content", {}, void 0, true)], 2),
|
|
62
|
+
unref(breakpoints).lg ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "button", {}, void 0, true)]), createElementVNode("div", {
|
|
63
|
+
class: "resizer",
|
|
64
|
+
onMousedown: startDrag
|
|
65
|
+
}, null, 32)], 64)) : createCommentVNode("", true)
|
|
66
|
+
], 6)), [[vShow, unref(isSidebarOpen)]]);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}), [["__scopeId", "data-v-7aa06e5a"]]);
|
|
70
|
+
//#endregion
|
|
71
|
+
export { Sidebar_default as t };
|
|
72
|
+
|
|
73
|
+
//# sourceMappingURL=Sidebar-C6AdX6-N.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar-C6AdX6-N.js","names":[],"sources":["../src/components/Sidebar/Sidebar.vue","../src/components/Sidebar/Sidebar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useBreakpoints } from '@scalar/use-hooks/useBreakpoints'\nimport { ref } from 'vue'\n\nimport { useLayout } from '@/hooks/useLayout'\nimport { useSidebar } from '@/hooks/useSidebar'\nimport { useWorkspace } from '@/store'\n\ndefineProps<{\n title?: string\n}>()\n\nconst { isSidebarOpen } = useSidebar()\nconst { sidebarWidth, setSidebarWidth } = useWorkspace()\nconst { layout } = useLayout()\nconst isDragging = ref(false)\n\nconst sidebarRef = ref<HTMLElement | null>(null)\nconst { breakpoints } = useBreakpoints()\n\nconst startDrag = (event: MouseEvent) => {\n event.preventDefault()\n\n const startX = event.clientX\n /** Current sidebar width when dragging starts */\n const startWidth = Number.parseInt(\n getComputedStyle(sidebarRef.value!).width || sidebarWidth.value,\n 10,\n )\n\n const doDrag = (dragEvent: MouseEvent) => {\n isDragging.value = true\n document.body.classList.add('dragging')\n let newWidth = startWidth + dragEvent.clientX - startX\n if (newWidth > 420) {\n /** Elastic effect */\n newWidth = 420 + (newWidth - 420) * 0.2\n }\n if (newWidth < 240) {\n newWidth = 240\n }\n setSidebarWidth(`${newWidth}px`)\n }\n\n const stopDrag = () => {\n isDragging.value = false\n document.body.classList.remove('dragging')\n document.documentElement.removeEventListener('mousemove', doDrag, false)\n document.documentElement.removeEventListener('mouseup', stopDrag, false)\n /** Reset to max width if exceeded */\n if (Number.parseInt(sidebarWidth.value, 10) > 420) {\n setSidebarWidth('360px')\n } else if (Number.parseInt(sidebarWidth.value, 10) < 240) {\n setSidebarWidth('240px')\n }\n }\n\n document.documentElement.addEventListener('mousemove', doDrag, false)\n document.documentElement.addEventListener('mouseup', stopDrag, false)\n}\n</script>\n<template>\n <aside\n v-show=\"isSidebarOpen\"\n ref=\"sidebarRef\"\n class=\"sidebar bg-b-1 relative flex min-w-full flex-1 flex-col overflow-hidden leading-5 md:min-w-fit md:flex-none md:border-r md:border-b-0\"\n :class=\"{ dragging: isDragging }\"\n :style=\"{ width: breakpoints.lg ? sidebarWidth : '100%' }\">\n <slot name=\"header\" />\n <div\n v-if=\"layout !== 'modal' && title\"\n class=\"xl:min-h-header flex min-h-12 items-center justify-between px-3 py-1.5 text-sm md:px-[18px] md:py-2.5\">\n <h2 class=\"m-0 text-sm font-medium whitespace-nowrap\">\n {{ title }}\n </h2>\n <slot\n v-if=\"!breakpoints.lg\"\n name=\"button\" />\n </div>\n <div\n class=\"custom-scroll sidebar-height w-[inherit] pb-0 md:pb-[37px]\"\n :class=\"{\n 'sidebar-mask': layout !== 'modal',\n }\">\n <slot name=\"content\" />\n </div>\n <template v-if=\"breakpoints.lg\">\n <div\n class=\"bg-b-1 sticky bottom-0 z-10 w-[inherit] pt-0 has-[.empty-sidebar-item]:border-t md:px-2.5 md:pb-2.5\">\n <slot name=\"button\" />\n </div>\n <div\n class=\"resizer\"\n @mousedown=\"startDrag\" />\n </template>\n </aside>\n</template>\n<style scoped>\n@reference \"@/style.css\";\n\n.sidebar-height {\n min-height: 100%;\n}\n@variant md {\n .sidebar-mask {\n mask-image: linear-gradient(\n 0,\n transparent 0,\n transparent 0,\n var(--scalar-background-2) 30px\n );\n }\n}\n.resizer {\n width: 5px;\n cursor: col-resize;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n border-right: 2px solid transparent;\n transition: border-right-color 0.3s;\n}\n.resizer:hover,\n.dragging .resizer {\n border-right-color: var(--scalar-background-3);\n}\n.dragging {\n cursor: col-resize;\n}\n.dragging::before {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { useBreakpoints } from '@scalar/use-hooks/useBreakpoints'\nimport { ref } from 'vue'\n\nimport { useLayout } from '@/hooks/useLayout'\nimport { useSidebar } from '@/hooks/useSidebar'\nimport { useWorkspace } from '@/store'\n\ndefineProps<{\n title?: string\n}>()\n\nconst { isSidebarOpen } = useSidebar()\nconst { sidebarWidth, setSidebarWidth } = useWorkspace()\nconst { layout } = useLayout()\nconst isDragging = ref(false)\n\nconst sidebarRef = ref<HTMLElement | null>(null)\nconst { breakpoints } = useBreakpoints()\n\nconst startDrag = (event: MouseEvent) => {\n event.preventDefault()\n\n const startX = event.clientX\n /** Current sidebar width when dragging starts */\n const startWidth = Number.parseInt(\n getComputedStyle(sidebarRef.value!).width || sidebarWidth.value,\n 10,\n )\n\n const doDrag = (dragEvent: MouseEvent) => {\n isDragging.value = true\n document.body.classList.add('dragging')\n let newWidth = startWidth + dragEvent.clientX - startX\n if (newWidth > 420) {\n /** Elastic effect */\n newWidth = 420 + (newWidth - 420) * 0.2\n }\n if (newWidth < 240) {\n newWidth = 240\n }\n setSidebarWidth(`${newWidth}px`)\n }\n\n const stopDrag = () => {\n isDragging.value = false\n document.body.classList.remove('dragging')\n document.documentElement.removeEventListener('mousemove', doDrag, false)\n document.documentElement.removeEventListener('mouseup', stopDrag, false)\n /** Reset to max width if exceeded */\n if (Number.parseInt(sidebarWidth.value, 10) > 420) {\n setSidebarWidth('360px')\n } else if (Number.parseInt(sidebarWidth.value, 10) < 240) {\n setSidebarWidth('240px')\n }\n }\n\n document.documentElement.addEventListener('mousemove', doDrag, false)\n document.documentElement.addEventListener('mouseup', stopDrag, false)\n}\n</script>\n<template>\n <aside\n v-show=\"isSidebarOpen\"\n ref=\"sidebarRef\"\n class=\"sidebar bg-b-1 relative flex min-w-full flex-1 flex-col overflow-hidden leading-5 md:min-w-fit md:flex-none md:border-r md:border-b-0\"\n :class=\"{ dragging: isDragging }\"\n :style=\"{ width: breakpoints.lg ? sidebarWidth : '100%' }\">\n <slot name=\"header\" />\n <div\n v-if=\"layout !== 'modal' && title\"\n class=\"xl:min-h-header flex min-h-12 items-center justify-between px-3 py-1.5 text-sm md:px-[18px] md:py-2.5\">\n <h2 class=\"m-0 text-sm font-medium whitespace-nowrap\">\n {{ title }}\n </h2>\n <slot\n v-if=\"!breakpoints.lg\"\n name=\"button\" />\n </div>\n <div\n class=\"custom-scroll sidebar-height w-[inherit] pb-0 md:pb-[37px]\"\n :class=\"{\n 'sidebar-mask': layout !== 'modal',\n }\">\n <slot name=\"content\" />\n </div>\n <template v-if=\"breakpoints.lg\">\n <div\n class=\"bg-b-1 sticky bottom-0 z-10 w-[inherit] pt-0 has-[.empty-sidebar-item]:border-t md:px-2.5 md:pb-2.5\">\n <slot name=\"button\" />\n </div>\n <div\n class=\"resizer\"\n @mousedown=\"startDrag\" />\n </template>\n </aside>\n</template>\n<style scoped>\n@reference \"@/style.css\";\n\n.sidebar-height {\n min-height: 100%;\n}\n@variant md {\n .sidebar-mask {\n mask-image: linear-gradient(\n 0,\n transparent 0,\n transparent 0,\n var(--scalar-background-2) 30px\n );\n }\n}\n.resizer {\n width: 5px;\n cursor: col-resize;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n border-right: 2px solid transparent;\n transition: border-right-color 0.3s;\n}\n.resizer:hover,\n.dragging .resizer {\n border-right-color: var(--scalar-background-3);\n}\n.dragging {\n cursor: col-resize;\n}\n.dragging::before {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;ECYA,MAAM,EAAE,kBAAkB,YAAW;EACrC,MAAM,EAAE,cAAc,oBAAoB,cAAa;EACvD,MAAM,EAAE,WAAW,WAAU;EAC7B,MAAM,aAAa,IAAI,MAAK;EAE5B,MAAM,aAAa,IAAwB,KAAI;EAC/C,MAAM,EAAE,gBAAgB,gBAAe;EAEvC,MAAM,aAAa,UAAsB;AACvC,SAAM,gBAAe;GAErB,MAAM,SAAS,MAAM;;GAErB,MAAM,aAAa,OAAO,SACxB,iBAAiB,WAAW,MAAO,CAAC,SAAS,aAAa,OAC1D,GACF;GAEA,MAAM,UAAU,cAA0B;AACxC,eAAW,QAAQ;AACnB,aAAS,KAAK,UAAU,IAAI,WAAU;IACtC,IAAI,WAAW,aAAa,UAAU,UAAU;AAChD,QAAI,WAAW;;AAEb,eAAW,OAAO,WAAW,OAAO;AAEtC,QAAI,WAAW,IACb,YAAW;AAEb,oBAAgB,GAAG,SAAS,IAAG;;GAGjC,MAAM,iBAAiB;AACrB,eAAW,QAAQ;AACnB,aAAS,KAAK,UAAU,OAAO,WAAU;AACzC,aAAS,gBAAgB,oBAAoB,aAAa,QAAQ,MAAK;AACvE,aAAS,gBAAgB,oBAAoB,WAAW,UAAU,MAAK;;AAEvE,QAAI,OAAO,SAAS,aAAa,OAAO,GAAG,GAAG,IAC5C,iBAAgB,QAAO;aACd,OAAO,SAAS,aAAa,OAAO,GAAG,GAAG,IACnD,iBAAgB,QAAO;;AAI3B,YAAS,gBAAgB,iBAAiB,aAAa,QAAQ,MAAK;AACpE,YAAS,gBAAgB,iBAAiB,WAAW,UAAU,MAAK;;;uCAIpE,mBAiCQ,SAAA;aA/BF;IAAJ,KAAI;IACJ,OAAK,eAAA,CAAC,yIAAuI,EAAA,UACzH,WAAA,OAAU,CAAA,CAAA;IAC7B,OAAK,eAAA,EAAA,OAAW,MAAA,YAAW,CAAC,KAAK,MAAA,aAAY,GAAA,QAAA,CAAA;;IAC9C,WAAsB,KAAA,QAAA,UAAA,EAAA,EAAA,KAAA,GAAA,KAAA;IAEd,MAAA,OAAM,KAAA,WAAgB,QAAA,SAAA,WAAA,EAD9B,mBASM,OATN,YASM,CANJ,mBAEK,MAFL,YAEK,gBADA,QAAA,MAAK,EAAA,EAAA,EAAA,CAGD,MAAA,YAAW,CAAC,KADrB,WAEkB,KAAA,QAAA,UAAA,EAAA,KAAA,GAAA,EAAA,KAAA,GAAA,KAAA,GAAA,mBAAA,IAAA,KAAA,CAAA,CAAA,IAAA,mBAAA,IAAA,KAAA;IAEpB,mBAMM,OAAA,EALJ,OAAK,eAAA,CAAC,8DAA4D,EAAA,gBAChC,MAAA,OAAM,KAAA,SAAA,CAAA,CAAA,EAAA,EAAA,CAGxC,WAAuB,KAAA,QAAA,WAAA,EAAA,EAAA,KAAA,GAAA,KAAA,CAAA,EAAA,EAAA;IAET,MAAA,YAAW,CAAC,MAAA,WAAA,EAA5B,mBAQW,UAAA,EAAA,KAAA,GAAA,EAAA,CAPT,mBAGM,OAHN,YAGM,CADJ,WAAsB,KAAA,QAAA,UAAA,EAAA,EAAA,KAAA,GAAA,KAAA,CAAA,CAAA,EAExB,mBAE2B,OAAA;KADzB,OAAM;KACL,aAAW;;oBA9BR,MAAA,cAAa,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { a as useLayout } from "./useSidebar-DLTwHDI-.js";
|
|
2
|
+
import { createBlock, createCommentVNode, defineComponent, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { ScalarButton, ScalarHotkey } from "@scalar/components";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/Sidebar/SidebarButton.vue
|
|
6
|
+
var SidebarButton_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "SidebarButton",
|
|
8
|
+
props: {
|
|
9
|
+
click: { type: Function },
|
|
10
|
+
hotkey: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const { layout } = useLayout();
|
|
15
|
+
const handleClick = () => {
|
|
16
|
+
props.click();
|
|
17
|
+
};
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createBlock(unref(ScalarButton), {
|
|
20
|
+
class: "bg-b-1 text-c-1 hover:bg-b-2 group relative h-auto w-auto border px-2 py-1 md:w-full md:p-1.5",
|
|
21
|
+
variant: "outlined",
|
|
22
|
+
onClick: handleClick
|
|
23
|
+
}, {
|
|
24
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "title"), __props.hotkey && unref(layout) === "desktop" ? (openBlock(), createBlock(unref(ScalarHotkey), {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:flex",
|
|
27
|
+
hotkey: __props.hotkey
|
|
28
|
+
}, null, 8, ["hotkey"])) : createCommentVNode("", true)]),
|
|
29
|
+
_: 3
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { SidebarButton_default as t };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=SidebarButton-BAagdMDe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarButton-BAagdMDe.js","names":[],"sources":["../src/components/Sidebar/SidebarButton.vue","../src/components/Sidebar/SidebarButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton, ScalarHotkey } from '@scalar/components'\n\nimport { useLayout } from '@/hooks'\n\nconst props = defineProps<{\n click: () => void\n hotkey?: string\n}>()\n\nconst { layout } = useLayout()\n\nconst handleClick = () => {\n props.click()\n}\n</script>\n<template>\n <ScalarButton\n class=\"bg-b-1 text-c-1 hover:bg-b-2 group relative h-auto w-auto border px-2 py-1 md:w-full md:p-1.5\"\n variant=\"outlined\"\n @click=\"handleClick\">\n <slot name=\"title\" />\n <ScalarHotkey\n v-if=\"hotkey && layout === 'desktop'\"\n class=\"text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:flex\"\n :hotkey=\"hotkey\" />\n </ScalarButton>\n</template>\n","<script setup lang=\"ts\">\nimport { ScalarButton, ScalarHotkey } from '@scalar/components'\n\nimport { useLayout } from '@/hooks'\n\nconst props = defineProps<{\n click: () => void\n hotkey?: string\n}>()\n\nconst { layout } = useLayout()\n\nconst handleClick = () => {\n props.click()\n}\n</script>\n<template>\n <ScalarButton\n class=\"bg-b-1 text-c-1 hover:bg-b-2 group relative h-auto w-auto border px-2 py-1 md:w-full md:p-1.5\"\n variant=\"outlined\"\n @click=\"handleClick\">\n <slot name=\"title\" />\n <ScalarHotkey\n v-if=\"hotkey && layout === 'desktop'\"\n class=\"text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:flex\"\n :hotkey=\"hotkey\" />\n </ScalarButton>\n</template>\n"],"mappings":";;;;;;;;;;;;ECKA,MAAM,QAAQ;EAKd,MAAM,EAAE,WAAW,WAAU;EAE7B,MAAM,oBAAoB;AACxB,SAAM,OAAM;;;uBAIZ,YASe,MAAA,aAAA,EAAA;IARb,OAAM;IACN,SAAQ;IACP,SAAO;;2BACa,CAArB,WAAqB,KAAA,QAAA,QAAA,EAEb,QAAA,UAAU,MAAA,OAAM,KAAA,aAAA,WAAA,EADxB,YAGqB,MAAA,aAAA,EAAA;;KADnB,OAAM;KACL,QAAQ,QAAA"}
|