@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,131 @@
|
|
|
1
|
+
import { r as useWorkspace, w as useActiveEntities } from "./store-DpSUVhjp.js";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BmmBcIzD.js";
|
|
3
|
+
import { t as CodeInput_default } from "./CodeInput-C-igR77V.js";
|
|
4
|
+
import { t as ViewLayoutSection_default } from "./ViewLayoutSection-mUqKbQry.js";
|
|
5
|
+
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, openBlock, ref, unref, watch, withCtx } from "vue";
|
|
6
|
+
import { ScalarButton, ScalarIcon, ScalarMarkdown } from "@scalar/components";
|
|
7
|
+
//#region src/views/Collection/components/MarkdownInput.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var _hoisted_1 = { class: "flex h-full w-full flex-col gap-2 pt-8" };
|
|
9
|
+
var _hoisted_2 = { class: "flex min-h-8 items-center justify-between gap-2 pl-1.5" };
|
|
10
|
+
var _hoisted_3 = { class: "has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg" };
|
|
11
|
+
var _hoisted_4 = { class: "flex h-full min-h-[calc(1rem*4)] flex-col" };
|
|
12
|
+
var _hoisted_5 = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4"
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/views/Collection/components/MarkdownInput.vue
|
|
18
|
+
var MarkdownInput_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
19
|
+
__name: "MarkdownInput",
|
|
20
|
+
props: {
|
|
21
|
+
modelValue: {},
|
|
22
|
+
environment: {},
|
|
23
|
+
envVariables: {},
|
|
24
|
+
workspace: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:modelValue"],
|
|
27
|
+
setup(__props, { emit: __emit }) {
|
|
28
|
+
const emit = __emit;
|
|
29
|
+
const mode = ref("preview");
|
|
30
|
+
const codeInputRef = ref(null);
|
|
31
|
+
watch(mode, (newMode) => {
|
|
32
|
+
if (newMode === "edit") nextTick(() => {
|
|
33
|
+
codeInputRef.value?.focus();
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
const handleBlur = () => {
|
|
37
|
+
requestAnimationFrame(() => {
|
|
38
|
+
mode.value = "preview";
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [_cache[5] || (_cache[5] = createElementVNode("h3", { class: "font-bold" }, "Description", -1)), mode.value === "preview" ? (openBlock(), createBlock(unref(ScalarButton), {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "text-c-2 hover:text-c-1 flex items-center gap-2",
|
|
45
|
+
size: "sm",
|
|
46
|
+
type: "button",
|
|
47
|
+
variant: "outlined",
|
|
48
|
+
onClick: _cache[0] || (_cache[0] = ($event) => mode.value = "edit")
|
|
49
|
+
}, {
|
|
50
|
+
default: withCtx(() => [createVNode(unref(ScalarIcon), {
|
|
51
|
+
icon: "Pencil",
|
|
52
|
+
size: "sm",
|
|
53
|
+
thickness: "1.5"
|
|
54
|
+
}), _cache[4] || (_cache[4] = createElementVNode("span", null, "Edit", -1))]),
|
|
55
|
+
_: 1
|
|
56
|
+
})) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [mode.value === "preview" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.modelValue && __props.modelValue.trim().length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.modelValue ? (openBlock(), createBlock(unref(ScalarMarkdown), {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: "h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",
|
|
59
|
+
value: __props.modelValue,
|
|
60
|
+
withImages: "",
|
|
61
|
+
onDblclick: _cache[1] || (_cache[1] = ($event) => mode.value = "edit")
|
|
62
|
+
}, null, 8, ["value"])) : createCommentVNode("", true), _cache[6] || (_cache[6] = createElementVNode("div", { class: "brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden" }, null, -1))], 64)) : (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(unref(ScalarButton), {
|
|
63
|
+
class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
|
|
64
|
+
size: "sm",
|
|
65
|
+
variant: "ghost",
|
|
66
|
+
onClick: _cache[2] || (_cache[2] = ($event) => mode.value = "edit")
|
|
67
|
+
}, {
|
|
68
|
+
default: withCtx(() => [createVNode(unref(ScalarIcon), {
|
|
69
|
+
icon: "Pencil",
|
|
70
|
+
size: "sm",
|
|
71
|
+
thickness: "1.5"
|
|
72
|
+
}), _cache[7] || (_cache[7] = createElementVNode("span", null, "Write a description", -1))]),
|
|
73
|
+
_: 1
|
|
74
|
+
})]))], 64)) : createCommentVNode("", true), mode.value === "edit" ? (openBlock(), createBlock(CodeInput_default, {
|
|
75
|
+
key: 1,
|
|
76
|
+
ref_key: "codeInputRef",
|
|
77
|
+
ref: codeInputRef,
|
|
78
|
+
class: "h-full flex-1 border px-0.5 py-0",
|
|
79
|
+
envVariables: __props.envVariables,
|
|
80
|
+
environment: __props.environment,
|
|
81
|
+
modelValue: __props.modelValue,
|
|
82
|
+
workspace: __props.workspace,
|
|
83
|
+
onBlur: handleBlur,
|
|
84
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => emit("update:modelValue", $event))
|
|
85
|
+
}, null, 8, [
|
|
86
|
+
"envVariables",
|
|
87
|
+
"environment",
|
|
88
|
+
"modelValue",
|
|
89
|
+
"workspace"
|
|
90
|
+
])) : createCommentVNode("", true)])])]);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}), [["__scopeId", "data-v-5997a667"]]);
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/views/Collection/CollectionOverview.vue
|
|
96
|
+
var CollectionOverview_default = /* @__PURE__ */ defineComponent({
|
|
97
|
+
__name: "CollectionOverview",
|
|
98
|
+
setup(__props) {
|
|
99
|
+
const { activeCollection, activeEnvironment, activeEnvVariables, activeWorkspace } = useActiveEntities();
|
|
100
|
+
const { collectionMutators } = useWorkspace();
|
|
101
|
+
/**
|
|
102
|
+
* Update info.description
|
|
103
|
+
*/
|
|
104
|
+
const updateCollectionDescription = (value) => {
|
|
105
|
+
if (!activeCollection.value) return;
|
|
106
|
+
collectionMutators.edit(activeCollection.value.uid, "info.description", value);
|
|
107
|
+
};
|
|
108
|
+
return (_ctx, _cache) => {
|
|
109
|
+
return openBlock(), createBlock(ViewLayoutSection_default, null, {
|
|
110
|
+
default: withCtx(() => [unref(activeEnvironment) && unref(activeWorkspace) ? (openBlock(), createBlock(MarkdownInput_default, {
|
|
111
|
+
key: 0,
|
|
112
|
+
envVariables: unref(activeEnvVariables),
|
|
113
|
+
environment: unref(activeEnvironment),
|
|
114
|
+
modelValue: unref(activeCollection)?.info?.description ?? "",
|
|
115
|
+
workspace: unref(activeWorkspace),
|
|
116
|
+
"onUpdate:modelValue": updateCollectionDescription
|
|
117
|
+
}, null, 8, [
|
|
118
|
+
"envVariables",
|
|
119
|
+
"environment",
|
|
120
|
+
"modelValue",
|
|
121
|
+
"workspace"
|
|
122
|
+
])) : createCommentVNode("", true)]),
|
|
123
|
+
_: 1
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
//#endregion
|
|
129
|
+
export { CollectionOverview_default as default };
|
|
130
|
+
|
|
131
|
+
//# sourceMappingURL=CollectionOverview-TUdDIu5f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionOverview-TUdDIu5f.js","names":[],"sources":["../src/views/Collection/components/MarkdownInput.vue","../src/views/Collection/components/MarkdownInput.vue","../src/views/Collection/CollectionOverview.vue","../src/views/Collection/CollectionOverview.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarButton, ScalarIcon, ScalarMarkdown } from '@scalar/components'\nimport type { Environment } from '@scalar/oas-utils/entities/environment'\nimport type { Workspace } from '@scalar/oas-utils/entities/workspace'\nimport { nextTick, ref, watch } from 'vue'\n\nimport CodeInput from '@/components/CodeInput/CodeInput.vue'\nimport type { EnvVariable } from '@/store/active-entities'\n\nconst { modelValue, environment, envVariables, workspace } = defineProps<{\n modelValue: string\n environment: Environment\n envVariables: EnvVariable[]\n workspace: Workspace\n}>()\n\nconst emit = defineEmits<(e: 'update:modelValue', value: string) => void>()\n\nconst mode = ref<'edit' | 'preview'>('preview')\n\nconst codeInputRef = ref<InstanceType<typeof CodeInput> | null>(null)\n\nwatch(mode, (newMode) => {\n if (newMode === 'edit') {\n nextTick(() => {\n codeInputRef.value?.focus()\n })\n }\n})\n\nconst handleBlur = () => {\n // Delay mode switch until after DOM updates to avoid input typing issue\n requestAnimationFrame(() => {\n mode.value = 'preview'\n })\n}\n</script>\n\n<template>\n <div class=\"flex h-full w-full flex-col gap-2 pt-8\">\n <div class=\"flex min-h-8 items-center justify-between gap-2 pl-1.5\">\n <h3 class=\"font-bold\">Description</h3>\n <ScalarButton\n v-if=\"mode === 'preview'\"\n class=\"text-c-2 hover:text-c-1 flex items-center gap-2\"\n size=\"sm\"\n type=\"button\"\n variant=\"outlined\"\n @click=\"mode = 'edit'\">\n <ScalarIcon\n icon=\"Pencil\"\n size=\"sm\"\n thickness=\"1.5\" />\n <span>Edit</span>\n </ScalarButton>\n </div>\n <div\n class=\"has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg\">\n <div class=\"flex h-full min-h-[calc(1rem*4)] flex-col\">\n <!-- Preview -->\n <template v-if=\"mode === 'preview'\">\n <template v-if=\"modelValue && modelValue.trim().length\">\n <ScalarMarkdown\n v-if=\"modelValue\"\n class=\"h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)\"\n :value=\"modelValue\"\n withImages\n @dblclick=\"mode = 'edit'\" />\n <div\n class=\"brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden\" />\n </template>\n <div\n v-else\n class=\"text-c-3 flex h-full items-center justify-center rounded-lg border p-4\">\n <ScalarButton\n class=\"hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2\"\n size=\"sm\"\n variant=\"ghost\"\n @click=\"mode = 'edit'\">\n <ScalarIcon\n icon=\"Pencil\"\n size=\"sm\"\n thickness=\"1.5\" />\n <span>Write a description</span>\n </ScalarButton>\n </div>\n </template>\n\n <!-- Edit -->\n <template v-if=\"mode === 'edit'\">\n <CodeInput\n ref=\"codeInputRef\"\n class=\"h-full flex-1 border px-0.5 py-0\"\n :envVariables=\"envVariables\"\n :environment=\"environment\"\n :modelValue=\"modelValue\"\n :workspace=\"workspace\"\n @blur=\"handleBlur\"\n @update:modelValue=\"emit('update:modelValue', $event)\" />\n </template>\n </div>\n </div>\n </div>\n</template>\n<style scoped>\n:deep(.cm-content) {\n min-height: fit-content;\n}\n:deep(.cm-scroller) {\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { ScalarButton, ScalarIcon, ScalarMarkdown } from '@scalar/components'\nimport type { Environment } from '@scalar/oas-utils/entities/environment'\nimport type { Workspace } from '@scalar/oas-utils/entities/workspace'\nimport { nextTick, ref, watch } from 'vue'\n\nimport CodeInput from '@/components/CodeInput/CodeInput.vue'\nimport type { EnvVariable } from '@/store/active-entities'\n\nconst { modelValue, environment, envVariables, workspace } = defineProps<{\n modelValue: string\n environment: Environment\n envVariables: EnvVariable[]\n workspace: Workspace\n}>()\n\nconst emit = defineEmits<(e: 'update:modelValue', value: string) => void>()\n\nconst mode = ref<'edit' | 'preview'>('preview')\n\nconst codeInputRef = ref<InstanceType<typeof CodeInput> | null>(null)\n\nwatch(mode, (newMode) => {\n if (newMode === 'edit') {\n nextTick(() => {\n codeInputRef.value?.focus()\n })\n }\n})\n\nconst handleBlur = () => {\n // Delay mode switch until after DOM updates to avoid input typing issue\n requestAnimationFrame(() => {\n mode.value = 'preview'\n })\n}\n</script>\n\n<template>\n <div class=\"flex h-full w-full flex-col gap-2 pt-8\">\n <div class=\"flex min-h-8 items-center justify-between gap-2 pl-1.5\">\n <h3 class=\"font-bold\">Description</h3>\n <ScalarButton\n v-if=\"mode === 'preview'\"\n class=\"text-c-2 hover:text-c-1 flex items-center gap-2\"\n size=\"sm\"\n type=\"button\"\n variant=\"outlined\"\n @click=\"mode = 'edit'\">\n <ScalarIcon\n icon=\"Pencil\"\n size=\"sm\"\n thickness=\"1.5\" />\n <span>Edit</span>\n </ScalarButton>\n </div>\n <div\n class=\"has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg\">\n <div class=\"flex h-full min-h-[calc(1rem*4)] flex-col\">\n <!-- Preview -->\n <template v-if=\"mode === 'preview'\">\n <template v-if=\"modelValue && modelValue.trim().length\">\n <ScalarMarkdown\n v-if=\"modelValue\"\n class=\"h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)\"\n :value=\"modelValue\"\n withImages\n @dblclick=\"mode = 'edit'\" />\n <div\n class=\"brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden\" />\n </template>\n <div\n v-else\n class=\"text-c-3 flex h-full items-center justify-center rounded-lg border p-4\">\n <ScalarButton\n class=\"hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2\"\n size=\"sm\"\n variant=\"ghost\"\n @click=\"mode = 'edit'\">\n <ScalarIcon\n icon=\"Pencil\"\n size=\"sm\"\n thickness=\"1.5\" />\n <span>Write a description</span>\n </ScalarButton>\n </div>\n </template>\n\n <!-- Edit -->\n <template v-if=\"mode === 'edit'\">\n <CodeInput\n ref=\"codeInputRef\"\n class=\"h-full flex-1 border px-0.5 py-0\"\n :envVariables=\"envVariables\"\n :environment=\"environment\"\n :modelValue=\"modelValue\"\n :workspace=\"workspace\"\n @blur=\"handleBlur\"\n @update:modelValue=\"emit('update:modelValue', $event)\" />\n </template>\n </div>\n </div>\n </div>\n</template>\n<style scoped>\n:deep(.cm-content) {\n min-height: fit-content;\n}\n:deep(.cm-scroller) {\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n}\n</style>\n","<script setup lang=\"ts\">\nimport ViewLayoutSection from '@/components/ViewLayout/ViewLayoutSection.vue'\nimport { useWorkspace } from '@/store'\nimport { useActiveEntities } from '@/store/active-entities'\nimport MarkdownInput from '@/views/Collection/components/MarkdownInput.vue'\n\nconst {\n activeCollection,\n activeEnvironment,\n activeEnvVariables,\n activeWorkspace,\n} = useActiveEntities()\nconst { collectionMutators } = useWorkspace()\n\n/**\n * Update info.description\n */\nconst updateCollectionDescription = (value: string) => {\n if (!activeCollection.value) {\n return\n }\n\n collectionMutators.edit(activeCollection.value.uid, 'info.description', value)\n}\n</script>\n\n<template>\n <ViewLayoutSection>\n <MarkdownInput\n v-if=\"activeEnvironment && activeWorkspace\"\n :envVariables=\"activeEnvVariables\"\n :environment=\"activeEnvironment\"\n :modelValue=\"activeCollection?.info?.description ?? ''\"\n :workspace=\"activeWorkspace\"\n @update:modelValue=\"updateCollectionDescription\" />\n </ViewLayoutSection>\n</template>\n","<script setup lang=\"ts\">\nimport ViewLayoutSection from '@/components/ViewLayout/ViewLayoutSection.vue'\nimport { useWorkspace } from '@/store'\nimport { useActiveEntities } from '@/store/active-entities'\nimport MarkdownInput from '@/views/Collection/components/MarkdownInput.vue'\n\nconst {\n activeCollection,\n activeEnvironment,\n activeEnvVariables,\n activeWorkspace,\n} = useActiveEntities()\nconst { collectionMutators } = useWorkspace()\n\n/**\n * Update info.description\n */\nconst updateCollectionDescription = (value: string) => {\n if (!activeCollection.value) {\n return\n }\n\n collectionMutators.edit(activeCollection.value.uid, 'info.description', value)\n}\n</script>\n\n<template>\n <ViewLayoutSection>\n <MarkdownInput\n v-if=\"activeEnvironment && activeWorkspace\"\n :envVariables=\"activeEnvVariables\"\n :environment=\"activeEnvironment\"\n :modelValue=\"activeCollection?.info?.description ?? ''\"\n :workspace=\"activeWorkspace\"\n @update:modelValue=\"updateCollectionDescription\" />\n </ViewLayoutSection>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;ECgBA,MAAM,OAAO;EAEb,MAAM,OAAO,IAAwB,UAAS;EAE9C,MAAM,eAAe,IAA2C,KAAI;AAEpE,QAAM,OAAO,YAAY;AACvB,OAAI,YAAY,OACd,gBAAe;AACb,iBAAa,OAAO,OAAM;KAC3B;IAEJ;EAED,MAAM,mBAAmB;AAEvB,+BAA4B;AAC1B,SAAK,QAAQ;KACd;;;uBAKD,mBA+DM,OA/DN,YA+DM,CA9DJ,mBAeM,OAfN,YAeM,CAAA,OAAA,OAAA,OAAA,KAdJ,mBAAsC,MAAA,EAAlC,OAAM,aAAW,EAAC,eAAW,GAAA,GAEzB,KAAA,UAAI,aAAA,WAAA,EADZ,YAYe,MAAA,aAAA,EAAA;;IAVb,OAAM;IACN,MAAK;IACL,MAAK;IACL,SAAQ;IACP,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,KAAA,QAAI;;2BAIQ,CAHpB,YAGoB,MAAA,WAAA,EAAA;KAFlB,MAAK;KACL,MAAK;KACL,WAAU;kCACZ,mBAAiB,QAAA,MAAX,QAAI,GAAA,EAAA,CAAA;;yCAGd,mBA6CM,OA7CN,YA6CM,CA3CJ,mBA0CM,OA1CN,YA0CM,CAxCY,KAAA,UAAI,aAAA,WAAA,EAApB,mBA0BW,UAAA,EAAA,KAAA,GAAA,EAAA,CAzBO,QAAA,cAAc,QAAA,WAAW,MAAI,CAAG,UAAA,WAAA,EAAhD,mBASW,UAAA,EAAA,KAAA,GAAA,EAAA,CAPD,QAAA,cAAA,WAAA,EADR,YAK8B,MAAA,eAAA,EAAA;;IAH5B,OAAM;IACL,OAAO,QAAA;IACR,YAAA;IACC,YAAQ,OAAA,OAAA,OAAA,MAAA,WAAE,KAAA,QAAI;qFACjB,mBAC8H,OAAA,EAA5H,OAAM,qHAAmH,EAAA,MAAA,GAAA,EAAA,EAAA,GAAA,KAAA,WAAA,EAE7H,mBAcM,OAdN,YAcM,CAXJ,YAUe,MAAA,aAAA,EAAA;IATb,OAAM;IACN,MAAK;IACL,SAAQ;IACP,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,KAAA,QAAI;;2BAIQ,CAHpB,YAGoB,MAAA,WAAA,EAAA;KAFlB,MAAK;KACL,MAAK;KACL,WAAU;kCACZ,mBAAgC,QAAA,MAA1B,uBAAmB,GAAA,EAAA,CAAA;;gDAMf,KAAA,UAAI,UAAA,WAAA,EAClB,YAQ2D,mBAAA;;aAPrD;IAAJ,KAAI;IACJ,OAAM;IACL,cAAc,QAAA;IACd,aAAa,QAAA;IACb,YAAY,QAAA;IACZ,WAAW,QAAA;IACX,QAAM;IACN,uBAAiB,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,qBAAsB,OAAM;;;;;;;;;;;;;;;EE5FhE,MAAM,EACJ,kBACA,mBACA,oBACA,oBACE,mBAAkB;EACtB,MAAM,EAAE,uBAAuB,cAAa;;;;EAK5C,MAAM,+BAA+B,UAAkB;AACrD,OAAI,CAAC,iBAAiB,MACpB;AAGF,sBAAmB,KAAK,iBAAiB,MAAM,KAAK,oBAAoB,MAAK;;;uBAK7E,YAQoB,2BAAA,MAAA;2BADmC,CAL7C,MAAA,kBAAiB,IAAI,MAAA,gBAAe,IAAA,WAAA,EAD5C,YAMqD,uBAAA;;KAJlD,cAAc,MAAA,mBAAkB;KAChC,aAAa,MAAA,kBAAiB;KAC9B,YAAY,MAAA,iBAAgB,EAAE,MAAM,eAAW;KAC/C,WAAW,MAAA,gBAAe;KAC1B,uBAAmB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as ViewLayoutSection_default } from "./ViewLayoutSection-mUqKbQry.js";
|
|
2
|
+
import { createBlock, createTextVNode, defineComponent, openBlock, withCtx } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/views/Collection/CollectionScripts.vue
|
|
5
|
+
var CollectionScripts_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "CollectionScripts",
|
|
7
|
+
setup(__props) {
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
return openBlock(), createBlock(ViewLayoutSection_default, null, {
|
|
10
|
+
title: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode("Scripts", -1)])]),
|
|
11
|
+
_: 1
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { CollectionScripts_default as default };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=CollectionScripts-CMNlBlby.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionScripts-CMNlBlby.js","names":[],"sources":["../src/views/Collection/CollectionScripts.vue","../src/views/Collection/CollectionScripts.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport ViewLayoutSection from '@/components/ViewLayout/ViewLayoutSection.vue'\n</script>\n\n<template>\n <ViewLayoutSection>\n <template #title>Scripts</template>\n </ViewLayoutSection>\n</template>\n","<script setup lang=\"ts\">\nimport ViewLayoutSection from '@/components/ViewLayout/ViewLayoutSection.vue'\n</script>\n\n<template>\n <ViewLayoutSection>\n <template #title>Scripts</template>\n </ViewLayoutSection>\n</template>\n"],"mappings":";;;;;;;;uBCKE,YAEoB,2BAAA,MAAA;IADP,OAAK,cAAQ,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAAP,WAAO,GAAA,CAAA,EAAA,CAAA"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { r as useWorkspace, w as useActiveEntities } from "./store-DpSUVhjp.js";
|
|
2
|
+
import "./CodeInput-C-igR77V.js";
|
|
3
|
+
import { t as ServerVariablesForm_default } from "./ServerVariablesForm-BRZ9XC8o.js";
|
|
4
|
+
import "./DataTableInput-yaU5g-kP.js";
|
|
5
|
+
import { t as DeleteSidebarListElement_default } from "./DeleteSidebarListElement-C-p87d03.js";
|
|
6
|
+
import { t as Form_default } from "./Form-CSKzyHGO.js";
|
|
7
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createStaticVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, toDisplayString, unref, watch, withCtx } from "vue";
|
|
8
|
+
import { ScalarButton, ScalarIcon, ScalarMarkdown, ScalarModal, useModal } from "@scalar/components";
|
|
9
|
+
import { REGEX } from "@scalar/oas-utils/helpers";
|
|
10
|
+
import { ScalarIconTrash } from "@scalar/icons";
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/views/Collection/CollectionServerForm.vue
|
|
13
|
+
var CollectionServerForm_default = /* @__PURE__ */ defineComponent({
|
|
14
|
+
__name: "CollectionServerForm",
|
|
15
|
+
props: {
|
|
16
|
+
collectionId: { default: "" },
|
|
17
|
+
serverUid: { default: "" }
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const { activeWorkspaceCollections } = useActiveEntities();
|
|
22
|
+
const { servers, serverMutators } = useWorkspace();
|
|
23
|
+
const options = [{
|
|
24
|
+
label: "URL",
|
|
25
|
+
key: "url",
|
|
26
|
+
placeholder: "https://void.scalar.com",
|
|
27
|
+
type: "text"
|
|
28
|
+
}, {
|
|
29
|
+
label: "Description",
|
|
30
|
+
key: "description",
|
|
31
|
+
placeholder: "Production",
|
|
32
|
+
type: "text"
|
|
33
|
+
}];
|
|
34
|
+
const activeServer = computed(() => {
|
|
35
|
+
const activeCollection = activeWorkspaceCollections.value.find((collection) => collection.uid === props.collectionId);
|
|
36
|
+
return servers[activeCollection && typeof props.serverUid === "string" && props.serverUid === "default" ? activeCollection.servers[0] ?? "" : activeCollection?.servers.find((uid) => uid === props.serverUid) ?? ""];
|
|
37
|
+
});
|
|
38
|
+
watch(computed(() => {
|
|
39
|
+
if (!activeServer.value?.url) return [];
|
|
40
|
+
return activeServer.value.url.match(REGEX.PATH)?.map((m) => m.slice(1, -1)) ?? [];
|
|
41
|
+
}), (newPathVariables) => {
|
|
42
|
+
if (!activeServer.value) return;
|
|
43
|
+
const variables = activeServer.value.variables ? { ...activeServer.value.variables } : {};
|
|
44
|
+
Object.keys(variables).forEach((key) => {
|
|
45
|
+
if (!newPathVariables.includes(key)) delete variables[key];
|
|
46
|
+
});
|
|
47
|
+
newPathVariables.forEach((variable) => {
|
|
48
|
+
if (!variables[variable]) variables[variable] = { default: "" };
|
|
49
|
+
});
|
|
50
|
+
serverMutators.edit(activeServer.value.uid, "variables", variables);
|
|
51
|
+
}, { immediate: true });
|
|
52
|
+
const updateServer = (key, value) => {
|
|
53
|
+
if (!activeWorkspaceCollections.value || !activeServer.value) return;
|
|
54
|
+
serverMutators.edit(activeServer.value.uid, key, value);
|
|
55
|
+
};
|
|
56
|
+
const updateServerVariable = (key, value) => {
|
|
57
|
+
if (!activeServer.value) return;
|
|
58
|
+
const variables = activeServer.value.variables || {};
|
|
59
|
+
variables[key] = {
|
|
60
|
+
...variables[key],
|
|
61
|
+
default: value
|
|
62
|
+
};
|
|
63
|
+
serverMutators.edit(activeServer.value.uid, "variables", variables);
|
|
64
|
+
};
|
|
65
|
+
return (_ctx, _cache) => {
|
|
66
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(["divide-0.5 flex w-full flex-col divide-y rounded-b-lg text-sm", activeServer.value?.variables && "bg-b-1"]) }, [activeServer.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(Form_default, {
|
|
67
|
+
data: activeServer.value,
|
|
68
|
+
onUpdate: updateServer,
|
|
69
|
+
options
|
|
70
|
+
}, null, 8, ["data"]), activeServer.value.variables ? (openBlock(), createBlock(ServerVariablesForm_default, {
|
|
71
|
+
key: 0,
|
|
72
|
+
variables: activeServer.value.variables,
|
|
73
|
+
"onUpdate:variable": updateServerVariable
|
|
74
|
+
}, null, 8, ["variables"])) : createCommentVNode("", true)], 64)) : createCommentVNode("", true)], 2);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/views/Collection/CollectionServers.vue?vue&type=script&setup=true&lang.ts
|
|
80
|
+
var _hoisted_1 = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" };
|
|
81
|
+
var _hoisted_2 = { class: "flex flex-col gap-4" };
|
|
82
|
+
var _hoisted_3 = { class: "rounded-lg border" };
|
|
83
|
+
var _hoisted_4 = { class: "bg-b-2 flex items-start justify-between rounded-t-lg py-1 pr-1 pl-3 text-sm" };
|
|
84
|
+
var _hoisted_5 = {
|
|
85
|
+
key: 1,
|
|
86
|
+
class: "self-center"
|
|
87
|
+
};
|
|
88
|
+
var _hoisted_6 = { class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4" };
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/views/Collection/CollectionServers.vue
|
|
91
|
+
var CollectionServers_default = /* @__PURE__ */ defineComponent({
|
|
92
|
+
__name: "CollectionServers",
|
|
93
|
+
setup(__props) {
|
|
94
|
+
const { activeCollection } = useActiveEntities();
|
|
95
|
+
const { servers, events, serverMutators } = useWorkspace();
|
|
96
|
+
const deleteModal = useModal();
|
|
97
|
+
const selectedServerUid = ref(null);
|
|
98
|
+
const collectionServers = computed(() => {
|
|
99
|
+
if (!servers || !activeCollection.value?.servers) return [];
|
|
100
|
+
return Object.values(servers).filter((server) => activeCollection.value?.servers.includes(server.uid));
|
|
101
|
+
});
|
|
102
|
+
/** Add server */
|
|
103
|
+
const handleAddServer = () => events.commandPalette.emit({ commandName: "Add Server" });
|
|
104
|
+
/** Delete server */
|
|
105
|
+
const handleDeleteServer = () => {
|
|
106
|
+
if (!activeCollection.value?.uid || !selectedServerUid.value) return;
|
|
107
|
+
serverMutators.delete(selectedServerUid.value, activeCollection.value.uid);
|
|
108
|
+
deleteModal.hide();
|
|
109
|
+
};
|
|
110
|
+
const openDeleteModal = (serverUid) => {
|
|
111
|
+
selectedServerUid.value = serverUid;
|
|
112
|
+
deleteModal.show();
|
|
113
|
+
};
|
|
114
|
+
return (_ctx, _cache) => {
|
|
115
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [
|
|
116
|
+
_cache[2] || (_cache[2] = createStaticVNode("<div class=\"flex items-start justify-between gap-2\"><div class=\"flex flex-col gap-2\"><div class=\"flex h-8 items-center\"><h3 class=\"font-bold\">Servers</h3></div><p class=\"text-sm\"> Add different base URLs for your API. You can use <code class=\"font-code text-c-2\">{variables}</code> for dynamic parts. </p></div></div>", 1)),
|
|
117
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(collectionServers.value, (server, index) => {
|
|
118
|
+
return openBlock(), createElementBlock("div", { key: server.uid }, [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [server.description ? (openBlock(), createBlock(unref(ScalarMarkdown), {
|
|
119
|
+
key: 0,
|
|
120
|
+
class: "self-center",
|
|
121
|
+
value: server.description
|
|
122
|
+
}, null, 8, ["value"])) : (openBlock(), createElementBlock("span", _hoisted_5, "Server " + toDisplayString(index + 1), 1)), createVNode(unref(ScalarButton), {
|
|
123
|
+
class: "hover:bg-b-3 hover:text-c-1 h-fit p-1.25",
|
|
124
|
+
variant: "ghost",
|
|
125
|
+
onClick: ($event) => openDeleteModal(server.uid)
|
|
126
|
+
}, {
|
|
127
|
+
default: withCtx(() => [createVNode(unref(ScalarIconTrash), { class: "size-3.5" })]),
|
|
128
|
+
_: 1
|
|
129
|
+
}, 8, ["onClick"])]), unref(activeCollection) ? (openBlock(), createBlock(CollectionServerForm_default, {
|
|
130
|
+
key: 0,
|
|
131
|
+
collectionId: unref(activeCollection).uid,
|
|
132
|
+
serverUid: server.uid
|
|
133
|
+
}, null, 8, ["collectionId", "serverUid"])) : createCommentVNode("", true)])]);
|
|
134
|
+
}), 128)),
|
|
135
|
+
createElementVNode("div", _hoisted_6, [createVNode(unref(ScalarButton), {
|
|
136
|
+
class: "hover:bg-b-2 hover:text-c-1 flex items-center gap-2",
|
|
137
|
+
size: "sm",
|
|
138
|
+
variant: "ghost",
|
|
139
|
+
onClick: handleAddServer
|
|
140
|
+
}, {
|
|
141
|
+
default: withCtx(() => [createVNode(unref(ScalarIcon), {
|
|
142
|
+
class: "inline-flex",
|
|
143
|
+
icon: "Add",
|
|
144
|
+
size: "sm",
|
|
145
|
+
thickness: "1.5"
|
|
146
|
+
}), _cache[1] || (_cache[1] = createElementVNode("span", null, "Add Server", -1))]),
|
|
147
|
+
_: 1
|
|
148
|
+
})])
|
|
149
|
+
]), createVNode(unref(ScalarModal), {
|
|
150
|
+
size: "xxs",
|
|
151
|
+
state: unref(deleteModal),
|
|
152
|
+
title: `Delete ${selectedServerUid.value ? unref(servers)[selectedServerUid.value]?.url : "Server"}`
|
|
153
|
+
}, {
|
|
154
|
+
default: withCtx(() => [createVNode(DeleteSidebarListElement_default, {
|
|
155
|
+
variableName: "Server",
|
|
156
|
+
warningMessage: "Are you sure you want to delete this server? This action cannot be undone.",
|
|
157
|
+
onClose: _cache[0] || (_cache[0] = ($event) => unref(deleteModal).hide()),
|
|
158
|
+
onDelete: handleDeleteServer
|
|
159
|
+
})]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["state", "title"])]);
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
//#endregion
|
|
166
|
+
export { CollectionServers_default as default };
|
|
167
|
+
|
|
168
|
+
//# sourceMappingURL=CollectionServers-BrjTCfDe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionServers-BrjTCfDe.js","names":[],"sources":["../src/views/Collection/CollectionServerForm.vue","../src/views/Collection/CollectionServerForm.vue","../src/views/Collection/CollectionServers.vue","../src/views/Collection/CollectionServers.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Server } from '@scalar/oas-utils/entities/spec'\nimport { REGEX } from '@scalar/oas-utils/helpers'\nimport { computed, watch } from 'vue'\n\nimport Form from '@/components/Form/Form.vue'\nimport ServerVariablesForm from '@/components/Server/ServerVariablesForm.vue'\nimport type { ServerVariables } from '@/components/Server/types'\nimport { useWorkspace } from '@/store'\nimport { useActiveEntities } from '@/store/active-entities'\n\nconst props = withDefaults(\n defineProps<{\n collectionId: string | string[]\n serverUid: string | string[]\n }>(),\n {\n collectionId: '',\n serverUid: '',\n },\n)\n\nconst { activeWorkspaceCollections } = useActiveEntities()\nconst { servers, serverMutators } = useWorkspace()\n\nconst options = [\n {\n label: 'URL',\n key: 'url',\n placeholder: 'https://void.scalar.com',\n type: 'text',\n },\n {\n label: 'Description',\n key: 'description',\n placeholder: 'Production',\n type: 'text',\n },\n]\n\nconst activeServer = computed(() => {\n const activeCollection = activeWorkspaceCollections.value.find(\n (collection) => collection.uid === props.collectionId,\n )\n return servers[\n activeCollection &&\n typeof props.serverUid === 'string' &&\n props.serverUid === 'default'\n ? (activeCollection.servers[0] ?? '')\n : (activeCollection?.servers.find((uid) => uid === props.serverUid) ?? '')\n ]\n})\n\nconst pathVariables = computed(() => {\n if (!activeServer.value?.url) {\n return []\n }\n return (\n activeServer.value.url.match(REGEX.PATH)?.map((m) => m.slice(1, -1)) ?? []\n )\n})\n\nwatch(\n pathVariables,\n (newPathVariables) => {\n if (!activeServer.value) {\n return\n }\n\n const variables = activeServer.value.variables\n ? { ...activeServer.value.variables }\n : {}\n\n // Removes variables no longer in the server path\n Object.keys(variables).forEach((key) => {\n if (!newPathVariables.includes(key)) {\n delete variables[key]\n }\n })\n\n // Adds path variables\n newPathVariables.forEach((variable) => {\n if (!variables[variable]) {\n variables[variable] = { default: '' }\n }\n })\n\n serverMutators.edit(activeServer.value.uid, 'variables', variables)\n\n // emitCustomEvent(wrapper.value, 'store-update-selected-server-properties', {\n // key: 'variables',\n // value: variables,\n // options: {\n // disableOldStoreUpdate: true,\n // },\n // })\n },\n { immediate: true },\n)\n\nconst updateServer = (key: string, value: string) => {\n if (!activeWorkspaceCollections.value || !activeServer.value) {\n return\n }\n serverMutators.edit(activeServer.value.uid, key as keyof Server, value)\n\n // if (key === 'url' || key === 'description') {\n // emitCustomEvent(wrapper.value, 'store-update-selected-server-properties', {\n // key: key,\n // value: value,\n // options: {\n // disableOldStoreUpdate: true,\n // },\n // })\n // }\n}\n\nconst updateServerVariable = (key: string, value: string) => {\n if (!activeServer.value) {\n return\n }\n\n const variables = activeServer.value.variables || {}\n variables[key] = { ...variables[key], default: value }\n\n serverMutators.edit(activeServer.value.uid, 'variables', variables)\n\n // emitCustomEvent(wrapper.value, 'store-update-selected-server-properties', {\n // key: 'variables',\n // value: variables,\n // options: {\n // disableOldStoreUpdate: true,\n // },\n // })\n}\n</script>\n\n<template>\n <div\n class=\"divide-0.5 flex w-full flex-col divide-y rounded-b-lg text-sm\"\n :class=\"activeServer?.variables && 'bg-b-1'\">\n <template v-if=\"activeServer\">\n <Form\n :data=\"activeServer\"\n :onUpdate=\"updateServer\"\n :options=\"options\" />\n <ServerVariablesForm\n v-if=\"activeServer.variables\"\n :variables=\"activeServer.variables as ServerVariables\"\n @update:variable=\"updateServerVariable\" />\n </template>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport type { Server } from '@scalar/oas-utils/entities/spec'\nimport { REGEX } from '@scalar/oas-utils/helpers'\nimport { computed, watch } from 'vue'\n\nimport Form from '@/components/Form/Form.vue'\nimport ServerVariablesForm from '@/components/Server/ServerVariablesForm.vue'\nimport type { ServerVariables } from '@/components/Server/types'\nimport { useWorkspace } from '@/store'\nimport { useActiveEntities } from '@/store/active-entities'\n\nconst props = withDefaults(\n defineProps<{\n collectionId: string | string[]\n serverUid: string | string[]\n }>(),\n {\n collectionId: '',\n serverUid: '',\n },\n)\n\nconst { activeWorkspaceCollections } = useActiveEntities()\nconst { servers, serverMutators } = useWorkspace()\n\nconst options = [\n {\n label: 'URL',\n key: 'url',\n placeholder: 'https://void.scalar.com',\n type: 'text',\n },\n {\n label: 'Description',\n key: 'description',\n placeholder: 'Production',\n type: 'text',\n },\n]\n\nconst activeServer = computed(() => {\n const activeCollection = activeWorkspaceCollections.value.find(\n (collection) => collection.uid === props.collectionId,\n )\n return servers[\n activeCollection &&\n typeof props.serverUid === 'string' &&\n props.serverUid === 'default'\n ? (activeCollection.servers[0] ?? '')\n : (activeCollection?.servers.find((uid) => uid === props.serverUid) ?? '')\n ]\n})\n\nconst pathVariables = computed(() => {\n if (!activeServer.value?.url) {\n return []\n }\n return (\n activeServer.value.url.match(REGEX.PATH)?.map((m) => m.slice(1, -1)) ?? []\n )\n})\n\nwatch(\n pathVariables,\n (newPathVariables) => {\n if (!activeServer.value) {\n return\n }\n\n const variables = activeServer.value.variables\n ? { ...activeServer.value.variables }\n : {}\n\n // Removes variables no longer in the server path\n Object.keys(variables).forEach((key) => {\n if (!newPathVariables.includes(key)) {\n delete variables[key]\n }\n })\n\n // Adds path variables\n newPathVariables.forEach((variable) => {\n if (!variables[variable]) {\n variables[variable] = { default: '' }\n }\n })\n\n serverMutators.edit(activeServer.value.uid, 'variables', variables)\n\n // emitCustomEvent(wrapper.value, 'store-update-selected-server-properties', {\n // key: 'variables',\n // value: variables,\n // options: {\n // disableOldStoreUpdate: true,\n // },\n // })\n },\n { immediate: true },\n)\n\nconst updateServer = (key: string, value: string) => {\n if (!activeWorkspaceCollections.value || !activeServer.value) {\n return\n }\n serverMutators.edit(activeServer.value.uid, key as keyof Server, value)\n\n // if (key === 'url' || key === 'description') {\n // emitCustomEvent(wrapper.value, 'store-update-selected-server-properties', {\n // key: key,\n // value: value,\n // options: {\n // disableOldStoreUpdate: true,\n // },\n // })\n // }\n}\n\nconst updateServerVariable = (key: string, value: string) => {\n if (!activeServer.value) {\n return\n }\n\n const variables = activeServer.value.variables || {}\n variables[key] = { ...variables[key], default: value }\n\n serverMutators.edit(activeServer.value.uid, 'variables', variables)\n\n // emitCustomEvent(wrapper.value, 'store-update-selected-server-properties', {\n // key: 'variables',\n // value: variables,\n // options: {\n // disableOldStoreUpdate: true,\n // },\n // })\n}\n</script>\n\n<template>\n <div\n class=\"divide-0.5 flex w-full flex-col divide-y rounded-b-lg text-sm\"\n :class=\"activeServer?.variables && 'bg-b-1'\">\n <template v-if=\"activeServer\">\n <Form\n :data=\"activeServer\"\n :onUpdate=\"updateServer\"\n :options=\"options\" />\n <ServerVariablesForm\n v-if=\"activeServer.variables\"\n :variables=\"activeServer.variables as ServerVariables\"\n @update:variable=\"updateServerVariable\" />\n </template>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport {\n ScalarButton,\n ScalarIcon,\n ScalarMarkdown,\n ScalarModal,\n useModal,\n} from '@scalar/components'\nimport { ScalarIconTrash } from '@scalar/icons'\nimport type { Server } from '@scalar/oas-utils/entities/spec'\nimport { computed, ref } from 'vue'\n\nimport DeleteSidebarListElement from '@/components/Sidebar/Actions/DeleteSidebarListElement.vue'\nimport { useWorkspace } from '@/store'\nimport { useActiveEntities } from '@/store/active-entities'\n\nimport CollectionServerForm from './CollectionServerForm.vue'\n\nconst { activeCollection } = useActiveEntities()\nconst { servers, events, serverMutators } = useWorkspace()\n\nconst deleteModal = useModal()\nconst selectedServerUid = ref<Server['uid'] | null>(null)\n\nconst collectionServers = computed(() => {\n if (!servers || !activeCollection.value?.servers) {\n return []\n }\n return Object.values(servers).filter((server) =>\n activeCollection.value?.servers.includes(server.uid),\n )\n})\n\n/** Add server */\nconst handleAddServer = () =>\n events.commandPalette.emit({\n commandName: 'Add Server',\n })\n\n/** Delete server */\nconst handleDeleteServer = () => {\n if (!activeCollection.value?.uid || !selectedServerUid.value) {\n return\n }\n\n serverMutators.delete(selectedServerUid.value, activeCollection.value.uid)\n // emitCustomEvent(wrapper.value, 'scalar-delete-server', {\n // url: servers[selectedServerUid.value]?.url ?? '',\n // })\n deleteModal.hide()\n}\n\nconst openDeleteModal = (serverUid: Server['uid']) => {\n selectedServerUid.value = serverUid\n deleteModal.show()\n}\n</script>\n\n<template>\n <div class=\"flex h-full w-full flex-col gap-12 px-1.5 pt-8\">\n <div class=\"flex flex-col gap-4\">\n <div class=\"flex items-start justify-between gap-2\">\n <div class=\"flex flex-col gap-2\">\n <div class=\"flex h-8 items-center\">\n <h3 class=\"font-bold\">Servers</h3>\n </div>\n <p class=\"text-sm\">\n Add different base URLs for your API. You can use\n <code class=\"font-code text-c-2\">{variables}</code> for dynamic\n parts.\n </p>\n </div>\n </div>\n <div\n v-for=\"(server, index) in collectionServers\"\n :key=\"server.uid\">\n <div class=\"rounded-lg border\">\n <div\n class=\"bg-b-2 flex items-start justify-between rounded-t-lg py-1 pr-1 pl-3 text-sm\">\n <ScalarMarkdown\n v-if=\"server.description\"\n class=\"self-center\"\n :value=\"server.description\" />\n <span\n v-else\n class=\"self-center\"\n >Server {{ index + 1 }}</span\n >\n <ScalarButton\n class=\"hover:bg-b-3 hover:text-c-1 h-fit p-1.25\"\n variant=\"ghost\"\n @click=\"openDeleteModal(server.uid)\">\n <ScalarIconTrash class=\"size-3.5\" />\n </ScalarButton>\n </div>\n <CollectionServerForm\n v-if=\"activeCollection\"\n :collectionId=\"activeCollection.uid\"\n :serverUid=\"server.uid\" />\n </div>\n </div>\n <div\n class=\"text-c-3 flex h-full items-center justify-center rounded-lg border p-4\">\n <ScalarButton\n class=\"hover:bg-b-2 hover:text-c-1 flex items-center gap-2\"\n size=\"sm\"\n variant=\"ghost\"\n @click=\"handleAddServer\">\n <ScalarIcon\n class=\"inline-flex\"\n icon=\"Add\"\n size=\"sm\"\n thickness=\"1.5\" />\n <span>Add Server</span>\n </ScalarButton>\n </div>\n </div>\n <ScalarModal\n :size=\"'xxs'\"\n :state=\"deleteModal\"\n :title=\"`Delete ${selectedServerUid ? servers[selectedServerUid]?.url : 'Server'}`\">\n <DeleteSidebarListElement\n :variableName=\"'Server'\"\n :warningMessage=\"'Are you sure you want to delete this server? This action cannot be undone.'\"\n @close=\"deleteModal.hide()\"\n @delete=\"handleDeleteServer\" />\n </ScalarModal>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport {\n ScalarButton,\n ScalarIcon,\n ScalarMarkdown,\n ScalarModal,\n useModal,\n} from '@scalar/components'\nimport { ScalarIconTrash } from '@scalar/icons'\nimport type { Server } from '@scalar/oas-utils/entities/spec'\nimport { computed, ref } from 'vue'\n\nimport DeleteSidebarListElement from '@/components/Sidebar/Actions/DeleteSidebarListElement.vue'\nimport { useWorkspace } from '@/store'\nimport { useActiveEntities } from '@/store/active-entities'\n\nimport CollectionServerForm from './CollectionServerForm.vue'\n\nconst { activeCollection } = useActiveEntities()\nconst { servers, events, serverMutators } = useWorkspace()\n\nconst deleteModal = useModal()\nconst selectedServerUid = ref<Server['uid'] | null>(null)\n\nconst collectionServers = computed(() => {\n if (!servers || !activeCollection.value?.servers) {\n return []\n }\n return Object.values(servers).filter((server) =>\n activeCollection.value?.servers.includes(server.uid),\n )\n})\n\n/** Add server */\nconst handleAddServer = () =>\n events.commandPalette.emit({\n commandName: 'Add Server',\n })\n\n/** Delete server */\nconst handleDeleteServer = () => {\n if (!activeCollection.value?.uid || !selectedServerUid.value) {\n return\n }\n\n serverMutators.delete(selectedServerUid.value, activeCollection.value.uid)\n // emitCustomEvent(wrapper.value, 'scalar-delete-server', {\n // url: servers[selectedServerUid.value]?.url ?? '',\n // })\n deleteModal.hide()\n}\n\nconst openDeleteModal = (serverUid: Server['uid']) => {\n selectedServerUid.value = serverUid\n deleteModal.show()\n}\n</script>\n\n<template>\n <div class=\"flex h-full w-full flex-col gap-12 px-1.5 pt-8\">\n <div class=\"flex flex-col gap-4\">\n <div class=\"flex items-start justify-between gap-2\">\n <div class=\"flex flex-col gap-2\">\n <div class=\"flex h-8 items-center\">\n <h3 class=\"font-bold\">Servers</h3>\n </div>\n <p class=\"text-sm\">\n Add different base URLs for your API. You can use\n <code class=\"font-code text-c-2\">{variables}</code> for dynamic\n parts.\n </p>\n </div>\n </div>\n <div\n v-for=\"(server, index) in collectionServers\"\n :key=\"server.uid\">\n <div class=\"rounded-lg border\">\n <div\n class=\"bg-b-2 flex items-start justify-between rounded-t-lg py-1 pr-1 pl-3 text-sm\">\n <ScalarMarkdown\n v-if=\"server.description\"\n class=\"self-center\"\n :value=\"server.description\" />\n <span\n v-else\n class=\"self-center\"\n >Server {{ index + 1 }}</span\n >\n <ScalarButton\n class=\"hover:bg-b-3 hover:text-c-1 h-fit p-1.25\"\n variant=\"ghost\"\n @click=\"openDeleteModal(server.uid)\">\n <ScalarIconTrash class=\"size-3.5\" />\n </ScalarButton>\n </div>\n <CollectionServerForm\n v-if=\"activeCollection\"\n :collectionId=\"activeCollection.uid\"\n :serverUid=\"server.uid\" />\n </div>\n </div>\n <div\n class=\"text-c-3 flex h-full items-center justify-center rounded-lg border p-4\">\n <ScalarButton\n class=\"hover:bg-b-2 hover:text-c-1 flex items-center gap-2\"\n size=\"sm\"\n variant=\"ghost\"\n @click=\"handleAddServer\">\n <ScalarIcon\n class=\"inline-flex\"\n icon=\"Add\"\n size=\"sm\"\n thickness=\"1.5\" />\n <span>Add Server</span>\n </ScalarButton>\n </div>\n </div>\n <ScalarModal\n :size=\"'xxs'\"\n :state=\"deleteModal\"\n :title=\"`Delete ${selectedServerUid ? servers[selectedServerUid]?.url : 'Server'}`\">\n <DeleteSidebarListElement\n :variableName=\"'Server'\"\n :warningMessage=\"'Are you sure you want to delete this server? This action cannot be undone.'\"\n @close=\"deleteModal.hide()\"\n @delete=\"handleDeleteServer\" />\n </ScalarModal>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;ECWA,MAAM,QAAQ;EAWd,MAAM,EAAE,+BAA+B,mBAAkB;EACzD,MAAM,EAAE,SAAS,mBAAmB,cAAa;EAEjD,MAAM,UAAU,CACd;GACE,OAAO;GACP,KAAK;GACL,aAAa;GACb,MAAM;GACP,EACD;GACE,OAAO;GACP,KAAK;GACL,aAAa;GACb,MAAM;GACP,CACH;EAEA,MAAM,eAAe,eAAe;GAClC,MAAM,mBAAmB,2BAA2B,MAAM,MACvD,eAAe,WAAW,QAAQ,MAAM,aAC3C;AACA,UAAO,QACL,oBACA,OAAO,MAAM,cAAc,YAC3B,MAAM,cAAc,YACf,iBAAiB,QAAQ,MAAM,KAC/B,kBAAkB,QAAQ,MAAM,QAAQ,QAAQ,MAAM,UAAU,IAAI;IAE5E;AAWD,QATsB,eAAe;AACnC,OAAI,CAAC,aAAa,OAAO,IACvB,QAAO,EAAC;AAEV,UACE,aAAa,MAAM,IAAI,MAAM,MAAM,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,IAAI,EAAC;IAE5E,GAIE,qBAAqB;AACpB,OAAI,CAAC,aAAa,MAChB;GAGF,MAAM,YAAY,aAAa,MAAM,YACjC,EAAE,GAAG,aAAa,MAAM,WAAU,GAClC,EAAC;AAGL,UAAO,KAAK,UAAU,CAAC,SAAS,QAAQ;AACtC,QAAI,CAAC,iBAAiB,SAAS,IAAI,CACjC,QAAO,UAAU;KAEpB;AAGD,oBAAiB,SAAS,aAAa;AACrC,QAAI,CAAC,UAAU,UACb,WAAU,YAAY,EAAE,SAAS,IAAG;KAEvC;AAED,kBAAe,KAAK,aAAa,MAAM,KAAK,aAAa,UAAS;KAUpE,EAAE,WAAW,MAAM,CACrB;EAEA,MAAM,gBAAgB,KAAa,UAAkB;AACnD,OAAI,CAAC,2BAA2B,SAAS,CAAC,aAAa,MACrD;AAEF,kBAAe,KAAK,aAAa,MAAM,KAAK,KAAqB,MAAK;;EAaxE,MAAM,wBAAwB,KAAa,UAAkB;AAC3D,OAAI,CAAC,aAAa,MAChB;GAGF,MAAM,YAAY,aAAa,MAAM,aAAa,EAAC;AACnD,aAAU,OAAO;IAAE,GAAG,UAAU;IAAM,SAAS;IAAM;AAErD,kBAAe,KAAK,aAAa,MAAM,KAAK,aAAa,UAAS;;;uBAalE,mBAaM,OAAA,EAZJ,OAAK,eAAA,CAAC,iEACE,aAAA,OAAc,aAAS,SAAA,CAAA,EAAA,EAAA,CACf,aAAA,SAAA,WAAA,EAAhB,mBASW,UAAA,EAAA,KAAA,GAAA,EAAA,CART,YAGuB,cAAA;IAFpB,MAAM,aAAA;IACN,UAAU;IACD;0BAEJ,aAAA,MAAa,aAAA,WAAA,EADrB,YAG4C,6BAAA;;IADzC,WAAW,aAAA,MAAa;IACxB,qBAAiB;;;;;;;;;;;;;;;;;;;;;EEnI1B,MAAM,EAAE,qBAAqB,mBAAkB;EAC/C,MAAM,EAAE,SAAS,QAAQ,mBAAmB,cAAa;EAEzD,MAAM,cAAc,UAAS;EAC7B,MAAM,oBAAoB,IAA0B,KAAI;EAExD,MAAM,oBAAoB,eAAe;AACvC,OAAI,CAAC,WAAW,CAAC,iBAAiB,OAAO,QACvC,QAAO,EAAC;AAEV,UAAO,OAAO,OAAO,QAAQ,CAAC,QAAQ,WACpC,iBAAiB,OAAO,QAAQ,SAAS,OAAO,IAAI,CACtD;IACD;;EAGD,MAAM,wBACJ,OAAO,eAAe,KAAK,EACzB,aAAa,cACd,CAAA;;EAGH,MAAM,2BAA2B;AAC/B,OAAI,CAAC,iBAAiB,OAAO,OAAO,CAAC,kBAAkB,MACrD;AAGF,kBAAe,OAAO,kBAAkB,OAAO,iBAAiB,MAAM,IAAG;AAIzE,eAAY,MAAK;;EAGnB,MAAM,mBAAmB,cAA6B;AACpD,qBAAkB,QAAQ;AAC1B,eAAY,MAAK;;;uBAKjB,mBAoEM,OApEN,YAoEM,CAnEJ,mBAwDM,OAxDN,YAwDM;;sBA3CJ,mBA2BM,UAAA,MAAA,WA1BsB,kBAAA,QAAlB,QAAQ,UAAK;yBADvB,mBA2BM,OAAA,EAzBH,KAAK,OAAO,KAAA,EAAA,CACb,mBAuBM,OAvBN,YAuBM,CAtBJ,mBAiBM,OAjBN,YAiBM,CAdI,OAAO,eAAA,WAAA,EADf,YAGgC,MAAA,eAAA,EAAA;;MAD9B,OAAM;MACL,OAAO,OAAO;6CACjB,mBAIC,QAJD,YAGG,YAAO,gBAAG,QAAK,EAAA,EAAA,EAAA,GAElB,YAKe,MAAA,aAAA,EAAA;MAJb,OAAM;MACN,SAAQ;MACP,UAAK,WAAE,gBAAgB,OAAO,IAAG;;6BACE,CAApC,YAAoC,MAAA,gBAAA,EAAA,EAAnB,OAAM,YAAU,CAAA,CAAA,CAAA;;2BAI7B,MAAA,iBAAgB,IAAA,WAAA,EADxB,YAG4B,8BAAA;;MADzB,cAAc,MAAA,iBAAgB,CAAC;MAC/B,WAAW,OAAO;;;IAGzB,mBAcM,OAdN,YAcM,CAZJ,YAWe,MAAA,aAAA,EAAA;KAVb,OAAM;KACN,MAAK;KACL,SAAQ;KACP,SAAO;;4BAKY,CAJpB,YAIoB,MAAA,WAAA,EAAA;MAHlB,OAAM;MACN,MAAK;MACL,MAAK;MACL,WAAU;mCACZ,mBAAuB,QAAA,MAAjB,cAAU,GAAA,EAAA,CAAA;;;OAItB,YASc,MAAA,YAAA,EAAA;IARX,MAAM;IACN,OAAO,MAAA,YAAW;IAClB,OAAK,UAAY,kBAAA,QAAoB,MAAA,QAAO,CAAC,kBAAA,QAAoB,MAAG;;2BAKpC,CAJjC,YAIiC,kCAAA;KAH9B,cAAc;KACd,gBAAgB;KAChB,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,MAAA,YAAW,CAAC,MAAI;KACvB,UAAQ"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { T as PathId, r as useWorkspace, w as useActiveEntities } from "./store-DpSUVhjp.js";
|
|
2
|
+
import { t as DeleteSidebarListElement_default } from "./DeleteSidebarListElement-C-p87d03.js";
|
|
3
|
+
import { Fragment, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
import { ScalarButton, ScalarIcon, ScalarModal, ScalarToggle, useModal } from "@scalar/components";
|
|
5
|
+
import { useRouter } from "vue-router";
|
|
6
|
+
//#region src/views/Collection/CollectionSettings.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" };
|
|
8
|
+
var _hoisted_2 = { class: "flex flex-col gap-2" };
|
|
9
|
+
var _hoisted_3 = { class: "bg-b-2 rounded-lg border text-sm" };
|
|
10
|
+
var _hoisted_4 = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" };
|
|
11
|
+
var _hoisted_5 = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" };
|
|
12
|
+
var _hoisted_6 = { class: "flex items-center" };
|
|
13
|
+
var _hoisted_7 = ["href"];
|
|
14
|
+
var _hoisted_8 = { class: "flex flex-col gap-4" };
|
|
15
|
+
var _hoisted_9 = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" };
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/views/Collection/CollectionSettings.vue
|
|
18
|
+
var CollectionSettings_default = /* @__PURE__ */ defineComponent({
|
|
19
|
+
__name: "CollectionSettings",
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const { activeCollection, activeWorkspace, activeWorkspaceCollections } = useActiveEntities();
|
|
22
|
+
const { collectionMutators } = useWorkspace();
|
|
23
|
+
const { replace } = useRouter();
|
|
24
|
+
const deleteModal = useModal();
|
|
25
|
+
function handleToggleWatchMode() {
|
|
26
|
+
if (!activeCollection.value) return;
|
|
27
|
+
if (!activeCollection.value?.documentUrl) return;
|
|
28
|
+
collectionMutators.edit(activeCollection.value.uid, "watchMode", !activeCollection.value?.watchMode);
|
|
29
|
+
}
|
|
30
|
+
function handleDeleteCollection() {
|
|
31
|
+
if (!activeCollection.value) return;
|
|
32
|
+
if (!activeWorkspace.value) return;
|
|
33
|
+
collectionMutators.delete(activeCollection.value, activeWorkspace.value);
|
|
34
|
+
const firstCollection = activeWorkspaceCollections.value[0];
|
|
35
|
+
if (firstCollection) replace({
|
|
36
|
+
name: "collection",
|
|
37
|
+
params: {
|
|
38
|
+
[PathId.Workspace]: activeWorkspace.value.uid,
|
|
39
|
+
[PathId.Collection]: firstCollection.uid
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
deleteModal.hide();
|
|
43
|
+
}
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [_cache[5] || (_cache[5] = createElementVNode("div", { class: "flex h-8 items-center" }, [createElementVNode("h3", { class: "font-bold" }, "Features")], -1)), createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [_cache[2] || (_cache[2] = createElementVNode("div", null, [createElementVNode("h4", null, "Watch Mode"), createElementVNode("p", { class: "text-c-2 mt-1" }, " When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")], -1)), createVNode(unref(ScalarToggle), {
|
|
46
|
+
class: "w-4",
|
|
47
|
+
disabled: !unref(activeCollection)?.documentUrl,
|
|
48
|
+
modelValue: unref(activeCollection)?.watchMode ?? false,
|
|
49
|
+
"onUpdate:modelValue": handleToggleWatchMode
|
|
50
|
+
}, null, 8, ["disabled", "modelValue"])]), createElementVNode("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [unref(activeCollection)?.documentUrl ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [_cache[3] || (_cache[3] = createElementVNode("span", { class: "bg-b-2 sticky left-0 pr-2 pl-3" }, "Source", -1)), createElementVNode("a", {
|
|
51
|
+
class: "text-c-2 group rounded pr-3 no-underline hover:underline",
|
|
52
|
+
href: unref(activeCollection).documentUrl,
|
|
53
|
+
target: "_blank"
|
|
54
|
+
}, [createTextVNode(toDisplayString(unref(activeCollection).documentUrl) + " ", 1), createVNode(unref(ScalarIcon), {
|
|
55
|
+
class: "ml-1 hidden w-2.5 group-hover:inline",
|
|
56
|
+
icon: "ExternalLink"
|
|
57
|
+
})], 8, _hoisted_7)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(unref(ScalarIcon), {
|
|
58
|
+
class: "text-c-2 mr-2 ml-3 w-4",
|
|
59
|
+
icon: "NotAllowed",
|
|
60
|
+
size: "sm"
|
|
61
|
+
}), _cache[4] || (_cache[4] = createElementVNode("span", { class: "text-c-2 pr-3" }, " No URL configured. Try importing an OpenAPI document from an URL. ", -1))], 64))])])])]), createElementVNode("div", _hoisted_8, [_cache[8] || (_cache[8] = createElementVNode("h3", { class: "font-bold" }, "Danger Zone", -1)), createElementVNode("div", _hoisted_9, [_cache[7] || (_cache[7] = createElementVNode("div", null, [createElementVNode("h4", null, "Delete Collection"), createElementVNode("p", { class: "text-c-2 mt-1" }, " Be careful, my friend. Once deleted, there is no way to recover the collection. ")], -1)), createVNode(unref(ScalarButton), {
|
|
62
|
+
size: "sm",
|
|
63
|
+
variant: "danger",
|
|
64
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(deleteModal).show())
|
|
65
|
+
}, {
|
|
66
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode(" Delete Collection ", -1)])]),
|
|
67
|
+
_: 1
|
|
68
|
+
})])])]), createVNode(unref(ScalarModal), {
|
|
69
|
+
size: "xxs",
|
|
70
|
+
state: unref(deleteModal),
|
|
71
|
+
title: `Delete ${unref(activeCollection)?.info?.title}`
|
|
72
|
+
}, {
|
|
73
|
+
default: withCtx(() => [createVNode(DeleteSidebarListElement_default, {
|
|
74
|
+
variableName: unref(activeCollection)?.info?.title ?? "",
|
|
75
|
+
warningMessage: "This action cannot be undone.",
|
|
76
|
+
onClose: _cache[1] || (_cache[1] = ($event) => unref(deleteModal).hide()),
|
|
77
|
+
onDelete: handleDeleteCollection
|
|
78
|
+
}, null, 8, ["variableName"])]),
|
|
79
|
+
_: 1
|
|
80
|
+
}, 8, ["state", "title"])], 64);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
//#endregion
|
|
85
|
+
export { CollectionSettings_default as default };
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=CollectionSettings-HVSlp2Gv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionSettings-HVSlp2Gv.js","names":[],"sources":["../src/views/Collection/CollectionSettings.vue","../src/views/Collection/CollectionSettings.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n ScalarButton,\n ScalarIcon,\n ScalarModal,\n ScalarToggle,\n useModal,\n} from '@scalar/components'\nimport { useRouter } from 'vue-router'\n\nimport DeleteSidebarListElement from '@/components/Sidebar/Actions/DeleteSidebarListElement.vue'\nimport { PathId } from '@/routes'\nimport { useActiveEntities, useWorkspace } from '@/store'\n\nconst { activeCollection, activeWorkspace, activeWorkspaceCollections } =\n useActiveEntities()\nconst { collectionMutators } = useWorkspace()\nconst { replace } = useRouter()\nconst deleteModal = useModal()\n\nfunction handleToggleWatchMode() {\n if (!activeCollection.value) {\n return\n }\n\n if (!activeCollection.value?.documentUrl) {\n return\n }\n collectionMutators.edit(\n activeCollection.value.uid,\n 'watchMode',\n !activeCollection.value?.watchMode,\n )\n}\n\nfunction handleDeleteCollection() {\n if (!activeCollection.value) {\n return\n }\n\n if (!activeWorkspace.value) {\n return\n }\n\n collectionMutators.delete(activeCollection.value, activeWorkspace.value)\n\n const firstCollection = activeWorkspaceCollections.value[0]\n\n // Redirect to the first collection\n if (firstCollection) {\n replace({\n name: 'collection',\n params: {\n [PathId.Workspace]: activeWorkspace.value.uid,\n [PathId.Collection]: firstCollection.uid,\n },\n })\n }\n\n deleteModal.hide()\n}\n</script>\n\n<template>\n <div class=\"flex h-full w-full flex-col gap-12 px-1.5 pt-8\">\n <div class=\"flex flex-col gap-2\">\n <div class=\"flex h-8 items-center\">\n <h3 class=\"font-bold\">Features</h3>\n </div>\n <!-- Watch Mode -->\n <div class=\"bg-b-2 rounded-lg border text-sm\">\n <div\n class=\"bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3\">\n <div>\n <h4>Watch Mode</h4>\n <p class=\"text-c-2 mt-1\">\n When enabled, the OpenAPI document will be polled for changes. The\n collection will be updated automatically.\n </p>\n </div>\n <ScalarToggle\n class=\"w-4\"\n :disabled=\"!activeCollection?.documentUrl\"\n :modelValue=\"activeCollection?.watchMode ?? false\"\n @update:modelValue=\"handleToggleWatchMode\" />\n </div>\n <div\n class=\"text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap\">\n <div class=\"flex items-center\">\n <template v-if=\"activeCollection?.documentUrl\">\n <span class=\"bg-b-2 sticky left-0 pr-2 pl-3\">Source</span>\n <a\n class=\"text-c-2 group rounded pr-3 no-underline hover:underline\"\n :href=\"activeCollection.documentUrl\"\n target=\"_blank\">\n {{ activeCollection.documentUrl }}\n <ScalarIcon\n class=\"ml-1 hidden w-2.5 group-hover:inline\"\n icon=\"ExternalLink\" />\n </a>\n </template>\n <template v-else>\n <ScalarIcon\n class=\"text-c-2 mr-2 ml-3 w-4\"\n icon=\"NotAllowed\"\n size=\"sm\" />\n <span class=\"text-c-2 pr-3\">\n No URL configured. Try importing an OpenAPI document from an\n URL.\n </span>\n </template>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Danger Zone -->\n <div class=\"flex flex-col gap-4\">\n <h3 class=\"font-bold\">Danger Zone</h3>\n <div\n class=\"flex items-center justify-between rounded-lg border p-3 text-sm\">\n <div>\n <h4>Delete Collection</h4>\n <p class=\"text-c-2 mt-1\">\n Be careful, my friend. Once deleted, there is no way to recover the\n collection.\n </p>\n </div>\n <ScalarButton\n size=\"sm\"\n variant=\"danger\"\n @click=\"deleteModal.show()\">\n Delete Collection\n </ScalarButton>\n </div>\n </div>\n </div>\n <!-- Delete Modal -->\n <ScalarModal\n :size=\"'xxs'\"\n :state=\"deleteModal\"\n :title=\"`Delete ${activeCollection?.info?.title}`\">\n <DeleteSidebarListElement\n :variableName=\"activeCollection?.info?.title ?? ''\"\n :warningMessage=\"'This action cannot be undone.'\"\n @close=\"deleteModal.hide()\"\n @delete=\"handleDeleteCollection\" />\n </ScalarModal>\n</template>\n","<script setup lang=\"ts\">\nimport {\n ScalarButton,\n ScalarIcon,\n ScalarModal,\n ScalarToggle,\n useModal,\n} from '@scalar/components'\nimport { useRouter } from 'vue-router'\n\nimport DeleteSidebarListElement from '@/components/Sidebar/Actions/DeleteSidebarListElement.vue'\nimport { PathId } from '@/routes'\nimport { useActiveEntities, useWorkspace } from '@/store'\n\nconst { activeCollection, activeWorkspace, activeWorkspaceCollections } =\n useActiveEntities()\nconst { collectionMutators } = useWorkspace()\nconst { replace } = useRouter()\nconst deleteModal = useModal()\n\nfunction handleToggleWatchMode() {\n if (!activeCollection.value) {\n return\n }\n\n if (!activeCollection.value?.documentUrl) {\n return\n }\n collectionMutators.edit(\n activeCollection.value.uid,\n 'watchMode',\n !activeCollection.value?.watchMode,\n )\n}\n\nfunction handleDeleteCollection() {\n if (!activeCollection.value) {\n return\n }\n\n if (!activeWorkspace.value) {\n return\n }\n\n collectionMutators.delete(activeCollection.value, activeWorkspace.value)\n\n const firstCollection = activeWorkspaceCollections.value[0]\n\n // Redirect to the first collection\n if (firstCollection) {\n replace({\n name: 'collection',\n params: {\n [PathId.Workspace]: activeWorkspace.value.uid,\n [PathId.Collection]: firstCollection.uid,\n },\n })\n }\n\n deleteModal.hide()\n}\n</script>\n\n<template>\n <div class=\"flex h-full w-full flex-col gap-12 px-1.5 pt-8\">\n <div class=\"flex flex-col gap-2\">\n <div class=\"flex h-8 items-center\">\n <h3 class=\"font-bold\">Features</h3>\n </div>\n <!-- Watch Mode -->\n <div class=\"bg-b-2 rounded-lg border text-sm\">\n <div\n class=\"bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3\">\n <div>\n <h4>Watch Mode</h4>\n <p class=\"text-c-2 mt-1\">\n When enabled, the OpenAPI document will be polled for changes. The\n collection will be updated automatically.\n </p>\n </div>\n <ScalarToggle\n class=\"w-4\"\n :disabled=\"!activeCollection?.documentUrl\"\n :modelValue=\"activeCollection?.watchMode ?? false\"\n @update:modelValue=\"handleToggleWatchMode\" />\n </div>\n <div\n class=\"text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap\">\n <div class=\"flex items-center\">\n <template v-if=\"activeCollection?.documentUrl\">\n <span class=\"bg-b-2 sticky left-0 pr-2 pl-3\">Source</span>\n <a\n class=\"text-c-2 group rounded pr-3 no-underline hover:underline\"\n :href=\"activeCollection.documentUrl\"\n target=\"_blank\">\n {{ activeCollection.documentUrl }}\n <ScalarIcon\n class=\"ml-1 hidden w-2.5 group-hover:inline\"\n icon=\"ExternalLink\" />\n </a>\n </template>\n <template v-else>\n <ScalarIcon\n class=\"text-c-2 mr-2 ml-3 w-4\"\n icon=\"NotAllowed\"\n size=\"sm\" />\n <span class=\"text-c-2 pr-3\">\n No URL configured. Try importing an OpenAPI document from an\n URL.\n </span>\n </template>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Danger Zone -->\n <div class=\"flex flex-col gap-4\">\n <h3 class=\"font-bold\">Danger Zone</h3>\n <div\n class=\"flex items-center justify-between rounded-lg border p-3 text-sm\">\n <div>\n <h4>Delete Collection</h4>\n <p class=\"text-c-2 mt-1\">\n Be careful, my friend. Once deleted, there is no way to recover the\n collection.\n </p>\n </div>\n <ScalarButton\n size=\"sm\"\n variant=\"danger\"\n @click=\"deleteModal.show()\">\n Delete Collection\n </ScalarButton>\n </div>\n </div>\n </div>\n <!-- Delete Modal -->\n <ScalarModal\n :size=\"'xxs'\"\n :state=\"deleteModal\"\n :title=\"`Delete ${activeCollection?.info?.title}`\">\n <DeleteSidebarListElement\n :variableName=\"activeCollection?.info?.title ?? ''\"\n :warningMessage=\"'This action cannot be undone.'\"\n @close=\"deleteModal.hide()\"\n @delete=\"handleDeleteCollection\" />\n </ScalarModal>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;ECcA,MAAM,EAAE,kBAAkB,iBAAiB,+BACzC,mBAAkB;EACpB,MAAM,EAAE,uBAAuB,cAAa;EAC5C,MAAM,EAAE,YAAY,WAAU;EAC9B,MAAM,cAAc,UAAS;EAE7B,SAAS,wBAAwB;AAC/B,OAAI,CAAC,iBAAiB,MACpB;AAGF,OAAI,CAAC,iBAAiB,OAAO,YAC3B;AAEF,sBAAmB,KACjB,iBAAiB,MAAM,KACvB,aACA,CAAC,iBAAiB,OAAO,UAC3B;;EAGF,SAAS,yBAAyB;AAChC,OAAI,CAAC,iBAAiB,MACpB;AAGF,OAAI,CAAC,gBAAgB,MACnB;AAGF,sBAAmB,OAAO,iBAAiB,OAAO,gBAAgB,MAAK;GAEvE,MAAM,kBAAkB,2BAA2B,MAAM;AAGzD,OAAI,gBACF,SAAQ;IACN,MAAM;IACN,QAAQ;MACL,OAAO,YAAY,gBAAgB,MAAM;MACzC,OAAO,aAAa,gBAAgB;KACtC;IACF,CAAA;AAGH,eAAY,MAAK;;;2DAKjB,mBAwEM,OAxEN,YAwEM,CAvEJ,mBAiDM,OAjDN,YAiDM,CAAA,OAAA,OAAA,OAAA,KAhDJ,mBAEM,OAAA,EAFD,OAAM,yBAAuB,EAAA,CAChC,mBAAmC,MAAA,EAA/B,OAAM,aAAW,EAAC,WAAQ,CAAA,EAAA,GAAA,GAGhC,mBA2CM,OA3CN,YA2CM,CA1CJ,mBAcM,OAdN,YAcM,CAAA,OAAA,OAAA,OAAA,KAZJ,mBAMM,OAAA,MAAA,CALJ,mBAAmB,MAAA,MAAf,aAAU,EACd,mBAGI,KAAA,EAHD,OAAM,iBAAe,EAAC,iHAGzB,CAAA,EAAA,GAAA,GAEF,YAI+C,MAAA,aAAA,EAAA;IAH7C,OAAM;IACL,UAAQ,CAAG,MAAA,iBAAgB,EAAE;IAC7B,YAAY,MAAA,iBAAgB,EAAE,aAAS;IACvC,uBAAmB;8CAExB,mBA0BM,OA1BN,YA0BM,CAxBJ,mBAuBM,OAvBN,YAuBM,CAtBY,MAAA,iBAAgB,EAAE,eAAA,WAAA,EAAlC,mBAWW,UAAA,EAAA,KAAA,GAAA,EAAA,CAAA,OAAA,OAAA,OAAA,KAVT,mBAA0D,QAAA,EAApD,OAAM,kCAAgC,EAAC,UAAM,GAAA,GACnD,mBAQI,KAAA;IAPF,OAAM;IACL,MAAM,MAAA,iBAAgB,CAAC;IACxB,QAAO;uCACJ,MAAA,iBAAgB,CAAC,YAAW,GAAG,KAClC,EAAA,EAAA,YAEwB,MAAA,WAAA,EAAA;IADtB,OAAM;IACN,MAAK;8CAGX,mBASW,UAAA,EAAA,KAAA,GAAA,EAAA,CART,YAGc,MAAA,WAAA,EAAA;IAFZ,OAAM;IACN,MAAK;IACL,MAAK;iCACP,mBAGO,QAAA,EAHD,OAAM,iBAAe,EAAC,uEAG5B,GAAA,EAAA,EAAA,GAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAQV,mBAkBM,OAlBN,YAkBM,CAAA,OAAA,OAAA,OAAA,KAjBJ,mBAAsC,MAAA,EAAlC,OAAM,aAAW,EAAC,eAAW,GAAA,GACjC,mBAeM,OAfN,YAeM,CAAA,OAAA,OAAA,OAAA,KAbJ,mBAMM,OAAA,MAAA,CALJ,mBAA0B,MAAA,MAAtB,oBAAiB,EACrB,mBAGI,KAAA,EAHD,OAAM,iBAAe,EAAC,oFAGzB,CAAA,EAAA,GAAA,GAEF,YAKe,MAAA,aAAA,EAAA;IAJb,MAAK;IACL,SAAQ;IACP,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,MAAA,YAAW,CAAC,MAAI;;2BAE1B,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAF8B,uBAE9B,GAAA,CAAA,EAAA,CAAA;;aAKN,YASc,MAAA,YAAA,EAAA;IARX,MAAM;IACN,OAAO,MAAA,YAAW;IAClB,OAAK,UAAY,MAAA,iBAAgB,EAAE,MAAM;;2BAKL,CAJrC,YAIqC,kCAAA;KAHlC,cAAc,MAAA,iBAAgB,EAAE,MAAM,SAAK;KAC3C,gBAAgB;KAChB,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,MAAA,YAAW,CAAC,MAAI;KACvB,UAAQ"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as ViewLayoutSection_default } from "./ViewLayoutSection-mUqKbQry.js";
|
|
2
|
+
import { createBlock, createTextVNode, defineComponent, openBlock, withCtx } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/views/Collection/CollectionSync.vue
|
|
5
|
+
var CollectionSync_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "CollectionSync",
|
|
7
|
+
setup(__props) {
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
return openBlock(), createBlock(ViewLayoutSection_default, null, {
|
|
10
|
+
title: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode("Sync", -1)])]),
|
|
11
|
+
_: 1
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { CollectionSync_default as default };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=CollectionSync-CAflc5yW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionSync-CAflc5yW.js","names":[],"sources":["../src/views/Collection/CollectionSync.vue","../src/views/Collection/CollectionSync.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport ViewLayoutSection from '@/components/ViewLayout/ViewLayoutSection.vue'\n</script>\n\n<template>\n <ViewLayoutSection>\n <template #title>Sync</template>\n </ViewLayoutSection>\n</template>\n","<script setup lang=\"ts\">\nimport ViewLayoutSection from '@/components/ViewLayout/ViewLayoutSection.vue'\n</script>\n\n<template>\n <ViewLayoutSection>\n <template #title>Sync</template>\n </ViewLayoutSection>\n</template>\n"],"mappings":";;;;;;;;uBCKE,YAEoB,2BAAA,MAAA;IADP,OAAK,cAAK,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAAJ,QAAI,GAAA,CAAA,EAAA,CAAA"}
|