@runeya/runeya 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent/index.js +8 -0
- package/agent/index.js.map +1 -1
- package/package.json +1 -1
- package/web/assets/{AddressBar.vue-BKDjFQEO.js → AddressBar.vue-BOHUxRhN.js} +1 -1
- package/web/assets/{AgentPage-BgJ6Oumo.js → AgentPage-DFHxsu-9.js} +1 -1
- package/web/assets/{AgentScalarChatInterface.vue-C__iUL1Z.js → AgentScalarChatInterface.vue-Cxxiyyj8.js} +1 -1
- package/web/assets/{AgentTerminalPage-10MrzYed.js → AgentTerminalPage-D-T5emEl.js} +1 -1
- package/web/assets/AiChatPage-C81mFvv5.js +1 -0
- package/web/assets/{ApiDocsPage-BLR94Cpt.js → ApiDocsPage-CMGvcGEJ.js} +3 -3
- package/web/assets/{AppLayout-CDmZkp4X.js → AppLayout-D10vX1fo.js} +1 -1
- package/web/assets/{AuditPage-DmzLNZum.js → AuditPage-DZiwogoY.js} +1 -1
- package/web/assets/{CodeInput.vue-DESnqXGT.js → CodeInput.vue-8aNMYCYM.js} +1 -1
- package/web/assets/{Collection.vue-DsMsUTvq.js → Collection.vue-N8zZa4pa.js} +1 -1
- package/web/assets/{CollectionAuthentication.vue-CMRcgbVh.js → CollectionAuthentication.vue-cJOxjafo.js} +1 -1
- package/web/assets/CollectionCookies.vue-DrFQqbwv.js +1 -0
- package/web/assets/{CollectionEnvironment.vue-1tFpk-iW.js → CollectionEnvironment.vue-DWPTZ8qx.js} +1 -1
- package/web/assets/{CollectionOverview.vue-ClKgsIxR.js → CollectionOverview.vue-1Qf130d5.js} +1 -1
- package/web/assets/CollectionScripts.vue-DhcFFz80.js +1 -0
- package/web/assets/{CollectionServers.vue-DQQoH4jS.js → CollectionServers.vue-h7E03W0v.js} +1 -1
- package/web/assets/{CollectionSettings.vue-BNccb6p7.js → CollectionSettings.vue-CFrOwl7U.js} +1 -1
- package/web/assets/CollectionSync.vue-PV_tIrJS.js +1 -0
- package/web/assets/{CommandActionInput.vue-B3M0qimk.js → CommandActionInput.vue-L7AcEf6T.js} +1 -1
- package/web/assets/{Cookies.vue-Dm17xLaC.js → Cookies.vue-_P19OjMm.js} +1 -1
- package/web/assets/{DashboardPage-jcsHhPai.js → DashboardPage-BUDWnuJT.js} +1 -1
- package/web/assets/{DataTable.vue-zdywGoM2.js → DataTable.vue-DYVeGQPP.js} +1 -1
- package/web/assets/{DataTableCheckbox.vue-CclkBKvE.js → DataTableCheckbox.vue-n2xCTJj1.js} +1 -1
- package/web/assets/{DataTableHeader.vue-CeoLy43w.js → DataTableHeader.vue-ByesjY2f.js} +1 -1
- package/web/assets/{DataTableInput.vue-3ERbFJoE.js → DataTableInput.vue-uPpuKzrX.js} +1 -1
- package/web/assets/{DeleteSidebarListElement.vue-3UGiyFzi.js → DeleteSidebarListElement.vue-CBIb58rU.js} +1 -1
- package/web/assets/{EditSidebarListElement.vue-CCE5jAED.js → EditSidebarListElement.vue-DqTVSZtI.js} +1 -1
- package/web/assets/{EditorIcon-C2ppEtfo.js → EditorIcon-B70ii4EM.js} +1 -1
- package/web/assets/{EmptyState.vue-DlGCQP8X.js → EmptyState.vue-CcnWPtfW.js} +1 -1
- package/web/assets/{Environment.vue-B9fCQn_o.js → Environment.vue-Cgx06nkH.js} +1 -1
- package/web/assets/{EnvironmentForm-B6sX-gjz.js → EnvironmentForm-iBZzqZKd.js} +1 -1
- package/web/assets/{EnvironmentFormPage-LkjLL2Tx.js → EnvironmentFormPage-YVxAAreT.js} +1 -1
- package/web/assets/{EnvironmentListPage-DJrq-bw9.js → EnvironmentListPage-CHYDJ_c-.js} +1 -1
- package/web/assets/{EnvironmentModal.vue-CGuZ2LaE.js → EnvironmentModal.vue-BJNYZuPC.js} +1 -1
- package/web/assets/{EnvironmentSelector-BLJiz2gj.js → EnvironmentSelector-BZn_taec.js} +1 -1
- package/web/assets/{Form.vue-Cv791OrG.js → Form.vue-NLXFw40d.js} +1 -1
- package/web/assets/{IconSelector.vue-fCHQhHMO.js → IconSelector.vue-Ykh6DAln.js} +1 -1
- package/web/assets/{KanbanBoardPage-DhSVHsG8.js → KanbanBoardPage-gtXv0ZhK.js} +3 -3
- package/web/assets/{KanbanListPage-BeViEJtv.js → KanbanListPage-DMNSYO_o.js} +1 -1
- package/web/assets/{LaunchProjectPage-CIGYCxFP.js → LaunchProjectPage-DSyBuhky.js} +1 -1
- package/web/assets/{LaunchServicesPage-D0j30OXl.js → LaunchServicesPage-CiGkiqwE.js} +1 -1
- package/web/assets/{LogViewer-CXdJvW0h.js → LogViewer-DBVkaZnm.js} +1 -1
- package/web/assets/{ProcessControls-DL7EynVq.js → ProcessControls-Cya4eb3d.js} +1 -1
- package/web/assets/{ProcessDetailPage-DrFtEQIB.js → ProcessDetailPage-8ypC6zkc.js} +1 -1
- package/web/assets/{ProcessMetrics-DI_OfGVK.js → ProcessMetrics-CxRgbaUS.js} +1 -1
- package/web/assets/{ProjectDetailPage-BbTkdOjA.js → ProjectDetailPage-a1lTAjKP.js} +1 -1
- package/web/assets/{ProjectListPage-D5AjQ76w.js → ProjectListPage-Dewqu8Dm.js} +1 -1
- package/web/assets/{RandomJobTestPage-BqA1OISu.js → RandomJobTestPage-E6mevkqw.js} +1 -1
- package/web/assets/{Request.vue-DZqQbBpT.js → Request.vue-DQPTi6ur.js} +1 -1
- package/web/assets/{RequestAuth.vue-D_xgg-Np.js → RequestAuth.vue-DV5nNO3f.js} +1 -1
- package/web/assets/{RequestRoot.vue-BNteZz7y.js → RequestRoot.vue-DKlASKU5.js} +1 -1
- package/web/assets/{ScalarAsciiArt.vue-Bq6jHX7k.js → ScalarAsciiArt.vue-mk9jZSKh.js} +1 -1
- package/web/assets/{ScalarIconEyeSlash.vue-BmXqf-BS.js → ScalarIconEyeSlash.vue-DWKhR_BX.js} +1 -1
- package/web/assets/{ScalarIconTrash.vue-B6zURvRt.js → ScalarIconTrash.vue-CtSwrO5S.js} +1 -1
- package/web/assets/{ScenarioEditorPage-C6ezD0zR.js → ScenarioEditorPage-DogHTbNU.js} +1 -1
- package/web/assets/{ServerVariablesForm.vue-DNmYrfHr.js → ServerVariablesForm.vue-DYmWiAuz.js} +1 -1
- package/web/assets/{ServiceControlsBar-IQttXg13.js → ServiceControlsBar-B8Sm6p9E.js} +1 -1
- package/web/assets/{ServiceDetailPage-KU1gvCBw.js → ServiceDetailPage-DpWLccOg.js} +1 -1
- package/web/assets/{ServiceFormPage-DJjK3iWz.js → ServiceFormPage-DQbOgtB3.js} +1 -1
- package/web/assets/{Settings.vue-DKVhG7ed.js → Settings.vue-buoYkM3l.js} +1 -1
- package/web/assets/{SettingsPage-B_3jbuRH.js → SettingsPage-CCjZq5jP.js} +1 -1
- package/web/assets/{SetupKeyPage-CuqL0je4.js → SetupKeyPage-BdSpJPDR.js} +1 -1
- package/web/assets/{SetupPage-66SJwdOq.js → SetupPage-BsWaVllB.js} +1 -1
- package/web/assets/{Sidebar.vue-Bi6nDDuM.js → Sidebar.vue-DntMEn5m.js} +1 -1
- package/web/assets/{SidebarButton.vue-DXlFKFt7.js → SidebarButton.vue-DTin2zI2.js} +1 -1
- package/web/assets/{SidebarListElement.vue-RCpzoEDa.js → SidebarListElement.vue-zlfRLuE5.js} +1 -1
- package/web/assets/{UnlockPage-DOJwyaIc.js → UnlockPage-CmwRV1XA.js} +1 -1
- package/web/assets/{VariablesTable-DKZDozPX.js → VariablesTable-C8lxLV1V.js} +1 -1
- package/web/assets/{ViewLayout.vue-CA3dFsBE.js → ViewLayout.vue-C7w_U_o6.js} +1 -1
- package/web/assets/{ViewLayoutContent.vue-D0ZyDMeg.js → ViewLayoutContent.vue-CAXM5eIo.js} +1 -1
- package/web/assets/{ViewLayoutSection.vue-2zO572AC.js → ViewLayoutSection.vue-BzJIsja7.js} +1 -1
- package/web/assets/{active-entities-y4R6TMSt.js → active-entities-C2TbBQeI.js} +1 -1
- package/web/assets/{api-reference-BxlRg4qR.js → api-reference-BJkGMKQj.js} +1 -1
- package/web/assets/{autocomplete-6qBTCyf6.js → autocomplete-CxPmwkcZ.js} +1 -1
- package/web/assets/{card-CCBkP2P8.js → card-D5_gGGD-.js} +1 -1
- package/web/assets/{checkbox-C1esDvCD.js → checkbox-C0sXsL9e.js} +1 -1
- package/web/assets/{chip-DEYEeW-F.js → chip-rnk9_cKV.js} +1 -1
- package/web/assets/{column-aK2I8PaJ.js → column-ChvIrUdH.js} +1 -1
- package/web/assets/{core-CGdWGCUX.js → core-wYvkV3-A.js} +1 -1
- package/web/assets/{cssMode-DpoqIkov.js → cssMode-DdlczEni.js} +1 -1
- package/web/assets/{dist-BFf6fIdo.js → dist-BHh6fQzR.js} +1 -1
- package/web/assets/{dist-wmfsxjxc.js → dist-DBBhfLmf.js} +1 -1
- package/web/assets/{dist-Cu0IbGNw.js → dist-DeOvPbza.js} +1 -1
- package/web/assets/{dist-BpDjOvWf.js → dist-ZJ37S89a.js} +1 -1
- package/web/assets/{divider-Bk4Brbv7.js → divider-D6L7p-FU.js} +1 -1
- package/web/assets/{editor.store-BF8_S543.js → editor.store-CWtgIxvE.js} +1 -1
- package/web/assets/{fieldset-DA1GYALV.js → fieldset-CiwzR0un.js} +1 -1
- package/web/assets/{freemarker2-C0SgSEQX.js → freemarker2-_wLEdPSz.js} +1 -1
- package/web/assets/{handlebars-DgMfQd2U.js → handlebars-66zKrSAk.js} +1 -1
- package/web/assets/{html-XhTY3nJ1.js → html-oM24gnvF.js} +1 -1
- package/web/assets/{htmlMode-a8Q5--J-.js → htmlMode-D65_fKu-.js} +1 -1
- package/web/assets/{index-DtgzVYQA.js → index-D5xJxOo2.js} +5 -5
- package/web/assets/index-Pqvy10Qz.css +1 -0
- package/web/assets/{javascript-CF3GRA6J.js → javascript-D-njx6Yh.js} +1 -1
- package/web/assets/{jsonMode-BVI1ty1E.js → jsonMode-bqHogKpM.js} +1 -1
- package/web/assets/{keyboard-C-kSRd_7.js → keyboard-BzTLpobK.js} +1 -1
- package/web/assets/{lib-Byz6Xoc7.js → lib-CPo2W-Kx.js} +1 -1
- package/web/assets/{library-yLls1gid.js → library-DmdL5Pgv.js} +1 -1
- package/web/assets/{liquid-BTUbnx76.js → liquid-BDL70fhI.js} +1 -1
- package/web/assets/{mdx-CT9JRVqk.js → mdx-Bo_N_Jd-.js} +1 -1
- package/web/assets/{mediaTypes-C2O-9mqw.js → mediaTypes-Cnm-r_sv.js} +1 -1
- package/web/assets/{message-BP6E2kB3.js → message-gtjFpAbc.js} +1 -1
- package/web/assets/{minus-l3m1t2VR.js → minus-C5Lsl7Wp.js} +1 -1
- package/web/assets/{multiselect-Dx1fcUSk.js → multiselect-BlmCsiSW.js} +1 -1
- package/web/assets/{password-DrgM_4MT.js → password-RYOg4soC.js} +1 -1
- package/web/assets/{plus-Dz5uLOsa.js → plus-C52I3-BN.js} +1 -1
- package/web/assets/{pretty-ms-BlzIQVgC.js → pretty-ms-BBvjfSt1.js} +1 -1
- package/web/assets/process.store-3BOses3z.js +1 -0
- package/web/assets/{project.store-IkiJVnHi.js → project.store-emr8mjg8.js} +1 -1
- package/web/assets/{python-D-ygMaD7.js → python-D1UXSNgK.js} +1 -1
- package/web/assets/{radiobutton-BF_JCgK5.js → radiobutton-B0t-WlKP.js} +1 -1
- package/web/assets/{razor-Cj7iiXRp.js → razor-Bd4GOtMe.js} +1 -1
- package/web/assets/router-DHhyM3YQ.js +1 -0
- package/web/assets/{settings.store-DlrIalG7.js → settings.store-CDr0Mia7.js} +1 -1
- package/web/assets/{store-DIQ5cnJB.js → store-CZKREOuj.js} +1 -1
- package/web/assets/{tabpanel-BFvptblG.js → tabpanel-geoVG-sX.js} +1 -1
- package/web/assets/{tag-Bg6HzaCD.js → tag-Dv5CaUPa.js} +1 -1
- package/web/assets/{toggleswitch-COqZTyfv.js → toggleswitch-DNzwv4Lc.js} +1 -1
- package/web/assets/trpc-B-vyi6vd.js +1 -0
- package/web/assets/{tsMode-IV67jT9w.js → tsMode-BkM4CkKr.js} +1 -1
- package/web/assets/{typescript-Bx9S0mR5.js → typescript-CUKl0qxN.js} +1 -1
- package/web/assets/{urls-D-5DkVsl.js → urls-BqL-MrG5.js} +1 -1
- package/web/assets/{use-tree-walker-Xi56Kyhe.js → use-tree-walker-E64HILpa.js} +1 -1
- package/web/assets/useAiChatDrawer-uS6dsG6x.js +1 -0
- package/web/assets/{useClipboard-CQwV_ErZ.js → useClipboard-Bep2crMO.js} +1 -1
- package/web/assets/{useLayout-CtomPxVB.js → useLayout-F9XKAPPL.js} +1 -1
- package/web/assets/{usePluginManager-B0LLVYIo.js → usePluginManager-yL67GqCi.js} +1 -1
- package/web/assets/{useSidebar-lFxMzh7T.js → useSidebar-DVRRagIa.js} +1 -1
- package/web/assets/{vue-router-DyWP0jFg.js → vue-router-uE6ClrN-.js} +1 -1
- package/web/assets/{xml-Chbr5k8r.js → xml-DMOW2yTg.js} +1 -1
- package/web/assets/{yaml-W-9gxiit.js → yaml-D2q3K0ZL.js} +1 -1
- package/web/index.html +2 -2
- package/web/assets/AiChatPage-DHXHJArt.js +0 -1
- package/web/assets/CollectionCookies.vue-giwIx9Oo.js +0 -1
- package/web/assets/CollectionScripts.vue-CfmQLF4T.js +0 -1
- package/web/assets/CollectionSync.vue-Cvrk773s.js +0 -1
- package/web/assets/index-BRDI9Dib.css +0 -1
- package/web/assets/process.store-Bt4k1TZl.js +0 -1
- package/web/assets/router-DcgtzWsZ.js +0 -1
- package/web/assets/trpc-tQqsDgwJ.js +0 -1
- package/web/assets/useAiChatDrawer-CaLJAha9.js +0 -1
|
@@ -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-D5xJxOo2.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-D5xJxOo2.js";import{H as o}from"./dist-ZJ37S89a.js";import{t as s}from"./_plugin-vue_export-helper-C7ztIXtE.js";import{t as c}from"./ScalarAsciiArt.vue-mk9jZSKh.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-D5xJxOo2.js";import{V as x,hn as S,n as C,r as w}from"./dist-ZJ37S89a.js";import"./dist-DBBhfLmf.js";import{t as ne}from"./store-CZKREOuj.js";import"./w3c-keyname-DDCGDLuI.js";import{i as re,r as ie}from"./vue-router-uE6ClrN-.js";import{t as ae}from"./CodeInput.vue-8aNMYCYM.js";import{n as T,t as oe}from"./active-entities-C2TbBQeI.js";import{t as se}from"./Sidebar.vue-DntMEn5m.js";import{t as ce}from"./useSidebar-DVRRagIa.js";import{t as le}from"./library-DmdL5Pgv.js";import{n as ue}from"./dist-DeOvPbza.js";import{t as de}from"./ViewLayout.vue-C7w_U_o6.js";import{t as fe}from"./ViewLayoutContent.vue-CAXM5eIo.js";import"./useClipboard-Bep2crMO.js";import{t as pe}from"./ViewLayoutSection.vue-BzJIsja7.js";import"./CommandActionInput.vue-L7AcEf6T.js";import"./dist-BHh6fQzR.js";import"./DeleteSidebarListElement.vue-CBIb58rU.js";import{t as me}from"./EditSidebarListElement.vue-DqTVSZtI.js";import{n as he,t as ge}from"./EnvironmentModal.vue-BJNYZuPC.js";import{t as _e}from"./SidebarButton.vue-DTin2zI2.js";import{n as ve,t as E}from"./SidebarListElement.vue-zlfRLuE5.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,Bi as t,Ca as n,Cn as r,Dn as i,Ea as a,Gn as o,H as s,I as ee,Ii as te,In as c,K as l,Kr as u,L as ne,Oi as d,R as re,Sr as f,Vn as p,W as ie,Wi as m,Xn as h,Y as g,Yn as ae,_i as _,ci as v,di as y,fi as b,gi as x,ha as S,it as oe,j as se,ka as C,li as w,pr as T,q as E,ra as D,ri as O,rr as k,sr as A,tr as j,ui as M,yi as N,yr as P,z as ce}from"./index-
|
|
1
|
+
import{$i as e,Bi as t,Ca as n,Cn as r,Dn as i,Ea as a,Gn as o,H as s,I as ee,Ii as te,In as c,K as l,Kr as u,L as ne,Oi as d,R as re,Sr as f,Vn as p,W as ie,Wi as m,Xn as h,Y as g,Yn as ae,_i as _,ci as v,di as y,fi as b,gi as x,ha as S,it as oe,j as se,ka as C,li as w,pr as T,q as E,ra as D,ri as O,rr as k,sr as A,tr as j,ui as M,yi as N,yr as P,z as ce}from"./index-D5xJxOo2.js";import{t as le}from"./tag-Dv5CaUPa.js";import{n as ue,t as F}from"./column-ChvIrUdH.js";import{t as de}from"./toggleswitch-DNzwv4Lc.js";import{t as I}from"./fieldset-CiwzR0un.js";import{t as fe}from"./multiselect-BlmCsiSW.js";import{a as pe,i as me,n as he,r as L,t as R}from"./tabpanel-geoVG-sX.js";import{n as ge,t as _e}from"./VariablesTable-C8lxLV1V.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{A as e,Bi as t,Bn as n,Ca as r,Cn as i,Dn as a,Gn as o,Ii as s,Yn as c,_i as l,ci as u,di as d,fi as f,ha as p,it as m,ka as h,li as g,rt as _,ui as v,yi as y,zn as b}from"./index-
|
|
1
|
+
import{A as e,Bi as t,Bn as n,Ca as r,Cn as i,Dn as a,Gn as o,Ii as s,Yn as c,_i as l,ci as u,di as d,fi as f,ha as p,it as m,ka as h,li as g,rt as _,ui as v,yi as y,zn as b}from"./index-D5xJxOo2.js";import{t as x}from"./EnvironmentForm-iBZzqZKd.js";import"./VariablesTable-C8lxLV1V.js";var S={class:`environment-form-page`},C={class:`header`},w={key:0,class:`loading`},T={key:1,class:`form-container`},E=i(y({__name:`EnvironmentFormPage`,setup(i){let{t:y}=c(),E=b(),D=n(),O=m(),k=o(),A=u(()=>E.params.projectId),j=u(()=>E.params.id),M=u(()=>!!j.value),N=p(!1),P=p(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:`,_(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:y(`environmentFormPage.updated`),detail:`"${e.name}" ${y(`environmentFormPage.updatedDesc`)}`,life:3e3})):(await O.create(e),k.add({severity:`success`,summary:y(`environmentFormPage.created`),detail:`"${e.name}" ${y(`environmentFormPage.createdDesc`)}`,life:3e3}),L())}catch(e){console.error(`Save failed:`,_(e)),k.add({severity:`error`,summary:y(`environmentFormPage.saveFailed`),detail:_(e)??y(`environmentFormPage.saveFailedDesc`),life:5e3})}}function L(){D.back()}return s(async()=>{O.environments.length===0&&await O.fetchAll(A.value),M.value&&await F()}),(n,i)=>(t(),f(`div`,S,[g(`div`,C,[l(r(a),{icon:`pi pi-arrow-left`,text:``,onClick:L,class:`back-button`}),g(`h1`,null,h(M.value?r(y)(`environmentFormPage.editTitle`):r(y)(`environmentFormPage.createTitle`)),1),i[0]||=g(`div`,{style:{width:`40px`}},null,-1)]),N.value?(t(),f(`div`,w,[l(r(e))])):(t(),f(`div`,T,[P.value||!M.value?(t(),v(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`])):d(``,!0)]))]))}}),[[`__scopeId`,`data-v-f667ca1c`]]);export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,Bi as t,Bn as ee,Ca as n,Cn as r,Dn as i,Ea as a,Gi as te,Gn as o,Hi as s,Ii as c,Oa as l,Tn as ne,Wn as u,Yn as d,_i as f,ai as p,ci as m,di as h,fi as g,gi as _,ha as v,ia as y,it as b,ka as x,li as S,ra as C,ri as w,rt as T,ui as E,yi as D,zn as re}from"./index-
|
|
1
|
+
import{A as e,Bi as t,Bn as ee,Ca as n,Cn as r,Dn as i,Ea as a,Gi as te,Gn as o,Hi as s,Ii as c,Oa as l,Tn as ne,Wn as u,Yn as d,_i as f,ai as p,ci as m,di as h,fi as g,gi as _,ha as v,ia as y,it as b,ka as x,li as S,ra as C,ri as w,rt as T,ui as E,yi as D,zn as re}from"./index-D5xJxOo2.js";import{t as ie}from"./project.store-emr8mjg8.js";import{t as O}from"./tag-Dv5CaUPa.js";import{t as k}from"./card-D5_gGGD-.js";import{t as A}from"./EnvironmentForm-iBZzqZKd.js";import"./VariablesTable-C8lxLV1V.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=r(D({__name:`EnvironmentListPage`,setup(r){let{t:D}=d(),U=re(),W=ee(),G=b(),K=ie(),q=u(),J=o(),Y=m(()=>U.params.projectId),X=v(!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:D(`environmentList.created`),detail:D(`environmentList.createdDesc`),life:3e3})}catch(e){J.add({severity:`error`,summary:D(`environmentList.createError`),detail:T(e)??D(`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:D(`environmentList.defaultSet`),detail:D(`environmentList.defaultSetDesc`),life:3e3})}catch(e){J.add({severity:`error`,summary:D(`environmentList.failedToSetDefault`),detail:T(e),life:5e3})}}async function ue(e){try{await K.setActiveEnvironment(Y.value,e),await G.fetchAll(Y.value),J.add({severity:`success`,summary:D(`environmentList.activated`),life:3e3})}catch(e){J.add({severity:`error`,summary:D(`environmentList.failedToActivate`),detail:T(e),life:5e3})}}function de(e,t){q.require({message:D(`environmentList.deleteConfirmMsg`,{name:t}),header:D(`environmentList.deleteTitle`),icon:`pi pi-exclamation-triangle`,accept:async()=>{try{await G.deleteEnv(e),J.add({severity:`success`,summary:D(`environmentList.deleted`),detail:D(`environmentList.deletedDesc`),life:3e3})}catch(e){J.add({severity:`error`,summary:D(`environmentList.failedToDelete`),detail:T(e),life:5e3})}}})}return(ee,r)=>{let o=te(`tooltip`);return t(),g(`div`,j,[S(`div`,M,[S(`div`,null,[S(`h1`,null,x(n(D)(`environmentList.title`)),1),S(`p`,N,x(n(D)(`environmentList.subtitle`)),1)]),f(n(i),{onClick:r[0]||=e=>X.value=!0,icon:`pi pi-plus`,label:n(D)(`environmentList.createButton`)},null,8,[`label`])]),n(G).loading?(t(),g(`div`,P,[f(n(e))])):(t(),g(`div`,F,[(t(!0),g(p,null,s(oe.value,e=>(t(),E(n(k),{key:e.id,class:a([`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:C(()=>[S(`div`,I,[S(`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),S(`span`,null,x(e.name),1)]),S(`div`,R,[e.immutable?(t(),E(n(O),{key:0,severity:`warning`,value:n(D)(`environmentList.immutableBadge`)},null,8,[`value`])):h(``,!0),e.id===Z.value?(t(),E(n(O),{key:1,severity:`success`,value:n(D)(`environmentList.activeBadge`)},null,8,[`value`])):h(``,!0),S(`i`,{class:a([`star-default pi`,e.default?`pi-star-fill`:`pi-star`]),title:e.default?n(D)(`environmentList.defaultEnv`):n(D)(`environmentList.setAsDefault`),onClick:w(t=>!e.default&&le(e.id),[`stop`])},null,10,z)])])]),content:C(()=>[e.description?(t(),g(`p`,B,x(e.description),1)):h(``,!0),e.parentIds.length>0?(t(),g(`p`,V,[r[3]||=S(`strong`,null,`Parents:`,-1),_(` `+x(se(e.parentIds).join(`, `)),1)])):h(``,!0),S(`p`,H,[r[4]||=S(`strong`,null,`Variables:`,-1),_(` `+x(Object.keys(e.variables??{}).length),1)])]),footer:C(()=>[S(`div`,ae,[e.id!==Z.value&&!e.immutable?y((t(),E(n(i),{key:0,onClick:w(t=>ue(e.id),[`stop`]),text:``,rounded:``,icon:`pi pi-check`},null,8,[`onClick`])),[[o,n(D)(`environmentList.activateButton`),void 0,{top:!0}]]):h(``,!0),y(f(n(i),{onClick:w(t=>$(e.id),[`stop`]),text:``,rounded:``,icon:`pi pi-pencil`},null,8,[`onClick`]),[[o,n(D)(`environmentList.editButton`),void 0,{top:!0}]]),!e.immutable&&e.id!==Z.value?y((t(),E(n(i),{key:1,onClick:w(t=>de(e.id,e.name),[`stop`]),text:``,rounded:``,icon:`pi pi-trash`,severity:`danger`,"data-testid":`env-delete-btn`},null,8,[`onClick`])),[[o,n(D)(`environmentList.deleteButton`),void 0,{top:!0}]]):h(``,!0)])]),_:2},1032,[`class`,`style`,`onClick`]))),128))])),f(n(ne),{visible:X.value,"onUpdate:visible":r[2]||=e=>X.value=e,header:n(D)(`environments.createEnvironment`),style:{width:`600px`}},{default:C(()=>[f(A,{"project-id":Y.value,onSave:ce,onCancel:r[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-D5xJxOo2.js";import{V as x,hn as S,n as C,z as w}from"./dist-ZJ37S89a.js";import{t as T}from"./store-CZKREOuj.js";import{n as E}from"./dist-DeOvPbza.js";import{n as D,t as O}from"./CommandActionInput.vue-L7AcEf6T.js";import{n as k}from"./DeleteSidebarListElement.vue-CBIb58rU.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{Bi as e,Ca as t,Cn as n,Oa as r,W as i,Yn as a,_i as o,ci as s,di as c,fi as l,it as u,ka as d,li as f,ra as p,yi as m}from"./index-
|
|
1
|
+
import{Bi as e,Ca as t,Cn as n,Oa as r,W as i,Yn as a,_i as o,ci as s,di as c,fi as l,it as u,ka as d,li as f,ra as p,yi as m}from"./index-D5xJxOo2.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=n(m({__name:`EnvironmentSelector`,props:{modelValue:{},disabled:{type:Boolean}},emits:[`update:modelValue`],setup(n,{emit:m}){let b=m,{t:x}=a(),S=u(),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(a,s)=>(e(),l(`div`,h,[f(`label`,g,d(t(x)(`environmentSelector.label`)),1),o(t(i),{id:`env-select`,"model-value":n.modelValue,options:C.value,"option-label":`name`,"option-value":`id`,"onUpdate:modelValue":E,placeholder:t(x)(`environmentSelector.placeholder`),disabled:n.disabled},{value:p(t=>[t.value?(e(),l(`div`,_,[T(t.value)?.color||T(t.value)?.bgColor?(e(),l(`span`,{key:0,class:`env-dot`,style:r({backgroundColor:w(T(t.value)?.bgColor)||w(T(t.value)?.color)})},null,4)):c(``,!0),f(`span`,null,d(T(t.value)?.name??t.value),1)])):(e(),l(`span`,v,d(t.placeholder),1))]),option:p(t=>[f(`div`,y,[t.option.color||t.option.bgColor?(e(),l(`span`,{key:0,class:`env-dot`,style:r({backgroundColor:w(t.option.bgColor)||w(t.option.color)})},null,4)):c(``,!0),f(`span`,null,d(t.option.name),1)])]),_:1},8,[`model-value`,`options`,`placeholder`,`disabled`])]))}}),[[`__scopeId`,`data-v-7119182f`]]);export{b as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bi as e,Ca as t,Ea as n,Hi as r,Ui as i,Yi as a,_i as o,ai as s,di as c,fi as l,ka as u,li as d,mi as f,ra as p,ui as m,yi as h}from"./index-
|
|
1
|
+
import{Bi as e,Ca as t,Ea as n,Hi as r,Ui as i,Yi as a,_i as o,ai as s,di as c,fi as l,ka as u,li as d,mi as f,ra as p,ui as m,yi as h}from"./index-D5xJxOo2.js";import{V as g}from"./dist-ZJ37S89a.js";import{t as _}from"./active-entities-C2TbBQeI.js";import{t as v}from"./ViewLayoutSection.vue-BzJIsja7.js";import{n as y,t as b}from"./DataTable.vue-DYVeGQPP.js";import{t as x}from"./DataTableInput.vue-uPpuKzrX.js";var S={key:0},C={class:`flex flex-1 flex-col gap-1.5`},w=[`for`],T={class:`centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5`},E=h({__name:`Form`,props:{title:{},options:{},data:{},onUpdate:{type:Function}},setup(h){let{activeEnvVariables:E,activeEnvironment:D,activeWorkspace:O}=_(),k=a();return(a,_)=>(e(),m(v,{class:`last:rounded-b-lg`},f({default:p(()=>[d(`div`,C,[Object.keys(h.data).length>0&&t(O)?(e(),m(b,{key:0,columns:[``],class:`rounded-b-lg`},{default:p(()=>[(e(!0),l(s,null,r(h.options,(r,i)=>(e(),m(y,{key:i,class:n({"border-t":i===0})},{default:p(()=>[o(x,{class:`pr-9`,lineWrapping:``,id:t(k),envVariables:t(E),environment:t(D),modelValue:h.data[r.key]??``,placeholder:r.placeholder,workspace:t(O),"onUpdate:modelValue":e=>h.onUpdate(r.key,e)},f({default:p(()=>[d(`label`,{for:t(k)},u(r.label),9,w)]),_:2},[r.key===`description`?{name:`icon`,fn:p(()=>[d(`div`,T,[o(t(g),{icon:`Markdown`,size:`lg`})])]),key:`0`}:void 0]),1032,[`id`,`envVariables`,`environment`,`modelValue`,`placeholder`,`workspace`,`onUpdate:modelValue`])]),_:2},1032,[`class`]))),128))]),_:1})):c(``,!0)])]),_:2},[h.title||a.$slots.title?{name:`title`,fn:p(()=>[h.title?(e(),l(`span`,S,u(h.title),1)):i(a.$slots,`title`,{key:1})]),key:`0`}:void 0]),1024))}});export{E as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as e,Bi as t,Ca as n,Hi as r,Ii as i,Ri as a,Si as o,Ui as s,Vi as c,_i as l,ai as u,ci as d,fi as f,gi as p,ha as m,ka as h,li as g,ra as _,ui as v,va as y,wi as b,yi as x}from"./index-
|
|
1
|
+
import{$i as e,Bi as t,Ca as n,Hi as r,Ii as i,Ri as a,Si as o,Ui as s,Vi as c,_i as l,ai as u,ci as d,fi as f,gi as p,ha as m,ka as h,li as g,ra as _,ui as v,va as y,wi as b,yi as x}from"./index-D5xJxOo2.js";import{O as S}from"./dist-ZJ37S89a.js";import{a as C,c as w,n as T,r as E,s as D,t as O}from"./keyboard-BzTLpobK.js";import{a as k,i as A,n as j,r as M,t as N,u as P}from"./use-tree-walker-E64HILpa.js";import{n as F,t as I}from"./library-DmdL5Pgv.js";function L(e,t,n){let r=m(n?.value),i=d(()=>e.value!==void 0);return[d(()=>i.value?e.value:r.value),function(e){return i.value||(r.value=e),t?.(e)}]}var R=(e=>(e[e.None=1]=`None`,e[e.Focusable=2]=`Focusable`,e[e.Hidden=4]=`Hidden`,e))(R||{}),z=x({name:`Hidden`,props:{as:{type:[Object,String],default:`div`},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:r,...i}=e;return T({ourProps:{"aria-hidden":(r&2)==2?!0:i[`aria-hidden`]??void 0,hidden:(r&4)==4?!0:void 0,style:{position:`fixed`,top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,...(r&4)==4&&(r&2)!=2&&{display:`none`}}},theirProps:i,slot:{},attrs:n,slots:t,name:`Hidden`})}}});function B(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))H(n,V(t,r),i);return n}function V(e,t){return e?e+`[`+t+`]`:t}function H(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())H(e,V(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n==`boolean`?e.push([t,n?`1`:`0`]):typeof n==`string`?e.push([t,n]):typeof n==`number`?e.push([t,`${n}`]):n==null?e.push([t,``]):B(n,t,e)}function U(e){var t;let n=e?.form??e.closest(`form`);if(n){for(let t of n.elements)if(t!==e&&(t.tagName===`INPUT`&&t.type===`submit`||t.tagName===`BUTTON`&&t.type===`submit`||t.nodeName===`INPUT`&&t.type===`image`)){t.click();return}(t=n.requestSubmit)==null||t.call(n)}}var W=Symbol(`DescriptionContext`);function G(){let e=b(W,null);if(e===null)throw Error(`Missing parent`);return e}function K({slot:e=m({}),name:t=`Description`,props:n={}}={}){let r=m([]);function i(e){return r.value.push(e),()=>{let t=r.value.indexOf(e);t!==-1&&r.value.splice(t,1)}}return c(W,{register:i,slot:e,name:t,props:n}),d(()=>r.value.length>0?r.value.join(` `):void 0)}x({name:`Description`,props:{as:{type:[Object,String],default:`p`},id:{type:String,default:null}},setup(e,{attrs:t,slots:r}){let o=e.id??`headlessui-description-${w()}`,s=G();return i(()=>a(s.register(o))),()=>{let{name:i=`Description`,slot:a=m({}),props:c={}}=s,{...l}=e;return T({ourProps:{...Object.entries(c).reduce((e,[t,r])=>Object.assign(e,{[t]:n(r)}),{}),id:o},theirProps:l,slot:a.value,attrs:t,slots:r,name:i})}}});var q=Symbol(`LabelContext`);function J(){let e=b(q,null);if(e===null){let e=Error(`You used a <Label /> component, but it is not inside a parent.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,J),e}return e}function Y({slot:e={},name:t=`Label`,props:n={}}={}){let r=m([]);function i(e){return r.value.push(e),()=>{let t=r.value.indexOf(e);t!==-1&&r.value.splice(t,1)}}return c(q,{register:i,slot:e,name:t,props:n}),d(()=>r.value.length>0?r.value.join(` `):void 0)}var X=x({name:`Label`,props:{as:{type:[Object,String],default:`label`},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:r}){let o=e.id??`headlessui-label-${w()}`,s=J();return i(()=>a(s.register(o))),()=>{let{name:i=`Label`,slot:a={},props:c={}}=s,{passive:l,...u}=e,d={...Object.entries(c).reduce((e,[t,r])=>Object.assign(e,{[t]:n(r)}),{}),id:o};return l&&(delete d.onClick,delete d.htmlFor,delete u.onClick),T({ourProps:d,theirProps:u,slot:a,attrs:r,slots:t,name:i})}}});function ee(e,t){return e===t}var Z=Symbol(`RadioGroupContext`);function Q(e){let t=b(Z,null);if(t===null){let t=Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Q),t}return t}var te=x({name:`RadioGroup`,emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:`div`},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>ee},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},id:{type:String,default:null}},inheritAttrs:!1,setup(t,{emit:n,attrs:r,slots:a,expose:s}){let l=t.id??`headlessui-radiogroup-${w()}`,f=m(null),p=m([]),h=Y({name:`RadioGroupLabel`}),g=K({name:`RadioGroupDescription`});s({el:f,$el:f});let[_,v]=L(d(()=>t.modelValue),e=>n(`update:modelValue`,e),d(()=>t.defaultValue)),b={options:p,value:_,disabled:d(()=>t.disabled),firstOption:d(()=>p.value.find(e=>!e.propsRef.disabled)),containsCheckedOption:d(()=>p.value.some(e=>b.compare(y(e.propsRef.value),y(t.modelValue)))),compare(e,n){if(typeof t.by==`string`){let r=t.by;return e?.[r]===n?.[r]}return t.by(e,n)},change(e){if(t.disabled||b.compare(y(_.value),y(e)))return!1;let n=p.value.find(t=>b.compare(y(t.propsRef.value),y(e)))?.propsRef;return n!=null&&n.disabled?!1:(v(e),!0)},registerOption(e){p.value.push(e),p.value=M(p.value,e=>e.element)},unregisterOption(e){let t=p.value.findIndex(t=>t.id===e);t!==-1&&p.value.splice(t,1)}};c(Z,b),N({container:d(()=>D(f)),accept(e){return e.getAttribute(`role`)===`radio`?NodeFilter.FILTER_REJECT:e.hasAttribute(`role`)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(e){e.setAttribute(`role`,`none`)}});function x(e){if(!f.value||!f.value.contains(e.target))return;let t=p.value.filter(e=>e.propsRef.disabled===!1).map(e=>e.element);switch(e.key){case O.Enter:U(e.currentTarget);break;case O.ArrowLeft:case O.ArrowUp:if(e.preventDefault(),e.stopPropagation(),A(t,j.Previous|j.WrapAround)===k.Success){let e=p.value.find(e=>e.element===P(f)?.activeElement);e&&b.change(e.propsRef.value)}break;case O.ArrowRight:case O.ArrowDown:if(e.preventDefault(),e.stopPropagation(),A(t,j.Next|j.WrapAround)===k.Success){let e=p.value.find(e=>e.element===P(e.element)?.activeElement);e&&b.change(e.propsRef.value)}break;case O.Space:{e.preventDefault(),e.stopPropagation();let t=p.value.find(e=>e.element===P(e.element)?.activeElement);t&&b.change(t.propsRef.value)}break}}let S=d(()=>D(f)?.closest(`form`));return i(()=>{e([S],()=>{if(!S.value||t.defaultValue===void 0)return;function e(){b.change(t.defaultValue)}return S.value.addEventListener(`reset`,e),()=>{var t;(t=S.value)==null||t.removeEventListener(`reset`,e)}},{immediate:!0})}),()=>{let{disabled:e,name:n,form:i,...s}=t,c={ref:f,id:l,role:`radiogroup`,"aria-labelledby":h.value,"aria-describedby":g.value,onKeydown:x};return o(u,[...n!=null&&_.value!=null?B({[n]:_.value}).map(([t,n])=>o(z,E({features:R.Hidden,key:t,as:`input`,type:`hidden`,hidden:!0,readOnly:!0,form:i,disabled:e,name:t,value:n}))):[],T({ourProps:c,theirProps:{...r,...C(s,[`modelValue`,`defaultValue`,`by`])},slot:{},attrs:r,slots:a,name:`RadioGroup`})])}}}),ne=(e=>(e[e.Empty=1]=`Empty`,e[e.Active=2]=`Active`,e))(ne||{}),re=x({name:`RadioGroupOption`,props:{as:{type:[Object,String],default:`div`},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=e.id??`headlessui-radiogroup-option-${w()}`,s=Q(`RadioGroupOption`),c=Y({name:`RadioGroupLabel`}),l=K({name:`RadioGroupDescription`}),u=m(null),f=d(()=>({value:e.value,disabled:e.disabled})),p=m(1);r({el:u,$el:u});let h=d(()=>D(u));i(()=>s.registerOption({id:o,element:h,propsRef:f})),a(()=>s.unregisterOption(o));let g=d(()=>s.firstOption.value?.id===o),_=d(()=>s.disabled.value||e.disabled),v=d(()=>s.compare(y(s.value.value),y(e.value))),b=d(()=>_.value?-1:v.value||!s.containsCheckedOption.value&&g.value?0:-1);function x(){var t;s.change(e.value)&&(p.value|=2,(t=D(u))==null||t.focus())}function S(){p.value|=2}function C(){p.value&=-3}return()=>{let{value:r,disabled:i,...a}=e,s={checked:v.value,disabled:_.value,active:!!(p.value&2)};return T({ourProps:{id:o,ref:u,role:`radio`,"aria-checked":v.value?`true`:`false`,"aria-labelledby":c.value,"aria-describedby":l.value,"aria-disabled":_.value?!0:void 0,tabIndex:b.value,onClick:_.value?void 0:x,onFocus:_.value?void 0:S,onBlur:_.value?void 0:C},theirProps:a,slot:s,attrs:t,slots:n,name:`RadioGroupOption`})}}}),$=X,ie={class:`flex text-sm`},ae={class:`bg-b-1 custom-scroll grid w-dvw max-w-[420px] auto-rows-[32px] grid-cols-[repeat(auto-fill,minmax(32px,1fr))] content-between justify-between rounded border p-1`},oe=x({__name:`IconSelector`,props:{modelValue:{},placement:{}},emits:[`update:modelValue`],setup(e,{emit:i}){let a=e,o=i,c=d({get:()=>a.modelValue,set:e=>o(`update:modelValue`,e)});return(i,a)=>(t(),v(n(S),{class:`bg-b-2 rounded`,focus:``,placement:e.placement??`bottom`},{popover:_(({close:e})=>[l(n(te),{modelValue:c.value,"onUpdate:modelValue":a[0]||=e=>c.value=e,class:`flex flex-col`},{default:_(()=>[g(`div`,ie,[l(n($),{class:`text-c-2 px-1 py-1`},{default:_(()=>[s(i.$slots,`title`,{},()=>[a[1]||=p(`Select an icon`,-1)])]),_:3})]),g(`ul`,ae,[(t(!0),f(u,null,r(n(F),r=>(t(),v(n(re),{key:r.src,as:`li`,class:`text-c-3 hover:text-c-2 hover:bg-b-2 ui-checked:bg-b-3 ui-active:bg-b-2 flex cursor-pointer items-center justify-center rounded p-2`,value:r.src,onClick:e},{default:_(()=>[l(n($),{class:`sr-only`},{default:_(()=>[p(h(r.src.replaceAll(`-`,` `))+` Icon `,1)]),_:2},1024),l(n(I),{class:`stroke-[1.5]`,src:r.src},null,8,[`src`])]),_:2},1032,[`value`,`onClick`]))),128))])]),_:2},1032,[`modelValue`])]),default:_(()=>[s(i.$slots,`default`)]),_:3},8,[`placement`]))}});export{oe as t};
|