@runeya/runeya 2.0.13 → 2.0.16
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/agent/index.js +236 -15
- package/agent/index.js.map +1 -1
- package/agent-manager-7IDZTNVZ-HVRWIXYW.js +8 -0
- package/{chunk-AJW7LDO5.js → chunk-AHOJAT74.js} +9 -3
- package/chunk-AHOJAT74.js.map +1 -0
- package/{dist-HGCFHXO4.js → dist-P3HYK2SI.js} +334 -92
- package/dist-P3HYK2SI.js.map +1 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/web/assets/{AddressBar.vue-B6BOLYmO.js → AddressBar.vue-BZnGu8vW.js} +1 -1
- package/web/assets/{AgentScalarChatInterface.vue-DKSmjtvV.js → AgentScalarChatInterface.vue-QkKS0oIt.js} +1 -1
- package/web/assets/{AgentTerminalPage-BZ6jaRAs.js → AgentTerminalPage-CfI3DoEO.js} +1 -1
- package/web/assets/AiChatPage-C_j-aspS.js +1 -0
- package/web/assets/{AppLayout-B7-y0tBI.css → AppLayout-Cf8sRK63.css} +1 -1
- package/web/assets/{AppLayout-DnMCPCO8.js → AppLayout-CgU4s6lb.js} +1 -1
- package/web/assets/{AuditPage-CTdEvLE-.js → AuditPage-C42BeKr5.js} +1 -1
- package/web/assets/{CodeInput.vue-Sp2dM8hl.js → CodeInput.vue-BGBOdacc.js} +1 -1
- package/web/assets/{Collection.vue-CdPjaC9d.js → Collection.vue-Vub9L9if.js} +1 -1
- package/web/assets/{CollectionAuthentication.vue-DMPykUah.js → CollectionAuthentication.vue-DMa9nYTH.js} +1 -1
- package/web/assets/CollectionCookies.vue-Dr_bErXS.js +1 -0
- package/web/assets/{CollectionEnvironment.vue-DKab6xJJ.js → CollectionEnvironment.vue-CcS_RH1F.js} +1 -1
- package/web/assets/{CollectionOverview.vue-DlODh8Vk.js → CollectionOverview.vue-Cm3m-3IA.js} +1 -1
- package/web/assets/CollectionScripts.vue-DwfCDW_N.js +1 -0
- package/web/assets/{CollectionServers.vue-Br-QackN.js → CollectionServers.vue-CDU7RCJI.js} +1 -1
- package/web/assets/{CollectionSettings.vue-Cm6NQbDm.js → CollectionSettings.vue-QApKyKpx.js} +1 -1
- package/web/assets/CollectionSync.vue-2mc6W9Vb.js +1 -0
- package/web/assets/{CommandActionInput.vue-CZ3-rqSL.js → CommandActionInput.vue-CSydiKjM.js} +1 -1
- package/web/assets/{Cookies.vue-Duz-a-ga.js → Cookies.vue-2UMujX_l.js} +1 -1
- package/web/assets/DashboardPage-CSkUCQHY.css +1 -0
- package/web/assets/DashboardPage-Dt5zSm2a.js +1 -0
- package/web/assets/{DataTable.vue-Dorr-r7J.js → DataTable.vue-BKb6QQRz.js} +1 -1
- package/web/assets/{DataTableCheckbox.vue-CATn-YYp.js → DataTableCheckbox.vue-DC2n-xeZ.js} +1 -1
- package/web/assets/{DataTableHeader.vue-C3SUSaR8.js → DataTableHeader.vue-Cbolg5AE.js} +1 -1
- package/web/assets/{DataTableInput.vue-_06pwPUA.js → DataTableInput.vue-DoVPLXed.js} +1 -1
- package/web/assets/{DeleteSidebarListElement.vue-DoqRnMXx.js → DeleteSidebarListElement.vue-Br-Lvh7k.js} +1 -1
- package/web/assets/{EditSidebarListElement.vue-BqTw6Tho.js → EditSidebarListElement.vue-BVJ4wsTf.js} +1 -1
- package/web/assets/{EditorIcon-CbpIT0A1.js → EditorIcon-D3F3QHD_.js} +1 -1
- package/web/assets/{EmptyState.vue-Bur5L0a4.js → EmptyState.vue-DMCTVrXN.js} +1 -1
- package/web/assets/{Environment.vue-C50lH9cP.js → Environment.vue-CEBYjegx.js} +1 -1
- package/web/assets/{EnvironmentForm-BDfzXuHx.js → EnvironmentForm-D9pUNi_S.js} +1 -1
- package/web/assets/{EnvironmentFormPage-CLylRN6B.js → EnvironmentFormPage-BQwHvpiH.js} +1 -1
- package/web/assets/{EnvironmentListPage-DlUT6LnX.js → EnvironmentListPage-BEX6YTjm.js} +1 -1
- package/web/assets/{EnvironmentModal.vue-Dz5CArRX.js → EnvironmentModal.vue-Bipjnu_F.js} +1 -1
- package/web/assets/{EnvironmentSelector-DHoYUCTH.js → EnvironmentSelector-BsLO-o9W.js} +1 -1
- package/web/assets/{Form.vue-BzZCMgN1.js → Form.vue-CwujTuIH.js} +1 -1
- package/web/assets/{IconSelector.vue-BCmeqlrs.js → IconSelector.vue-xGa1snoB.js} +1 -1
- package/web/assets/KanbanBoardPage-CS0DFaYQ.js +2 -0
- package/web/assets/KanbanBoardPage-GHv836NO.css +1 -0
- package/web/assets/{KanbanListPage-BLdNz80q.js → KanbanListPage-BlycDa8i.js} +1 -1
- package/web/assets/{LaunchProjectPage-DjRA2D3h.js → LaunchProjectPage-CQPXVRR8.js} +1 -1
- package/web/assets/{LaunchServicesPage-CKaGcu3z.js → LaunchServicesPage-DIc47d5w.js} +1 -1
- package/web/assets/{LogViewer-CtX_6uFM.js → LogViewer-D-j9SP-8.js} +1 -1
- package/web/assets/{ProcessControls-BY-_9zo7.js → ProcessControls-D3MHr6vJ.js} +1 -1
- package/web/assets/{ProcessDetailPage-Bqis1qMA.js → ProcessDetailPage-DArVdn5O.js} +1 -1
- package/web/assets/{ProcessMetrics-DQybvwcA.js → ProcessMetrics-tRbudcTQ.js} +1 -1
- package/web/assets/{ProjectDetailPage-FBPonwd5.js → ProjectDetailPage-DQWbqmra.js} +1 -1
- package/web/assets/{ProjectListPage-xwlVXN8A.js → ProjectListPage-BArhG94f.js} +1 -1
- package/web/assets/{RandomJobTestPage-0pqne-FD.js → RandomJobTestPage-cx0kQXnf.js} +1 -1
- package/web/assets/{Request.vue-Db4XEPKt.js → Request.vue-B9DoYtI8.js} +1 -1
- package/web/assets/{RequestAuth.vue-CK1A6ySt.js → RequestAuth.vue-CqHxzl6g.js} +1 -1
- package/web/assets/{RequestRoot.vue-BLF0GGT5.js → RequestRoot.vue-C28ISMld.js} +1 -1
- package/web/assets/{ScalarAsciiArt.vue-BPdUsXWj.js → ScalarAsciiArt.vue-BYd0f-av.js} +1 -1
- package/web/assets/{ScalarIconEyeSlash.vue-BBDBShRO.js → ScalarIconEyeSlash.vue-Ct2ktTXq.js} +1 -1
- package/web/assets/{ScalarIconTrash.vue-Tpr15aNY.js → ScalarIconTrash.vue-DQO_gQ8s.js} +1 -1
- package/web/assets/{ScenarioEditorPage-DNuo-2Gi.js → ScenarioEditorPage-DP06DP64.js} +1 -1
- package/web/assets/{ServerVariablesForm.vue-XLQ145gw.js → ServerVariablesForm.vue-D11m7aiX.js} +1 -1
- package/web/assets/{ServiceControlsBar-CCTGcA1t.js → ServiceControlsBar-DMq83CtH.js} +1 -1
- package/web/assets/{ServiceDetailPage-BELECRic.css → ServiceDetailPage-BngfQIAo.css} +1 -1
- package/web/assets/ServiceDetailPage-Cn1MTG_u.js +2 -0
- package/web/assets/{ServiceFormPage-F3boRKs-.js → ServiceFormPage-CyIValC5.js} +1 -1
- package/web/assets/{Settings.vue-D_1yQu6i.js → Settings.vue-CCeUjK5z.js} +1 -1
- package/web/assets/{SettingsPage-CgJN_IL7.css → SettingsPage-BhGoaUHP.css} +1 -1
- package/web/assets/SettingsPage-LVnvVA93.js +225 -0
- package/web/assets/{SetupKeyPage-BcaSoLjU.js → SetupKeyPage-DOxR0hTs.js} +1 -1
- package/web/assets/{SetupPage-mCVAKLtm.js → SetupPage-DTQqk8IW.js} +1 -1
- package/web/assets/{Sidebar.vue-De4YlW0c.js → Sidebar.vue-BLpHEfAt.js} +1 -1
- package/web/assets/{SidebarButton.vue-CctYiTRp.js → SidebarButton.vue-CNMSjNtm.js} +1 -1
- package/web/assets/{SidebarListElement.vue-Cv7jUZIM.js → SidebarListElement.vue-DSsy6NQT.js} +1 -1
- package/web/assets/TiptapEditor-DzMKh7Iq.css +1 -0
- package/web/assets/TiptapEditor-TuQki585.js +181 -0
- package/web/assets/{UnlockPage-BSpzyZnd.js → UnlockPage-D4x8qq_i.js} +1 -1
- package/web/assets/{VariablesTable-Dn3IvplD.js → VariablesTable-BP8KuwPI.js} +1 -1
- package/web/assets/{ViewLayout.vue-fiagi8zc.js → ViewLayout.vue-Dui_p5J4.js} +1 -1
- package/web/assets/{ViewLayoutContent.vue-BehGrsED.js → ViewLayoutContent.vue-CZRQTJFb.js} +1 -1
- package/web/assets/{ViewLayoutSection.vue-D4icCgQI.js → ViewLayoutSection.vue-C87DZ2QU.js} +1 -1
- package/web/assets/WikiPage-BrgnqOvx.js +1 -0
- package/web/assets/WikiView-CMF4PzXp.css +1 -0
- package/web/assets/WikiView-Decl55xY.js +1 -0
- package/web/assets/{active-entities-CkBGjwu9.js → active-entities-DEkfqGrE.js} +1 -1
- package/web/assets/{api-reference-D1EfYtPj.js → api-reference-DP5iGzGP.js} +1 -1
- package/web/assets/{autocomplete-CjBHTJWh.js → autocomplete-DcAAfn0y.js} +1 -1
- package/web/assets/{card-CsmU2iiY.js → card-DyK4dvjg.js} +1 -1
- package/web/assets/{checkbox-B5XZqi1U.js → checkbox-Csn61_gJ.js} +1 -1
- package/web/assets/{chip-C4pSomPm.js → chip-DkjFl7f-.js} +1 -1
- package/web/assets/{column-CR3Hix4J.js → column-DyznW54C.js} +1 -1
- package/web/assets/{core-CtGUajLi.js → core-BXP8Yp-2.js} +1 -1
- package/web/assets/{cssMode-nuznbveH.js → cssMode-C9nCeku9.js} +1 -1
- package/web/assets/{dist--ZlcDulO.js → dist-DKLcX5kd.js} +1 -1
- package/web/assets/{dist-DH_zJr7W.js → dist-DM4_kDGf.js} +1 -1
- package/web/assets/{dist-WjGUyWSO.js → dist-DOfPSpzL.js} +1 -1
- package/web/assets/{dist-CXkMrHNP.js → dist-zqENM1-W.js} +1 -1
- package/web/assets/{divider-CnJlD7qO.js → divider-BJQexqne.js} +1 -1
- package/web/assets/{fieldset-D9zY6R6s.js → fieldset-BPm9DkKy.js} +1 -1
- package/web/assets/{freemarker2-Bw43sOne.js → freemarker2-BaJGEPal.js} +1 -1
- package/web/assets/{handlebars-C8qgW7u6.js → handlebars-BQFn9RdQ.js} +1 -1
- package/web/assets/{html-Dy9PKnkr.js → html-Cr5a-EYz.js} +1 -1
- package/web/assets/{htmlMode-o8EU0tqo.js → htmlMode-CC9GYLNa.js} +1 -1
- package/web/assets/{index-CIcE6DNv.js → index-CV_lCcKm.js} +5 -5
- package/web/assets/{javascript-CuRngcUR.js → javascript-mDqsZBlu.js} +1 -1
- package/web/assets/{jsonMode-CsUIxwQq.js → jsonMode-B54JAo3i.js} +1 -1
- package/web/assets/{keyboard-DhkINir5.js → keyboard-BALpgxzI.js} +1 -1
- package/web/assets/{lib-E9M4L9vE.js → lib-CbGVmNqI.js} +1 -1
- package/web/assets/{library-BXoSag-V.js → library-DL2YIihE.js} +1 -1
- package/web/assets/{liquid-CraMnqaK.js → liquid-DiGHjG_L.js} +1 -1
- package/web/assets/{mdx-DPSW5q1A.js → mdx-D6dV5_Hg.js} +1 -1
- package/web/assets/{mediaTypes-DDACekzr.js → mediaTypes-97PR9Ryv.js} +1 -1
- package/web/assets/{message-DKOCajc6.js → message-CkvY1zpy.js} +1 -1
- package/web/assets/{minus-CtlH9Syh.js → minus-Cz1A1nRX.js} +1 -1
- package/web/assets/{multiselect-sshNnjnF.js → multiselect-Cg_IvTVL.js} +1 -1
- package/web/assets/{password-Dv9g39jb.js → password-DnBPksM5.js} +1 -1
- package/web/assets/{plus-CG5Ui-l-.js → plus-DLza1kmt.js} +1 -1
- package/web/assets/{pretty-ms-D2BVTeMx.js → pretty-ms-CFs2lDEt.js} +1 -1
- package/web/assets/process.store-DOZqELYx.js +1 -0
- package/web/assets/{project.store-CVbXSH5d.js → project.store-1ZxiIOdG.js} +1 -1
- package/web/assets/{python-BLq8fVkV.js → python-CBOkbLwS.js} +1 -1
- package/web/assets/{radiobutton-Bz_ltBfM.js → radiobutton-Bzj_cgKU.js} +1 -1
- package/web/assets/{razor-CVrBU-Fk.js → razor-DbhB_XzZ.js} +1 -1
- package/web/assets/router-BXlVOZht.js +1 -0
- package/web/assets/{settings.store-vM-8jbAF.js → settings.store-Qq6Gc2CT.js} +1 -1
- package/web/assets/{store-CTKZgNiD.js → store-Cuguy-ft.js} +1 -1
- package/web/assets/{tabpanel-DaZzgdrv.js → tabpanel-BkIDALQ8.js} +1 -1
- package/web/assets/trpc-BFwMZelk.js +1 -0
- package/web/assets/{tsMode-DO5zEzzD.js → tsMode-B48YcNcc.js} +1 -1
- package/web/assets/{typescript-Do-K_3Jj.js → typescript-DNe7mq9Z.js} +1 -1
- package/web/assets/{urls-BlVUwVFM.js → urls-Bhy-NKbg.js} +1 -1
- package/web/assets/{use-tree-walker-xoEX554A.js → use-tree-walker-DGf54lqT.js} +1 -1
- package/web/assets/useAiChatDrawer-C-QgDgQO.js +1 -0
- package/web/assets/{useClipboard-B3J6cGK-.js → useClipboard-Ba0ZMSjV.js} +1 -1
- package/web/assets/{useLayout-DHrumlpr.js → useLayout-CmsWxVhO.js} +1 -1
- package/web/assets/{usePluginManager-BEbBxZnF.js → usePluginManager-DBLyufEz.js} +1 -1
- package/web/assets/{useSidebar-BCBwVF2x.js → useSidebar-BWKBo0y4.js} +1 -1
- package/web/assets/{vue-router-CuFIegGa.js → vue-router-By6H_4a-.js} +1 -1
- package/web/assets/{xml-BolCsFLY.js → xml-zVv61nBe.js} +1 -1
- package/web/assets/{yaml-5iZTkCV3.js → yaml-DJ0ncxUH.js} +1 -1
- package/web/index.html +1 -1
- package/agent-manager-3DHUF2DC-KN6O7WSA.js +0 -8
- package/chunk-AJW7LDO5.js.map +0 -1
- package/dist-HGCFHXO4.js.map +0 -1
- package/web/assets/AiChatPage-C1r42kX7.js +0 -1
- package/web/assets/CollectionCookies.vue-DqNgVtd-.js +0 -1
- package/web/assets/CollectionScripts.vue-B2gkfo4d.js +0 -1
- package/web/assets/CollectionSync.vue-bB7sdahP.js +0 -1
- package/web/assets/DashboardPage-gZJ4_s8T.css +0 -1
- package/web/assets/DashboardPage-hIc9wP_Q.js +0 -1
- package/web/assets/KanbanBoardPage-DoXgFMvo.js +0 -141
- package/web/assets/KanbanBoardPage-hqNojI5j.css +0 -1
- package/web/assets/ServiceDetailPage-UVg73scN.js +0 -2
- package/web/assets/SettingsPage-Cg78lQZF.js +0 -225
- package/web/assets/process.store-CutdTiYB.js +0 -1
- package/web/assets/router-CuxdGfLF.js +0 -1
- package/web/assets/trpc-BIjF6nTt.js +0 -1
- package/web/assets/useAiChatDrawer-BJugMTj0.js +0 -1
- /package/{agent-manager-3DHUF2DC-KN6O7WSA.js.map → agent-manager-7IDZTNVZ-HVRWIXYW.js.map} +0 -0
- /package/web/assets/{_plugin-vue_export-helper-C08BWUE4.js → _plugin-vue_export-helper-BVSTY9ge.js} +0 -0
- /package/web/assets/{abap-BMPR0rjj.js → abap-DktqfXDx.js} +0 -0
- /package/web/assets/{apex-DYC4uYYf.js → apex-C84w8VGC.js} +0 -0
- /package/web/assets/{azcli-GZlxEjpa.js → azcli-Cs5iRzPw.js} +0 -0
- /package/web/assets/{base64-VLYHbiMn.js → base64-CG47Jc3Y.js} +0 -0
- /package/web/assets/{bat-Cv8OxItG.js → bat-Bxztgnvx.js} +0 -0
- /package/web/assets/{bicep-CuCbE6Ue.js → bicep-EmTmx6Fy.js} +0 -0
- /package/web/assets/{cameligo-BEPX3585.js → cameligo-DZYk6cOD.js} +0 -0
- /package/web/assets/{clojure--6rbXIPY.js → clojure-QYeZgX63.js} +0 -0
- /package/web/assets/{coffee-ByvVcDGX.js → coffee-DP64XG_I.js} +0 -0
- /package/web/assets/{cpp-CECtPnZp.js → cpp-Dz6-l8vs.js} +0 -0
- /package/web/assets/{csharp-DyYyZ8UX.js → csharp-CcVGRY-t.js} +0 -0
- /package/web/assets/{csp-B9apvcI9.js → csp-Cqpt0M-R.js} +0 -0
- /package/web/assets/{css-CfdBNbB0.js → css-BEjT2o3U.js} +0 -0
- /package/web/assets/{cypher-BPqQq4XX.js → cypher-CFsKHT39.js} +0 -0
- /package/web/assets/{dart-BLToxiYU.js → dart-Dd8xW03D.js} +0 -0
- /package/web/assets/{dist-COg0nRYK.js → dist-BPIMeATj.js} +0 -0
- /package/web/assets/{dockerfile-CKo5jN7V.js → dockerfile-MHoTmcM0.js} +0 -0
- /package/web/assets/{ecl-qo8pi1Ty.js → ecl-DDOk3_u-.js} +0 -0
- /package/web/assets/{elixir-Dv1YAMPJ.js → elixir-BrvvYQkl.js} +0 -0
- /package/web/assets/{flow9-BKTKs1nN.js → flow9-Desf9xEz.js} +0 -0
- /package/web/assets/{fsharp-BPoxgmtD.js → fsharp-B8Icgpa6.js} +0 -0
- /package/web/assets/{go-DgJ-2ryf.js → go-Do5MIzaM.js} +0 -0
- /package/web/assets/{graphql-YTK8zpFe.js → graphql-CiG6oX7b.js} +0 -0
- /package/web/assets/{hcl-tYOvwaJ3.js → hcl-C-xKM4WW.js} +0 -0
- /package/web/assets/{ini-BTZ3lNbM.js → ini-DXIR0OjP.js} +0 -0
- /package/web/assets/{java-boRe0CIQ.js → java-Dy8EfEt9.js} +0 -0
- /package/web/assets/{julia-K6BtoWYX.js → julia-DkrFX1s_.js} +0 -0
- /package/web/assets/{kotlin-CglG00z4.js → kotlin-Dar7GDKm.js} +0 -0
- /package/web/assets/{less-DlnIYk4g.js → less-DzP6DgzU.js} +0 -0
- /package/web/assets/{lexon-D4aKXJ0J.js → lexon-DptP6qTd.js} +0 -0
- /package/web/assets/{lua-DeQCQ0IN.js → lua-CCVwtOWf.js} +0 -0
- /package/web/assets/{m3-yCjRJP_i.js → m3-DrEvvio5.js} +0 -0
- /package/web/assets/{markdown-C2IT79AR.js → markdown-ruxuCKkk.js} +0 -0
- /package/web/assets/{mips-BAnhwv_D.js → mips-BQqMOsEB.js} +0 -0
- /package/web/assets/{msdax-D1jHDTih.js → msdax-phO8WA3n.js} +0 -0
- /package/web/assets/{mysql-CTJU-jL7.js → mysql-CTdeo58Q.js} +0 -0
- /package/web/assets/{objective-c-CwxzUA28.js → objective-c-jhQ0iM6X.js} +0 -0
- /package/web/assets/{pascal-DpSQp86i.js → pascal-C8SkzMHp.js} +0 -0
- /package/web/assets/{pascaligo-C4F0Gc12.js → pascaligo-ArPaQLGJ.js} +0 -0
- /package/web/assets/{perl-87HvGh3u.js → perl-DdJtSHIR.js} +0 -0
- /package/web/assets/{pgsql-DUB3YVHd.js → pgsql-DzJ8nWb2.js} +0 -0
- /package/web/assets/{php-gpgbnwXh.js → php-CCjtAB9z.js} +0 -0
- /package/web/assets/{pla-9VH1h0qA.js → pla-BcEbmw3g.js} +0 -0
- /package/web/assets/{postiats-DYNil0RB.js → postiats-Fpcus-uJ.js} +0 -0
- /package/web/assets/{powerquery-Cyj_QMWN.js → powerquery-Cu-9g7NG.js} +0 -0
- /package/web/assets/{powershell-BxsWzjwy.js → powershell-DO2fUGfn.js} +0 -0
- /package/web/assets/{protobuf-CpB35fc2.js → protobuf-DQup7qRj.js} +0 -0
- /package/web/assets/{pug-CQ3BHXrf.js → pug-Duim2NdD.js} +0 -0
- /package/web/assets/{qsharp-hvdiA16n.js → qsharp-CytI7IVT.js} +0 -0
- /package/web/assets/{r-BcpSD-1e.js → r-DZINbLk_.js} +0 -0
- /package/web/assets/{redis-B2JGUU7L.js → redis-Bf0SVuM0.js} +0 -0
- /package/web/assets/{redshift-DtV7K8A1.js → redshift-oHIhn4rc.js} +0 -0
- /package/web/assets/{restructuredtext-avYcqBCA.js → restructuredtext-B3n-oeH1.js} +0 -0
- /package/web/assets/{ruby-B75_Tp8C.js → ruby-DXTCv0Dq.js} +0 -0
- /package/web/assets/{rust-CHon-ZXH.js → rust-BM9bjpGj.js} +0 -0
- /package/web/assets/{sb-iehvyQKY.js → sb-BU8bPS70.js} +0 -0
- /package/web/assets/{scala-LBw1ennX.js → scala-BP9uGS4X.js} +0 -0
- /package/web/assets/{scheme-BRK_sKgt.js → scheme-rmkEHrlu.js} +0 -0
- /package/web/assets/{scss-CzbUsG5V.js → scss-BtCDKYlG.js} +0 -0
- /package/web/assets/{shell-DdtWj1FH.js → shell-CG1BTV1P.js} +0 -0
- /package/web/assets/{solidity-CBYPsj6K.js → solidity-DAYsr878.js} +0 -0
- /package/web/assets/{sophia-BAmZLhFu.js → sophia-DLSOk_-J.js} +0 -0
- /package/web/assets/{sparql-DzxQz_25.js → sparql-C_sea8Qf.js} +0 -0
- /package/web/assets/{sql-CtZa8xg5.js → sql-zI2PRpPJ.js} +0 -0
- /package/web/assets/{st-3yAXYt2f.js → st-VM0k3m2K.js} +0 -0
- /package/web/assets/{swift-nwo4k0Qx.js → swift-DAxKPUqq.js} +0 -0
- /package/web/assets/{systemverilog-38mUSYaO.js → systemverilog-D3gk_LvQ.js} +0 -0
- /package/web/assets/{tcl-DfkL3MZ2.js → tcl-YQSEIPQI.js} +0 -0
- /package/web/assets/{twig-C2_DTvv-.js → twig-Bt5uw3P4.js} +0 -0
- /package/web/assets/{typespec-Dn7A_7aO.js → typespec-CF_qDuWb.js} +0 -0
- /package/web/assets/{vb-ByZEqbuQ.js → vb-DERgblZJ.js} +0 -0
- /package/web/assets/{w3c-keyname-CXRaQfIQ.js → w3c-keyname-B0Po4pAC.js} +0 -0
- /package/web/assets/{wgsl-BqCLRRs9.js → wgsl-BrfJ-tM_.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as e,Bi as t,Ca as n,Ea as r,Hi as i,Ii as a,Ji as o,Oa as s,Oi as c,Si as l,Ui as u,_i as d,ai as f,ci as p,di as m,ei as h,fi as g,gi as _,ha as v,ia as y,ka as b,ki as x,li as S,ni as C,qr as w,ra as T,ri as E,ui as D,ya as O,yi as k}from"./index-CIcE6DNv.js";import{$ as A,P as j,Rt as M,V as N,Y as P,dt as F,hn as I,l as L,nn as R,o as z,q as B}from"./dist--ZlcDulO.js";import{a as V,c as H,i as U,l as W,n as ee,o as G,r as K,s as q,t as te}from"./dist-WjGUyWSO.js";import{t as ne}from"./_plugin-vue_export-helper-C08BWUE4.js";import{t as re}from"./core-CtGUajLi.js";import{n as ie,t as J}from"./useLayout-DHrumlpr.js";import{i as ae}from"./vue-router-CuFIegGa.js";import{n as Y,t as oe}from"./active-entities-CkBGjwu9.js";function X(e){return e?.color||`#FFFFFF`}function Z(e){return e.flatMap(e=>{if(e.key===`value`)try{let t=JSON.parse(e.value);return Object.keys(t).map(n=>({key:n,value:t[n],source:e.source}))}catch{}return[e]})}var se={key:0,class:`gap-1/2 flex flex-col`},ce=[`onClick`],le={class:`flex items-center gap-2 whitespace-nowrap`},ue={class:`w-20 overflow-hidden text-right text-ellipsis whitespace-nowrap`},de=k({__name:`EnvironmentVariableDropdown`,props:{query:{},environment:{},envVariables:{},dropdownPosition:{}},emits:[`select`],setup(e,{expose:o,emit:c}){let l=e,u=c,h=v(!0),y=v(null),x=v(0),C=ae(),{activeCollection:w}=oe(),E=()=>{if(!C)return;let{currentRoute:e,push:t}=C,n=e.value.params.workspace;!w.value||w.value.info?.title===`Drafts`?t({name:`environment.default`,params:{[Y.Workspace]:n}}):t({name:`collection.environment`,params:{[Y.Collection]:w.value.uid}}),h.value=!1},O=new ie(Z(l.envVariables),{keys:[`key`,`value`]}),k=p(()=>{let e=l.query;if(!e)return Z(l.envVariables).slice(-4).filter(({key:e,value:t})=>e!==``||t!==``);let t=O.search(e,{limit:10});return t.length>0?t.map(e=>e.item).filter(({key:e,value:t})=>e!==``||t!==``):[]}),j=e=>{u(`select`,e)};o({handleArrowKey:e=>{let t=e===`up`?-1:1,n=k.value.length;n!==0&&(x.value=(x.value+t+n)%n)},handleSelect:()=>{if(x.value>=0){let e=k.value[x.value];e&&j(e.key)}}}),a(()=>{x.value=0});let M=p(()=>({left:(l.dropdownPosition?.left??0)+`px`,top:(l.dropdownPosition?.top??0)+5+`px`}));return re(y,()=>{h.value=!1},{ignore:[y]}),(a,o)=>h.value?(t(),D(n(A),{key:0,class:`scalar-client`},{default:T(()=>[S(`div`,{ref_key:`dropdownRef`,ref:y,class:`custom-scroll fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75`,style:s(M.value)},[k.value.length?(t(),g(`ul`,se,[(t(!0),g(f,null,i(k.value,(i,a)=>(t(),g(`li`,{key:i.key,class:r([`font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150`,{"bg-b-2":a===x.value}]),onClick:e=>j(i.key)},[S(`div`,le,[i.source===`collection`&&e.environment.name!==`No Environment`?(t(),g(`span`,{key:0,class:`h-2.25 w-2.25 min-w-2.25 rounded-full`,style:s({backgroundColor:n(X)(e.environment)})},null,4)):(t(),D(n(W),{key:1,class:`-ml-0.25 size-2.5`,icon:`Globe`})),_(` `+b(i.key),1)]),S(`span`,ue,b(i.value),1)],10,ce))),128))])):n(C)?(t(),D(n(I),{key:1,class:`font-code text-xxs bg-b-inherit hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150`,variant:`outlined`,onClick:E},{default:T(()=>[d(n(R),{class:`size-3`}),o[0]||=_(` Add Variable `,-1)]),_:1})):m(``,!0),o[1]||=S(`div`,{class:`bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg`},null,-1)],4)]),_:1})):m(``,!0)}}),fe={class:`group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline`},pe={class:`text-c-1 whitespace-nowrap`},me={class:`text-c-1 overflow-hidden text-ellipsis`},he={class:`overflow-hidden text-ellipsis`},ge={class:`flex h-4 w-4 items-center justify-center`},Q=k({__name:`DataTableInputSelect`,props:{modelValue:{},value:{},default:{},canAddCustomValue:{type:Boolean,default:!0},type:{}},emits:[`update:modelValue`],setup(a,{emit:o}){let s=a,c=o,l=p(()=>s.value??[]),u=v(!1),_=v(``),w=v(null);e(_,e=>{c(`update:modelValue`,e)});let E=e=>{c(`update:modelValue`,e),u.value=!1},O=()=>{_.value.trim()&&E(_.value)},k=()=>{_.value.trim()||c(`update:modelValue`,``),u.value=!1},A=e=>s.modelValue.toString()===e;e(u,e=>{e&&x(()=>{w.value?.focus()})});let M=p(()=>s.modelValue===void 0?s.default:s.modelValue),F=p(()=>{let e=new Set(s.modelValue.toString().split(`, `));return l.value.filter(t=>e.has(t)).map(e=>({id:e,label:e,value:e}))}),L=p(()=>l.value.map(e=>({id:e,label:e,value:e}))),R=e=>{c(`update:modelValue`,e.map(e=>e.value).join(`, `))};return(e,o)=>(t(),g(`div`,fe,[a.type===`array`?(t(),D(n(P),{key:0,modelValue:F.value,options:L.value,"onUpdate:modelValue":R},{default:T(()=>[d(n(I),{class:`custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none`,fullWidth:``,variant:`ghost`},{default:T(()=>[S(`span`,pe,b(F.value.length>0?F.value.map(e=>e.label).join(`, `):`Select a value`),1),d(n(N),{icon:`ChevronDown`,size:`md`,class:`min-w-4`})]),_:1})]),_:1},8,[`modelValue`,`options`])):u.value?y((t(),g(`input`,{key:1,ref_key:`inputRef`,ref:w,"onUpdate:modelValue":o[0]||=e=>_.value=e,class:`text-c-1 w-full min-w-0 border-none px-2 py-1.5 outline-none`,placeholder:`Value`,type:`text`,onBlur:k,onKeyup:C(O,[`enter`])},null,544)),[[h,_.value]]):(t(),D(n(B),{key:2,resize:``,value:M.value},{items:T(()=>[(t(!0),g(f,null,i(l.value,e=>(t(),D(n(z),{key:e,class:`group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap`,value:e,onClick:t=>E(e)},{default:T(()=>[S(`div`,{class:r([`flex h-4 w-4 items-center justify-center rounded-full p-[3px]`,A(e)?`bg-c-accent text-b-1`:`shadow-border text-transparent`])},[d(n(N),{class:`size-2.5`,icon:`Checkmark`,thickness:`3`})],2),S(`span`,he,b(e),1)]),_:2},1032,[`value`,`onClick`]))),128)),a.canAddCustomValue?(t(),g(f,{key:0},[l.value.length?(t(),D(n(j),{key:0})):m(``,!0),d(n(z),{class:`flex items-center gap-1.5`,onClick:o[1]||=e=>u.value=!0},{default:T(()=>[S(`div`,ge,[d(n(N),{icon:`Add`,size:`sm`})]),o[2]||=S(`span`,null,`Add value`,-1)]),_:1})],64)):m(``,!0)]),default:T(()=>[d(n(I),{class:`size-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none`,variant:`ghost`},{default:T(()=>[S(`span`,me,b(M.value||`Select a value`),1),d(n(N),{icon:`ChevronDown`,size:`md`})]),_:1})]),_:1},8,[`value`]))]))}}),_e=class e extends q{constructor(e,t,n,r){super(),this.variableName=e,this.variableName=e,this.environment=t,this.envVariables=n,this.isReadOnly=r??!1,this.uid=F()}app;uid;environment;envVariables;isReadOnly;toDOM(){let e=document.createElement(`span`);return e.className=`cm-pill`,e.textContent=`${this.variableName}`,this.app=w(k({props:{variableName:{type:String,default:null}},render:()=>{let t=this.envVariables?Z(this.envVariables).find(e=>e.key===this.variableName):void 0,n=t?.source===`global`,r=n?`var(--scalar-color-1)`:t&&this.environment&&this.environment.name!==`No Environment`?X(this.environment):`var(--scalar-color-1)`;e.style.setProperty(`--tw-bg-base`,r),e.style.opacity=t?.value?`1`:`0.5`;let i=t?.value||`No value`,a=l(`div`,{class:`flex items-center gap-1 whitespace-nowrap`},[(n||this.environment?.name===`No Environment`&&t?.value)&&l(W,{class:`size-3 -ml-1`,icon:`Globe`}),l(`span`,this.variableName)]);return l(L,{content:i,delay:0,placement:`bottom`,offset:6},{default:()=>a})}}),{variableName:this.variableName}),this.app.mount(e),e}destroy(){this.app&&this.app.unmount()}eq(t){return t instanceof e&&t.variableName===this.variableName&&t.uid===this.uid}ignoreEvent(){return!1}},ve=e=>G.fromClass(class{decorations;constructor(e){this.decorations=this.buildDecorations(e)}update(e){(e.docChanged||e.viewportChanged)&&requestAnimationFrame(()=>{this.decorations=this.buildDecorations(e.view),e.view.update([])})}buildDecorations(t){let n=new H;for(let{from:r,to:i}of t.visibleRanges){let a=t.state.doc.sliceString(r,i),o;for(;(o=M.VARIABLES.exec(a))!==null;){let t=r+o.index,i=t+o[0].length,a=o[1]??``;n.add(t,i,U.widget({widget:new _e(a,e.environment,e.envVariables,e.isReadOnly),side:1}))}}return n.finish()}},{decorations:e=>e.decorations}),ye=V.domEventHandlers({keydown(e,t){if(e.key===`Backspace`){let{state:n}=t,{from:r,to:i}=n.selection.main;if(r===0&&i===n.doc.length)return t.dispatch({changes:{from:0,to:n.doc.length},selection:{anchor:0}}),e.preventDefault(),!0;if(r===i&&r>0&&n.doc.sliceString(r-2,r)===`}}`)return t.dispatch({changes:{from:r-2,to:i},selection:{anchor:r-2}}),e.preventDefault(),!0}return!1}}),be={class:`whitespace-nowrap`},$=[`id`],xe={key:0,class:`z-context text-c-2 absolute right-1.5 bottom-1 hidden font-sans group-has-[:focus-visible]/input:block`,role:`alert`},Se={key:5,class:`centered-y text-orange absolute right-7 text-xs`},Ce={key:6,class:`centered-y absolute right-0 flex h-full items-center p-1.5 group-has-[.cm-focused]:z-1`},we={key:7,class:`required centered-y text-xxs text-c-3 group-[.error]:text-red bg-b-1 pointer-events-none absolute right-0 mr-0.5 pt-px pr-2 opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.alert]:shadow-none group-[.error]:bg-transparent group-[.error]:shadow-none peer-has-[.cm-focused]:opacity-0`},Te=ne(k({inheritAttrs:!1,__name:`CodeInput`,props:{colorPicker:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{},error:{type:Boolean},emitOnBlur:{type:Boolean,default:!0},extensions:{default:()=>[]},lineNumbers:{type:Boolean},lint:{type:Boolean},disableTabIndent:{type:Boolean,default:!1},language:{},handleFieldSubmit:{},handleFieldChange:{},placeholder:{},required:{type:Boolean},disableEnter:{type:Boolean,default:!1},disableCloseBrackets:{type:Boolean,default:!1},enum:{},examples:{},type:{},nullable:{type:Boolean,default:!1},withVariables:{type:Boolean,default:!0},importCurl:{type:Boolean},default:{},environment:{},envVariables:{},lineWrapping:{type:Boolean,default:!1}},emits:[`submit`,`update:modelValue`,`curl`,`blur`],setup(i,{expose:a,emit:s}){let l=i,d=s,h=o(),y=h.id||`id-${F()}`,x=v(!1),w=v(!1),T=v(``),k=v({left:0,top:0}),A=v(null),{layout:j}=J();function M(e){return e===l.modelValue?null:l.importCurl&&e.trim().toLowerCase().startsWith(`curl`)?(d(`curl`,e),B.value?.dispatch({changes:{from:0,to:B.value.state.doc.length,insert:String(l.modelValue)}}),null):l.handleFieldChange?l.handleFieldChange(e):d(`update:modelValue`,e)}function N(e){return l.handleFieldSubmit?l.handleFieldSubmit(e):d(`submit`,e)}function P(e){x.value=!1,l.emitOnBlur&&l.modelValue&&N(e),d(`blur`,e)}let I=[...l.extensions];l.colorPicker&&I.push(K);let L=p(()=>ve({environment:l.environment,envVariables:l.envVariables,isReadOnly:j===`modal`})),R=p(()=>[...I,L.value,ye]),z=v(null),{codeMirror:B}=ee({content:O(()=>l.modelValue===void 0?``:String(l.modelValue)),onChange:e=>{M(e),H()},onFocus:()=>x.value=!0,onBlur:e=>P(e),codeMirrorRef:z,disableTabIndent:O(()=>l.disableTabIndent),disableEnter:O(()=>l.disableEnter),disableCloseBrackets:O(()=>l.disableCloseBrackets),lineNumbers:O(()=>l.lineNumbers),language:O(()=>l.language),lint:O(()=>l.lint),extensions:R,placeholder:O(()=>l.placeholder)});B.value?.focus(),e(B,()=>{B.value&&Object.hasOwn(h,`autofocus`)&&B.value.focus()});let{handleDropdownSelect:V,updateDropdownVisibility:H}=te({codeMirror:B,query:T,showDropdown:w,dropdownPosition:k}),U=p(()=>l.nullable?[`true`,`false`,`null`]:[`true`,`false`]),W=(e,t)=>{w.value?e===`down`?(t.preventDefault(),A.value?.handleArrowKey(`down`)):e===`up`?(t.preventDefault(),A.value?.handleArrowKey(`up`)):e===`enter`&&(t.preventDefault(),A.value?.handleSelect()):e===`escape`?l.disableTabIndent||t.stopPropagation():e===`enter`&&t.target instanceof HTMLDivElement&&N(t.target.textContent??``)},G=p(()=>Array.isArray(l.type)?l.type.find(e=>e!==`null`)??`string`:l.type),q=p(()=>w.value&&l.withVariables&&j!==`modal`&&l.environment);return a({focus:()=>{B.value?.focus()},handleChange:M,handleSubmit:N,handleBlur:P,booleanOptions:U,codeMirror:B,modelValue:l.modelValue}),(e,a)=>(t(),g(f,null,[i.disabled?(t(),g(`div`,{key:0,class:r([`text-c-2 flex cursor-default items-center justify-center`,n(j)===`modal`?`font-code pr-2 pl-1 text-base`:`px-2`]),"data-testid":`code-input-disabled`},[S(`span`,be,b(i.modelValue),1)],2)):l.enum&&l.enum.length?(t(),D(Q,{key:1,default:l.default,modelValue:i.modelValue,type:G.value,value:l.enum,"onUpdate:modelValue":a[0]||=e=>d(`update:modelValue`,e)},null,8,[`default`,`modelValue`,`type`,`value`])):i.type===`boolean`||i.type?.includes(`boolean`)?(t(),D(Q,{key:2,default:l.default,modelValue:i.modelValue,value:U.value,"onUpdate:modelValue":a[1]||=e=>d(`update:modelValue`,e)},null,8,[`default`,`modelValue`,`value`])):l.examples&&l.examples.length?(t(),D(Q,{key:3,default:l.default,modelValue:l.modelValue,value:l.examples,"onUpdate:modelValue":a[2]||=e=>d(`update:modelValue`,e)},null,8,[`default`,`modelValue`,`value`])):(t(),g(`div`,c({key:4,id:n(y)},e.$attrs,{ref_key:`codeMirrorRef`,ref:z,class:[`group/input group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden text-xs leading-[1.44] whitespace-nowrap -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline`,{"line-wrapping has-[:focus-visible]:bg-b-1 has-[:focus-visible]:absolute has-[:focus-visible]:z-1":i.lineWrapping,"flow-code-input--error":i.error}],onKeydown:[a[3]||=C(E(e=>W(`down`,e),[`stop`]),[`down`]),a[4]||=C(e=>W(`enter`,e),[`enter`]),a[5]||=C(e=>W(`escape`,e),[`escape`]),a[6]||=C(E(e=>W(`up`,e),[`stop`]),[`up`])]}),[i.disableTabIndent?m(``,!0):(t(),g(`div`,xe,[...a[7]||=[_(` Press `,-1),S(`kbd`,{class:`-mx-0.25 rounded border px-0.5 font-mono`},`Esc`,-1),_(` then `,-1),S(`kbd`,{class:`-mx-0.25 rounded border px-0.5 font-mono`},`Tab`,-1),_(` to exit `,-1)]]))],16,$)),e.$slots.warning?(t(),g(`div`,Se,[u(e.$slots,`warning`,{},void 0,!0)])):m(``,!0),e.$slots.icon?(t(),g(`div`,Ce,[u(e.$slots,`icon`,{},void 0,!0)])):m(``,!0),i.required?(t(),g(`div`,we,` Required `)):m(``,!0),q.value?(t(),D(de,{key:8,ref_key:`dropdownRef`,ref:A,dropdownPosition:k.value,envVariables:i.envVariables,environment:i.environment,query:T.value,onSelect:n(V)},null,8,[`dropdownPosition`,`envVariables`,`environment`,`query`,`onSelect`])):m(``,!0)],64))}}),[[`__scopeId`,`data-v-103d9d56`]]);export{Q as n,Te as t};
|
|
1
|
+
import{$i as e,Bi as t,Ca as n,Ea as r,Hi as i,Ii as a,Ji as o,Oa as s,Oi as c,Si as l,Ui as u,_i as d,ai as f,ci as p,di as m,ei as h,fi as g,gi as _,ha as v,ia as y,ka as b,ki as x,li as S,ni as C,qr as w,ra as T,ri as E,ui as D,ya as O,yi as k}from"./index-CV_lCcKm.js";import{$ as A,P as j,Rt as M,V as N,Y as P,dt as F,hn as I,l as L,nn as R,o as z,q as B}from"./dist-DKLcX5kd.js";import{a as V,c as H,i as U,l as W,n as ee,o as G,r as K,s as q,t as te}from"./dist-DOfPSpzL.js";import{t as ne}from"./_plugin-vue_export-helper-BVSTY9ge.js";import{t as re}from"./core-BXP8Yp-2.js";import{n as ie,t as J}from"./useLayout-CmsWxVhO.js";import{i as ae}from"./vue-router-By6H_4a-.js";import{n as Y,t as oe}from"./active-entities-DEkfqGrE.js";function X(e){return e?.color||`#FFFFFF`}function Z(e){return e.flatMap(e=>{if(e.key===`value`)try{let t=JSON.parse(e.value);return Object.keys(t).map(n=>({key:n,value:t[n],source:e.source}))}catch{}return[e]})}var se={key:0,class:`gap-1/2 flex flex-col`},ce=[`onClick`],le={class:`flex items-center gap-2 whitespace-nowrap`},ue={class:`w-20 overflow-hidden text-right text-ellipsis whitespace-nowrap`},de=k({__name:`EnvironmentVariableDropdown`,props:{query:{},environment:{},envVariables:{},dropdownPosition:{}},emits:[`select`],setup(e,{expose:o,emit:c}){let l=e,u=c,h=v(!0),y=v(null),x=v(0),C=ae(),{activeCollection:w}=oe(),E=()=>{if(!C)return;let{currentRoute:e,push:t}=C,n=e.value.params.workspace;!w.value||w.value.info?.title===`Drafts`?t({name:`environment.default`,params:{[Y.Workspace]:n}}):t({name:`collection.environment`,params:{[Y.Collection]:w.value.uid}}),h.value=!1},O=new ie(Z(l.envVariables),{keys:[`key`,`value`]}),k=p(()=>{let e=l.query;if(!e)return Z(l.envVariables).slice(-4).filter(({key:e,value:t})=>e!==``||t!==``);let t=O.search(e,{limit:10});return t.length>0?t.map(e=>e.item).filter(({key:e,value:t})=>e!==``||t!==``):[]}),j=e=>{u(`select`,e)};o({handleArrowKey:e=>{let t=e===`up`?-1:1,n=k.value.length;n!==0&&(x.value=(x.value+t+n)%n)},handleSelect:()=>{if(x.value>=0){let e=k.value[x.value];e&&j(e.key)}}}),a(()=>{x.value=0});let M=p(()=>({left:(l.dropdownPosition?.left??0)+`px`,top:(l.dropdownPosition?.top??0)+5+`px`}));return re(y,()=>{h.value=!1},{ignore:[y]}),(a,o)=>h.value?(t(),D(n(A),{key:0,class:`scalar-client`},{default:T(()=>[S(`div`,{ref_key:`dropdownRef`,ref:y,class:`custom-scroll fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75`,style:s(M.value)},[k.value.length?(t(),g(`ul`,se,[(t(!0),g(f,null,i(k.value,(i,a)=>(t(),g(`li`,{key:i.key,class:r([`font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150`,{"bg-b-2":a===x.value}]),onClick:e=>j(i.key)},[S(`div`,le,[i.source===`collection`&&e.environment.name!==`No Environment`?(t(),g(`span`,{key:0,class:`h-2.25 w-2.25 min-w-2.25 rounded-full`,style:s({backgroundColor:n(X)(e.environment)})},null,4)):(t(),D(n(W),{key:1,class:`-ml-0.25 size-2.5`,icon:`Globe`})),_(` `+b(i.key),1)]),S(`span`,ue,b(i.value),1)],10,ce))),128))])):n(C)?(t(),D(n(I),{key:1,class:`font-code text-xxs bg-b-inherit hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150`,variant:`outlined`,onClick:E},{default:T(()=>[d(n(R),{class:`size-3`}),o[0]||=_(` Add Variable `,-1)]),_:1})):m(``,!0),o[1]||=S(`div`,{class:`bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg`},null,-1)],4)]),_:1})):m(``,!0)}}),fe={class:`group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline`},pe={class:`text-c-1 whitespace-nowrap`},me={class:`text-c-1 overflow-hidden text-ellipsis`},he={class:`overflow-hidden text-ellipsis`},ge={class:`flex h-4 w-4 items-center justify-center`},Q=k({__name:`DataTableInputSelect`,props:{modelValue:{},value:{},default:{},canAddCustomValue:{type:Boolean,default:!0},type:{}},emits:[`update:modelValue`],setup(a,{emit:o}){let s=a,c=o,l=p(()=>s.value??[]),u=v(!1),_=v(``),w=v(null);e(_,e=>{c(`update:modelValue`,e)});let E=e=>{c(`update:modelValue`,e),u.value=!1},O=()=>{_.value.trim()&&E(_.value)},k=()=>{_.value.trim()||c(`update:modelValue`,``),u.value=!1},A=e=>s.modelValue.toString()===e;e(u,e=>{e&&x(()=>{w.value?.focus()})});let M=p(()=>s.modelValue===void 0?s.default:s.modelValue),F=p(()=>{let e=new Set(s.modelValue.toString().split(`, `));return l.value.filter(t=>e.has(t)).map(e=>({id:e,label:e,value:e}))}),L=p(()=>l.value.map(e=>({id:e,label:e,value:e}))),R=e=>{c(`update:modelValue`,e.map(e=>e.value).join(`, `))};return(e,o)=>(t(),g(`div`,fe,[a.type===`array`?(t(),D(n(P),{key:0,modelValue:F.value,options:L.value,"onUpdate:modelValue":R},{default:T(()=>[d(n(I),{class:`custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none`,fullWidth:``,variant:`ghost`},{default:T(()=>[S(`span`,pe,b(F.value.length>0?F.value.map(e=>e.label).join(`, `):`Select a value`),1),d(n(N),{icon:`ChevronDown`,size:`md`,class:`min-w-4`})]),_:1})]),_:1},8,[`modelValue`,`options`])):u.value?y((t(),g(`input`,{key:1,ref_key:`inputRef`,ref:w,"onUpdate:modelValue":o[0]||=e=>_.value=e,class:`text-c-1 w-full min-w-0 border-none px-2 py-1.5 outline-none`,placeholder:`Value`,type:`text`,onBlur:k,onKeyup:C(O,[`enter`])},null,544)),[[h,_.value]]):(t(),D(n(B),{key:2,resize:``,value:M.value},{items:T(()=>[(t(!0),g(f,null,i(l.value,e=>(t(),D(n(z),{key:e,class:`group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap`,value:e,onClick:t=>E(e)},{default:T(()=>[S(`div`,{class:r([`flex h-4 w-4 items-center justify-center rounded-full p-[3px]`,A(e)?`bg-c-accent text-b-1`:`shadow-border text-transparent`])},[d(n(N),{class:`size-2.5`,icon:`Checkmark`,thickness:`3`})],2),S(`span`,he,b(e),1)]),_:2},1032,[`value`,`onClick`]))),128)),a.canAddCustomValue?(t(),g(f,{key:0},[l.value.length?(t(),D(n(j),{key:0})):m(``,!0),d(n(z),{class:`flex items-center gap-1.5`,onClick:o[1]||=e=>u.value=!0},{default:T(()=>[S(`div`,ge,[d(n(N),{icon:`Add`,size:`sm`})]),o[2]||=S(`span`,null,`Add value`,-1)]),_:1})],64)):m(``,!0)]),default:T(()=>[d(n(I),{class:`size-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none`,variant:`ghost`},{default:T(()=>[S(`span`,me,b(M.value||`Select a value`),1),d(n(N),{icon:`ChevronDown`,size:`md`})]),_:1})]),_:1},8,[`value`]))]))}}),_e=class e extends q{constructor(e,t,n,r){super(),this.variableName=e,this.variableName=e,this.environment=t,this.envVariables=n,this.isReadOnly=r??!1,this.uid=F()}app;uid;environment;envVariables;isReadOnly;toDOM(){let e=document.createElement(`span`);return e.className=`cm-pill`,e.textContent=`${this.variableName}`,this.app=w(k({props:{variableName:{type:String,default:null}},render:()=>{let t=this.envVariables?Z(this.envVariables).find(e=>e.key===this.variableName):void 0,n=t?.source===`global`,r=n?`var(--scalar-color-1)`:t&&this.environment&&this.environment.name!==`No Environment`?X(this.environment):`var(--scalar-color-1)`;e.style.setProperty(`--tw-bg-base`,r),e.style.opacity=t?.value?`1`:`0.5`;let i=t?.value||`No value`,a=l(`div`,{class:`flex items-center gap-1 whitespace-nowrap`},[(n||this.environment?.name===`No Environment`&&t?.value)&&l(W,{class:`size-3 -ml-1`,icon:`Globe`}),l(`span`,this.variableName)]);return l(L,{content:i,delay:0,placement:`bottom`,offset:6},{default:()=>a})}}),{variableName:this.variableName}),this.app.mount(e),e}destroy(){this.app&&this.app.unmount()}eq(t){return t instanceof e&&t.variableName===this.variableName&&t.uid===this.uid}ignoreEvent(){return!1}},ve=e=>G.fromClass(class{decorations;constructor(e){this.decorations=this.buildDecorations(e)}update(e){(e.docChanged||e.viewportChanged)&&requestAnimationFrame(()=>{this.decorations=this.buildDecorations(e.view),e.view.update([])})}buildDecorations(t){let n=new H;for(let{from:r,to:i}of t.visibleRanges){let a=t.state.doc.sliceString(r,i),o;for(;(o=M.VARIABLES.exec(a))!==null;){let t=r+o.index,i=t+o[0].length,a=o[1]??``;n.add(t,i,U.widget({widget:new _e(a,e.environment,e.envVariables,e.isReadOnly),side:1}))}}return n.finish()}},{decorations:e=>e.decorations}),ye=V.domEventHandlers({keydown(e,t){if(e.key===`Backspace`){let{state:n}=t,{from:r,to:i}=n.selection.main;if(r===0&&i===n.doc.length)return t.dispatch({changes:{from:0,to:n.doc.length},selection:{anchor:0}}),e.preventDefault(),!0;if(r===i&&r>0&&n.doc.sliceString(r-2,r)===`}}`)return t.dispatch({changes:{from:r-2,to:i},selection:{anchor:r-2}}),e.preventDefault(),!0}return!1}}),be={class:`whitespace-nowrap`},$=[`id`],xe={key:0,class:`z-context text-c-2 absolute right-1.5 bottom-1 hidden font-sans group-has-[:focus-visible]/input:block`,role:`alert`},Se={key:5,class:`centered-y text-orange absolute right-7 text-xs`},Ce={key:6,class:`centered-y absolute right-0 flex h-full items-center p-1.5 group-has-[.cm-focused]:z-1`},we={key:7,class:`required centered-y text-xxs text-c-3 group-[.error]:text-red bg-b-1 pointer-events-none absolute right-0 mr-0.5 pt-px pr-2 opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.alert]:shadow-none group-[.error]:bg-transparent group-[.error]:shadow-none peer-has-[.cm-focused]:opacity-0`},Te=ne(k({inheritAttrs:!1,__name:`CodeInput`,props:{colorPicker:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{},error:{type:Boolean},emitOnBlur:{type:Boolean,default:!0},extensions:{default:()=>[]},lineNumbers:{type:Boolean},lint:{type:Boolean},disableTabIndent:{type:Boolean,default:!1},language:{},handleFieldSubmit:{},handleFieldChange:{},placeholder:{},required:{type:Boolean},disableEnter:{type:Boolean,default:!1},disableCloseBrackets:{type:Boolean,default:!1},enum:{},examples:{},type:{},nullable:{type:Boolean,default:!1},withVariables:{type:Boolean,default:!0},importCurl:{type:Boolean},default:{},environment:{},envVariables:{},lineWrapping:{type:Boolean,default:!1}},emits:[`submit`,`update:modelValue`,`curl`,`blur`],setup(i,{expose:a,emit:s}){let l=i,d=s,h=o(),y=h.id||`id-${F()}`,x=v(!1),w=v(!1),T=v(``),k=v({left:0,top:0}),A=v(null),{layout:j}=J();function M(e){return e===l.modelValue?null:l.importCurl&&e.trim().toLowerCase().startsWith(`curl`)?(d(`curl`,e),B.value?.dispatch({changes:{from:0,to:B.value.state.doc.length,insert:String(l.modelValue)}}),null):l.handleFieldChange?l.handleFieldChange(e):d(`update:modelValue`,e)}function N(e){return l.handleFieldSubmit?l.handleFieldSubmit(e):d(`submit`,e)}function P(e){x.value=!1,l.emitOnBlur&&l.modelValue&&N(e),d(`blur`,e)}let I=[...l.extensions];l.colorPicker&&I.push(K);let L=p(()=>ve({environment:l.environment,envVariables:l.envVariables,isReadOnly:j===`modal`})),R=p(()=>[...I,L.value,ye]),z=v(null),{codeMirror:B}=ee({content:O(()=>l.modelValue===void 0?``:String(l.modelValue)),onChange:e=>{M(e),H()},onFocus:()=>x.value=!0,onBlur:e=>P(e),codeMirrorRef:z,disableTabIndent:O(()=>l.disableTabIndent),disableEnter:O(()=>l.disableEnter),disableCloseBrackets:O(()=>l.disableCloseBrackets),lineNumbers:O(()=>l.lineNumbers),language:O(()=>l.language),lint:O(()=>l.lint),extensions:R,placeholder:O(()=>l.placeholder)});B.value?.focus(),e(B,()=>{B.value&&Object.hasOwn(h,`autofocus`)&&B.value.focus()});let{handleDropdownSelect:V,updateDropdownVisibility:H}=te({codeMirror:B,query:T,showDropdown:w,dropdownPosition:k}),U=p(()=>l.nullable?[`true`,`false`,`null`]:[`true`,`false`]),W=(e,t)=>{w.value?e===`down`?(t.preventDefault(),A.value?.handleArrowKey(`down`)):e===`up`?(t.preventDefault(),A.value?.handleArrowKey(`up`)):e===`enter`&&(t.preventDefault(),A.value?.handleSelect()):e===`escape`?l.disableTabIndent||t.stopPropagation():e===`enter`&&t.target instanceof HTMLDivElement&&N(t.target.textContent??``)},G=p(()=>Array.isArray(l.type)?l.type.find(e=>e!==`null`)??`string`:l.type),q=p(()=>w.value&&l.withVariables&&j!==`modal`&&l.environment);return a({focus:()=>{B.value?.focus()},handleChange:M,handleSubmit:N,handleBlur:P,booleanOptions:U,codeMirror:B,modelValue:l.modelValue}),(e,a)=>(t(),g(f,null,[i.disabled?(t(),g(`div`,{key:0,class:r([`text-c-2 flex cursor-default items-center justify-center`,n(j)===`modal`?`font-code pr-2 pl-1 text-base`:`px-2`]),"data-testid":`code-input-disabled`},[S(`span`,be,b(i.modelValue),1)],2)):l.enum&&l.enum.length?(t(),D(Q,{key:1,default:l.default,modelValue:i.modelValue,type:G.value,value:l.enum,"onUpdate:modelValue":a[0]||=e=>d(`update:modelValue`,e)},null,8,[`default`,`modelValue`,`type`,`value`])):i.type===`boolean`||i.type?.includes(`boolean`)?(t(),D(Q,{key:2,default:l.default,modelValue:i.modelValue,value:U.value,"onUpdate:modelValue":a[1]||=e=>d(`update:modelValue`,e)},null,8,[`default`,`modelValue`,`value`])):l.examples&&l.examples.length?(t(),D(Q,{key:3,default:l.default,modelValue:l.modelValue,value:l.examples,"onUpdate:modelValue":a[2]||=e=>d(`update:modelValue`,e)},null,8,[`default`,`modelValue`,`value`])):(t(),g(`div`,c({key:4,id:n(y)},e.$attrs,{ref_key:`codeMirrorRef`,ref:z,class:[`group/input group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden text-xs leading-[1.44] whitespace-nowrap -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline`,{"line-wrapping has-[:focus-visible]:bg-b-1 has-[:focus-visible]:absolute has-[:focus-visible]:z-1":i.lineWrapping,"flow-code-input--error":i.error}],onKeydown:[a[3]||=C(E(e=>W(`down`,e),[`stop`]),[`down`]),a[4]||=C(e=>W(`enter`,e),[`enter`]),a[5]||=C(e=>W(`escape`,e),[`escape`]),a[6]||=C(E(e=>W(`up`,e),[`stop`]),[`up`])]}),[i.disableTabIndent?m(``,!0):(t(),g(`div`,xe,[...a[7]||=[_(` Press `,-1),S(`kbd`,{class:`-mx-0.25 rounded border px-0.5 font-mono`},`Esc`,-1),_(` then `,-1),S(`kbd`,{class:`-mx-0.25 rounded border px-0.5 font-mono`},`Tab`,-1),_(` to exit `,-1)]]))],16,$)),e.$slots.warning?(t(),g(`div`,Se,[u(e.$slots,`warning`,{},void 0,!0)])):m(``,!0),e.$slots.icon?(t(),g(`div`,Ce,[u(e.$slots,`icon`,{},void 0,!0)])):m(``,!0),i.required?(t(),g(`div`,we,` Required `)):m(``,!0),q.value?(t(),D(de,{key:8,ref_key:`dropdownRef`,ref:A,dropdownPosition:k.value,envVariables:i.envVariables,environment:i.environment,query:T.value,onSelect:n(V)},null,8,[`dropdownPosition`,`envVariables`,`environment`,`query`,`onSelect`])):m(``,!0)],64))}}),[[`__scopeId`,`data-v-103d9d56`]]);export{Q as n,Te as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as e,Bi as t,Ca as n,Da as r,Ea as i,Hi as a,Oi as o,_i as s,ai as c,ci as l,di as u,fi as d,ha as f,ka as p,li as m,ra as h,ui as g,xi as _,yi as v}from"./index-
|
|
1
|
+
import{$i as e,Bi as t,Ca as n,Da as r,Ea as i,Hi as a,Oi as o,_i as s,ai as c,ci as l,di as u,fi as d,ha as f,ka as p,li as m,ra as h,ui as g,xi as _,yi as v}from"./index-CV_lCcKm.js";import{_n as y,hn as b}from"./dist-DKLcX5kd.js";import{t as x}from"./store-Cuguy-ft.js";import{t as S}from"./_plugin-vue_export-helper-BVSTY9ge.js";import{r as C}from"./core-BXP8Yp-2.js";import{i as w,n as T,t as E}from"./vue-router-By6H_4a-.js";import{n as D,t as O}from"./active-entities-DEkfqGrE.js";import{t as k}from"./IconSelector.vue-xGa1snoB.js";import{t as A}from"./library-DL2YIihE.js";import{t as j}from"./ViewLayout.vue-Dui_p5J4.js";import{t as M}from"./ViewLayoutSection.vue-C87DZ2QU.js";var N=[`for`],P=[`id`,`placeholder`,`value`],F=S(v({__name:`LabelInput`,props:{inputId:{},placeholder:{},value:{},layout:{}},emits:[`updateValue`],setup(e,{emit:i}){let a=i,{cx:s}=y(),l=e=>{let t=e.target;a(`updateValue`,t.value)};return(i,a)=>(t(),d(`div`,r(_(n(s)(`flex-1 flex gap-1 items-center pointer-events-none group`))),[e.layout===`modal`?(t(),d(`span`,r(o({key:1},n(s)(`flex items-center text-c-1 h-8`))),p(e.value),17)):(t(),d(c,{key:0},[m(`label`,o(n(s)(`absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text`),{for:e.inputId}),null,16,N),m(`input`,o(n(s)(`flex-1 text-c-1 rounded pointer-events-auto relative w-full pl-1.25 -ml-0.5 md:-ml-1.25 h-8 group-hover-input has-[:focus-visible]:outline z-10`),{id:e.inputId,placeholder:e.placeholder,value:e.value,onInput:l}),null,16,P)],64))],16))}}),[[`__scopeId`,`data-v-fced736a`]]),I=[`aria-label`],L={class:`group relative ml-1.25`},R=S(v({__name:`CollectionInfoForm`,setup(e){let{activeCollection:r}=O(),{collectionMutators:i}=x(),a=l(()=>r?.value?.[`x-scalar-icon`]||`interface-content-folder`),o=e=>{r?.value?.uid&&i.edit(r?.value?.uid,`x-scalar-icon`,e)},c=e=>{r.value&&i.edit(r.value.uid,`info.title`,e)},u=l(()=>({icon:r?.value?.[`x-scalar-icon`],title:r?.value?.info?.title,description:r?.value?.info?.description,version:r?.value?.info?.version}));return(e,r)=>(t(),d(`div`,{"aria-label":`Collection: ${u.value.title}`,class:`mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]`},[s(k,{modelValue:a.value,placement:`bottom-start`,"onUpdate:modelValue":r[0]||=e=>o(e)},{default:h(()=>[s(n(b),{class:`hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit`,variant:`ghost`},{default:h(()=>[s(n(A),{class:`text-c-2 size-5`,src:a.value,"stroke-width":`2`},null,8,[`src`])]),_:1})]),_:1},8,[`modelValue`]),m(`div`,L,[s(F,{class:`text-xl font-bold`,inputId:`collectionName`,placeholder:`Untitled Collection`,value:u.value.title,onUpdateValue:c},null,8,[`value`])])],8,I))}}),[[`__scopeId`,`data-v-68d5218e`]]),z={class:`bg-b-1 sticky -top-[104px] z-10 mx-auto w-full`},B={key:0,class:`flex max-w-40 items-center`},V={class:`text-c-1 mr-[6.25px] hidden overflow-hidden px-2 font-medium text-ellipsis whitespace-nowrap md:block`},H=v({__name:`CollectionNavigation`,props:{isSticky:{type:Boolean}},setup(e){let{currentRoute:r}=w(),{activeCollection:o}=O(),f=l(()=>[{displayName:`Overview`,to:{name:`collection.overview`,params:{[D.Collection]:o.value?.uid}}},{displayName:`Servers`,to:{name:`collection.servers`,params:{[D.Collection]:o.value?.uid}}},{displayName:`Authentication`,to:{name:`collection.authentication`,params:{[D.Collection]:o.value?.uid}}},{displayName:`Environment`,to:{name:`collection.environment`,params:{[D.Collection]:o.value?.uid}}},{displayName:`Settings`,to:{name:`collection.settings`}}]);return(l,_)=>(t(),d(`div`,z,[s(R),m(`div`,{class:i([`items-center text-sm font-medium`,e.isSticky?`h-fit border-b md:grid md:grid-cols-[1fr_720px_1fr] md:px-4`:`flex md:mx-auto md:max-w-[720px]`])},[e.isSticky?(t(),d(`div`,B,[s(n(A),{class:`text-c-2 hidden size-3.5 md:block`,src:n(o)?.[`x-scalar-icon`]||`interface-content-folder`,"stroke-width":`2`},null,8,[`src`]),m(`span`,V,p(n(o)?.info?.title),1)])):u(``,!0),m(`div`,{class:i([`flex w-full max-w-[720px] gap-2 pl-1.5 md:ml-1.5 md:pl-0`,!e.isSticky&&`border-b`])},[(t(!0),d(c,null,a(f.value,({to:e,displayName:a},o)=>(t(),g(n(E),{key:o,class:`-ml-2 flex h-10 cursor-pointer items-center px-2 text-center text-sm font-medium whitespace-nowrap no-underline -outline-offset-1 has-[:focus-visible]:outline`,to:e},{default:h(()=>[m(`span`,{class:i([`flex-center h-full w-full border-b`,typeof e.name==`string`&&typeof n(r).name==`string`&&n(r).name?.startsWith(e.name)?`text-c-1 border-c-1`:`text-c-2 hover:text-c-1 border-transparent`])},p(a),3)]),_:2},1032,[`to`]))),128))],2)],2)]))}}),U={class:`w-full md:mx-auto md:max-w-[720px]`},W=v({__name:`Collection`,setup(r){let{activeCollection:i}=O(),a=w(),o=f(null),{y:c}=C(o),u=l(()=>c.value>104);return e(i,e=>{if(e?.info?.title===`Drafts`){let t=e.requests[0];a.push({name:`request`,params:{[D.Request]:t}})}},{immediate:!0}),(e,r)=>(t(),g(j,{ref_key:`el`,ref:o,class:`h-fit overflow-auto pb-6 xl:overflow-auto`},{default:h(()=>[s(M,{class:`xl:h-fit`},{default:h(()=>[s(H,{isSticky:u.value},null,8,[`isSticky`]),m(`div`,U,[s(n(T))])]),_:1})]),_:1},512))}});export{W as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bi as e,Ca as t,Ea as n,_i as r,di as i,fi as a,li as o,ui as s,yi as c}from"./index-
|
|
1
|
+
import{Bi as e,Ca as t,Ea as n,_i as r,di as i,fi as a,li as o,ui as s,yi as c}from"./index-CV_lCcKm.js";import"./w3c-keyname-B0Po4pAC.js";import{d as l}from"./dist-DKLcX5kd.js";import"./dist-DOfPSpzL.js";import{t as u}from"./store-Cuguy-ft.js";import{t as d}from"./_plugin-vue_export-helper-BVSTY9ge.js";import"./CodeInput.vue-BGBOdacc.js";import{t as f}from"./active-entities-DEkfqGrE.js";import"./DataTableCheckbox.vue-DC2n-xeZ.js";import"./dist-zqENM1-W.js";import"./DataTable.vue-BKb6QQRz.js";import{t as p}from"./RequestAuth.vue-CqHxzl6g.js";import"./DataTableInput.vue-DoVPLXed.js";var m={class:`flex h-full w-full flex-col gap-12 px-1.5 pt-8`},h={class:`flex flex-col gap-4`},g={class:`flex flex-col gap-2`},_={class:`flex h-8 items-center justify-between`},v=d(c({__name:`CollectionAuthentication`,setup(c){let{activeCollection:d,activeEnvVariables:v,activeEnvironment:y,activeServer:b,activeWorkspace:x}=f(),{collectionMutators:S}=u(),C=()=>{d.value?.uid&&S.edit(d.value.uid,`useCollectionSecurity`,!d.value.useCollectionSecurity)};return(c,u)=>(e(),a(`div`,m,[o(`div`,h,[o(`div`,g,[o(`div`,_,[u[0]||=o(`h3`,{class:`font-bold`},`Authentication`,-1),r(t(l),{class:`w-4`,modelValue:t(d)?.useCollectionSecurity??!1,"onUpdate:modelValue":C},null,8,[`modelValue`])]),u[1]||=o(`p`,{class:`pr-6 text-sm`},` Added authentication will apply to all requests under this collection. You can override this by specifying another one in the request. `,-1)]),t(d)&&t(x)?(e(),s(t(p),{key:0,class:n([`scalar-collection-auth`,!t(d)?.useCollectionSecurity&&`pointer-events-none opacity-50 mix-blend-luminosity`]),collection:t(d),envVariables:t(v),environment:t(y),layout:`client`,selectedSecuritySchemeUids:t(d)?.selectedSecuritySchemeUids??[],server:t(b),title:`Authentication`,workspace:t(x)},null,8,[`class`,`collection`,`envVariables`,`environment`,`selectedSecuritySchemeUids`,`server`,`workspace`])):i(``,!0)])]))}}),[[`__scopeId`,`data-v-cc87292e`]]);export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bi as e,gi as t,ra as n,ui as r,yi as i}from"./index-CV_lCcKm.js";import"./dist-DKLcX5kd.js";import{t as a}from"./ViewLayoutSection.vue-C87DZ2QU.js";var o=i({__name:`CollectionCookies`,setup(i){return(i,o)=>(e(),r(a,null,{title:n(()=>[...o[0]||=[t(`Cookies`,-1)]]),_:1}))}});export{o as default};
|
package/web/assets/{CollectionEnvironment.vue-DKab6xJJ.js → CollectionEnvironment.vue-CcS_RH1F.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as e,Bi as t,Ca as n,Ea as r,Hi as i,Ii as a,Oa as o,_i as s,ai as c,ci as l,di as u,fi as d,gi as f,ha as p,ka as m,ki as h,li as g,mi as _,ra as v,ri as y,ui as b,yi as x}from"./index-
|
|
1
|
+
import{$i as e,Bi as t,Ca as n,Ea as r,Hi as i,Ii as a,Oa as o,_i as s,ai as c,ci as l,di as u,fi as d,gi as f,ha as p,ka as m,ki as h,li as g,mi as _,ra as v,ri as y,ui as b,yi as x}from"./index-CV_lCcKm.js";import"./w3c-keyname-B0Po4pAC.js";import{V as S,hn as C,n as w,r as T}from"./dist-DKLcX5kd.js";import"./dist-DOfPSpzL.js";import{t as E}from"./ScalarIconTrash.vue-DQO_gQ8s.js";import{n as D,t as O}from"./DataTableHeader.vue-Cbolg5AE.js";import{t as k}from"./store-Cuguy-ft.js";import{t as A}from"./_plugin-vue_export-helper-BVSTY9ge.js";import{t as j}from"./CodeInput.vue-BGBOdacc.js";import{t as M}from"./active-entities-DEkfqGrE.js";import"./dist-zqENM1-W.js";import{t as N}from"./ViewLayoutSection.vue-C87DZ2QU.js";import"./CommandActionInput.vue-CSydiKjM.js";import{n as P,r as F,t as I}from"./DataTable.vue-BKb6QQRz.js";import{t as L}from"./dist-DM4_kDGf.js";import{t as R}from"./DeleteSidebarListElement.vue-Br-Lvh7k.js";import{t as z}from"./EditSidebarListElement.vue-BVJ4wsTf.js";import{n as B,t as V}from"./EnvironmentModal.vue-Bipjnu_F.js";var H=A(x({__name:`EnvironmentForm`,props:{collection:{},environment:{},workspace:{},envVariables:{}},setup(o){let{collectionMutators:m}=k(),g=p([]),x=p(new Set),S=p(new Map),w=p(!1),T=l(()=>{if(!o.environment?.value)return[{key:``,value:``}];try{let e=JSON.parse(o.environment.value),t=Object.entries(e).map(([e,t])=>({key:e,value:String(t)}));return t.length===0?[{key:``,value:``}]:t}catch{return[{key:``,value:``}]}}),A=l(()=>{let e=g.value[g.value.length-1];return e?e.key||e.value?[...g.value,{key:``,value:``}]:g.value:[{key:``,value:``}]}),M=l(()=>{let e=new Map;return g.value.forEach((t,n)=>{if(t.key){let r=e.get(t.key)||[];r.push(n),e.set(t.key,r)}}),S.value.forEach((t,n)=>{if(t){let r=e.get(t)||[];r.push(n),e.set(t,r)}}),Array.from(e.values()).filter(e=>e.length>1).flat()});e(T,e=>{g.value=[...e],x.value=new Set(e.map(e=>e.key).filter(Boolean))},{immediate:!0});let N=async(e,t,n)=>{if(!w.value){if(t===`key`){S.value.set(e,n);let t=new Set(x.value),r=g.value[e];if(r&&t.delete(r.key),t.has(n))return}w.value=!0;try{let r=[...g.value],i=r[e];if(!i)return;r[e]={key:t===`key`?n:i.key,value:t===`value`?n:i.value},!r[e].key&&!r[e].value&&e!==r.length-1&&r.splice(e,1);let a=r.reduce((e,{key:t,value:n})=>((t||n)&&(e[t]=n),e),{});if(o.collection){let e={...o.collection[`x-scalar-environments`],[o.environment.name]:{...o.collection[`x-scalar-environments`]?.[o.environment.name],variables:a}};await m.edit(o.collection.uid,`x-scalar-environments`,e)}if(e===g.value.length-1){let e=r[r.length-1];e&&(e.key||e.value)&&await L()}await h(),g.value=r,t===`key`&&(x.value=new Set(r.map(e=>e.key).filter(Boolean)),S.value.delete(e))}finally{w.value=!1}}},L=async()=>{if(!w.value){w.value=!0;try{let e=[...g.value,{key:``,value:``}],t=e.reduce((e,{key:t,value:n})=>((t||n)&&(e[t]=n),e),{});if(o.collection){let e={...o.collection[`x-scalar-environments`],[o.environment.name]:{...o.collection[`x-scalar-environments`]?.[o.environment.name],variables:t}};await m.edit(o.collection.uid,`x-scalar-environments`,e)}await h(),g.value=e}finally{w.value=!1}}},R=async e=>{if(!w.value){w.value=!0;try{let t=[...g.value];t.splice(e,1);let n=t.reduce((e,{key:t,value:n})=>((t||n)&&(e[t]=n),e),{});if(o.collection){let e={...o.collection[`x-scalar-environments`],[o.environment.name]:{...o.collection[`x-scalar-environments`]?.[o.environment.name],variables:n}};await m.edit(o.collection.uid,`x-scalar-environments`,e)}await h(),g.value=t}finally{w.value=!1}}},z=async()=>{if(g.value.length===0)await L();else if(g.value.length>=1){let e=g.value[g.value.length-1];e&&(e.key||e.value)&&await L()}};return a(()=>{z()}),e(()=>g.value,()=>{z()}),(e,a)=>(t(),b(I,{class:`group/table flex-1`,columns:[``,``]},{default:v(()=>[s(P,{class:`sr-only !block`},{default:v(()=>[s(O,null,{default:v(()=>[...a[0]||=[f(`Key`,-1)]]),_:1}),s(O,null,{default:v(()=>[...a[1]||=[f(`Value`,-1)]]),_:1})]),_:1}),(t(!0),d(c,null,i(A.value,(e,i)=>(t(),b(P,{key:i,class:r({error:M.value.includes(i)})},{default:v(()=>[s(F,null,{default:v(()=>[s(j,{disableCloseBrackets:``,disableEnter:``,disableTabIndent:``,lineWrapping:``,environment:o.environment,envVariables:o.envVariables,modelValue:e.key,placeholder:`Key`,workspace:o.workspace,"onUpdate:modelValue":e=>N(i,`key`,e)},_({_:2},[M.value.includes(i)?{name:`icon`,fn:v(()=>[s(n(D),{class:`text-red mr-0.75 size-3.5 brightness-[.9]`})]),key:`0`}:void 0]),1032,[`environment`,`envVariables`,`modelValue`,`workspace`,`onUpdate:modelValue`])]),_:2},1024),s(F,null,{default:v(()=>[s(j,{class:`pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10`,disableCloseBrackets:``,disableEnter:``,disableTabIndent:``,lineWrapping:``,environment:o.environment,envVariables:o.envVariables,modelValue:e.value,placeholder:`Value`,workspace:o.workspace,"onUpdate:modelValue":e=>N(i,`value`,e)},{icon:v(()=>[e.key||e.value?(t(),b(n(C),{key:0,class:`text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex`,size:`sm`,variant:`ghost`,onClick:y(e=>R(i),[`stop`])},{default:v(()=>[s(n(E),{class:`size-3.5`})]),_:1},8,[`onClick`])):u(``,!0)]),_:2},1032,[`environment`,`envVariables`,`modelValue`,`workspace`,`onUpdate:modelValue`])]),_:2},1024)]),_:2},1032,[`class`]))),128))]),_:1}))}}),[[`__scopeId`,`data-v-83bfcc8a`]]),U={class:`flex h-full w-full flex-col gap-12 px-1.5 pt-8`},W={class:`flex flex-col gap-4`},G={class:`rounded-lg border`},K={class:`bg-b-2 flex cursor-grab items-center justify-between rounded-t-lg px-1 py-1 text-sm`},q={class:`flex items-center`},J=[`onClick`],Y={class:`text-c-3 flex h-full items-center justify-center rounded-lg border p-4`},X=x({__name:`CollectionEnvironment`,setup(e){let{activeCollection:r,activeWorkspace:a,activeEnvVariables:h}=M(),{collectionMutators:_}=k(),y=T(),x=T(),D=T(),O=T(),A=p(``),j=p(null),P=p(void 0),F=l(()=>r.value?.[`x-scalar-environments`]?Object.entries(r.value[`x-scalar-environments`]).map(([e,t])=>({uid:e,name:e,value:JSON.stringify(t.variables||{}),color:t.color||`#FFFFFF`})):[]),I=()=>{!r.value?.uid||!j.value||(_.removeEnvironment(j.value,r.value.uid),x.hide())},X=e=>{j.value=e,x.show()},Z=e=>{r.value?.uid&&(_.addEnvironment(e.name,{variables:{},color:e.color},r.value.uid),D.hide())},Q=e=>{j.value=e.name,A.value=e.color||`#FFFFFF`,y.show()},$=e=>{if(!r.value?.uid||!j.value)return;let t={...r.value[`x-scalar-environments`],[j.value]:{variables:r.value[`x-scalar-environments`]?.[j.value]?.variables||{},color:e}};_.edit(r.value.uid,`x-scalar-environments`,t),y.hide()},ee=e=>{j.value=e,P.value=e,O.show()},te=()=>{j.value=null,P.value=void 0,O.hide()},ne=e=>{if(!r.value?.uid||!j.value)return;let t={...r.value[`x-scalar-environments`]};if(!t[j.value])return;let n={},i=Object.entries(t),a=i.findIndex(([e])=>e===j.value);i.forEach(([t,r],i)=>{i===a?n[e]=r:n[t]=r}),_.edit(r.value.uid,`x-scalar-environments`,n),j.value=null,P.value=void 0,O.hide()},re=(e,t)=>{if(!r.value?.uid)return;let n={...r.value[`x-scalar-environments`]},i={},a=Object.entries(n),o=a.findIndex(([t])=>t===e.id),s=a.findIndex(([e])=>e===t.id);if(o===-1||s===-1)return;let c=a[o];c&&(a.splice(o,1),a.splice(s,0,c),a.forEach(([e,t])=>{i[e]=t}),_.edit(r.value.uid,`x-scalar-environments`,i))};return(e,l)=>(t(),b(N,null,{default:v(()=>[g(`div`,U,[g(`div`,W,[l[5]||=g(`div`,{class:`flex items-start justify-between gap-2`},[g(`div`,{class:`flex flex-col gap-2`},[g(`div`,{class:`flex h-8 items-center`},[g(`h3`,{class:`font-bold`},`Environment Variables`)]),g(`p`,{class:`text-sm`},[f(` Set environment variables at your collection level. Use `),g(`code`,{class:`font-code text-c-2`},`{{ variable }}`),f(` to add / search among the selected environment's variables in your request inputs. `)])])],-1),(t(!0),d(c,null,i(F.value,e=>(t(),b(n(L),{key:e.name,id:e.name,isDraggable:!0,isDroppable:!0,parentIds:[],onOnDragEnd:re},{default:v(()=>[g(`div`,G,[g(`div`,K,[g(`div`,q,[s(n(C),{class:`hover:bg-b-3 flex h-6 w-6 p-1`,onClick:t=>Q(e),variant:`ghost`},{default:v(()=>[g(`span`,{style:o({backgroundColor:e.color||`#FFFFFF`}),class:`h-2.5 w-2.5 rounded-full`},null,4)]),_:2},1032,[`onClick`]),g(`button`,{class:`hover:bg-b-3 rounded px-1 py-0.5 text-sm`,onClick:t=>ee(e.name)},m(e.name),9,J)]),s(n(C),{class:`hover:bg-b-3 hover:text-c-1 h-fit p-1.25`,variant:`ghost`,onClick:t=>X(e.name)},{default:v(()=>[s(n(E),{class:`size-3.5`})]),_:1},8,[`onClick`])]),n(r)&&n(a)?(t(),b(H,{key:0,collection:n(r),environment:e,envVariables:n(h),workspace:n(a)},null,8,[`collection`,`environment`,`envVariables`,`workspace`])):u(``,!0)])]),_:2},1032,[`id`]))),128)),g(`div`,Y,[s(n(C),{class:`hover:bg-b-2 hover:text-c-1 flex items-center gap-2`,size:`sm`,variant:`ghost`,onClick:l[0]||=e=>n(D).show()},{default:v(()=>[s(n(S),{class:`inline-flex`,icon:`Add`,size:`sm`,thickness:`1.5`}),l[4]||=g(`span`,null,`Add Environment`,-1)]),_:1})])]),s(n(w),{size:`xxs`,state:n(x),title:`Delete ${j.value||`Environment`}`},{default:v(()=>[s(R,{variableName:`Environment`,warningMessage:`Are you sure you want to delete this environment? This action cannot be undone.`,onClose:l[1]||=e=>n(x).hide(),onDelete:I})]),_:1},8,[`state`,`title`]),s(V,{activeWorkspaceCollections:n(r)?[n(r)]:[],collectionId:n(r)?.uid,state:n(D),onCancel:l[2]||=e=>n(D).hide(),onSubmit:Z},null,8,[`activeWorkspaceCollections`,`collectionId`,`state`]),s(B,{selectedColor:A.value,state:n(y),onCancel:l[3]||=e=>n(y).hide(),onSubmit:$},null,8,[`selectedColor`,`state`]),s(n(w),{size:`xxs`,state:n(O),title:`Edit ${j.value}`},{default:v(()=>[s(z,{name:P.value??``,onClose:te,onEdit:ne},null,8,[`name`])]),_:1},8,[`state`,`title`])])]),_:1}))}});export{X as default};
|
package/web/assets/{CollectionOverview.vue-DlODh8Vk.js → CollectionOverview.vue-Cm3m-3IA.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as e,Bi as t,Ca as n,_i as r,ai as i,di as a,fi as o,ha as s,ki as c,li as l,ra as u,ui as d,yi as f}from"./index-
|
|
1
|
+
import{$i as e,Bi as t,Ca as n,_i as r,ai as i,di as a,fi as o,ha as s,ki as c,li as l,ra as u,ui as d,yi as f}from"./index-CV_lCcKm.js";import"./w3c-keyname-B0Po4pAC.js";import{R as p,V as m,hn as h}from"./dist-DKLcX5kd.js";import"./dist-DOfPSpzL.js";import{t as g}from"./store-Cuguy-ft.js";import{t as _}from"./_plugin-vue_export-helper-BVSTY9ge.js";import{t as v}from"./CodeInput.vue-BGBOdacc.js";import{t as y}from"./active-entities-DEkfqGrE.js";import{t as b}from"./ViewLayoutSection.vue-C87DZ2QU.js";var x={class:`flex h-full w-full flex-col gap-2 pt-8`},S={class:`flex min-h-8 items-center justify-between gap-2 pl-1.5`},C={class:`has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg`},w={class:`flex h-full min-h-[calc(1rem*4)] flex-col`},T={key:1,class:`text-c-3 flex h-full items-center justify-center rounded-lg border p-4`},E=_(f({__name:`MarkdownInput`,props:{modelValue:{},environment:{},envVariables:{},workspace:{}},emits:[`update:modelValue`],setup(f,{emit:g}){let _=g,y=s(`preview`),b=s(null);e(y,e=>{e===`edit`&&c(()=>{b.value?.focus()})});let E=()=>{requestAnimationFrame(()=>{y.value=`preview`})};return(e,s)=>(t(),o(`div`,x,[l(`div`,S,[s[5]||=l(`h3`,{class:`font-bold`},`Description`,-1),y.value===`preview`?(t(),d(n(h),{key:0,class:`text-c-2 hover:text-c-1 flex items-center gap-2`,size:`sm`,type:`button`,variant:`outlined`,onClick:s[0]||=e=>y.value=`edit`},{default:u(()=>[r(n(m),{icon:`Pencil`,size:`sm`,thickness:`1.5`}),s[4]||=l(`span`,null,`Edit`,-1)]),_:1})):a(``,!0)]),l(`div`,C,[l(`div`,w,[y.value===`preview`?(t(),o(i,{key:0},[f.modelValue&&f.modelValue.trim().length?(t(),o(i,{key:0},[f.modelValue?(t(),d(n(p),{key:0,class:`h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)`,value:f.modelValue,withImages:``,onDblclick:s[1]||=e=>y.value=`edit`},null,8,[`value`])):a(``,!0),s[6]||=l(`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)):(t(),o(`div`,T,[r(n(h),{class:`hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2`,size:`sm`,variant:`ghost`,onClick:s[2]||=e=>y.value=`edit`},{default:u(()=>[r(n(m),{icon:`Pencil`,size:`sm`,thickness:`1.5`}),s[7]||=l(`span`,null,`Write a description`,-1)]),_:1})]))],64)):a(``,!0),y.value===`edit`?(t(),d(v,{key:1,ref_key:`codeInputRef`,ref:b,class:`h-full flex-1 border px-0.5 py-0`,envVariables:f.envVariables,environment:f.environment,modelValue:f.modelValue,workspace:f.workspace,onBlur:E,"onUpdate:modelValue":s[3]||=e=>_(`update:modelValue`,e)},null,8,[`envVariables`,`environment`,`modelValue`,`workspace`])):a(``,!0)])])]))}}),[[`__scopeId`,`data-v-5997a667`]]),D=f({__name:`CollectionOverview`,setup(e){let{activeCollection:r,activeEnvironment:i,activeEnvVariables:o,activeWorkspace:s}=y(),{collectionMutators:c}=g(),l=e=>{r.value&&c.edit(r.value.uid,`info.description`,e)};return(e,c)=>(t(),d(b,null,{default:u(()=>[n(i)&&n(s)?(t(),d(E,{key:0,envVariables:n(o),environment:n(i),modelValue:n(r)?.info?.description??``,workspace:n(s),"onUpdate:modelValue":l},null,8,[`envVariables`,`environment`,`modelValue`,`workspace`])):a(``,!0)]),_:1}))}});export{D as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bi as e,gi as t,ra as n,ui as r,yi as i}from"./index-CV_lCcKm.js";import"./dist-DKLcX5kd.js";import{t as a}from"./ViewLayoutSection.vue-C87DZ2QU.js";var o=i({__name:`CollectionScripts`,setup(i){return(i,o)=>(e(),r(a,null,{title:n(()=>[...o[0]||=[t(`Scripts`,-1)]]),_:1}))}});export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as e,Bi as t,Ca as n,Ea as r,Hi as i,_i as a,ai as o,ci as s,di as c,fi as l,ha as u,hi as d,ka as f,li as p,ra as m,ui as h,yi as g}from"./index-
|
|
1
|
+
import{$i as e,Bi as t,Ca as n,Ea as r,Hi as i,_i as a,ai as o,ci as s,di as c,fi as l,ha as u,hi as d,ka as f,li as p,ra as m,ui as h,yi as g}from"./index-CV_lCcKm.js";import"./w3c-keyname-B0Po4pAC.js";import{R as _,Rt as v,V as y,hn as b,n as x,r as S}from"./dist-DKLcX5kd.js";import"./dist-DOfPSpzL.js";import{t as C}from"./ScalarIconTrash.vue-DQO_gQ8s.js";import{t as w}from"./store-Cuguy-ft.js";import"./CodeInput.vue-BGBOdacc.js";import{t as T}from"./active-entities-DEkfqGrE.js";import{t as E}from"./ServerVariablesForm.vue-D11m7aiX.js";import"./ViewLayoutSection.vue-C87DZ2QU.js";import"./DataTable.vue-BKb6QQRz.js";import"./DataTableInput.vue-DoVPLXed.js";import{t as D}from"./DeleteSidebarListElement.vue-Br-Lvh7k.js";import{t as O}from"./Form.vue-CwujTuIH.js";var k=g({__name:`CollectionServerForm`,props:{collectionId:{default:``},serverUid:{default:``}},setup(n){let i=n,{activeWorkspaceCollections:u}=T(),{servers:d,serverMutators:f}=w(),p=[{label:`URL`,key:`url`,placeholder:`https://void.scalar.com`,type:`text`},{label:`Description`,key:`description`,placeholder:`Production`,type:`text`}],m=s(()=>{let e=u.value.find(e=>e.uid===i.collectionId);return d[e&&typeof i.serverUid==`string`&&i.serverUid===`default`?e.servers[0]??``:e?.servers.find(e=>e===i.serverUid)??``]});e(s(()=>m.value?.url?m.value.url.match(v.PATH)?.map(e=>e.slice(1,-1))??[]:[]),e=>{if(!m.value)return;let t=m.value.variables?{...m.value.variables}:{};Object.keys(t).forEach(n=>{e.includes(n)||delete t[n]}),e.forEach(e=>{t[e]||(t[e]={default:``})}),f.edit(m.value.uid,`variables`,t)},{immediate:!0});let g=(e,t)=>{!u.value||!m.value||f.edit(m.value.uid,e,t)},_=(e,t)=>{if(!m.value)return;let n=m.value.variables||{};n[e]={...n[e],default:t},f.edit(m.value.uid,`variables`,n)};return(e,n)=>(t(),l(`div`,{class:r([`divide-0.5 flex w-full flex-col divide-y rounded-b-lg text-sm`,m.value?.variables&&`bg-b-1`])},[m.value?(t(),l(o,{key:0},[a(O,{data:m.value,onUpdate:g,options:p},null,8,[`data`]),m.value.variables?(t(),h(E,{key:0,variables:m.value.variables,"onUpdate:variable":_},null,8,[`variables`])):c(``,!0)],64)):c(``,!0)],2))}}),A={class:`flex h-full w-full flex-col gap-12 px-1.5 pt-8`},j={class:`flex flex-col gap-4`},M={class:`rounded-lg border`},N={class:`bg-b-2 flex items-start justify-between rounded-t-lg py-1 pr-1 pl-3 text-sm`},P={key:1,class:`self-center`},F={class:`text-c-3 flex h-full items-center justify-center rounded-lg border p-4`},I=g({__name:`CollectionServers`,setup(e){let{activeCollection:r}=T(),{servers:g,events:v,serverMutators:E}=w(),O=S(),I=u(null),L=s(()=>!g||!r.value?.servers?[]:Object.values(g).filter(e=>r.value?.servers.includes(e.uid))),R=()=>v.commandPalette.emit({commandName:`Add Server`}),z=()=>{!r.value?.uid||!I.value||(E.delete(I.value,r.value.uid),O.hide())},B=e=>{I.value=e,O.show()};return(e,s)=>(t(),l(`div`,A,[p(`div`,j,[s[2]||=d(`<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),(t(!0),l(o,null,i(L.value,(e,i)=>(t(),l(`div`,{key:e.uid},[p(`div`,M,[p(`div`,N,[e.description?(t(),h(n(_),{key:0,class:`self-center`,value:e.description},null,8,[`value`])):(t(),l(`span`,P,`Server `+f(i+1),1)),a(n(b),{class:`hover:bg-b-3 hover:text-c-1 h-fit p-1.25`,variant:`ghost`,onClick:t=>B(e.uid)},{default:m(()=>[a(n(C),{class:`size-3.5`})]),_:1},8,[`onClick`])]),n(r)?(t(),h(k,{key:0,collectionId:n(r).uid,serverUid:e.uid},null,8,[`collectionId`,`serverUid`])):c(``,!0)])]))),128)),p(`div`,F,[a(n(b),{class:`hover:bg-b-2 hover:text-c-1 flex items-center gap-2`,size:`sm`,variant:`ghost`,onClick:R},{default:m(()=>[a(n(y),{class:`inline-flex`,icon:`Add`,size:`sm`,thickness:`1.5`}),s[1]||=p(`span`,null,`Add Server`,-1)]),_:1})])]),a(n(x),{size:`xxs`,state:n(O),title:`Delete ${I.value?n(g)[I.value]?.url:`Server`}`},{default:m(()=>[a(D,{variableName:`Server`,warningMessage:`Are you sure you want to delete this server? This action cannot be undone.`,onClose:s[0]||=e=>n(O).hide(),onDelete:z})]),_:1},8,[`state`,`title`])]))}});export{I as default};
|
package/web/assets/{CollectionSettings.vue-Cm6NQbDm.js → CollectionSettings.vue-QApKyKpx.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bi as e,Ca as t,_i as n,ai as r,fi as i,gi as a,ka as o,li as s,ra as c,yi as l}from"./index-
|
|
1
|
+
import{Bi as e,Ca as t,_i as n,ai as r,fi as i,gi as a,ka as o,li as s,ra as c,yi as l}from"./index-CV_lCcKm.js";import{V as u,d,hn as f,n as p,r as m}from"./dist-DKLcX5kd.js";import{t as h}from"./store-Cuguy-ft.js";import{i as g}from"./vue-router-By6H_4a-.js";import{n as _,t as v}from"./active-entities-DEkfqGrE.js";import{t as y}from"./DeleteSidebarListElement.vue-Br-Lvh7k.js";var b={class:`flex h-full w-full flex-col gap-12 px-1.5 pt-8`},x={class:`flex flex-col gap-2`},S={class:`bg-b-2 rounded-lg border text-sm`},C={class:`bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3`},w={class:`text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap`},T={class:`flex items-center`},E=[`href`],D={class:`flex flex-col gap-4`},O={class:`flex items-center justify-between rounded-lg border p-3 text-sm`},k=l({__name:`CollectionSettings`,setup(l){let{activeCollection:k,activeWorkspace:A,activeWorkspaceCollections:j}=v(),{collectionMutators:M}=h(),{replace:N}=g(),P=m();function F(){k.value&&k.value?.documentUrl&&M.edit(k.value.uid,`watchMode`,!k.value?.watchMode)}function I(){if(!k.value||!A.value)return;M.delete(k.value,A.value);let e=j.value[0];e&&N({name:`collection`,params:{[_.Workspace]:A.value.uid,[_.Collection]:e.uid}}),P.hide()}return(l,m)=>(e(),i(r,null,[s(`div`,b,[s(`div`,x,[m[5]||=s(`div`,{class:`flex h-8 items-center`},[s(`h3`,{class:`font-bold`},`Features`)],-1),s(`div`,S,[s(`div`,C,[m[2]||=s(`div`,null,[s(`h4`,null,`Watch Mode`),s(`p`,{class:`text-c-2 mt-1`},` When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. `)],-1),n(t(d),{class:`w-4`,disabled:!t(k)?.documentUrl,modelValue:t(k)?.watchMode??!1,"onUpdate:modelValue":F},null,8,[`disabled`,`modelValue`])]),s(`div`,w,[s(`div`,T,[t(k)?.documentUrl?(e(),i(r,{key:0},[m[3]||=s(`span`,{class:`bg-b-2 sticky left-0 pr-2 pl-3`},`Source`,-1),s(`a`,{class:`text-c-2 group rounded pr-3 no-underline hover:underline`,href:t(k).documentUrl,target:`_blank`},[a(o(t(k).documentUrl)+` `,1),n(t(u),{class:`ml-1 hidden w-2.5 group-hover:inline`,icon:`ExternalLink`})],8,E)],64)):(e(),i(r,{key:1},[n(t(u),{class:`text-c-2 mr-2 ml-3 w-4`,icon:`NotAllowed`,size:`sm`}),m[4]||=s(`span`,{class:`text-c-2 pr-3`},` No URL configured. Try importing an OpenAPI document from an URL. `,-1)],64))])])])]),s(`div`,D,[m[8]||=s(`h3`,{class:`font-bold`},`Danger Zone`,-1),s(`div`,O,[m[7]||=s(`div`,null,[s(`h4`,null,`Delete Collection`),s(`p`,{class:`text-c-2 mt-1`},` Be careful, my friend. Once deleted, there is no way to recover the collection. `)],-1),n(t(f),{size:`sm`,variant:`danger`,onClick:m[0]||=e=>t(P).show()},{default:c(()=>[...m[6]||=[a(` Delete Collection `,-1)]]),_:1})])])]),n(t(p),{size:`xxs`,state:t(P),title:`Delete ${t(k)?.info?.title}`},{default:c(()=>[n(y,{variableName:t(k)?.info?.title??``,warningMessage:`This action cannot be undone.`,onClose:m[1]||=e=>t(P).hide(),onDelete:I},null,8,[`variableName`])]),_:1},8,[`state`,`title`])],64))}});export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bi as e,gi as t,ra as n,ui as r,yi as i}from"./index-CV_lCcKm.js";import"./dist-DKLcX5kd.js";import{t as a}from"./ViewLayoutSection.vue-C87DZ2QU.js";var o=i({__name:`CollectionSync`,setup(i){return(i,o)=>(e(),r(a,null,{title:n(()=>[...o[0]||=[t(`Sync`,-1)]]),_:1}))}});export{o as default};
|
package/web/assets/{CommandActionInput.vue-CZ3-rqSL.js → CommandActionInput.vue-CSydiKjM.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bi as e,Ca as t,Da as n,Ii as r,Oi as i,Ui as a,_i as o,ci as s,ei as c,fi as l,gi as u,ha as d,ia as f,ki as p,li as m,ni as h,ra as g,ri as _,xi as v,yi as y}from"./index-
|
|
1
|
+
import{Bi as e,Ca as t,Da as n,Ii as r,Oi as i,Ui as a,_i as o,ci as s,ei as c,fi as l,gi as u,ha as d,ia as f,ki as p,li as m,ni as h,ra as g,ri as _,xi as v,yi as y}from"./index-CV_lCcKm.js";import{_n as b,hn as x}from"./dist-DKLcX5kd.js";var S={class:`flex gap-2`},C={class:`flex max-h-8 flex-1`},w=y({__name:`CommandActionForm`,props:{loader:{},disabled:{type:Boolean,default:!1}},emits:[`submit`,`cancel`,`back`],setup(r){let{cx:i}=b();return(s,c)=>(e(),l(`form`,{class:`flex w-full flex-col gap-3`,onKeydown:c[0]||=h(_(()=>{},[`stop`]),[`enter`]),onSubmit:c[1]||=_(e=>!r.disabled&&s.$emit(`submit`),[`prevent`,`stop`])},[m(`div`,n(v(t(i)(`relative flex min-h-20 flex-col rounded`))),[a(s.$slots,`default`)],16),m(`div`,S,[m(`div`,C,[a(s.$slots,`options`)]),o(t(x),{class:`max-h-8 px-3 text-xs`,disabled:r.disabled,loader:r.loader,type:`submit`},{default:g(()=>[a(s.$slots,`submit`,{},()=>[c[2]||=u(`Continue`,-1)])]),_:3},8,[`disabled`,`loader`])])],32))}}),T=[`placeholder`],E=y({inheritAttrs:!1,__name:`CommandActionInput`,props:{modelValue:{},placeholder:{},autofocus:{type:Boolean}},emits:[`update:modelValue`,`onDelete`],setup(t,{emit:n}){let a=t,o=n,u=d(null);r(()=>p(()=>{a.autofocus&&u.value?.focus()}));let m=s({get:()=>a.modelValue??``,set:e=>o(`update:modelValue`,e)});function g(e){if(e.shiftKey||!e.target)return;e.preventDefault();let t=e.target,n=new Event(`submit`,{cancelable:!0});t.form?.dispatchEvent(n)}function _(e){m.value===``&&(e.preventDefault(),e.stopPropagation(),o(`onDelete`,e))}return(t,n)=>f((e(),l(`textarea`,i({id:`command-action-input`,ref_key:`input`,ref:u,"onUpdate:modelValue":n[0]||=e=>m.value=e,class:`min-h-8 w-full flex-1 resize-none border border-transparent py-1.5 pl-8.5 text-sm outline-none focus:border-b-1`,placeholder:a.placeholder??``,wrap:`hard`},t.$attrs,{onKeydown:[n[1]||=h(e=>_(e),[`delete`]),n[2]||=h(e=>g(e),[`enter`])]}),null,16,T)),[[c,m.value]])}});export{w as n,E as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as e,Bi as t,Ca as n,Hi as r,Ii as i,Mi as a,_i as o,ai as s,ci as c,fi as l,gi as u,ha as d,li as f,ra as p,ri as m,ui as h,yi as g}from"./index-
|
|
1
|
+
import{$i as e,Bi as t,Ca as n,Hi as r,Ii as i,Mi as a,_i as o,ai as s,ci as c,fi as l,gi as u,ha as d,li as f,ra as p,ri as m,ui as h,yi as g}from"./index-CV_lCcKm.js";import"./w3c-keyname-B0Po4pAC.js";import{n as _,r as v}from"./dist-DKLcX5kd.js";import"./dist-DOfPSpzL.js";import{t as y}from"./store-Cuguy-ft.js";import{t as b}from"./_plugin-vue_export-helper-BVSTY9ge.js";import{i as x,r as S}from"./vue-router-By6H_4a-.js";import"./CodeInput.vue-BGBOdacc.js";import{n as C,t as w}from"./active-entities-DEkfqGrE.js";import{t as T}from"./Sidebar.vue-BLpHEfAt.js";import{n as E}from"./dist-zqENM1-W.js";import{t as D}from"./ViewLayout.vue-Dui_p5J4.js";import{t as O}from"./ViewLayoutContent.vue-CZRQTJFb.js";import{n as k}from"./ScalarAsciiArt.vue-BYd0f-av.js";import"./useClipboard-Ba0ZMSjV.js";import{t as A}from"./ViewLayoutSection.vue-C87DZ2QU.js";import{n as j,t as M}from"./CommandActionInput.vue-CSydiKjM.js";import"./DataTable.vue-BKb6QQRz.js";import"./DataTableInput.vue-DoVPLXed.js";import"./dist-DM4_kDGf.js";import"./DeleteSidebarListElement.vue-Br-Lvh7k.js";import{t as N}from"./Form.vue-CwujTuIH.js";import{t as P}from"./EmptyState.vue-DMCTVrXN.js";import{t as F}from"./SidebarButton.vue-CNMSjNtm.js";import{n as I,t as L}from"./SidebarListElement.vue-DSsy6NQT.js";var R=g({__name:`CookieForm`,setup(e){let{activeCookieId:n}=w(),{cookies:r,cookieMutators:i}=y(),a=[{label:`Name`,key:`name`,placeholder:`session_id`},{label:`Value`,key:`value`,placeholder:`my-cookie-session-id`},{label:`Domain`,key:`domain`,placeholder:`example.com`}],o=c(()=>r[n.value]||k.parse({name:``,value:``,domain:``,path:``})),s=(e,t)=>{i.edit(n.value,e,t)};return(e,n)=>(t(),h(N,{data:o.value,onUpdate:s,options:a},null,8,[`data`]))}}),z={class:`flex h-8 items-start gap-2 text-sm`},B={class:`flex h-8 items-start gap-2 text-sm`},V={class:`flex h-8 items-start gap-2 text-sm`},H=b(g({__name:`CookieModal`,props:{state:{}},emits:[`cancel`,`submit`],setup(r,{emit:i}){let a=r,s=i,c=d({name:``,value:``,domain:``}),{toast:l}=E(),m=()=>{if(!c.value.name||!c.value.value){l(`Please fill in all fields before adding a cookie.`,`error`);return}s(`submit`,c.value),a.state.hide()};return e(()=>a.state.open,e=>{e&&(c.value={name:``,value:``,domain:``})}),(e,i)=>(t(),h(n(_),{size:`xs`,state:r.state,title:`Add Cookie`},{default:p(()=>[o(j,{disabled:!c.value.name||!c.value.value,onCancel:i[3]||=e=>s(`cancel`),onSubmit:m},{submit:p(()=>[...i[7]||=[u(`Add Cookie`,-1)]]),default:p(()=>[f(`div`,z,[i[4]||=u(` Name: `,-1),o(M,{modelValue:c.value.name,"onUpdate:modelValue":i[0]||=e=>c.value.name=e,autofocus:``,class:`!p-0`,placeholder:`session_id`},null,8,[`modelValue`])]),f(`div`,B,[i[5]||=u(` Value: `,-1),o(M,{modelValue:c.value.value,"onUpdate:modelValue":i[1]||=e=>c.value.value=e,autofocus:``,class:`!p-0`,placeholder:`my-cookie-session-id`},null,8,[`modelValue`])]),f(`div`,V,[i[6]||=u(` Domain: `,-1),o(M,{modelValue:c.value.domain,"onUpdate:modelValue":i[2]||=e=>c.value.domain=e,autofocus:``,class:`!p-0`,placeholder:`example.com`},null,8,[`modelValue`])])]),_:1},8,[`disabled`])]),_:1},8,[`state`]))}}),[[`__scopeId`,`data-v-694018d6`]]),U={class:`flex-1`},W={class:`relative mb-[.5px] last:mb-0`},G=g({__name:`Cookies`,setup(d){let{cookies:g,cookieMutators:_,events:b,workspaceMutators:E}=y(),{activeWorkspace:j,activeCookieId:M}=w(),N=x(),z=S(),B=v(),V=e=>{let t=k.parse({name:e.name,value:e.value,domain:e.domain,path:`/`});_.add(t),E.edit(j.value?.uid,`cookies`,[...j.value?.cookies??[],t.uid]),N.push({name:`cookies`,params:{cookies:t.uid}})},G=e=>{_.delete(e),E.edit(j.value?.uid,`cookies`,[...(j.value?.cookies??[]).filter(t=>t!==e)]);let t=Object.values(g).filter(t=>t.uid!==e);if(t.length>0){let e=t[t.length-1];e&&N.push(e.uid)}else N.push({name:`cookies`,params:{[C.Cookies]:`default`}})},K=()=>{B.show()},q=e=>{e?.createNew&&z.name===`cookies`&&K()},J=(e,t)=>{let n={name:`cookies`,params:{workspace:j.value?.uid??`default`,cookies:t}};if(e.metaKey){let e=N.resolve(n).href;window.open(e,`_blank`);return}N.push(n)};i(()=>b.hotKeys.on(q)),a(()=>b.hotKeys.off(q));let Y=c(()=>g[M.value]),X=c(()=>Object.keys(g).length>0&&Y.value);return e(()=>z.query.openCookieModal,e=>{e===`true`&&K()},{immediate:!0}),(e,i)=>(t(),h(D,null,{default:p(()=>[o(n(T),{title:`Cookies`},{content:p(()=>[f(`div`,U,[o(I,null,{default:p(()=>[(t(!0),l(s,null,r(Object.values(n(g)),e=>(t(),l(`li`,{key:e.uid,class:`gap-1/2 flex flex-col`},[f(`div`,W,[(t(),h(L,{key:e.uid,class:`text-xs`,isDeletable:``,to:{name:`cookies`,params:{[n(C).Cookies]:e.uid}},type:`cookies`,variable:{name:e.name,uid:e.uid},warningMessage:`Are you sure you want to delete this cookie?`,onClick:m(t=>J(t,e.uid),[`prevent`]),onDelete:t=>G(e.uid)},null,8,[`to`,`variable`,`onClick`,`onDelete`]))])]))),128))]),_:1})])]),button:p(()=>[o(F,{click:K,hotkey:`N`},{title:p(()=>[...i[1]||=[u(` Add Cookie `,-1)]]),_:1})]),_:1}),o(O,{class:`flex-1`},{default:p(()=>[X.value?(t(),h(A,{key:0,class:`*:border-b-0`},{title:p(()=>[...i[2]||=[u(`Edit Cookie`,-1)]]),default:p(()=>[o(R)]),_:1})):(t(),h(P,{key:1}))]),_:1}),o(H,{state:n(B),onCancel:i[0]||=e=>n(B).hide(),onSubmit:V},null,8,[`state`])]),_:1}))}});export{G as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.dashboard-page[data-v-0d2d93ae]{max-width:1200px}.page-title[data-v-0d2d93ae]{margin:0 0 1.5rem;font-size:1.75rem;font-weight:700}.summary-grid[data-v-0d2d93ae]{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem;display:grid}.summary-content[data-v-0d2d93ae]{align-items:center;gap:1rem;display:flex}.summary-card--clickable[data-v-0d2d93ae]{cursor:pointer;transition:transform .1s,box-shadow .1s}.summary-card--clickable[data-v-0d2d93ae]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #00000014}.summary-icon[data-v-0d2d93ae]{color:var(--p-primary-color);font-size:1.75rem}.summary-value[data-v-0d2d93ae]{font-size:1.5rem;font-weight:700}.summary-label[data-v-0d2d93ae]{color:var(--p-text-muted-color);font-size:.85rem}.dashboard-section[data-v-0d2d93ae]{margin-bottom:2rem}.section-title[data-v-0d2d93ae]{margin:0 0 1rem;font-size:1.25rem;font-weight:600}.empty-message[data-v-0d2d93ae]{color:var(--p-text-muted-color);font-style:italic}.project-cards[data-v-0d2d93ae]{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem;display:grid}.project-card[data-v-0d2d93ae]{cursor:pointer;transition:box-shadow .2s}.project-card[data-v-0d2d93ae]:hover{box-shadow:0 4px 12px #0000001a}.project-description[data-v-0d2d93ae]{color:var(--p-text-muted-color);margin:0 0 .5rem;font-size:.9rem}.project-meta[data-v-0d2d93ae]{gap:.5rem;display:flex}.agent-list[data-v-0d2d93ae]{flex-direction:column;gap:.5rem;display:flex}.agent-item[data-v-0d2d93ae]{background:var(--p-content-background);border:1px solid var(--p-content-border-color);border-radius:var(--p-border-radius);justify-content:space-between;align-items:center;padding:.75rem 1rem;display:flex}.agent-name[data-v-0d2d93ae]{font-weight:500}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bi as e,Bn as t,Ca as n,Cn as r,F as i,Hi as a,Ii as ee,R as te,Ri as ne,Yn as re,_i as o,a as ie,ai as s,ci as c,fi as l,gi as ae,ha as u,ka as d,li as f,nn as oe,ra as p,ui as m,yi as h,yn as g}from"./index-CV_lCcKm.js";import{t as se}from"./project.store-1ZxiIOdG.js";import{n as ce,t as _}from"./column-DyznW54C.js";import{t as v}from"./card-DyK4dvjg.js";var le={class:`dashboard-page`},ue={class:`page-title`},y={class:`summary-grid`},b={class:`summary-content`},x={class:`summary-value`},S={class:`summary-label`},C={class:`summary-content`},w={class:`summary-value`},T={class:`summary-label`},E={class:`summary-content`},D={class:`summary-value`},O={class:`summary-label`},k={class:`summary-content`},A={class:`summary-value`},j={class:`summary-label`},M={class:`summary-content`},N={class:`summary-value`},P={class:`dashboard-section`},F={class:`section-title`},I={key:0,class:`empty-message`},L={key:1,class:`project-cards`},R={class:`project-description`},de={class:`project-meta`},z={class:`dashboard-section`},B={class:`section-title`},V={key:0,class:`empty-message`},H={key:1,class:`agent-list`},fe={class:`agent-name`},pe={class:`dashboard-section`},me={class:`section-title`},he={key:0,class:`empty-message`},U=r(h({__name:`DashboardPage`,setup(r){let{t:h}=re(),U=t(),W=se(),G=i(),K=ie(),q=te(),J=u(Date.now()),Y=null,X=u(null);ee(async()=>{await Promise.all([W.fetchAll(),G.fetchAll(),K.fetchAll(),q.fetchAll()]),Y=setInterval(()=>{J.value=Date.now()},1e3);try{let e=await oe.wiki.list.query({scope:`global`}),t=0,n=e=>{for(let r of e)r.type===`file`?t+=1:r.type===`dir`&&Array.isArray(r.children)&&n(r.children)};n(e.entries),X.value=t}catch{X.value=null}});function ge(){U.push(`/wiki`)}ne(()=>{Y&&clearInterval(Y)});let Z=c(()=>[...W.projects].slice(0,5)),Q=c(()=>K.runningProcesses.map(e=>{let t=q.getById(e.serviceId),n=G.agents.find(t=>t.config.id===e.agentId),r=e.uptime;if(e.startedAt){let t=new Date(e.startedAt).getTime();r=Math.max(0,J.value-t)}let i=r/1e3;return{...e,serviceName:t?.name??e.serviceId,agentName:n?.config.name??e.agentId,uptimeFormatted:$(i)}}));function $(e){return e==null?`-`:e<60?`${Math.floor(e)}s`:e<3600?`${Math.floor(e/60)}m`:`${Math.floor(e/3600)}h ${Math.floor(e%3600/60)}m`}function _e(e){U.push(`/projects/${e}`)}return(t,r)=>(e(),l(`div`,le,[f(`h1`,ue,d(n(h)(`dashboard.title`)),1),f(`div`,y,[o(n(v),{class:`summary-card`},{content:p(()=>[f(`div`,b,[r[0]||=f(`i`,{class:`pi pi-folder summary-icon`},null,-1),f(`div`,null,[f(`div`,x,d(n(W).projectCount),1),f(`div`,S,d(n(h)(`dashboard.projects`)),1)])])]),_:1}),o(n(v),{class:`summary-card`},{content:p(()=>[f(`div`,C,[r[1]||=f(`i`,{class:`pi pi-list summary-icon`},null,-1),f(`div`,null,[f(`div`,w,d(n(q).serviceCount),1),f(`div`,T,d(n(h)(`dashboard.services`)),1)])])]),_:1}),o(n(v),{class:`summary-card`},{content:p(()=>[f(`div`,E,[r[2]||=f(`i`,{class:`pi pi-server summary-icon`},null,-1),f(`div`,null,[f(`div`,D,d(n(G).connectedAgents.length),1),f(`div`,O,d(n(h)(`dashboard.agentsConnected`)),1)])])]),_:1}),o(n(v),{class:`summary-card`},{content:p(()=>[f(`div`,k,[r[3]||=f(`i`,{class:`pi pi-play summary-icon`},null,-1),f(`div`,null,[f(`div`,A,d(n(K).runningProcesses.length),1),f(`div`,j,d(n(h)(`dashboard.runningProcesses`)),1)])])]),_:1}),o(n(v),{class:`summary-card summary-card--clickable`,onClick:ge},{content:p(()=>[f(`div`,M,[r[5]||=f(`i`,{class:`pi pi-file-edit summary-icon`},null,-1),f(`div`,null,[f(`div`,N,d(X.value??`—`),1),r[4]||=f(`div`,{class:`summary-label`},`Wiki global`,-1)])])]),_:1})]),f(`section`,P,[f(`h2`,F,d(n(h)(`dashboard.projects`)),1),Z.value.length===0?(e(),l(`div`,I,d(n(h)(`dashboard.noProjects`)),1)):(e(),l(`div`,L,[(e(!0),l(s,null,a(Z.value,t=>(e(),m(n(v),{key:t.id,class:`project-card`,onClick:e=>_e(t.id)},{title:p(()=>[ae(d(t.name),1)]),content:p(()=>[f(`p`,R,d(t.description||n(h)(`dashboard.noDescription`)),1),f(`div`,de,[o(n(g),{value:`${t.serviceIds.length} ${t.serviceIds.length===1?n(h)(`dashboard.service`):n(h)(`dashboard.services_plural`)}`,severity:`info`},null,8,[`value`])])]),_:2},1032,[`onClick`]))),128))]))]),f(`section`,z,[f(`h2`,B,d(n(h)(`dashboard.agentStatus`)),1),n(G).agents.length===0?(e(),l(`div`,V,d(n(h)(`dashboard.noAgents`)),1)):(e(),l(`div`,H,[(e(!0),l(s,null,a(n(G).agents,t=>(e(),l(`div`,{key:t.config.id,class:`agent-item`},[f(`span`,fe,d(t.config.name),1),o(n(g),{value:t.status.connected?n(h)(`dashboard.connected`):n(h)(`dashboard.disconnected`),severity:t.status.connected?`success`:`danger`},null,8,[`value`,`severity`])]))),128))]))]),f(`section`,pe,[f(`h2`,me,d(n(h)(`dashboard.runningProcesses`)),1),Q.value.length===0?(e(),l(`div`,he,d(n(h)(`dashboard.noProcesses`)),1)):(e(),m(n(ce),{key:1,value:Q.value,"striped-rows":``,size:`small`,paginator:!0,rows:10,"rows-per-page-options":[5,10,20]},{default:p(()=>[o(n(_),{field:`serviceName`,header:n(h)(`dashboard.serviceColumn`)},null,8,[`header`]),o(n(_),{field:`agentName`,header:n(h)(`dashboard.agentColumn`)},null,8,[`header`]),o(n(_),{field:`state`,header:n(h)(`dashboard.stateColumn`)},{body:p(({data:e})=>[o(n(g),{value:e.state,severity:`success`},null,8,[`value`])]),_:1},8,[`header`]),o(n(_),{field:`uptimeFormatted`,header:n(h)(`dashboard.uptimeColumn`)},null,8,[`header`])]),_:1},8,[`value`]))])]))}}),[[`__scopeId`,`data-v-0d2d93ae`]]);export{U as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bi as e,Ca as t,Da as n,Ea as r,Ki as i,Oa as a,Oi as o,Ui as s,di as c,fi as l,li as u,ra as d,ui as f,xi as p,yi as m}from"./index-
|
|
1
|
+
import{Bi as e,Ca as t,Da as n,Ea as r,Ki as i,Oa as a,Oi as o,Ui as s,di as c,fi as l,li as u,ra as d,ui as f,xi as p,yi as m}from"./index-CV_lCcKm.js";import{_n as h}from"./dist-DKLcX5kd.js";import{t as g}from"./_plugin-vue_export-helper-BVSTY9ge.js";var _=m({inheritAttrs:!1,__name:`DataTableCell`,props:{is:{default:`td`}},setup(n){let{cx:r}=h();return(a,c)=>(e(),f(i(n.is),o(t(r)(`box-content max-h-8 min-h-8 min-w-8 border-l-0 border-t border-b-0 border-r flex text-base last:border-r-0 group-last:border-b-transparent p-0 m-0 relative`),{class:`group-[.alert]:bg-b-alert group-[.error]:bg-b-danger`}),{default:d(()=>[s(a.$slots,`default`)]),_:3},16))}}),v={},y={class:`group contents`};function b(t,n){return e(),l(`tr`,y,[s(t.$slots,`default`)])}var x=g(v,[[`render`,b]]),S=[`role`],C={key:0,class:`sr-only`},w=m({__name:`DataTable`,props:{columns:{},scroll:{type:Boolean},presentational:{type:Boolean}},setup(i){let{cx:o}=h();return(d,f)=>(e(),l(`div`,n(p(t(o)(i.scroll?`overflow-x-auto custom-scroll`:`overflow-visible`,`scalar-data-table`))),[u(`table`,{class:r([`mb-0 grid min-h-8 auto-rows-auto`,{"w-max min-w-full":i.scroll}]),role:i.presentational?`presentation`:`table`,style:a({gridTemplateColumns:i.columns.map(e=>e||`1fr`).join(` `)})},[d.$slots.caption?(e(),l(`caption`,C,[s(d.$slots,`caption`)])):c(``,!0),s(d.$slots,`default`)],14,S)],16))}});export{x as n,_ as r,w as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bi as e,Ca as t,Ea as n,Ii as r,Ri as i,Vi as a,_i as o,ci as s,ea as c,ha as l,li as u,ra as d,ui as f,wi as p,yi as m}from"./index-
|
|
1
|
+
import{Bi as e,Ca as t,Ea as n,Ii as r,Ri as i,Vi as a,_i as o,ci as s,ea as c,ha as l,li as u,ra as d,ui as f,wi as p,yi as m}from"./index-CV_lCcKm.js";import{V as h,vn as g}from"./dist-DKLcX5kd.js";import{c as _,i as v,n as y,o as b,s as x,t as S}from"./keyboard-BALpgxzI.js";import{r as C}from"./DataTable.vue-BKb6QQRz.js";function w(e,t){if(e)return e;let n=t??`button`;if(typeof n==`string`&&n.toLowerCase()===`button`)return`button`}function T(e,t){let n=l(w(e.value.type,e.value.as));return r(()=>{n.value=w(e.value.type,e.value.as)}),c(()=>{var e;n.value||x(t)&&x(t)instanceof HTMLButtonElement&&!((e=x(t))!=null&&e.hasAttribute(`type`))&&(n.value=`button`)}),n}var E=Symbol(`Context`),D=(e=>(e[e.Open=1]=`Open`,e[e.Closed=2]=`Closed`,e[e.Closing=4]=`Closing`,e[e.Opening=8]=`Opening`,e))(D||{});function O(){return p(E,null)}function k(e){a(E,e)}var A=(e=>(e[e.Open=0]=`Open`,e[e.Closed=1]=`Closed`,e))(A||{}),j=Symbol(`DisclosureContext`);function M(e){let t=p(j,null);if(t===null){let t=Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}var N=Symbol(`DisclosurePanelContext`);function P(){return p(N,null)}var F=m({name:`Disclosure`,props:{as:{type:[Object,String],default:`template`},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let r=l(e.defaultOpen?0:1),i=l(null),o=l(null),c={buttonId:l(`headlessui-disclosure-button-${_()}`),panelId:l(`headlessui-disclosure-panel-${_()}`),disclosureState:r,panel:i,button:o,toggleDisclosure(){r.value=b(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(e){c.closeDisclosure(),(()=>e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?x(e):x(c.button):x(c.button))()?.focus()}};return a(j,c),k(s(()=>b(r.value,{0:D.Open,1:D.Closed}))),()=>{let{defaultOpen:i,...a}=e;return y({theirProps:a,ourProps:{},slot:{open:r.value===0,close:c.close},slots:t,attrs:n,name:`Disclosure`})}}}),I=m({name:`DisclosureButton`,props:{as:{type:[Object,String],default:`button`},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:a}){let o=M(`DisclosureButton`),u=P(),d=s(()=>u===null?!1:u.value===o.panelId.value);r(()=>{d.value||e.id!==null&&(o.buttonId.value=e.id)}),i(()=>{d.value||(o.buttonId.value=null)});let f=l(null);a({el:f,$el:f}),d.value||c(()=>{o.button.value=f.value});let p=T(s(()=>({as:e.as,type:t.type})),f);function m(){var t;e.disabled||(d.value?(o.toggleDisclosure(),(t=x(o.button))==null||t.focus()):o.toggleDisclosure())}function h(t){var n;if(!e.disabled)if(d.value)switch(t.key){case S.Space:case S.Enter:t.preventDefault(),t.stopPropagation(),o.toggleDisclosure(),(n=x(o.button))==null||n.focus();break}else switch(t.key){case S.Space:case S.Enter:t.preventDefault(),t.stopPropagation(),o.toggleDisclosure();break}}function g(e){switch(e.key){case S.Space:e.preventDefault();break}}return()=>{let r={open:o.disclosureState.value===0},{id:i,...a}=e;return y({ourProps:d.value?{ref:f,type:p.value,onClick:m,onKeydown:h}:{id:o.buttonId.value??i,ref:f,type:p.value,"aria-expanded":o.disclosureState.value===0,"aria-controls":o.disclosureState.value===0||x(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:m,onKeydown:h,onKeyup:g},theirProps:a,slot:r,attrs:t,slots:n,name:`DisclosureButton`})}}}),L=m({name:`DisclosurePanel`,props:{as:{type:[Object,String],default:`div`},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:o}){let c=M(`DisclosurePanel`);r(()=>{e.id!==null&&(c.panelId.value=e.id)}),i(()=>{c.panelId.value=null}),o({el:c.panel,$el:c.panel}),a(N,c.panelId);let l=O(),u=s(()=>l===null?c.disclosureState.value===0:(l.value&D.Open)===D.Open);return()=>{let r={open:c.disclosureState.value===0,close:c.close},{id:i,...a}=e;return y({ourProps:{id:c.panelId.value??i,ref:c.panel},theirProps:a,slot:r,attrs:t,slots:n,features:v.RenderStrategy|v.Static,visible:u.value,name:`DisclosurePanel`})}}}),R=[`checked`,`disabled`],z=m({__name:`DataTableCheckbox`,props:{modelValue:{type:Boolean},disabled:{type:Boolean},align:{default:`center`}},emits:[`update:modelValue`],setup(r){let i=g({base:`w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-1 pointer-events-none absolute`,variants:{align:{left:`left-0`,center:`centered`}}});return(a,s)=>(e(),f(C,{class:`group/cell relative flex min-w-8`},{default:d(()=>[u(`input`,{checked:r.modelValue,class:`peer absolute inset-0 size-full cursor-pointer opacity-0 disabled:cursor-default`,disabled:!!r.disabled,type:`checkbox`,onChange:s[0]||=e=>a.$emit(`update:modelValue`,e.target.checked)},null,40,R),u(`div`,{class:n(t(i)({align:r.align}))},[u(`div`,{class:n([`absolute m-auto size-3/4 rounded border-[1px] opacity-0`,!r.disabled&&`group-has-[:focus-visible]/cell:border-c-accent group-hover/cell:opacity-100 group-has-[:focus-visible]/cell:opacity-100`])},null,2),o(t(h),{icon:`Checkmark`,size:`xs`,thickness:`2.5`})],2)]),_:1}))}});export{D as a,T as c,L as i,F as n,O as o,I as r,k as s,z as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bi as e,Ca as t,Oi as n,Ui as r,di as i,fi as a,li as o,ra as s,ui as c,yi as l}from"./index-
|
|
1
|
+
import{Bi as e,Ca as t,Oi as n,Ui as r,di as i,fi as a,li as o,ra as s,ui as c,yi as l}from"./index-CV_lCcKm.js";import{_n as u,un as d}from"./dist-DKLcX5kd.js";import{r as f}from"./DataTable.vue-BKb6QQRz.js";var p={key:0},m={key:1},h={key:2},g={key:3},_={key:4},v={key:5},y=l({name:`ScalarIconWarning`,props:{label:{},weight:{}},setup(s){let{bind:c,weight:l}=d(s);return(s,u)=>(e(),a(`svg`,n({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},t(c)),[r(s.$slots,`default`),t(l)===`bold`?(e(),a(`g`,p,[...u[0]||=[o(`path`,{d:`M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z`},null,-1)]])):t(l)===`duotone`?(e(),a(`g`,m,[...u[1]||=[o(`path`,{d:`M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z`,opacity:`0.2`},null,-1),o(`path`,{d:`M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z`},null,-1)]])):t(l)===`fill`?(e(),a(`g`,h,[...u[2]||=[o(`path`,{d:`M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z`},null,-1)]])):t(l)===`light`?(e(),a(`g`,g,[...u[3]||=[o(`path`,{d:`M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z`},null,-1)]])):t(l)===`regular`?(e(),a(`g`,_,[...u[4]||=[o(`path`,{d:`M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z`},null,-1)]])):t(l)===`thin`?(e(),a(`g`,v,[...u[5]||=[o(`path`,{d:`M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z`},null,-1)]])):i(``,!0)],16))}}),b=l({__name:`DataTableHeader`,setup(i){let{cx:a}=u();return(i,o)=>(e(),c(f,n({is:`th`},t(a)(`items-center font-medium px-2 min-w-0 -outline-offset-1`)),{default:s(()=>[r(i.$slots,`default`)]),_:3},16))}});export{y as n,b as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bi as e,Ca as t,Ea as n,Oi as r,Ui as i,ai as a,ci as o,di as s,fi as c,gi as l,ha as u,li as d,ra as f,ui as p,yi as m}from"./index-
|
|
1
|
+
import{Bi as e,Ca as t,Ea as n,Oi as r,Ui as i,ai as a,ci as o,di as s,fi as c,gi as l,ha as u,li as d,ra as f,ui as p,yi as m}from"./index-CV_lCcKm.js";import{B as h,tn as g}from"./dist-DKLcX5kd.js";import{n as _,t as v}from"./ScalarIconEyeSlash.vue-Ct2ktTXq.js";import{t as y}from"./_plugin-vue_export-helper-BVSTY9ge.js";import{n as b,t as x}from"./CodeInput.vue-BGBOdacc.js";import{r as S}from"./DataTable.vue-BKb6QQRz.js";var C=[`for`],w={class:`relative flex min-w-0 flex-1`},T=[`readOnly`,`type`,`value`],E={key:1,class:`centered-y text-orange absolute right-7 text-xs`},D=y(m({inheritAttrs:!1,__name:`DataTableInput`,props:{id:{},type:{},containerClass:{},required:{type:Boolean,default:!1},modelValue:{},canAddCustomEnumValue:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},enum:{},min:{},max:{},environment:{},envVariables:{},description:{},lineWrapping:{type:Boolean,default:!1}},emits:[`update:modelValue`,`inputFocus`,`inputBlur`,`selectVariable`],setup(m,{emit:y}){let D=m,O=y,k=u(!0),A=u(!1),j=u(null),M=()=>{A.value||O(`inputBlur`)},N=o(()=>D.type===`password`?`text`:D.type??`text`),P=()=>{!D.enum?.length&&!D.readOnly&&j.value?.focus()};return(o,u)=>(e(),p(S,{class:n([`relative flex`,m.containerClass])},{default:f(()=>[o.$slots.default?(e(),c(`div`,{key:0,class:`text-c-1 flex items-center pr-0 pl-3`,for:m.id??``,onClick:P},[i(o.$slots,`default`,{},void 0,!0),u[6]||=l(`: `,-1)],8,C)):s(``,!0),d(`div`,w,[D.enum&&D.enum.length?(e(),p(b,{key:0,canAddCustomValue:D.canAddCustomEnumValue,modelValue:D.modelValue,value:D.enum,"onUpdate:modelValue":u[0]||=e=>O(`update:modelValue`,e)},null,8,[`canAddCustomValue`,`modelValue`,`value`])):(e(),c(a,{key:1},[k.value&&m.type===`password`?(e(),c(`input`,r({key:0},m.id?{...o.$attrs,id:m.id}:o.$attrs,{autocomplete:`off`,class:[`text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none px-2 py-1.25 -outline-offset-1`,{"scalar-password-input":m.type===`password`}],"data-1p-ignore":``,readOnly:m.readOnly,spellcheck:`false`,type:N.value,value:m.modelValue,onInput:u[1]||=e=>O(`update:modelValue`,e.target.value??``)}),null,16,T)):(e(),p(x,r({key:1},o.$attrs,{id:m.id,ref_key:`codeInput`,ref:j,class:[`text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none -outline-offset-1`,[m.type===`password`&&m.description&&`pr-12`,m.description&&`pr-8`,m.type===`password`&&`scalar-password-input`]],description:m.description,disableCloseBrackets:``,disableTabIndent:``,envVariables:m.envVariables,environment:m.environment,lineWrapping:!!m.lineWrapping,max:m.max,min:m.min,modelValue:m.modelValue??``,readOnly:m.readOnly,required:!!m.required,spellcheck:`false`,type:N.value,onBlur:M,onFocus:u[2]||=e=>O(`inputFocus`),"onUpdate:modelValue":u[3]||=e=>O(`update:modelValue`,e)}),null,16,[`id`,`class`,`description`,`envVariables`,`environment`,`lineWrapping`,`max`,`min`,`modelValue`,`readOnly`,`required`,`type`]))],64))]),o.$slots.warning?(e(),c(`div`,E,[i(o.$slots,`warning`,{},void 0,!0)])):s(``,!0),i(o.$slots,`icon`,{},void 0,!0),m.modelValue?(e(),p(t(h),{key:2,class:`-ml-.25 h-6 w-6 self-center p-1.25`,icon:t(g),label:`Clear Value`,onClick:u[4]||=e=>O(`update:modelValue`,``)},null,8,[`icon`])):s(``,!0),m.type===`password`?(e(),p(t(h),{key:3,class:`-ml-.5 mr-1.25 h-6 w-6 self-center p-1.25`,icon:k.value?t(_):t(v),label:k.value?`Show Password`:`Hide Password`,onClick:u[5]||=e=>k.value=!k.value},null,8,[`icon`,`label`])):s(``,!0)]),_:3},8,[`class`]))}}),[[`__scopeId`,`data-v-c1a50a6e`]]);export{D as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bi as e,Ca as t,Ui as n,_i as r,ci as i,di as a,fi as o,gi as s,ka as c,li as l,ra as u,ri as d,ui as f,yi as p}from"./index-
|
|
1
|
+
import{Bi as e,Ca as t,Ui as n,_i as r,ci as i,di as a,fi as o,gi as s,ka as c,li as l,ra as u,ri as d,ui as f,yi as p}from"./index-CV_lCcKm.js";import{hn as m}from"./dist-DKLcX5kd.js";var h={class:`flex justify-between gap-10`},g=p({__name:`SidebarListElementForm`,props:{danger:{type:Boolean},label:{}},emits:[`cancel`,`submit`],setup(i,{emit:a}){let f=a;return(a,p)=>(e(),o(`form`,{class:`flex flex-col gap-4 text-base`,onSubmit:p[1]||=d(e=>f(`submit`),[`prevent`])},[n(a.$slots,`default`),l(`div`,h,[r(t(m),{size:`sm`,type:`button`,variant:`outlined`,onClick:p[0]||=e=>f(`cancel`)},{default:u(()=>[...p[2]||=[s(` Cancel `,-1)]]),_:1}),r(t(m),{"data-testid":`sidebar-list-element-form-submit-button`,size:`sm`,type:`submit`,variant:i.danger?`danger`:`solid`},{default:u(()=>[s(c(i.label??`Save`),1)]),_:1},8,[`variant`])])],32))}}),_={key:0,class:`text-c-2 text-sm leading-normal text-pretty`},v=p({__name:`DeleteSidebarListElement`,props:{variableName:{},warningMessage:{}},emits:[`close`,`delete`],setup(t,{emit:n}){let r=t,s=n,l=i(()=>r.variableName.length>18?r.variableName.slice(0,18)+`…`:r.variableName);return(n,r)=>(e(),f(g,{danger:``,label:`Delete ${l.value}`,onCancel:r[0]||=e=>s(`close`),onSubmit:r[1]||=e=>s(`delete`)},{default:u(()=>[t.warningMessage?(e(),o(`p`,_,c(t.warningMessage),1)):a(``,!0)]),_:1},8,[`label`]))}});export{g as n,v as t};
|
package/web/assets/{EditSidebarListElement.vue-BqTw6Tho.js → EditSidebarListElement.vue-BVJ4wsTf.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bi as e,Ca as t,_i as n,ha as r,ra as i,ui as a,yi as o}from"./index-
|
|
1
|
+
import{Bi as e,Ca as t,_i as n,ha as r,ra as i,ui as a,yi as o}from"./index-CV_lCcKm.js";import{m as s}from"./dist-DKLcX5kd.js";import{n as c}from"./DeleteSidebarListElement.vue-Br-Lvh7k.js";var l=o({__name:`EditSidebarListElement`,props:{name:{}},emits:[`close`,`edit`],setup(o,{emit:l}){let u=o,d=l,f=r(u.name);return(r,o)=>(e(),a(c,{onCancel:o[1]||=e=>d(`close`),onSubmit:o[2]||=e=>d(`edit`,f.value)},{default:i(()=>[n(t(s),{modelValue:f.value,"onUpdate:modelValue":o[0]||=e=>f.value=e,autofocus:``},null,8,[`modelValue`])]),_:1}))}});export{l as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Bi as e,Cn as t,Oa as n,ci as r,fi as i,yi as a}from"./index-
|
|
1
|
+
import{Bi as e,Cn as t,Oa as n,ci as r,fi as i,yi as a}from"./index-CV_lCcKm.js";var o=`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M16.934 1.059l-7.12 6.608L4.16 3.838 2.073 4.88v14.248l2.088 1.041 5.654-3.83 7.12 6.608 5.065-2.443V3.502l-5.065-2.443zM5.17 14.288V9.716l2.893 2.286L5.17 14.288zm11.764 2.908L12.9 12.004l4.035-5.196v10.388z"/></svg>
|
|
2
2
|
`,s=`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"/></svg>
|
|
3
3
|
`,c=`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M23.55 5.067c-1.2038-.002-2.1806.973-2.1806 2.1765v4.8676c0 .972-.8035 1.7594-1.7597 1.7594-.568 0-1.1352-.286-1.4718-.7659l-4.9713-7.1003c-.4125-.5896-1.0837-.941-1.8103-.941-1.1334 0-2.1533.9635-2.1533 2.153v4.8957c0 .972-.7969 1.7594-1.7596 1.7594-.57 0-1.1363-.286-1.4728-.7658L.4076 5.1598C.2822 4.9798 0 5.0688 0 5.2882v4.2452c0 .2147.0656.4228.1884.599l5.4748 7.8183c.3234.462.8006.8052 1.3509.9298 1.3771.313 2.6446-.747 2.6446-2.0977v-4.893c0-.972.7875-1.7593 1.7596-1.7593h.003a1.798 1.798 0 0 1 1.4718.7658l4.9723 7.0994c.4135.5905 1.05.941 1.8093.941 1.1587 0 2.1515-.9645 2.1515-2.153v-4.8948c0-.972.7875-1.7594 1.7596-1.7594h.194a.22.22 0 0 0 .2204-.2202v-4.622a.22.22 0 0 0-.2203-.2203Z"/></svg>
|
|
4
4
|
`,l=`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M20.953.004a.397.397 0 0 0-.18.017L3.225 5.585c-.175.055-.323.214-.402.398a.42.42 0 0 0-.06.22v5.726a.42.42 0 0 0 .06.22c.079.183.227.341.402.397l7.454 2.364-7.454 2.363c-.255.08-.463.374-.463.655v5.688c0 .282.208.444.463.363l17.55-5.565c.237-.075.426-.336.452-.6.003-.022.013-.04.013-.065V12.06c0-.281-.208-.575-.463-.656L13.4 9.065l7.375-2.339c.255-.08.462-.375.462-.656V.384c0-.211-.117-.355-.283-.38z"/></svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Bi as e,Ca as t,_i as n,fi as r,li as i,yi as a}from"./index-
|
|
1
|
+
import{Bi as e,Ca as t,_i as n,fi as r,li as i,yi as a}from"./index-CV_lCcKm.js";import{H as o}from"./dist-DKLcX5kd.js";import{t as s}from"./_plugin-vue_export-helper-BVSTY9ge.js";import{t as c}from"./ScalarAsciiArt.vue-BYd0f-av.js";var l=` .:=+++++=================-
|
|
2
2
|
.--#* :.
|
|
3
3
|
.-:-** -.
|
|
4
4
|
.:-::-+* =:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as e,Bi as t,Ca as n,Ea as r,Hi as i,Ii as a,Mi as o,_i as s,ai as c,ci as l,di as u,fi as d,gi as f,ha as p,ia as m,ka as h,li as g,mi as ee,ra as _,ri as v,ti as te,ui as y,yi as b}from"./index-
|
|
1
|
+
import{$i as e,Bi as t,Ca as n,Ea as r,Hi as i,Ii as a,Mi as o,_i as s,ai as c,ci as l,di as u,fi as d,gi as f,ha as p,ia as m,ka as h,li as g,mi as ee,ra as _,ri as v,ti as te,ui as y,yi as b}from"./index-CV_lCcKm.js";import"./w3c-keyname-B0Po4pAC.js";import{V as x,hn as S,n as C,r as w}from"./dist-DKLcX5kd.js";import"./dist-DOfPSpzL.js";import{t as ne}from"./store-Cuguy-ft.js";import{i as re,r as ie}from"./vue-router-By6H_4a-.js";import{t as ae}from"./CodeInput.vue-BGBOdacc.js";import{n as T,t as oe}from"./active-entities-DEkfqGrE.js";import{t as se}from"./Sidebar.vue-BLpHEfAt.js";import{t as ce}from"./useSidebar-BWKBo0y4.js";import{t as le}from"./library-DL2YIihE.js";import{n as ue}from"./dist-zqENM1-W.js";import{t as de}from"./ViewLayout.vue-Dui_p5J4.js";import{t as fe}from"./ViewLayoutContent.vue-CZRQTJFb.js";import"./useClipboard-Ba0ZMSjV.js";import{t as pe}from"./ViewLayoutSection.vue-C87DZ2QU.js";import"./CommandActionInput.vue-CSydiKjM.js";import"./dist-DM4_kDGf.js";import"./DeleteSidebarListElement.vue-Br-Lvh7k.js";import{t as me}from"./EditSidebarListElement.vue-BVJ4wsTf.js";import{n as he,t as ge}from"./EnvironmentModal.vue-Bipjnu_F.js";import{t as _e}from"./SidebarButton.vue-CNMSjNtm.js";import{n as ve,t as E}from"./SidebarListElement.vue-DSsy6NQT.js";function ye(e,t){return{handleDragEnd:(n,r)=>{if(!n||!r)return;let{id:i,parentId:a}=n,{id:o,parentId:s,offset:c}=r;if(a!==s)return;let l=e.value.find(e=>e.uid===a);if(!l||!l[`x-scalar-environments`])return;let u=l[`x-scalar-environments`],d=Object.keys(u);({...u});let f=d.findIndex(e=>e===i);d.splice(f,1);let p=d.findIndex(e=>e===o)+(c===1?1:0);d.splice(p,0,i),l[`x-scalar-environments`]=d.reduce((e,t)=>{let n=u[t];return n&&(e[t]=n),e},{}),t.edit(l.uid,`x-scalar-environments`,l[`x-scalar-environments`])},isDroppable:(e,t)=>e.parentId===t.parentId}}var D={class:`flex-1`},O=[`onClick`],k={class:`flex h-5 max-w-[14px] items-center justify-center`},A=b({__name:`Environment`,setup(b){let A=re(),j=ie(),{activeWorkspace:M,activeEnvironment:N,activeWorkspaceCollections:P,activeEnvVariables:be}=oe(),{events:F,workspaceMutators:xe,collectionMutators:I}=ne(),{collapsedSidebarFolders:L,toggleSidebarFolder:R}=ce(),z=w(),B=w(),V=w(),H=p(null),U=p(`default`),W=p(``),G=p(void 0),K=p(void 0),q=p(void 0),{toast:J}=ue(),Se=e=>JSON.parse(e);function Y(e,t,n){e&&(t.uid===n?J(`Environment name already used in ${t.info?.title}`,`error`):J(`Environment name already used in another collection`,`error`))}let X=l(()=>P.value.filter(e=>e.info?.title!==`Drafts`));function Ce(e){X.value.some(t=>{let n=Object.keys(t[`x-scalar-environments`]||{}).includes(e.name);return Y(n,t,e.collectionId),n})||(e.collectionId&&(I.addEnvironment(e.name,{variables:{},color:e.color},e.collectionId),L[e.collectionId]||R(e.collectionId),A.push({name:`environment.collection`,params:{[T.Collection]:e.collectionId,[T.Environment]:e.name}})),B.hide())}function we(e){if(!N)return;let t=Se(e);if(U.value===`default`)xe.edit(M.value?.uid,`environments`,t);else{let e=P.value.find(e=>e[`x-scalar-environments`]?.[U.value??``]);if(e?.[`x-scalar-environments`]?.[U.value??``]){let n=e[`x-scalar-environments`][U.value??``];n&&(n.variables=t,I.edit(e.uid,`x-scalar-environments`,e[`x-scalar-environments`]))}}}let Z=e=>{G.value=e,B.show()},Te=(e,t)=>{K.value=e,G.value=t,q.value=e,V.show()},Ee=e=>{H.value=e,W.value=P.value.find(t=>t[`x-scalar-environments`]?.[e])?.[`x-scalar-environments`]?.[e]?.color??``,z.show()},De=e=>{let t=H.value;typeof t==`string`&&(P.value.some(e=>e[`x-scalar-environments`]?.[t])&&P.value.forEach(n=>{n[`x-scalar-environments`]?.[t]&&(n[`x-scalar-environments`][t].color=e,I.edit(n.uid,`x-scalar-environments`,n[`x-scalar-environments`]))}),z.hide())};function Oe(e){X.value.forEach(t=>{I.removeEnvironment(e,t.uid)});let t=X.value.flatMap(e=>Object.keys(e[`x-scalar-environments`]||{}));if(t.length>0){let e=t[t.length-1];if(!e)return;let n=P.value.find(t=>Object.keys(t[`x-scalar-environments`]||{}).includes(e));U.value=e,A.push({name:`environment.collection`,params:{[T.Collection]:n?.uid,[T.Environment]:e}}),n&&!L[n.uid]&&R(n.uid)}else U.value=`default`,A.push({name:`environment.default`,params:{[T.Workspace]:M.value?.uid}})}let Q=()=>U.value===`default`?`Global Environment`:U.value,ke=()=>U.value===`default`?JSON.stringify(M.value?.environments,null,2):JSON.stringify(P.value.find(e=>e[`x-scalar-environments`]?.[U.value??``])?.[`x-scalar-environments`]?.[U.value??``]?.variables,null,2),Ae=e=>L[e],$=e=>{e?.createNew&&j.name===`environment`&&Z()};e(()=>[j.params[T.Collection],j.params[T.Environment]],([e,t])=>{e?U.value=t:U.value=`default`}),a(()=>{U.value=j.params[T.Environment]||`default`,F.hotKeys.on($);let e=j.params[T.Collection];e&&!L[e]&&R(e)}),o(()=>F.hotKeys.off($));let je=(e,t,n)=>{let r=n?{name:`environment.collection`,params:{[T.Workspace]:M.value?.uid,[T.Collection]:n,[T.Environment]:t}}:{name:`environment.default`,params:{[T.Workspace]:M.value?.uid,[T.Environment]:t}};e.metaKey?window.open(A.resolve(r).href,`_blank`):A.push(r)};function Me(){K.value=void 0,G.value=void 0,q.value=void 0,V.hide()}function Ne(e){X.value.some(t=>{let n=Object.keys(t[`x-scalar-environments`]||{}).includes(e);return Y(n,t,G.value),n})||(e&&K.value!==`default`&&P.value.forEach(t=>{if(t[`x-scalar-environments`]?.[K.value??``]){let n=t[`x-scalar-environments`],r={};Object.keys(n).forEach(t=>{let i=n[t];i&&(t===K.value?r[e]=i:r[t]=i)}),t[`x-scalar-environments`]=r,I.edit(t.uid,`x-scalar-environments`,t[`x-scalar-environments`])}}),e&&U.value===K.value&&(U.value=e),K.value=void 0,G.value=void 0,q.value=void 0,V.hide())}let{handleDragEnd:Pe,isDroppable:Fe}=ye(P,I);return e(()=>j.query.openEnvironmentModal,e=>{e===`true`&&Z()},{immediate:!0}),(e,a)=>(t(),y(de,null,{default:_(()=>[s(se,{title:`Collections`},{content:_(()=>[g(`div`,D,[s(ve,null,{default:_(()=>[(t(),y(E,{key:`default`,class:`text-xs`,isCopyable:!1,to:{name:`environment`,params:{[n(T).Environment]:`default`}},type:`environment`,variable:{name:`Global Environment`,uid:`default`,icon:`Globe`,isDefault:!0}},null,8,[`to`])),(t(!0),d(c,null,i(X.value,e=>(t(),d(`li`,{key:e.uid,class:`gap-1/2 flex flex-col`},[g(`button`,{class:`hover:bg-b-2 group flex w-full items-center gap-1.5 rounded p-1.5 text-left text-sm font-medium break-words`,type:`button`,onClick:t=>n(R)(e.uid)},[g(`span`,k,[s(n(le),{class:`text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden`,src:e[`x-scalar-icon`]||`interface-content-folder`},null,8,[`src`]),g(`div`,{class:r({"rotate-90":n(L)[e.uid]})},[s(n(x),{class:`text-c-3 hover:text-c-1 hidden text-sm group-hover:block`,icon:`ChevronRight`,size:`md`})],2)]),f(` `+h(e.info?.title??``),1)],8,O),m(g(`div`,{class:r({"before:bg-border relative mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-3 before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full":Object.keys(e[`x-scalar-environments`]||{}).length>0})},[(t(!0),d(c,null,i(e[`x-scalar-environments`],(r,i)=>(t(),y(E,{key:i,class:`text-xs`,collectionId:e.uid,isCopyable:!1,isDeletable:!0,isRenameable:!0,isDraggable:!0,isDroppable:n(Fe),to:{name:`environment.collection`,params:{[n(T).Collection]:e.uid,[n(T).Environment]:i}},type:`environment`,variable:{name:i,uid:i,color:r.color??`#FFFFFF`,isDefault:!1},warningMessage:`Are you sure you want to delete this environment?`,onClick:v(t=>je(t,i,e.uid),[`prevent`]),onColorModal:e=>Ee(i),onDelete:e=>Oe(i),onRename:t=>Te(i,e.uid),onOnDragEnd:n(Pe)},null,8,[`collectionId`,`isDroppable`,`to`,`variable`,`onClick`,`onColorModal`,`onDelete`,`onRename`,`onOnDragEnd`]))),128)),Object.keys(e[`x-scalar-environments`]||{}).length===0?(t(),y(n(S),{key:0,class:`text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs`,variant:`ghost`,onClick:t=>Z(e.uid)},{default:_(()=>[s(n(x),{icon:`Add`,size:`sm`}),a[2]||=g(`span`,null,`Add Environment`,-1)]),_:1},8,[`onClick`])):u(``,!0)],2),[[te,Ae(e.uid)]])]))),128))]),_:1})])]),button:_(()=>[s(_e,{click:Z,hotkey:`N`},{title:_(()=>[...a[3]||=[f(` Add Environment `,-1)]]),_:1})]),_:1}),s(fe,{class:`flex-1`},{default:_(()=>[s(pe,null,ee({default:_(()=>[U.value&&n(M)?(t(),y(ae,{key:0,class:`py-2 pr-2 pl-px md:px-4`,envVariables:n(be),environment:n(N),language:`json`,lineNumbers:``,lint:``,modelValue:ke(),workspace:n(M),"onUpdate:modelValue":we},null,8,[`envVariables`,`environment`,`modelValue`,`workspace`])):u(``,!0)]),_:2},[U.value?{name:`title`,fn:_(()=>[g(`span`,null,h(Q()),1)]),key:`0`}:void 0]),1024)]),_:1}),s(he,{selectedColor:W.value,state:n(z),onCancel:a[0]||=e=>n(z).hide(),onSubmit:De},null,8,[`selectedColor`,`state`]),s(ge,{activeWorkspaceCollections:X.value,collectionId:G.value,state:n(B),onCancel:a[1]||=e=>n(B).hide(),onSubmit:Ce},null,8,[`activeWorkspaceCollections`,`collectionId`,`state`]),s(n(C),{size:`xxs`,state:n(V),title:`Edit ${K.value}`},{default:_(()=>[s(me,{name:q.value??``,onClose:Me,onEdit:Ne},null,8,[`name`])]),_:1},8,[`state`,`title`])]),_:1}))}});export{A as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$i as e,A as t,B as n,Bi as r,Ca as i,Cn as a,Dn as o,Ea as s,F as ee,Gn as te,Ii as ne,In as c,Kr as l,M as re,Oi as u,Sn as d,Sr as f,Vn as p,Wi as m,Xn as h,Yn as ie,_i as g,bn as _,ci as v,di as y,dn as ae,fi as b,gi as x,ha as S,j as oe,k as se,ka as C,li as w,pn as T,pr as E,ra as D,ri as O,rr as k,sr as A,tr as j,ui as M,vn as ce,yi as N,yn as le,yr as P}from"./index-
|
|
1
|
+
import{$i as e,A as t,B as n,Bi as r,Ca as i,Cn as a,Dn as o,Ea as s,F as ee,Gn as te,Ii as ne,In as c,Kr as l,M as re,Oi as u,Sn as d,Sr as f,Vn as p,Wi as m,Xn as h,Yn as ie,_i as g,bn as _,ci as v,di as y,dn as ae,fi as b,gi as x,ha as S,j as oe,k as se,ka as C,li as w,pn as T,pr as E,ra as D,ri as O,rr as k,sr as A,tr as j,ui as M,vn as ce,yi as N,yn as le,yr as P}from"./index-CV_lCcKm.js";import{n as ue,t as F}from"./column-DyznW54C.js";import{t as I}from"./fieldset-BPm9DkKy.js";import{t as de}from"./multiselect-Cg_IvTVL.js";import{n as fe}from"./autocomplete-DcAAfn0y.js";import{a as pe,i as me,n as he,r as L,t as R}from"./tabpanel-BkIDALQ8.js";import{n as ge,t as _e}from"./VariablesTable-BP8KuwPI.js";var z=h.extend({name:`colorpicker`,style:`
|
|
2
2
|
.p-colorpicker {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
position: relative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,Bi as t,Bn as n,Ca as r,Cn as i,Dn as a,Gn as o,Ii as s,T as c,Yn as l,_i as u,ci as d,di as f,fi as p,ha as m,ka as h,li as g,ui as _,yi as v,z as y,zn as b}from"./index-
|
|
1
|
+
import{B as e,Bi as t,Bn as n,Ca as r,Cn as i,Dn as a,Gn as o,Ii as s,T as c,Yn as l,_i as u,ci as d,di as f,fi as p,ha as m,ka as h,li as g,ui as _,yi as v,z as y,zn as b}from"./index-CV_lCcKm.js";import{t as x}from"./EnvironmentForm-D9pUNi_S.js";import"./VariablesTable-BP8KuwPI.js";var S={class:`environment-form-page`},C={class:`header`},w={key:0,class:`loading`},T={key:1,class:`form-container`},E=i(v({__name:`EnvironmentFormPage`,setup(i){let{t:v}=l(),E=b(),D=n(),O=e(),k=o(),A=d(()=>E.params.projectId),j=d(()=>E.params.id),M=d(()=>!!j.value),N=m(!1),P=m(null);async function F(){if(M.value){N.value=!0;try{let e=O.getById(j.value);if(!e){console.error(`Environment not found`),L();return}P.value=e}catch(e){console.error(`Failed to load environment:`,y(e))}finally{N.value=!1}}}async function I(e){try{M.value&&P.value?(await O.update({...e,id:P.value.id}),await F(),k.add({severity:`success`,summary:v(`environmentFormPage.updated`),detail:`"${e.name}" ${v(`environmentFormPage.updatedDesc`)}`,life:3e3})):(await O.create(e),k.add({severity:`success`,summary:v(`environmentFormPage.created`),detail:`"${e.name}" ${v(`environmentFormPage.createdDesc`)}`,life:3e3}),L())}catch(e){console.error(`Save failed:`,y(e)),k.add({severity:`error`,summary:v(`environmentFormPage.saveFailed`),detail:y(e)??v(`environmentFormPage.saveFailedDesc`),life:5e3})}}function L(){D.back()}return s(async()=>{O.environments.length===0&&await O.fetchAll(A.value),M.value&&await F()}),(e,n)=>(t(),p(`div`,S,[g(`div`,C,[u(r(a),{icon:`pi pi-arrow-left`,text:``,onClick:L,class:`back-button`}),g(`h1`,null,h(M.value?r(v)(`environmentFormPage.editTitle`):r(v)(`environmentFormPage.createTitle`)),1),n[0]||=g(`div`,{style:{width:`40px`}},null,-1)]),N.value?(t(),p(`div`,w,[u(r(c))])):(t(),p(`div`,T,[P.value||!M.value?(t(),_(x,{key:0,"project-id":A.value,"environment-id":j.value,"initial-data":P.value,onSave:I,onCancel:L},null,8,[`project-id`,`environment-id`,`initial-data`])):f(``,!0)]))]))}}),[[`__scopeId`,`data-v-f667ca1c`]]);export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,Bi as t,Bn as n,Ca as r,Cn as i,Dn as a,Ea as o,Gi as s,Gn as ee,Hi as te,Ii as c,Oa as l,T as u,Tn as d,Wn as ne,Yn as re,_i as f,ai as p,ci as m,di as h,fi as g,gi as _,ha as ie,ia as v,ka as y,li as b,ra as x,ri as S,ui as C,yi as w,yn as T,z as E,zn as D}from"./index-
|
|
1
|
+
import{B as e,Bi as t,Bn as n,Ca as r,Cn as i,Dn as a,Ea as o,Gi as s,Gn as ee,Hi as te,Ii as c,Oa as l,T as u,Tn as d,Wn as ne,Yn as re,_i as f,ai as p,ci as m,di as h,fi as g,gi as _,ha as ie,ia as v,ka as y,li as b,ra as x,ri as S,ui as C,yi as w,yn as T,z as E,zn as D}from"./index-CV_lCcKm.js";import{t as O}from"./project.store-1ZxiIOdG.js";import{t as k}from"./card-DyK4dvjg.js";import{t as A}from"./EnvironmentForm-D9pUNi_S.js";import"./VariablesTable-BP8KuwPI.js";var j={class:`environment-list-page`},M={class:`header`},N={class:`subtitle`},P={key:0,class:`loading`},F={key:1,class:`environments-grid`},I={class:`title-row`},L={class:`title-name`},R={class:`badges`},z=[`title`,`onClick`],B={key:0,class:`description`},V={key:1,class:`parents`},H={class:`var-count`},ae={class:`actions`},U=i(w({__name:`EnvironmentListPage`,setup(i){let{t:w}=re(),U=D(),W=n(),G=e(),K=O(),q=ne(),J=ee(),Y=m(()=>U.params.projectId),X=ie(!1),Z=m(()=>K.getById(Y.value)?.activeEnvironmentId),oe=m(()=>G.environments.filter(e=>e.scope===`global`||!e.scope)),se=e=>e.map(e=>G.getById(e)?.name||e);function Q(e){if(e)return e.startsWith(`#`)?e:`#${e}`}c(async()=>{await G.fetchAll(Y.value)});async function ce(e){try{await G.create(e),X.value=!1,J.add({severity:`success`,summary:w(`environmentList.created`),detail:w(`environmentList.createdDesc`),life:3e3})}catch(e){J.add({severity:`error`,summary:w(`environmentList.createError`),detail:E(e)??w(`environmentList.createErrorDesc`),life:5e3})}}function $(e){W.push(`/projects/${Y.value}/environments/${e}/edit`)}async function le(e){try{await G.update({id:e,default:!0}),J.add({severity:`success`,summary:w(`environmentList.defaultSet`),detail:w(`environmentList.defaultSetDesc`),life:3e3})}catch(e){J.add({severity:`error`,summary:w(`environmentList.failedToSetDefault`),detail:E(e),life:5e3})}}async function ue(e){try{await K.setActiveEnvironment(Y.value,e),await G.fetchAll(Y.value),J.add({severity:`success`,summary:w(`environmentList.activated`),life:3e3})}catch(e){J.add({severity:`error`,summary:w(`environmentList.failedToActivate`),detail:E(e),life:5e3})}}function de(e,t){q.require({message:w(`environmentList.deleteConfirmMsg`,{name:t}),header:w(`environmentList.deleteTitle`),icon:`pi pi-exclamation-triangle`,accept:async()=>{try{await G.deleteEnv(e),J.add({severity:`success`,summary:w(`environmentList.deleted`),detail:w(`environmentList.deletedDesc`),life:3e3})}catch(e){J.add({severity:`error`,summary:w(`environmentList.failedToDelete`),detail:E(e),life:5e3})}}})}return(e,n)=>{let i=s(`tooltip`);return t(),g(`div`,j,[b(`div`,M,[b(`div`,null,[b(`h1`,null,y(r(w)(`environmentList.title`)),1),b(`p`,N,y(r(w)(`environmentList.subtitle`)),1)]),f(r(a),{onClick:n[0]||=e=>X.value=!0,icon:`pi pi-plus`,label:r(w)(`environmentList.createButton`)},null,8,[`label`])]),r(G).loading?(t(),g(`div`,P,[f(r(u))])):(t(),g(`div`,F,[(t(!0),g(p,null,te(oe.value,e=>(t(),C(r(k),{key:e.id,class:o([`environment-card`,{active:e.id===Z.value,immutable:e.immutable}]),style:l(e.bgColor||e.color?{borderLeftColor:Q(e.bgColor)||Q(e.color),borderLeftWidth:`4px`}:{}),onClick:t=>$(e.id)},{title:x(()=>[b(`div`,I,[b(`div`,L,[e.color||e.bgColor?(t(),g(`span`,{key:0,class:`env-swatch`,style:l({backgroundColor:Q(e.bgColor)||Q(e.color),color:Q(e.color)})},null,4)):h(``,!0),b(`span`,null,y(e.name),1)]),b(`div`,R,[e.immutable?(t(),C(r(T),{key:0,severity:`warning`,value:r(w)(`environmentList.immutableBadge`)},null,8,[`value`])):h(``,!0),e.id===Z.value?(t(),C(r(T),{key:1,severity:`success`,value:r(w)(`environmentList.activeBadge`)},null,8,[`value`])):h(``,!0),b(`i`,{class:o([`star-default pi`,e.default?`pi-star-fill`:`pi-star`]),title:e.default?r(w)(`environmentList.defaultEnv`):r(w)(`environmentList.setAsDefault`),onClick:S(t=>!e.default&&le(e.id),[`stop`])},null,10,z)])])]),content:x(()=>[e.description?(t(),g(`p`,B,y(e.description),1)):h(``,!0),e.parentIds.length>0?(t(),g(`p`,V,[n[3]||=b(`strong`,null,`Parents:`,-1),_(` `+y(se(e.parentIds).join(`, `)),1)])):h(``,!0),b(`p`,H,[n[4]||=b(`strong`,null,`Variables:`,-1),_(` `+y(Object.keys(e.variables??{}).length),1)])]),footer:x(()=>[b(`div`,ae,[e.id!==Z.value&&!e.immutable?v((t(),C(r(a),{key:0,onClick:S(t=>ue(e.id),[`stop`]),text:``,rounded:``,icon:`pi pi-check`},null,8,[`onClick`])),[[i,r(w)(`environmentList.activateButton`),void 0,{top:!0}]]):h(``,!0),v(f(r(a),{onClick:S(t=>$(e.id),[`stop`]),text:``,rounded:``,icon:`pi pi-pencil`},null,8,[`onClick`]),[[i,r(w)(`environmentList.editButton`),void 0,{top:!0}]]),!e.immutable&&e.id!==Z.value?v((t(),C(r(a),{key:1,onClick:S(t=>de(e.id,e.name),[`stop`]),text:``,rounded:``,icon:`pi pi-trash`,severity:`danger`,"data-testid":`env-delete-btn`},null,8,[`onClick`])),[[i,r(w)(`environmentList.deleteButton`),void 0,{top:!0}]]):h(``,!0)])]),_:2},1032,[`class`,`style`,`onClick`]))),128))])),f(r(d),{visible:X.value,"onUpdate:visible":n[2]||=e=>X.value=e,header:r(w)(`environments.createEnvironment`),style:{width:`600px`}},{default:x(()=>[f(A,{"project-id":Y.value,onSave:ce,onCancel:n[1]||=e=>X.value=!1},null,8,[`project-id`])]),_:1},8,[`visible`,`header`])])}}}),[[`__scopeId`,`data-v-7275716d`]]);export{U as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as e,Bi as t,Ca as n,Ea as r,Hi as i,Oa as a,_i as o,ai as s,ci as c,di as l,ei as u,fi as d,gi as f,ha as p,ia as m,ka as h,ki as g,li as _,ra as v,ui as y,yi as b}from"./index-
|
|
1
|
+
import{$i as e,Bi as t,Ca as n,Ea as r,Hi as i,Oa as a,_i as o,ai as s,ci as c,di as l,ei as u,fi as d,gi as f,ha as p,ia as m,ka as h,ki as g,li as _,ra as v,ui as y,yi as b}from"./index-CV_lCcKm.js";import{V as x,hn as S,n as C,z as w}from"./dist-DKLcX5kd.js";import{t as T}from"./store-Cuguy-ft.js";import{n as E}from"./dist-zqENM1-W.js";import{n as D,t as O}from"./CommandActionInput.vue-CSydiKjM.js";import{n as k}from"./DeleteSidebarListElement.vue-Br-Lvh7k.js";var A=[`onClick`],j=[`placeholder`],M=b({__name:`EnvironmentColors`,props:{activeColor:{},selector:{type:Boolean,default:!1}},emits:[`select`],setup(f,{emit:h}){let v=f,b=h,S=p(``),C=p(null),w=p(!1),T=p(!1),E=[{color:`#FFFFFF`},{color:`#EF0006`},{color:`#EDBE20`},{color:`#069061`},{color:`#FB892C`},{color:`#0082D0`},{color:`#5203D1`},{color:`#FFC0CB`}],D=c(()=>v.activeColor&&!E.some(e=>e.color===v.activeColor)||S.value?`background-color: ${v.activeColor||S.value};`:`background: linear-gradient(to right, rgb(235, 87, 87), rgb(242, 201, 76), rgb(76, 183, 130), rgb(78, 167, 252), rgb(250, 96, 122));`),O=()=>{w.value=!w.value,v.selector&&(T.value=!1),g(()=>{C.value&&C.value.focus()})};e(S,e=>{e&&!e.startsWith(`#`)&&(S.value=`#${e}`),w.value=!0});let k=()=>{v.selector&&(T.value=!T.value)},M=e=>{b(`select`,e),v.selector&&(T.value=!1)};return(e,c)=>(t(),d(`div`,null,[w.value?l(``,!0):(t(),d(s,{key:0},[v.selector&&!T.value?(t(),d(`div`,{key:0,class:r([`flex cursor-pointer items-center justify-center rounded-full`,v.selector?`h-4 w-4`:`h-5 w-5`]),style:a({backgroundColor:f.activeColor}),onClick:k},[f.activeColor?(t(),y(n(x),{key:0,class:r([`text-c-btn`,v.selector&&`p-0.5`]),icon:`Checkmark`,size:`xs`},null,8,[`class`])):l(``,!0)],6)):l(``,!0),T.value||!v.selector?(t(),d(`div`,{key:1,class:r([`color-selector flex flex-row items-center justify-between gap-1.5 space-x-1`,v.selector?`h-4`:`min-h-10 min-w-[296px]`])},[(t(),d(s,null,i(E,e=>_(`div`,{key:e.color,class:r([`flex cursor-pointer items-center justify-center rounded-full`,v.selector?`h-4 w-4`:`h-5 w-5`]),style:a({backgroundColor:e.color}),onClick:t=>M(e.color)},[f.activeColor===e.color&&!S.value?(t(),y(n(x),{key:0,class:r([`text-c-btn`,v.selector&&`p-0.5`]),icon:`Checkmark`,size:`xs`},null,8,[`class`])):l(``,!0)],14,A)),64)),c[2]||=_(`hr`,{class:`border-ghost h-5 w-0.5 border-l`},null,-1),_(`label`,{class:r([`z-10 flex cursor-pointer flex-row items-center justify-center gap-2 rounded-full`,v.selector?`h-4 w-4`:`h-5 w-5`]),style:a(D.value),onClick:O},[!w.value&&(f.activeColor===S.value||f.activeColor&&!E.some(e=>e.color===f.activeColor))?(t(),y(n(x),{key:0,class:`text-c-btn`,icon:`Checkmark`,size:`xs`})):l(``,!0)],6)],2)):l(``,!0)],64)),w.value?(t(),d(`div`,{key:1,class:r([`color-selector flex flex-1 items-center gap-2 rounded`,v.selector?`h-4`:`min-h-10`])},[_(`span`,{class:r([`absolute rounded-full border border-dashed`,v.selector?`h-4 w-4`:`h-5 w-5`])},null,2),_(`span`,{class:r([`z-[1] rounded-full`,v.selector?`h-4 w-4`:`h-5 w-5`]),style:a(D.value)},null,6),m(_(`input`,{ref_key:`customColorInputRef`,ref:C,"onUpdate:modelValue":c[0]||=e=>S.value=e,class:`w-full flex-1 border-transparent text-sm outline-none`,placeholder:f.activeColor||`#000000`,type:`text`,onInput:c[1]||=e=>M(S.value)},null,40,j),[[u,S.value]]),_(`button`,{class:`text-c-3 hover:bg-b-2 rounded-lg p-1.5`,type:`button`,onClick:O},[o(n(x),{icon:`Checkmark`,size:`xs`})])],2)):l(``,!0)]))}}),N={class:`flex flex-col gap-4`},P=b({__name:`EnvironmentColorModal`,props:{state:{},selectedColor:{}},emits:[`cancel`,`submit`],setup(e,{emit:r}){let i=e,a=r,s=p(``),c=e=>{s.value=e},l=()=>{a(`submit`,s.value),s.value=``};return(r,u)=>(t(),y(n(C),{size:`xxs`,state:e.state,title:`Edit Environment Color`},{default:v(()=>[_(`div`,N,[o(M,{activeColor:s.value||i.selectedColor,class:`w-full p-1`,onSelect:c},null,8,[`activeColor`]),o(k,{onCancel:u[0]||=e=>a(`cancel`),onSubmit:l})])]),_:1},8,[`state`]))}}),F={class:`flex items-start gap-2`},I=b({__name:`EnvironmentModal`,props:{state:{},activeWorkspaceCollections:{},collectionId:{}},emits:[`cancel`,`submit`],setup(i,{emit:a}){let s=i,l=a,{events:u}=T(),d=p(``),m=p(`#FFFFFF`),g=c(()=>[...s.activeWorkspaceCollections.filter(e=>e.info?.title!==`Drafts`).map(e=>({id:e.uid,label:e.info?.title??`Untitled Collection`}))]),b=p(g.value.find(e=>e.id===s.collectionId)),{toast:k}=E(),A=e=>{m.value=e};e(()=>s.state.open,e=>{e&&(d.value=``,m.value=`#FFFFFF`,s.collectionId?b.value=g.value.find(e=>e.id===s.collectionId):b.value=void 0)});let j=()=>{if(!d.value.trim()){k(`Please enter a name before adding an environment.`,`error`);return}if(!b.value?.id){k(`Please select a collection before adding an environment.`,`error`);return}l(`submit`,{name:d.value,color:m.value,type:b.value?.id===`global`?`global`:`collection`,collectionId:b.value?.id===`global`?void 0:b.value?.id})},N=()=>{s.state.hide(),u.commandPalette.emit({commandName:`Create Collection`})};return(e,a)=>(t(),y(n(C),{bodyClass:`border-t-0 rounded-t-lg`,size:`xs`,state:i.state},{default:v(()=>[o(D,{disabled:!b.value||!d.value.trim(),onCancel:a[2]||=e=>l(`cancel`),onSubmit:j},{options:v(()=>[o(n(w),{modelValue:b.value,"onUpdate:modelValue":a[1]||=e=>b.value=e,options:g.value,placeholder:`Select Type`},{default:v(()=>[g.value.length>0?(t(),y(n(S),{key:0,class:`hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs`,variant:`outlined`},{default:v(()=>[_(`span`,{class:r(b.value?`text-c-1`:`text-c-3`)},h(b.value?b.value.label:`Select Collection`),3),o(n(x),{class:`text-c-3`,icon:`ChevronDown`,size:`xs`})]),_:1})):(t(),y(n(S),{key:1,class:`hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs`,variant:`outlined`,onClick:N},{default:v(()=>[...a[3]||=[_(`span`,{class:`text-c-1`},`Create Collection`,-1)]]),_:1}))]),_:1},8,[`modelValue`,`options`])]),submit:v(()=>[...a[4]||=[f(` Add Environment `,-1)]]),default:v(()=>[_(`div`,F,[o(M,{activeColor:m.value,class:`peer`,selector:``,onSelect:A},null,8,[`activeColor`]),o(O,{modelValue:d.value,"onUpdate:modelValue":a[0]||=e=>d.value=e,class:`-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden`,placeholder:`Environment name`},null,8,[`modelValue`])])]),_:1},8,[`disabled`])]),_:1},8,[`state`]))}});export{P as n,I as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,Bi as t,Ca as n,Cn as r,Oa as i,Yn as a,_i as o,ci as s,di as c,dn as l,fi as u,ka as d,li as f,ra as p,yi as m}from"./index-
|
|
1
|
+
import{B as e,Bi as t,Ca as n,Cn as r,Oa as i,Yn as a,_i as o,ci as s,di as c,dn as l,fi as u,ka as d,li as f,ra as p,yi as m}from"./index-CV_lCcKm.js";var h={class:`environment-selector`},g={for:`env-select`,class:`label`,"data-testid":`env-selector-label`},_={key:0,class:`env-option`},v={key:1},y={class:`env-option`},b=r(m({__name:`EnvironmentSelector`,props:{modelValue:{},disabled:{type:Boolean}},emits:[`update:modelValue`],setup(r,{emit:m}){let b=m,{t:x}=a(),S=e(),C=s(()=>S.globalEnvironments);function w(e){if(e)return e.startsWith(`#`)?e:`#${e}`}function T(e){return S.environments.find(t=>t.id===e)}function E(e){b(`update:modelValue`,e)}return(e,a)=>(t(),u(`div`,h,[f(`label`,g,d(n(x)(`environmentSelector.label`)),1),o(n(l),{id:`env-select`,"model-value":r.modelValue,options:C.value,"option-label":`name`,"option-value":`id`,"onUpdate:modelValue":E,placeholder:n(x)(`environmentSelector.placeholder`),disabled:r.disabled},{value:p(e=>[e.value?(t(),u(`div`,_,[T(e.value)?.color||T(e.value)?.bgColor?(t(),u(`span`,{key:0,class:`env-dot`,style:i({backgroundColor:w(T(e.value)?.bgColor)||w(T(e.value)?.color)})},null,4)):c(``,!0),f(`span`,null,d(T(e.value)?.name??e.value),1)])):(t(),u(`span`,v,d(e.placeholder),1))]),option:p(e=>[f(`div`,y,[e.option.color||e.option.bgColor?(t(),u(`span`,{key:0,class:`env-dot`,style:i({backgroundColor:w(e.option.bgColor)||w(e.option.color)})},null,4)):c(``,!0),f(`span`,null,d(e.option.name),1)])]),_:1},8,[`model-value`,`options`,`placeholder`,`disabled`])]))}}),[[`__scopeId`,`data-v-7119182f`]]);export{b as t};
|