zenml-nightly 0.84.2.dev20250827__py3-none-any.whl → 0.84.3.dev20250829__py3-none-any.whl
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.
- zenml/VERSION +1 -1
- zenml/cli/login.py +30 -19
- zenml/cli/server.py +6 -10
- zenml/login/credentials.py +27 -0
- zenml/login/credentials_store.py +80 -80
- zenml/login/pro/client.py +74 -54
- zenml/login/pro/utils.py +1 -3
- zenml/utils/package_utils.py +1 -1
- zenml/zen_server/dashboard/assets/{404-CMbwR10f.js → 404-JcbBcNWG.js} +1 -1
- zenml/zen_server/dashboard/assets/{AlertDialogDropdownItem-BpLj419i.js → AlertDialogDropdownItem-DuTp8JFP.js} +1 -1
- zenml/zen_server/dashboard/assets/{ButtonGroup-DVhzbQxV.js → ButtonGroup-B9_gfcC-.js} +1 -1
- zenml/zen_server/dashboard/assets/{CodeSnippet-B7Wd4R8u.js → CodeSnippet-D7OZMz7I.js} +1 -1
- zenml/zen_server/dashboard/assets/{CollapsibleCard-DSZzbjx5.js → CollapsibleCard-Aqd_AiGn.js} +1 -1
- zenml/zen_server/dashboard/assets/{ComponentBadge-MVT08kBV.js → ComponentBadge-BVRb7wgm.js} +1 -1
- zenml/zen_server/dashboard/assets/{ComponentIcon-C9AY8usJ.js → ComponentIcon-CWDJZO4Q.js} +1 -1
- zenml/zen_server/dashboard/assets/{DeleteAlertDialog-CzhTVQaC.js → DeleteAlertDialog-C5z9RupH.js} +1 -1
- zenml/zen_server/dashboard/assets/{DialogItem-DD_7v3UY.js → DialogItem-Ce3ugDgT.js} +1 -1
- zenml/zen_server/dashboard/assets/{Error-Cakgjexo.js → Error-BGej6F2q.js} +1 -1
- zenml/zen_server/dashboard/assets/{ExecutionStatus-CQbWovhV.js → ExecutionStatus-BhDlfndt.js} +1 -1
- zenml/zen_server/dashboard/assets/{Helpbox-7FZpmsHB.js → Helpbox-CQjyNo0n.js} +1 -1
- zenml/zen_server/dashboard/assets/{Infobox-DnduZjNU.js → Infobox-CXOIY92f.js} +1 -1
- zenml/zen_server/dashboard/assets/{LeftSideMenu-D5UEs4vB.js → LeftSideMenu-DGICatl7.js} +1 -1
- zenml/zen_server/dashboard/assets/{NestedCollapsible-0yviIfaA.js → NestedCollapsible-DmryIMwk.js} +1 -1
- zenml/zen_server/dashboard/assets/{NumberBox-C2Pju4PR.js → NumberBox-7OIA56xe.js} +1 -1
- zenml/zen_server/dashboard/assets/{Pagination-C1sE5Nzn.js → Pagination-CVYIgR9l.js} +1 -1
- zenml/zen_server/dashboard/assets/{Partials-DosysQMU.js → Partials-NicibWrh.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProCta-CUkpV3PJ.js → ProCta-DspRnbtD.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProviderIcon-aQjTuTRX.js → ProviderIcon-DwKsXziU.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProviderRadio-C6pLVNxC.js → ProviderRadio-BixXi4GC.js} +1 -1
- zenml/zen_server/dashboard/assets/{RunsBody-CZAiSxYK.js → RunsBody-BSOSIxRG.js} +1 -1
- zenml/zen_server/dashboard/assets/{SearchField-Byv1PtST.js → SearchField-BbwrusMV.js} +1 -1
- zenml/zen_server/dashboard/assets/{SecretTooltip-CErfhVgF.js → SecretTooltip-BsFul9Oe.js} +1 -1
- zenml/zen_server/dashboard/assets/{SetPassword-C4OH-cn1.js → SetPassword-D-V7D0OR.js} +1 -1
- zenml/zen_server/dashboard/assets/{SheetHeader-Bb3v9rha.js → SheetHeader-xumE4haD.js} +1 -1
- zenml/zen_server/dashboard/assets/{StackComponentList-D85oab98.js → StackComponentList-CLnkE6-6.js} +1 -1
- zenml/zen_server/dashboard/assets/{StackList-DSAjbVb5.js → StackList-DhsbaNva.js} +1 -1
- zenml/zen_server/dashboard/assets/{Tabs-2uwqXsdL.js → Tabs-CkY3GwhK.js} +1 -1
- zenml/zen_server/dashboard/assets/{Tick-BQ7_xDBl.js → Tick-Bo7jwBjb.js} +1 -1
- zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-DNkYgzN6.js → UpdatePasswordSchemas-BP4hg95A.js} +1 -1
- zenml/zen_server/dashboard/assets/{Wizard-2FIi8JNY.js → Wizard-0nbnAM1R.js} +1 -1
- zenml/zen_server/dashboard/assets/{WizardFooter-DQEnlDmZ.js → WizardFooter-CLPi4VBo.js} +1 -1
- zenml/zen_server/dashboard/assets/{all-pipeline-runs-query-CdvWtiAY.js → all-pipeline-runs-query-mPYeJsKz.js} +1 -1
- zenml/zen_server/dashboard/assets/{bulk-delete-wdObjfps.js → bulk-delete-Bgf_MsSj.js} +1 -1
- zenml/zen_server/dashboard/assets/{configuration-form-BbcNBQTO.js → configuration-form-Bnyw4-V5.js} +1 -1
- zenml/zen_server/dashboard/assets/{constants-DfvsDtcH.js → constants-Ddhz1mpL.js} +1 -1
- zenml/zen_server/dashboard/assets/{create-stack-D4Sf7QpF.js → create-stack-BpTy7-E4.js} +1 -1
- zenml/zen_server/dashboard/assets/{delete-run-XSre8ru-.js → delete-run-MHYb1wuH.js} +1 -1
- zenml/zen_server/dashboard/assets/form-VRON3-kT.js +1 -0
- zenml/zen_server/dashboard/assets/{form-schemas-BjWDRvGd.js → form-schemas-CpTCEVoG.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-BYHxFvoG.js → index-BYCBKUXk.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-CO6UN3UX.js → index-Ci5z7q6x.js} +2 -2
- zenml/zen_server/dashboard/assets/{index-d_QrPL-8.js → index-D_-iUPTg.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-BYzR7YrM.js → index-rnWXXblA.js} +1 -1
- zenml/zen_server/dashboard/assets/{layout-Cyc-V16c.js → layout-DhFllShI.js} +1 -1
- zenml/zen_server/dashboard/assets/{login-mutation-CDgTlQBD.js → login-mutation-DOxF97JV.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-Bncp08FW.js → page-62MHYKGv.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-CMvcoaSZ.js → page-6YPAQ0BU.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-CEHZzQ1Q.js → page-8ZbMMHB-.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-D654xHWd.js → page-AWVW_lra.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-BnZEAhNn.js → page-B1rTgWkQ.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-BbsvGfyi.js → page-B5YCjh4t.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DgOEl3Bc.js → page-BDawWKR9.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DOnAInjC.js → page-BFzVhfws.js} +1 -1
- zenml/zen_server/dashboard/assets/page-BaQw51KO.js +1 -0
- zenml/zen_server/dashboard/assets/{page-C4Jnp1qP.js → page-Bh4TFAum.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-CGtll3Jk.js → page-BjuIRasU.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-43SWdz4k.js → page-BoQ_Wheb.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-Du6bFZTS.js → page-Bs6NTqHo.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-B4QBxV0B.js → page-Bsiqb0ZN.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-AOVMuHDc.js → page-C09_xoEs.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-O5xnz_nW.js → page-CI0U7nE4.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-C9IsnFid.js → page-CId8DuKX.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-CzDjN1wE.js → page-CJSSCJ58.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-B8ict_cR.js → page-CJXxkmGx.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DgblJuXC.js → page-CS3tgRFg.js} +1 -1
- zenml/zen_server/dashboard/assets/page-Cd8VCEYG.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DsFXol8x.js → page-CicaAxfg.js} +1 -1
- zenml/zen_server/dashboard/assets/page-CkFIY_Cg.js +1 -0
- zenml/zen_server/dashboard/assets/{page-BnAMyQZb.js → page-CkX3R4er.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DerIbaqa.js → page-Cu-ZYOrj.js} +1 -1
- zenml/zen_server/dashboard/assets/page-CyID6Sp5.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DZ5hcS1o.js → page-D0Z9wEBf.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-hX7NkNdA.js → page-D83H0IPX.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DgSu4pTE.js → page-DAF5ySum.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-ClqRvz_V.js → page-DMiWibIV.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-Bi4I23Hs.js → page-DMtUDzEY.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-BDre_qCO.js → page-DNLxVFH7.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DLrYW-Dn.js → page-Dfaj9bx6.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DznxxpKA.js → page-DhlhT_XT.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-CKPkbOoE.js → page-DqXw1YhM.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-E9Mx9_rn.js → page-DtjangP-.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DQncGJeH.js → page-GJ63jkFi.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DSn1Jcvs.js → page-RtFcujP8.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-HrebZOAM.js → page-T1JEtrlC.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DQzNmXk3.js → page-cS5O9iLC.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-Dpw-xP4q.js → page-s1bm6Xid.js} +1 -1
- zenml/zen_server/dashboard/assets/{persist-Dkbp9MFP.js → persist-C98EYq5I.js} +1 -1
- zenml/zen_server/dashboard/assets/{persist-B3Hb8HDW.js → persist-FuiGbvJD.js} +1 -1
- zenml/zen_server/dashboard/assets/{primary-role-CjkpP9fL.js → primary-role-Bsu7s76U.js} +1 -1
- zenml/zen_server/dashboard/assets/{resource-tyes-list-CugyWUAE.js → resource-tyes-list-C7I0VL8e.js} +1 -1
- zenml/zen_server/dashboard/assets/{resource-type-tooltip-V-zdiLKz.js → resource-type-tooltip-2vjL6Wh9.js} +1 -1
- zenml/zen_server/dashboard/assets/{service-FjqYTmBw.js → service-BPdLzxxT.js} +1 -1
- zenml/zen_server/dashboard/assets/{service-connectors-nF4-OXB9.js → service-connectors-BkE8Ol4i.js} +1 -1
- zenml/zen_server/dashboard/assets/{sharedSchema-Br1JPr8d.js → sharedSchema-CKFbjwmg.js} +1 -1
- zenml/zen_server/dashboard/assets/{stack-detail-query-DnyMCdVE.js → stack-detail-query-JsrqFo3U.js} +1 -1
- zenml/zen_server/dashboard/assets/{update-current-user-mutation-B3Dpv3u6.js → update-current-user-mutation-C4CPf7vG.js} +1 -1
- zenml/zen_server/dashboard/assets/{update-server-settings-mutation-s7tlHN8s.js → update-server-settings-mutation-BYfIU-xU.js} +1 -1
- zenml/zen_server/dashboard/index.html +2 -2
- zenml/zen_server/routers/service_accounts_endpoints.py +24 -0
- zenml/zen_stores/migrations/versions/0.84.3_release.py +23 -0
- zenml/zen_stores/rest_zen_store.py +16 -5
- {zenml_nightly-0.84.2.dev20250827.dist-info → zenml_nightly-0.84.3.dev20250829.dist-info}/METADATA +2 -2
- {zenml_nightly-0.84.2.dev20250827.dist-info → zenml_nightly-0.84.3.dev20250829.dist-info}/RECORD +116 -115
- zenml/zen_server/dashboard/assets/form-C1jJgRy1.js +0 -1
- zenml/zen_server/dashboard/assets/page-1DXG7hp8.js +0 -1
- zenml/zen_server/dashboard/assets/page-C7Z2sDHE.js +0 -1
- zenml/zen_server/dashboard/assets/page-C8t9qLdV.js +0 -1
- zenml/zen_server/dashboard/assets/page-CVwTAlzd.js +0 -1
- {zenml_nightly-0.84.2.dev20250827.dist-info → zenml_nightly-0.84.3.dev20250829.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.84.2.dev20250827.dist-info → zenml_nightly-0.84.3.dev20250829.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.84.2.dev20250827.dist-info → zenml_nightly-0.84.3.dev20250829.dist-info}/entry_points.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
import{j as e,r as l}from"./@radix-B1sy0Lhr.js";import{c as k,L as S,f as z}from"./@react-router-CHjLNlgw.js";import{S as y}from"./check-circle-CG6XAdk-.js";import{S as L,a as M,c as C,B as m,T as E,r as P,b as V,u as B,d as c,g as Z,A as I,e as G,s as O,f as F,z as d,h as R,i as D,j as H,k as f,l as T,P as w,D as J,m as Q,n as Y,C as K,o as X,p as g,q}from"./index-CO6UN3UX.js";import{S as W}from"./file-text-TdPXNd7s.js";import{S as U}from"./mail-DBJRSzyu.js";import{S as $}from"./chevron-down-Bl7WwQAL.js";import{b as p}from"./@tanstack-Dwlisomv.js";import{p as v}from"./index-BYzR7YrM.js";import{T as N}from"./Tick-BQ7_xDBl.js";import{S as _,M as ee,a as se}from"./index-B4ZeIaPd.js";import{C as j}from"./CodeSnippet-B7Wd4R8u.js";import{H as te}from"./Helpbox-7FZpmsHB.js";import{F as re}from"./icon--Tp6obFZ.js";import{S as ne}from"./SheetHeader-Bb3v9rha.js";import"./@reactflow-gbyyU3kq.js";import"./check-C9Nye5lR.js";import"./help-CRPfbPTO.js";import"./chevron-right-double-CbMG1dOM.js";function ae(){const s=k();return e.jsxs("div",{className:"flex w-full items-center justify-between gap-2 rounded-md border border-success-300 bg-success-50 px-4 py-3 text-success-900",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(y,{className:"size-5 shrink-0 fill-current"}),e.jsx("p",{className:"font-semibold",children:"Great job! You've mastered the ZenML basics."}),e.jsx("p",{className:"text-text-sm",children:"Time to level up with production workflows."})]}),e.jsxs("button",{onClick:()=>s(window.location.pathname),children:[e.jsx("span",{className:"sr-only",children:"Close"}),e.jsx(L,{className:"size-5 fill-current"})]})]})}const ie=[{icon:e.jsx(U,{className:"size-5 shrink-0 fill-warning-500"}),backgroundColor:"bg-warning-50",title:"Send us a message",href:"mailto:cloud@zenml.io"},{icon:e.jsx(W,{className:"size-5 shrink-0 fill-blue-400"}),backgroundColor:"bg-blue-25",title:"Browse our docs",href:"https://docs.zenml.io"},{icon:e.jsx(M,{className:"size-5 shrink-0 fill-primary-400"}),backgroundColor:"bg-primary-25",title:"Read our blog",href:"https://zenml.io/blog"}];function le(){return e.jsxs("section",{className:"space-y-5",children:[e.jsx("h2",{className:"text-text-lg font-semibold",children:"Support Resources"}),e.jsx("ul",{className:"grid grid-cols-2 gap-3 xl:grid-cols-3",children:ie.map((s,t)=>e.jsx("li",{children:e.jsx(oe,{...s})},t))})]})}function oe({icon:s,backgroundColor:t,title:r,href:n}){return e.jsxs("a",{href:n,target:"_blank",rel:"noreferrer noopener",className:"flex items-center gap-3 overflow-hidden rounded-md border border-theme-border-moderate bg-theme-surface-primary p-1 transition-shadow duration-200 hover:shadow-sm",children:[e.jsx("div",{className:C("flex aspect-square size-8 items-center justify-center rounded-md",t),children:s}),e.jsx("div",{className:"space-y-0.5",children:e.jsx("span",{className:"font-semibold",children:r})})]})}const ce=[{title:"ZenCoder",description:"Your own MLOps Engineer",href:"https://github.com/zenml-io/zenml-projects/tree/main/zencoder",tag:"LLM",image:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/projects/1.jpg",alt:"ZenCoder"}},{title:"Night Watch",description:"AI Database Summaries While You Sleep",href:"https://github.com/zenml-io/zenml-projects/tree/main/nightwatch-ai",tag:"Text Summarization",image:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/projects/2.jpg",alt:"Night Watch"}},{title:"Magic Photobooth",description:"A personalized AI image generation product that can create your avatars from a selfie.",href:"https://github.com/zenml-io/zenml-projects/tree/main/magic-photobooth",tag:"Image Generation",image:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/projects/3.jpg",alt:"Magic Photobooth"}},{title:"GameSense",description:"The LLM That Understands Gamers",href:"https://github.com/zenml-io/zenml-projects/tree/main/gamesense",tag:"LLM",image:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/projects/4.jpg",alt:"GameSense"}}];function de(){return e.jsxs("section",{className:"space-y-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-text-lg font-semibold",children:"Start with a project template"}),e.jsx(m,{className:"bg-theme-surface-primary",intent:"secondary",emphasis:"subtle",asChild:!0,children:e.jsx("a",{target:"_blank",rel:"noreferrer noopener",href:"https://docs.zenml.io/user-guides",children:"See more"})})]}),e.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-4",children:ce.map((s,t)=>e.jsx("li",{children:e.jsx(me,{...s})},t))})]})}function me({title:s,description:t,href:r,tag:n,image:a}){return e.jsxs("a",{href:r,target:"_blank",rel:"noreferrer noopener",className:"block overflow-hidden rounded-md border border-theme-border-moderate transition-shadow duration-200 hover:shadow-sm",children:[e.jsx("img",{className:"h-[110px] w-full object-cover",src:a.src,alt:a.alt}),e.jsxs("div",{className:"flex h-[150px] flex-col justify-between bg-theme-surface-primary p-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:s}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:t})]}),e.jsx(E,{emphasis:"subtle",rounded:!1,size:"xs",className:"w-fit",color:"purple",children:n})]})]})}const pe=s=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1C8.55229 1 9 1.44772 9 2V3H15V2C15 1.44772 15.4477 1 16 1C16.5523 1 17 1.44772 17 2V3.00163C17.4755 3.00489 17.891 3.01471 18.2518 3.04419C18.8139 3.09012 19.3306 3.18868 19.816 3.43597C20.5686 3.81947 21.1805 4.43139 21.564 5.18404C21.8113 5.66937 21.9099 6.18608 21.9558 6.74817C22 7.28936 22 7.95372 22 8.75868V17.2413C22 18.0463 22 18.7106 21.9558 19.2518C21.9099 19.8139 21.8113 20.3306 21.564 20.816C21.1805 21.5686 20.5686 22.1805 19.816 22.564C19.3306 22.8113 18.8139 22.9099 18.2518 22.9558C17.7106 23 17.0463 23 16.2413 23H7.75868C6.95372 23 6.28936 23 5.74817 22.9558C5.18608 22.9099 4.66937 22.8113 4.18404 22.564C3.43139 22.1805 2.81947 21.5686 2.43597 20.816C2.18868 20.3306 2.09012 19.8139 2.04419 19.2518C1.99998 18.7106 1.99999 18.0463 2 17.2413V8.7587C1.99999 7.95373 1.99998 7.28937 2.04419 6.74817C2.09012 6.18608 2.18868 5.66937 2.43597 5.18404C2.81947 4.43139 3.43139 3.81947 4.18404 3.43597C4.66937 3.18868 5.18608 3.09012 5.74818 3.04419C6.10898 3.01471 6.52454 3.00489 7 3.00163V2C7 1.44772 7.44772 1 8 1ZM7 5.00176C6.55447 5.00489 6.20463 5.01356 5.91104 5.03755C5.47262 5.07337 5.24842 5.1383 5.09202 5.21799C4.7157 5.40973 4.40973 5.71569 4.21799 6.09202C4.1383 6.24842 4.07337 6.47262 4.03755 6.91104C4.00078 7.36113 4 7.94342 4 8.8V9H20V8.8C20 7.94342 19.9992 7.36113 19.9624 6.91104C19.9266 6.47262 19.8617 6.24842 19.782 6.09202C19.5903 5.7157 19.2843 5.40973 18.908 5.21799C18.7516 5.1383 18.5274 5.07337 18.089 5.03755C17.7954 5.01356 17.4455 5.00489 17 5.00176V6C17 6.55228 16.5523 7 16 7C15.4477 7 15 6.55228 15 6V5H9V6C9 6.55228 8.55229 7 8 7C7.44772 7 7 6.55228 7 6V5.00176ZM20 11H4V17.2C4 18.0566 4.00078 18.6389 4.03755 19.089C4.07337 19.5274 4.1383 19.7516 4.21799 19.908C4.40973 20.2843 4.7157 20.5903 5.09202 20.782C5.24842 20.8617 5.47262 20.9266 5.91104 20.9624C6.36113 20.9992 6.94342 21 7.8 21H16.2C17.0566 21 17.6389 20.9992 18.089 20.9624C18.5274 20.9266 18.7516 20.8617 18.908 20.782C19.2843 20.5903 19.5903 20.2843 19.782 19.908C19.8617 19.7516 19.9266 19.5274 19.9624 19.089C19.9992 18.6389 20 18.0566 20 17.2V11Z"})),he=s=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},l.createElement("path",{d:"M6.20195 14.6383C6.20195 15.7947 5.25733 16.7393 4.10098 16.7393C2.94463 16.7393 2 15.7947 2 14.6383C2 13.482 2.94463 12.5374 4.10098 12.5374H6.20195V14.6383Z",fill:"#E01E5A"}),l.createElement("path",{d:"M7.26056 14.6383C7.26056 13.482 8.20518 12.5374 9.36154 12.5374C10.5179 12.5374 11.4625 13.482 11.4625 14.6383V19.8989C11.4625 21.0553 10.5179 21.9999 9.36154 21.9999C8.20518 21.9999 7.26056 21.0553 7.26056 19.8989V14.6383Z",fill:"#E01E5A"}),l.createElement("path",{d:"M9.36154 6.20195C8.20518 6.20195 7.26056 5.25733 7.26056 4.10098C7.26056 2.94463 8.20518 2 9.36154 2C10.5179 2 11.4625 2.94463 11.4625 4.10098V6.20195H9.36154Z",fill:"#36C5F0"}),l.createElement("path",{d:"M9.36156 7.26062C10.5179 7.26062 11.4625 8.20525 11.4625 9.3616C11.4625 10.5179 10.5179 11.4626 9.36156 11.4626H4.10098C2.94463 11.4626 2 10.5179 2 9.3616C2 8.20525 2.94463 7.26062 4.10098 7.26062H9.36156Z",fill:"#36C5F0"}),l.createElement("path",{d:"M17.798 9.3616C17.798 8.20525 18.7426 7.26062 19.8989 7.26062C21.0553 7.26062 21.9999 8.20525 21.9999 9.3616C21.9999 10.5179 21.0553 11.4626 19.8989 11.4626H17.798V9.3616Z",fill:"#2EB67D"}),l.createElement("path",{d:"M16.7394 9.36156C16.7394 10.5179 15.7948 11.4625 14.6385 11.4625C13.4821 11.4625 12.5375 10.5179 12.5375 9.36156V4.10098C12.5375 2.94463 13.4821 2 14.6385 2C15.7948 2 16.7394 2.94463 16.7394 4.10098V9.36156Z",fill:"#2EB67D"}),l.createElement("path",{d:"M14.6384 17.7981C15.7947 17.7981 16.7394 18.7427 16.7394 19.8991C16.7394 21.0554 15.7947 22 14.6384 22C13.482 22 12.5374 21.0554 12.5374 19.8991V17.7981H14.6384Z",fill:"#ECB22E"}),l.createElement("path",{d:"M14.6385 16.7393C13.4821 16.7393 12.5375 15.7947 12.5375 14.6383C12.5375 13.482 13.4821 12.5374 14.6385 12.5374H19.899C21.0554 12.5374 22 13.482 22 14.6383C22 15.7947 21.0554 16.7393 19.899 16.7393H14.6385Z",fill:"#ECB22E"}));function ue(){return e.jsxs("section",{className:"space-y-5",children:[e.jsx("h2",{className:"text-text-xl font-semibold",children:"Your next steps with ZenML"}),e.jsxs("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-3",children:[e.jsx(x,{href:P.stacks.create.index,icon:e.jsx(V,{className:"size-5 shrink-0 fill-primary-400"}),backgroundColor:"bg-primary-25",title:"Add your stack",description:"Connect cloud infrastructure and ML tools to your workspace."}),e.jsx(x,{href:"https://zenml.io/slack",icon:e.jsx(he,{className:"size-5 shrink-0"}),backgroundColor:"bg-neutral-100",title:"Join our Community",description:"Join our Slack community with thousands of members like you."}),e.jsx(x,{href:"https://zenml.io/book-your-demo",icon:e.jsx(pe,{className:"size-5 shrink-0 fill-success-400"}),backgroundColor:"bg-success-50",title:"Try ZenML Pro",description:"Book a demo and discover advanced features with our managed solution."})]})]})}function x({href:s,icon:t,backgroundColor:r,title:n,description:a}){const i=s.startsWith("http://")||s.startsWith("https://"),o=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:C("flex aspect-square size-8 items-center justify-center rounded-md",r),children:t}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("h3",{className:"text-text-lg font-semibold",children:n}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:a})]})]}),h="space-y-5 rounded-md border border-theme-border-moderate bg-theme-surface-primary p-5 transition-shadow duration-200 hover:shadow-sm";return i?e.jsx("a",{className:h,href:s,target:"_blank",rel:"noopener noreferrer",children:o}):e.jsx(S,{className:h,to:s,children:o})}function xe(){var r,n;const s=B();if(s.isPending)return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(c,{className:"size-9 shrink-0 rounded-rounded"}),e.jsx(c,{className:"h-6 w-[200px]"})]});if(s.isError)return e.jsx("div",{children:"Error loading user"});const t=Z(s.data);return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(I,{size:"xl",children:[e.jsx(G,{src:O(((n=(r=s.data)==null?void 0:r.body)==null?void 0:n.avatar_url)??void 0)}),e.jsx(F,{size:"xl",children:(t==null?void 0:t.charAt(0))||"U"})]}),e.jsxs("span",{className:"text-display-xs font-semibold",children:["Welcome back",t?`, ${t}`:""]})]})}const fe=d.object({index:d.number(),directory:d.string(),name:d.string()}),ge=d.object({pipelineOrder:d.array(fe)});async function je(){const s=await fetch("https://raw.githubusercontent.com/zenml-io/vscode-tutorial-extension/HEAD/pipelines/metadata.json");if(!s.ok)throw new Error("Failed to fetch pipelines from Github");const t=await s.json();return ge.parse(t)}function be(s){return p({queryKey:["github","vscode-tutorial-extension","pipelines"],queryFn:async()=>je(),...s})}async function ye(s){const t=`https://raw.githubusercontent.com/zenml-io/vscode-tutorial-extension/HEAD/pipelines/${s}/${s}.py`,r=await fetch(t);if(!r.ok)throw new Error("Failed to fetch pipeline content");return await r.text()}function Ce(s,t){return p({queryKey:["github","vscode-tutorial-extension","pipeline-content",s],queryFn:async()=>ye(s),...t})}async function we(s){const t=`https://raw.githubusercontent.com/zenml-io/vscode-tutorial-extension/HEAD/pipelines/${s}/summary.md`,r=await fetch(t);if(!r.ok)throw new Error("Failed to fetch pipeline summary");return await r.text()}function ve(s,t){return p({queryKey:["github","vscode-tutorial-extension","pipeline-summary",s],queryFn:async()=>we(s),...t})}function Ne({children:s,onOpenChange:t,pipelineContent:r,open:n,name:a,displayName:i,isDone:o}){return e.jsxs(R,{open:n,onOpenChange:t,children:[e.jsx(D,{className:"w-full",children:s}),e.jsxs(H,{"aria-describedby":void 0,className:"w-[1000px] overflow-y-auto",children:[e.jsx(ne,{}),e.jsx(ke,{displayName:i,pipelineContent:r,isDone:o,name:a}),e.jsx("div",{className:"p-5",children:r?e.jsxs(f,{className:"space-y-5 p-5",children:[e.jsx(Se,{pipelineName:a}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Create a"," ",e.jsxs("code",{className:"rounded-sm bg-primary-25 px-[4px] py-[2px] text-theme-text-brand",children:[a,".py"]})," ","file that defines your workflow using our Python SDK:"]}),e.jsx(j,{className:"w-full max-w-full",code:r,highlightCode:!0})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Run the pipeline."}),e.jsx(j,{code:`python ${a}.py`})]}),e.jsx(te,{link:"https://docs.zenml.io/user-guides/starter-guide/create-an-ml-pipeline"})]}):e.jsx(Ae,{})})]})]})}function Ae(){return e.jsxs("div",{className:"flex flex-col items-center justify-center space-y-5 text-center",children:[e.jsx(re,{icon:e.jsx(se,{className:"h-[36px] w-[36px] fill-primary-400"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-display-xs font-semibold",children:"We couldn't fetch the pipeline data"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please try again later or check the code in our GitHub Repo."})]}),e.jsx(m,{size:"md",asChild:!0,className:"mx-auto w-fit",children:e.jsx("a",{href:"https://github.com/zenml-io/vscode-tutorial-extension/tree/develop/pipelines",target:"_blank",rel:"noreferrer",children:"Open in Github"})})]})}function ke({isDone:s,name:t,pipelineContent:r,displayName:n}){const{copied:a,copyToClipboard:i}=T();function o(){if(!r)return;const h=new Blob([r],{type:"text/x-python"}),A=URL.createObjectURL(h),u=document.createElement("a");u.href=A,u.download=`${t}.py`,u.click()}return e.jsxs("section",{className:"flex items-center justify-between border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[s?e.jsx(N,{}):e.jsx(w,{}),e.jsx(J,{className:"text-display-xs font-semibold",children:n})]}),r&&e.jsxs("div",{className:"flex items-center",children:[e.jsxs(m,{intent:"secondary",emphasis:"minimal",onClick:o,className:"flex aspect-square size-7 shrink-0 items-center justify-center p-0",children:[e.jsx(_,{className:"size-5 shrink-0 fill-theme-text-secondary"}),e.jsx("span",{className:"sr-only",children:"Download Pipeline"})]}),e.jsx(m,{intent:"secondary",emphasis:"minimal",className:"flex aspect-square size-7 shrink-0 items-center justify-center p-0",onClick:()=>i(r),children:a?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sr-only",children:"Copied"}),e.jsx(y,{className:"size-5 shrink-0 fill-theme-text-secondary"})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sr-only",children:"Copy Pipeline"}),e.jsx(Q,{className:"size-5 shrink-0 fill-theme-text-secondary"})]})})]})]})}function Se({pipelineName:s}){const t=ve(s);return t.isPending?e.jsx(c,{className:"h-[60px] w-full"}):t.isError?null:e.jsx(ee,{className:"prose max-w-none rounded-md border border-primary-50 bg-primary-25 px-5 py-3 text-text-sm prose-pre:bg-primary-50",children:t.data})}function ze({displayName:s,pipelineName:t,isDone:r}){const[n,a]=l.useState(!1),i=Ce(t,{refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchInterval:!1,refetchIntervalInBackground:!1});return i.isPending?e.jsx(c,{className:"h-[130px] w-full"}):e.jsx(Ne,{displayName:s,isDone:r,name:t,pipelineContent:i.data,open:n,onOpenChange:a,children:e.jsxs(f,{className:"space-y-5 p-5 text-start transition-shadow duration-200 hover:shadow-sm",children:[r?e.jsx(N,{}):e.jsx(w,{}),e.jsx("p",{className:"text-text-lg font-semibold",children:s})]})})}function Le({githubPipelines:s}){const t=p({...v.pipelineList({name:`oneof:${JSON.stringify(s)}`})});if(t.isPending)return e.jsx(c,{className:"h-1 w-full"});if(t.isError)return null;const r=t.data.items.length,n=r/s.length*100;return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"whitespace-nowrap text-text-sm",children:[r,"/",s.length]}),e.jsx(Y,{className:"h-1 w-full rounded-rounded",value:n})]})}const Me="data:image/webp;base64,UklGRgQJAABXRUJQVlA4IPgIAABQWACdASqQAZABPpFInUslszMiphQ4umASCWlu4XPeABnZ1sRmTst3gH8f/ue/qFD5Zf8DR4ZRZrXkuJhVV/fbvk2FlVX99u+TYWVVf3275NhZVV/fbvk2FlVX99u+TYWVVf327yj0hVV/fbvk2FlVXB8rqz8ZAbLzfAk3/k8T0Lf5IBLXfSQpCS0Kl4X+Hkmtce6xqRaGzms02QLDekSBxjBhxh4BVV/fbvkuajlslP+MhKMsp1LpZMgtdksxsckXnrMroyDyWhUtpVdX/vpDfvNzZkea6w5Y7/wk769arImplc9HWXpTiS0Kl3mDzAO/k0Ne5OYr0o4N1Q1ZJ09vOGENA9A3XTnYzabR2fIiLHUAhB7wt2VmbrM5JCQ2tsB8DgWudqlYYJNRqpoJ/7dgzr5MR10PmuhBVV/bixn655V+aQOuR0rhUeTr0f71OoXAdDER0e+3fJex1brst9AKujLB69CGB+vdm/+UbCHUKZOkX1/fbvORvs9EAoemLvfqw0y41l1h3n+xCypB5JrzPpSR7G4vOLrYoVPBIHucKwTw1lSBaEo2eH+N3S/SuwJ3RMUqlqB2XdHyGOmwsqphM0f28io7/cA0GmbUJdFglVwLB8KIz1oJmR8vN1X99unNTRwICZyrKOdA3qzWJuXSWdMAVLsLC4K15vdAYgC3S7++3fJbq088mhifDqJQYE5TVtNHLLKBSN33xNmbBrYwS21lEtPj7pZu/clVIkhSEl1LOgBcEw6to+BbEDG+ZdH+iBgcrNlTNX0BZEeHjHGiJdu+TYWWEn9t8IkMrQGRyEqCI4eYXYM0g0mUk5sSPOivMlicpsqQeS0Kl4XgWjpbgiMwFKd6q/nJ/R//6a4Y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sCzEiCQN+RPDzM/oDKcTvw8g7oJN8RtjdMvsoOXyvOYxyIerTduraiFR46RvrQCwlidy55I4ACvBOEdlDLkZSs3+jpcgqjXFsDGzthcprFfqmI3aLu/v946hzNX7HywQPoMDG0oOAAAAAAAAAAAAA==";function Pe(){const s=be({refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchInterval:!1,refetchIntervalInBackground:!1}),[t,r]=l.useState(!0);if(s.isPending)return e.jsx(c,{className:"h-[400px] w-full"});if(s.isError)return null;const n=s.data.pipelineOrder.sort((i,o)=>i.index-o.index),a=n.map(i=>i.directory);return e.jsxs(K,{open:t,onOpenChange:r,children:[e.jsx(X,{className:"flex items-center gap-[10px] p-0",children:e.jsxs("div",{className:"flex w-full flex-col items-center justify-between gap-5 p-5 lg:flex-row",children:[e.jsxs(g,{className:"flex-1 space-y-5",children:[e.jsxs("div",{className:"flex flex-col items-start",children:[e.jsx("p",{className:"text-text-xl font-semibold",children:"Learn the core concepts of ZenML"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Click on a pipeline and follow the instructions to run it locally or run the tutorials with our VSCode Extension."})]}),e.jsx(Le,{githubPipelines:a})]}),e.jsx(Be,{}),e.jsx(g,{children:e.jsx($,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`})})]})}),e.jsx(q,{className:"border-t border-theme-border-moderate bg-theme-surface-primary p-5",children:e.jsx(Ve,{pipelines:n})})]})}function Ve({pipelines:s}){const t=s.map(a=>a.directory),r=p({...v.pipelineList({name:`oneof:${JSON.stringify(t)}`}),refetchInterval:3e4});if(r.isPending)return e.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-3 xl:grid-cols-5",children:Array.from({length:s.length}).map((a,i)=>e.jsx("li",{children:e.jsx(c,{className:"h-[130px] w-full"})},i))});if(r.isError)return e.jsx("p",{children:"Error loading pipelines"});const n=r.data.items;return e.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-3 xl:grid-cols-5",children:s.map(a=>e.jsx("li",{children:e.jsx(ze,{isDone:n.some(i=>i.name===a.directory),pipelineName:a.directory,displayName:a.name})},a.index))})}const b="zenml-io.zenml-tutorial";function Be(){return e.jsxs(f,{className:"flex items-center justify-between gap-5 p-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Install the extension"}),e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"Available for VsCode or Cursor"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(m,{intent:"secondary",emphasis:"minimal",className:"aspect-square size-8 shrink-0 overflow-hidden border border-theme-border-moderate bg-theme-surface-primary p-0",asChild:!0,children:e.jsx("a",{href:`vscode:extension/${b}`,children:e.jsx("img",{src:Ee,alt:"VsCode",className:"h-full w-full"})})}),e.jsx(m,{intent:"secondary",emphasis:"minimal",className:"aspect-square size-8 shrink-0 overflow-hidden bg-theme-surface-primary p-0",asChild:!0,children:e.jsx("a",{href:`cursor:extension/${b}`,children:e.jsx("img",{src:Me,alt:"Cursor",className:"h-full w-full"})})})]})]})}function es(){const[s]=z(),t=s.get("success")==="true";return e.jsxs("div",{className:"layout-container space-y-8 py-5",children:[t&&e.jsx(ae,{}),e.jsx(xe,{}),e.jsx(Pe,{}),e.jsx(ue,{}),e.jsx(de,{}),e.jsx(le,{})]})}export{es as default};
|
1
|
+
import{j as e,r as l}from"./@radix-B1sy0Lhr.js";import{c as k,L as S,f as z}from"./@react-router-CHjLNlgw.js";import{S as y}from"./check-circle-CG6XAdk-.js";import{S as L,a as M,c as C,B as m,T as E,r as P,b as V,u as B,d as c,g as Z,A as I,e as G,s as O,f as F,z as d,h as R,i as D,j as H,k as f,l as T,P as w,D as J,m as Q,n as Y,C as K,o as X,p as g,q}from"./index-Ci5z7q6x.js";import{S as W}from"./file-text-TdPXNd7s.js";import{S as U}from"./mail-DBJRSzyu.js";import{S as $}from"./chevron-down-Bl7WwQAL.js";import{b as p}from"./@tanstack-Dwlisomv.js";import{p as v}from"./index-rnWXXblA.js";import{T as N}from"./Tick-Bo7jwBjb.js";import{S as _,M as ee,a as se}from"./index-B4ZeIaPd.js";import{C as j}from"./CodeSnippet-D7OZMz7I.js";import{H as te}from"./Helpbox-CQjyNo0n.js";import{F as re}from"./icon--Tp6obFZ.js";import{S as ne}from"./SheetHeader-xumE4haD.js";import"./@reactflow-gbyyU3kq.js";import"./check-C9Nye5lR.js";import"./help-CRPfbPTO.js";import"./chevron-right-double-CbMG1dOM.js";function ae(){const s=k();return e.jsxs("div",{className:"flex w-full items-center justify-between gap-2 rounded-md border border-success-300 bg-success-50 px-4 py-3 text-success-900",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(y,{className:"size-5 shrink-0 fill-current"}),e.jsx("p",{className:"font-semibold",children:"Great job! You've mastered the ZenML basics."}),e.jsx("p",{className:"text-text-sm",children:"Time to level up with production workflows."})]}),e.jsxs("button",{onClick:()=>s(window.location.pathname),children:[e.jsx("span",{className:"sr-only",children:"Close"}),e.jsx(L,{className:"size-5 fill-current"})]})]})}const ie=[{icon:e.jsx(U,{className:"size-5 shrink-0 fill-warning-500"}),backgroundColor:"bg-warning-50",title:"Send us a message",href:"mailto:cloud@zenml.io"},{icon:e.jsx(W,{className:"size-5 shrink-0 fill-blue-400"}),backgroundColor:"bg-blue-25",title:"Browse our docs",href:"https://docs.zenml.io"},{icon:e.jsx(M,{className:"size-5 shrink-0 fill-primary-400"}),backgroundColor:"bg-primary-25",title:"Read our blog",href:"https://zenml.io/blog"}];function le(){return e.jsxs("section",{className:"space-y-5",children:[e.jsx("h2",{className:"text-text-lg font-semibold",children:"Support Resources"}),e.jsx("ul",{className:"grid grid-cols-2 gap-3 xl:grid-cols-3",children:ie.map((s,t)=>e.jsx("li",{children:e.jsx(oe,{...s})},t))})]})}function oe({icon:s,backgroundColor:t,title:r,href:n}){return e.jsxs("a",{href:n,target:"_blank",rel:"noreferrer noopener",className:"flex items-center gap-3 overflow-hidden rounded-md border border-theme-border-moderate bg-theme-surface-primary p-1 transition-shadow duration-200 hover:shadow-sm",children:[e.jsx("div",{className:C("flex aspect-square size-8 items-center justify-center rounded-md",t),children:s}),e.jsx("div",{className:"space-y-0.5",children:e.jsx("span",{className:"font-semibold",children:r})})]})}const ce=[{title:"ZenCoder",description:"Your own MLOps Engineer",href:"https://github.com/zenml-io/zenml-projects/tree/main/zencoder",tag:"LLM",image:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/projects/1.jpg",alt:"ZenCoder"}},{title:"Night Watch",description:"AI Database Summaries While You Sleep",href:"https://github.com/zenml-io/zenml-projects/tree/main/nightwatch-ai",tag:"Text Summarization",image:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/projects/2.jpg",alt:"Night Watch"}},{title:"Magic Photobooth",description:"A personalized AI image generation product that can create your avatars from a selfie.",href:"https://github.com/zenml-io/zenml-projects/tree/main/magic-photobooth",tag:"Image Generation",image:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/projects/3.jpg",alt:"Magic Photobooth"}},{title:"GameSense",description:"The LLM That Understands Gamers",href:"https://github.com/zenml-io/zenml-projects/tree/main/gamesense",tag:"LLM",image:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/projects/4.jpg",alt:"GameSense"}}];function de(){return e.jsxs("section",{className:"space-y-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-text-lg font-semibold",children:"Start with a project template"}),e.jsx(m,{className:"bg-theme-surface-primary",intent:"secondary",emphasis:"subtle",asChild:!0,children:e.jsx("a",{target:"_blank",rel:"noreferrer noopener",href:"https://docs.zenml.io/user-guides",children:"See more"})})]}),e.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-4",children:ce.map((s,t)=>e.jsx("li",{children:e.jsx(me,{...s})},t))})]})}function me({title:s,description:t,href:r,tag:n,image:a}){return e.jsxs("a",{href:r,target:"_blank",rel:"noreferrer noopener",className:"block overflow-hidden rounded-md border border-theme-border-moderate transition-shadow duration-200 hover:shadow-sm",children:[e.jsx("img",{className:"h-[110px] w-full object-cover",src:a.src,alt:a.alt}),e.jsxs("div",{className:"flex h-[150px] flex-col justify-between bg-theme-surface-primary p-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:s}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:t})]}),e.jsx(E,{emphasis:"subtle",rounded:!1,size:"xs",className:"w-fit",color:"purple",children:n})]})]})}const pe=s=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1C8.55229 1 9 1.44772 9 2V3H15V2C15 1.44772 15.4477 1 16 1C16.5523 1 17 1.44772 17 2V3.00163C17.4755 3.00489 17.891 3.01471 18.2518 3.04419C18.8139 3.09012 19.3306 3.18868 19.816 3.43597C20.5686 3.81947 21.1805 4.43139 21.564 5.18404C21.8113 5.66937 21.9099 6.18608 21.9558 6.74817C22 7.28936 22 7.95372 22 8.75868V17.2413C22 18.0463 22 18.7106 21.9558 19.2518C21.9099 19.8139 21.8113 20.3306 21.564 20.816C21.1805 21.5686 20.5686 22.1805 19.816 22.564C19.3306 22.8113 18.8139 22.9099 18.2518 22.9558C17.7106 23 17.0463 23 16.2413 23H7.75868C6.95372 23 6.28936 23 5.74817 22.9558C5.18608 22.9099 4.66937 22.8113 4.18404 22.564C3.43139 22.1805 2.81947 21.5686 2.43597 20.816C2.18868 20.3306 2.09012 19.8139 2.04419 19.2518C1.99998 18.7106 1.99999 18.0463 2 17.2413V8.7587C1.99999 7.95373 1.99998 7.28937 2.04419 6.74817C2.09012 6.18608 2.18868 5.66937 2.43597 5.18404C2.81947 4.43139 3.43139 3.81947 4.18404 3.43597C4.66937 3.18868 5.18608 3.09012 5.74818 3.04419C6.10898 3.01471 6.52454 3.00489 7 3.00163V2C7 1.44772 7.44772 1 8 1ZM7 5.00176C6.55447 5.00489 6.20463 5.01356 5.91104 5.03755C5.47262 5.07337 5.24842 5.1383 5.09202 5.21799C4.7157 5.40973 4.40973 5.71569 4.21799 6.09202C4.1383 6.24842 4.07337 6.47262 4.03755 6.91104C4.00078 7.36113 4 7.94342 4 8.8V9H20V8.8C20 7.94342 19.9992 7.36113 19.9624 6.91104C19.9266 6.47262 19.8617 6.24842 19.782 6.09202C19.5903 5.7157 19.2843 5.40973 18.908 5.21799C18.7516 5.1383 18.5274 5.07337 18.089 5.03755C17.7954 5.01356 17.4455 5.00489 17 5.00176V6C17 6.55228 16.5523 7 16 7C15.4477 7 15 6.55228 15 6V5H9V6C9 6.55228 8.55229 7 8 7C7.44772 7 7 6.55228 7 6V5.00176ZM20 11H4V17.2C4 18.0566 4.00078 18.6389 4.03755 19.089C4.07337 19.5274 4.1383 19.7516 4.21799 19.908C4.40973 20.2843 4.7157 20.5903 5.09202 20.782C5.24842 20.8617 5.47262 20.9266 5.91104 20.9624C6.36113 20.9992 6.94342 21 7.8 21H16.2C17.0566 21 17.6389 20.9992 18.089 20.9624C18.5274 20.9266 18.7516 20.8617 18.908 20.782C19.2843 20.5903 19.5903 20.2843 19.782 19.908C19.8617 19.7516 19.9266 19.5274 19.9624 19.089C19.9992 18.6389 20 18.0566 20 17.2V11Z"})),he=s=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},l.createElement("path",{d:"M6.20195 14.6383C6.20195 15.7947 5.25733 16.7393 4.10098 16.7393C2.94463 16.7393 2 15.7947 2 14.6383C2 13.482 2.94463 12.5374 4.10098 12.5374H6.20195V14.6383Z",fill:"#E01E5A"}),l.createElement("path",{d:"M7.26056 14.6383C7.26056 13.482 8.20518 12.5374 9.36154 12.5374C10.5179 12.5374 11.4625 13.482 11.4625 14.6383V19.8989C11.4625 21.0553 10.5179 21.9999 9.36154 21.9999C8.20518 21.9999 7.26056 21.0553 7.26056 19.8989V14.6383Z",fill:"#E01E5A"}),l.createElement("path",{d:"M9.36154 6.20195C8.20518 6.20195 7.26056 5.25733 7.26056 4.10098C7.26056 2.94463 8.20518 2 9.36154 2C10.5179 2 11.4625 2.94463 11.4625 4.10098V6.20195H9.36154Z",fill:"#36C5F0"}),l.createElement("path",{d:"M9.36156 7.26062C10.5179 7.26062 11.4625 8.20525 11.4625 9.3616C11.4625 10.5179 10.5179 11.4626 9.36156 11.4626H4.10098C2.94463 11.4626 2 10.5179 2 9.3616C2 8.20525 2.94463 7.26062 4.10098 7.26062H9.36156Z",fill:"#36C5F0"}),l.createElement("path",{d:"M17.798 9.3616C17.798 8.20525 18.7426 7.26062 19.8989 7.26062C21.0553 7.26062 21.9999 8.20525 21.9999 9.3616C21.9999 10.5179 21.0553 11.4626 19.8989 11.4626H17.798V9.3616Z",fill:"#2EB67D"}),l.createElement("path",{d:"M16.7394 9.36156C16.7394 10.5179 15.7948 11.4625 14.6385 11.4625C13.4821 11.4625 12.5375 10.5179 12.5375 9.36156V4.10098C12.5375 2.94463 13.4821 2 14.6385 2C15.7948 2 16.7394 2.94463 16.7394 4.10098V9.36156Z",fill:"#2EB67D"}),l.createElement("path",{d:"M14.6384 17.7981C15.7947 17.7981 16.7394 18.7427 16.7394 19.8991C16.7394 21.0554 15.7947 22 14.6384 22C13.482 22 12.5374 21.0554 12.5374 19.8991V17.7981H14.6384Z",fill:"#ECB22E"}),l.createElement("path",{d:"M14.6385 16.7393C13.4821 16.7393 12.5375 15.7947 12.5375 14.6383C12.5375 13.482 13.4821 12.5374 14.6385 12.5374H19.899C21.0554 12.5374 22 13.482 22 14.6383C22 15.7947 21.0554 16.7393 19.899 16.7393H14.6385Z",fill:"#ECB22E"}));function ue(){return e.jsxs("section",{className:"space-y-5",children:[e.jsx("h2",{className:"text-text-xl font-semibold",children:"Your next steps with ZenML"}),e.jsxs("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-3",children:[e.jsx(x,{href:P.stacks.create.index,icon:e.jsx(V,{className:"size-5 shrink-0 fill-primary-400"}),backgroundColor:"bg-primary-25",title:"Add your stack",description:"Connect cloud infrastructure and ML tools to your workspace."}),e.jsx(x,{href:"https://zenml.io/slack",icon:e.jsx(he,{className:"size-5 shrink-0"}),backgroundColor:"bg-neutral-100",title:"Join our Community",description:"Join our Slack community with thousands of members like you."}),e.jsx(x,{href:"https://zenml.io/book-your-demo",icon:e.jsx(pe,{className:"size-5 shrink-0 fill-success-400"}),backgroundColor:"bg-success-50",title:"Try ZenML Pro",description:"Book a demo and discover advanced features with our managed solution."})]})]})}function x({href:s,icon:t,backgroundColor:r,title:n,description:a}){const i=s.startsWith("http://")||s.startsWith("https://"),o=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:C("flex aspect-square size-8 items-center justify-center rounded-md",r),children:t}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("h3",{className:"text-text-lg font-semibold",children:n}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:a})]})]}),h="space-y-5 rounded-md border border-theme-border-moderate bg-theme-surface-primary p-5 transition-shadow duration-200 hover:shadow-sm";return i?e.jsx("a",{className:h,href:s,target:"_blank",rel:"noopener noreferrer",children:o}):e.jsx(S,{className:h,to:s,children:o})}function xe(){var r,n;const s=B();if(s.isPending)return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(c,{className:"size-9 shrink-0 rounded-rounded"}),e.jsx(c,{className:"h-6 w-[200px]"})]});if(s.isError)return e.jsx("div",{children:"Error loading user"});const t=Z(s.data);return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(I,{size:"xl",children:[e.jsx(G,{src:O(((n=(r=s.data)==null?void 0:r.body)==null?void 0:n.avatar_url)??void 0)}),e.jsx(F,{size:"xl",children:(t==null?void 0:t.charAt(0))||"U"})]}),e.jsxs("span",{className:"text-display-xs font-semibold",children:["Welcome back",t?`, ${t}`:""]})]})}const fe=d.object({index:d.number(),directory:d.string(),name:d.string()}),ge=d.object({pipelineOrder:d.array(fe)});async function je(){const s=await fetch("https://raw.githubusercontent.com/zenml-io/vscode-tutorial-extension/HEAD/pipelines/metadata.json");if(!s.ok)throw new Error("Failed to fetch pipelines from Github");const t=await s.json();return ge.parse(t)}function be(s){return p({queryKey:["github","vscode-tutorial-extension","pipelines"],queryFn:async()=>je(),...s})}async function ye(s){const t=`https://raw.githubusercontent.com/zenml-io/vscode-tutorial-extension/HEAD/pipelines/${s}/${s}.py`,r=await fetch(t);if(!r.ok)throw new Error("Failed to fetch pipeline content");return await r.text()}function Ce(s,t){return p({queryKey:["github","vscode-tutorial-extension","pipeline-content",s],queryFn:async()=>ye(s),...t})}async function we(s){const t=`https://raw.githubusercontent.com/zenml-io/vscode-tutorial-extension/HEAD/pipelines/${s}/summary.md`,r=await fetch(t);if(!r.ok)throw new Error("Failed to fetch pipeline summary");return await r.text()}function ve(s,t){return p({queryKey:["github","vscode-tutorial-extension","pipeline-summary",s],queryFn:async()=>we(s),...t})}function Ne({children:s,onOpenChange:t,pipelineContent:r,open:n,name:a,displayName:i,isDone:o}){return e.jsxs(R,{open:n,onOpenChange:t,children:[e.jsx(D,{className:"w-full",children:s}),e.jsxs(H,{"aria-describedby":void 0,className:"w-[1000px] overflow-y-auto",children:[e.jsx(ne,{}),e.jsx(ke,{displayName:i,pipelineContent:r,isDone:o,name:a}),e.jsx("div",{className:"p-5",children:r?e.jsxs(f,{className:"space-y-5 p-5",children:[e.jsx(Se,{pipelineName:a}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Create a"," ",e.jsxs("code",{className:"rounded-sm bg-primary-25 px-[4px] py-[2px] text-theme-text-brand",children:[a,".py"]})," ","file that defines your workflow using our Python SDK:"]}),e.jsx(j,{className:"w-full max-w-full",code:r,highlightCode:!0})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Run the pipeline."}),e.jsx(j,{code:`python ${a}.py`})]}),e.jsx(te,{link:"https://docs.zenml.io/user-guides/starter-guide/create-an-ml-pipeline"})]}):e.jsx(Ae,{})})]})]})}function Ae(){return e.jsxs("div",{className:"flex flex-col items-center justify-center space-y-5 text-center",children:[e.jsx(re,{icon:e.jsx(se,{className:"h-[36px] w-[36px] fill-primary-400"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-display-xs font-semibold",children:"We couldn't fetch the pipeline data"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please try again later or check the code in our GitHub Repo."})]}),e.jsx(m,{size:"md",asChild:!0,className:"mx-auto w-fit",children:e.jsx("a",{href:"https://github.com/zenml-io/vscode-tutorial-extension/tree/develop/pipelines",target:"_blank",rel:"noreferrer",children:"Open in Github"})})]})}function ke({isDone:s,name:t,pipelineContent:r,displayName:n}){const{copied:a,copyToClipboard:i}=T();function o(){if(!r)return;const h=new Blob([r],{type:"text/x-python"}),A=URL.createObjectURL(h),u=document.createElement("a");u.href=A,u.download=`${t}.py`,u.click()}return e.jsxs("section",{className:"flex items-center justify-between border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[s?e.jsx(N,{}):e.jsx(w,{}),e.jsx(J,{className:"text-display-xs font-semibold",children:n})]}),r&&e.jsxs("div",{className:"flex items-center",children:[e.jsxs(m,{intent:"secondary",emphasis:"minimal",onClick:o,className:"flex aspect-square size-7 shrink-0 items-center justify-center p-0",children:[e.jsx(_,{className:"size-5 shrink-0 fill-theme-text-secondary"}),e.jsx("span",{className:"sr-only",children:"Download Pipeline"})]}),e.jsx(m,{intent:"secondary",emphasis:"minimal",className:"flex aspect-square size-7 shrink-0 items-center justify-center p-0",onClick:()=>i(r),children:a?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sr-only",children:"Copied"}),e.jsx(y,{className:"size-5 shrink-0 fill-theme-text-secondary"})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sr-only",children:"Copy Pipeline"}),e.jsx(Q,{className:"size-5 shrink-0 fill-theme-text-secondary"})]})})]})]})}function Se({pipelineName:s}){const t=ve(s);return t.isPending?e.jsx(c,{className:"h-[60px] w-full"}):t.isError?null:e.jsx(ee,{className:"prose max-w-none rounded-md border border-primary-50 bg-primary-25 px-5 py-3 text-text-sm prose-pre:bg-primary-50",children:t.data})}function ze({displayName:s,pipelineName:t,isDone:r}){const[n,a]=l.useState(!1),i=Ce(t,{refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchInterval:!1,refetchIntervalInBackground:!1});return i.isPending?e.jsx(c,{className:"h-[130px] w-full"}):e.jsx(Ne,{displayName:s,isDone:r,name:t,pipelineContent:i.data,open:n,onOpenChange:a,children:e.jsxs(f,{className:"space-y-5 p-5 text-start transition-shadow duration-200 hover:shadow-sm",children:[r?e.jsx(N,{}):e.jsx(w,{}),e.jsx("p",{className:"text-text-lg font-semibold",children:s})]})})}function Le({githubPipelines:s}){const t=p({...v.pipelineList({name:`oneof:${JSON.stringify(s)}`})});if(t.isPending)return e.jsx(c,{className:"h-1 w-full"});if(t.isError)return null;const r=t.data.items.length,n=r/s.length*100;return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"whitespace-nowrap text-text-sm",children:[r,"/",s.length]}),e.jsx(Y,{className:"h-1 w-full rounded-rounded",value:n})]})}const Me="data:image/webp;base64,UklGRgQJAABXRUJQVlA4IPgIAABQWACdASqQAZABPpFInUslszMiphQ4umASCWlu4XPeABnZ1sRmTst3gH8f/ue/qFD5Zf8DR4ZRZrXkuJhVV/fbvk2FlVX99u+TYWVVf3275NhZVV/fbvk2FlVX99u+TYWVVf327yj0hVV/fbvk2FlVXB8rqz8ZAbLzfAk3/k8T0Lf5IBLXfSQpCS0Kl4X+Hkmtce6xqRaGzms02QLDekSBxjBhxh4BVV/fbvkuajlslP+MhKMsp1LpZMgtdksxsckXnrMroyDyWhUtpVdX/vpDfvNzZkea6w5Y7/wk769arImplc9HWXpTiS0Kl3mDzAO/k0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zdjCMEbDHgjzLzW3BTLGWbz1H6dn1bGmHxIQ5CH1Fjzniun9t4fJB1QJkagcdpk/U5vQmXCUuA/SeXki0j5S8937VvRjp01ZB6WUENROUPWCJimLqZGap2N7J0FaoFmc1tA36ldXgt7jnypT5AtpDkgVuDVCJo6POVpoIndMOjEs5I9B64OVaoAFwTE1y/jyqdYfGDlV88Nw73xWTHjyFVIv0G/FTgzNwY8jAKtXMwMy8TZPbt9pQxitVswOiERPFS0lm77i6Nx1t2tQRdauXWiCGQACQoqAhc+9jOKzpZJaFbsd50PSGtbYIGQ4uUqmEyof6jQteIZtsinKtalLGYs9NDFa/9FaneQMLQFjGgLxL8K/yX70cdN3/nAZf5nx+IqCeEjOFDslD61gTt4eGqdAXfDKqhSbVKxyxS/1WhRddozvR2SKAACUlS1GPCM9grqml/au8VPgZSJciIyKTYGVkL+dF+PizZFdwjBxOcLxXIvtFqQz2jMJM8c0uXPVSlM+lDWVnIJwmPgIdf0FljRDYeF6Vu8NbOsZhKAV/FUsCzEiCQN+RPDzM/oDKcTvw8g7oJN8RtjdMvsoOXyvOYxyIerTduraiFR46RvrQCwlidy55I4ACvBOEdlDLkZSs3+jpcgqjXFsDGzthcprFfqmI3aLu/v946hzNX7HywQPoMDG0oOAAAAAAAAAAAAA==";function Pe(){const s=be({refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchInterval:!1,refetchIntervalInBackground:!1}),[t,r]=l.useState(!0);if(s.isPending)return e.jsx(c,{className:"h-[400px] w-full"});if(s.isError)return null;const n=s.data.pipelineOrder.sort((i,o)=>i.index-o.index),a=n.map(i=>i.directory);return e.jsxs(K,{open:t,onOpenChange:r,children:[e.jsx(X,{className:"flex items-center gap-[10px] p-0",children:e.jsxs("div",{className:"flex w-full flex-col items-center justify-between gap-5 p-5 lg:flex-row",children:[e.jsxs(g,{className:"flex-1 space-y-5",children:[e.jsxs("div",{className:"flex flex-col items-start",children:[e.jsx("p",{className:"text-text-xl font-semibold",children:"Learn the core concepts of ZenML"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Click on a pipeline and follow the instructions to run it locally or run the tutorials with our VSCode Extension."})]}),e.jsx(Le,{githubPipelines:a})]}),e.jsx(Be,{}),e.jsx(g,{children:e.jsx($,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`})})]})}),e.jsx(q,{className:"border-t border-theme-border-moderate bg-theme-surface-primary p-5",children:e.jsx(Ve,{pipelines:n})})]})}function Ve({pipelines:s}){const t=s.map(a=>a.directory),r=p({...v.pipelineList({name:`oneof:${JSON.stringify(t)}`}),refetchInterval:3e4});if(r.isPending)return e.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-3 xl:grid-cols-5",children:Array.from({length:s.length}).map((a,i)=>e.jsx("li",{children:e.jsx(c,{className:"h-[130px] w-full"})},i))});if(r.isError)return e.jsx("p",{children:"Error loading pipelines"});const n=r.data.items;return e.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-3 xl:grid-cols-5",children:s.map(a=>e.jsx("li",{children:e.jsx(ze,{isDone:n.some(i=>i.name===a.directory),pipelineName:a.directory,displayName:a.name})},a.index))})}const b="zenml-io.zenml-tutorial";function Be(){return e.jsxs(f,{className:"flex items-center justify-between gap-5 p-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Install the extension"}),e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"Available for VsCode or Cursor"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(m,{intent:"secondary",emphasis:"minimal",className:"aspect-square size-8 shrink-0 overflow-hidden border border-theme-border-moderate bg-theme-surface-primary p-0",asChild:!0,children:e.jsx("a",{href:`vscode:extension/${b}`,children:e.jsx("img",{src:Ee,alt:"VsCode",className:"h-full w-full"})})}),e.jsx(m,{intent:"secondary",emphasis:"minimal",className:"aspect-square size-8 shrink-0 overflow-hidden bg-theme-surface-primary p-0",asChild:!0,children:e.jsx("a",{href:`cursor:extension/${b}`,children:e.jsx("img",{src:Me,alt:"Cursor",className:"h-full w-full"})})})]})]})}function es(){const[s]=z(),t=s.get("success")==="true";return e.jsxs("div",{className:"layout-container space-y-8 py-5",children:[t&&e.jsx(ae,{}),e.jsx(xe,{}),e.jsx(Pe,{}),e.jsx(ue,{}),e.jsx(de,{}),e.jsx(le,{})]})}export{es as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as o}from"./@radix-B1sy0Lhr.js";import{C as r,S as m}from"./StackComponentList-CLnkE6-6.js";import{a as i}from"./@react-router-CHjLNlgw.js";import"./plus-DOrkJCmy.js";import"./refresh-C8BXS3Fb.js";import"./Pagination-CVYIgR9l.js";import"./index-Ci5z7q6x.js";import"./@tanstack-Dwlisomv.js";import"./@reactflow-gbyyU3kq.js";import"./chevron-right-double-CbMG1dOM.js";import"./SearchField-BbwrusMV.js";import"./index-g7wOyc86.js";import"./DisplayDate-57lUNS79.js";import"./expand-full-C8p_0jQv.js";import"./SheetHeader-xumE4haD.js";import"./Tabs-CkY3GwhK.js";import"./terminal-C2tAF2XG.js";import"./chevron-down-Bl7WwQAL.js";import"./transform-S7omcvTm.js";import"./NestedCollapsible-DmryIMwk.js";import"./eye-BXcQevds.js";import"./CollapsibleCard-Aqd_AiGn.js";import"./check-circle-CG6XAdk-.js";import"./CodeSnippet-D7OZMz7I.js";import"./all-pipeline-runs-query-mPYeJsKz.js";import"./ExecutionStatus-BhDlfndt.js";import"./help-CRPfbPTO.js";import"./index-BYCBKUXk.js";import"./stack-detail-query-JsrqFo3U.js";import"./ComponentBadge-BVRb7wgm.js";import"./ComponentIcon-CWDJZO4Q.js";import"./bar-chart-square-check-_m-oYysN.js";import"./layout-GIiNvS10.js";import"./trash-D9LA4VFD.js";import"./DeleteAlertDialog-C5z9RupH.js";import"./zod-D48zuELD.js";import"./index.esm-SBF9nn_P.js";import"./Infobox-CXOIY92f.js";import"./info-CI2szPUG.js";import"./bulk-delete-Bgf_MsSj.js";function O(){const{connectorId:t}=i();return o.jsx(r,{children:o.jsx(m,{fixedQueryParams:{connector_id:t},displayCreateComponent:!1})})}export{O as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as d,j as s}from"./@radix-B1sy0Lhr.js";import{v,aH as F,aI as I,B as x,aS as O,aJ as D,aK as E,D as A,I as h,aT as Q,aN as k,aO as z,w as b,z as t,ay as V,aP as q,u as _,k as B,d as U,A as M,e as H,s as R,f as J}from"./index-
|
1
|
+
import{r as d,j as s}from"./@radix-B1sy0Lhr.js";import{v,aH as F,aI as I,B as x,aS as O,aJ as D,aK as E,D as A,I as h,aT as Q,aN as k,aO as z,w as b,z as t,ay as V,aP as q,u as _,k as B,d as U,A as M,e as H,s as R,f as J}from"./index-Ci5z7q6x.js";import{u as P}from"./update-current-user-mutation-C4CPf7vG.js";import{t as S}from"./zod-D48zuELD.js";import{h as T}from"./@tanstack-Dwlisomv.js";import{u as C}from"./index.esm-SBF9nn_P.js";import{P as L}from"./PasswordChecker-DOPLfvg7.js";import{u as G}from"./UpdatePasswordSchemas-BP4hg95A.js";import{D as W}from"./DisplayDate-57lUNS79.js";import"./@react-router-CHjLNlgw.js";import"./@reactflow-gbyyU3kq.js";const X=t.object({avatarUrl:t.string().transform(e=>(e==null?void 0:e.trim())??null)});function Y(){const[e,a]=d.useState(!1),n=T(),{toast:c}=v(),m=P({onSuccess:()=>{n.invalidateQueries({queryKey:["current-user"]}),n.invalidateQueries({queryKey:["users"]}),a(!1)},onError:r=>{r instanceof Error&&c({status:"error",emphasis:"subtle",icon:s.jsx(b,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:r.message,rounded:!0})}}),l=C({resolver:S(X),defaultValues:{avatarUrl:""}});function p(r){m.mutate({avatar_url:r.avatarUrl})}function u(r){a(r),l.reset()}return s.jsxs(F,{open:e,onOpenChange:u,children:[s.jsx(I,{asChild:!0,children:s.jsxs(x,{intent:"secondary",size:"md",className:"absolute right-1 top-1 flex h-6 w-6 items-center justify-center bg-theme-surface-primary",children:[s.jsx("span",{className:"sr-only",children:"Edit Avatar"}),s.jsx(O,{className:"h-5 w-5 shrink-0 fill-theme-text-primary"})]})}),s.jsxs(D,{children:[s.jsx(E,{children:s.jsx(A,{children:"Update Avatar"})}),s.jsxs("div",{className:"p-7",children:[s.jsx("form",{id:"image-form",onSubmit:l.handleSubmit(p),children:s.jsxs("label",{className:"space-y-0.5",children:[s.jsx("div",{className:"text-text-sm",children:"Avatar URL"}),s.jsx(h,{placeholder:"https://zenml.io/logo.png",className:"w-full",...l.register("avatarUrl")})]})}),s.jsx(Q,{className:"mt-1 border-none text-text-xs text-theme-text-secondary",children:"This will be profile avatar"})]}),s.jsx(k,{children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(z,{asChild:!0,children:s.jsx(x,{intent:"secondary",children:"Cancel"})}),s.jsx(x,{type:"submit",form:"image-form",intent:"primary",disabled:m.isPending||!l.formState.isValid,children:"Update"})]})})]})]})}function Z(){const[e,a]=d.useState(!1);return s.jsxs(F,{onOpenChange:()=>{a(!1)},children:[s.jsx(I,{asChild:!0,children:s.jsx(x,{size:"md",className:"shrink-0",intent:"primary",emphasis:"subtle",children:"Change Password"})}),s.jsxs(D,{children:[s.jsx(E,{children:s.jsx(A,{children:" Update Credentials"})}),e?s.jsx(ss,{}):s.jsx($,{setSuccess:a})]})]})}function $({setSuccess:e}){var f;const a=d.useId(),n=d.useId(),c=d.useId(),{toast:m}=v(),{mutate:l,isPending:p}=P({onSuccess(){e(!0)},onError(o){q(o)&&m({status:"error",emphasis:"subtle",icon:s.jsx(b,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:o.message,rounded:!0})}}),{register:u,handleSubmit:r,watch:w,formState:{isValid:N,errors:y}}=C({resolver:S(G),mode:"onChange",criteriaMode:"all"});function g(o){l({old_password:o.oldPassword,password:o.newPassword})}const j=(f=y.newPassword)==null?void 0:f.types;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"space-y-5 p-7",children:[s.jsx("form",{id:"update-password-form",onSubmit:r(g),children:s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:a,className:"text-text-sm",children:"Old Password"}),s.jsx(h,{...u("oldPassword"),type:"password",id:a,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:n,className:"text-text-sm",children:"New Password"}),s.jsx(h,{...u("newPassword"),type:"password",id:n,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:c,className:"text-text-sm",children:"Confirm Password"}),s.jsx(h,{...u("confirmPassword"),type:"password",id:c,className:"w-full"})]})]})}),s.jsx(L,{val:w("newPassword"),errors:j||[]})]}),s.jsxs(k,{className:"gap-[10px]",children:[s.jsx(z,{asChild:!0,children:s.jsx(x,{size:"sm",intent:"secondary",children:"Cancel"})}),s.jsx(x,{disabled:!N||p,form:"update-password-form",size:"sm",children:"Update Password"})]})]})}function ss(){return s.jsxs("div",{className:"space-y-5 p-7 text-center",children:[s.jsx(V,{className:"mx-auto h-[110px] w-[110px] fill-success-500"}),s.jsx("p",{className:"text-text-lg font-semibold text-theme-text-primary",children:"The password was updated successfully!"})]})}const es=t.object({fullName:t.union([t.string(),t.literal("")]),username:t.union([t.string(),t.literal("")]),email:t.union([t.string().email(),t.literal("")])}).refine(e=>e.fullName!==""||e.username!==""||e.email!=="");function as({user:e}){var j,f,o;const a=T(),{toast:n}=v(),c=d.useId(),m=d.useId(),l=d.useId(),{isPending:p,mutate:u}=P({onError(i){q(i)&&n({status:"error",emphasis:"subtle",icon:s.jsx(b,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:i.message,rounded:!0})},onSuccess:()=>{a.invalidateQueries({queryKey:["current-user"]}),a.invalidateQueries({queryKey:["users"]}),w(),n({status:"success",emphasis:"subtle",rounded:!0,description:"User updated successfully"})}}),{register:r,reset:w,handleSubmit:N,formState:{isValid:y}}=C({resolver:S(es),defaultValues:{email:void 0,fullName:void 0,username:void 0}});function g(i){const K={...i.fullName&&{full_name:i.fullName},...i.username&&{name:i.username},...i.email&&{email:i.email}};u(K)}return s.jsxs("div",{className:"w-full max-w-[600px]",children:[s.jsx("form",{onSubmit:N(g),children:s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:c,className:"text-text-sm",children:"Full Name"}),s.jsx(h,{placeholder:(j=e.body)==null?void 0:j.full_name,...r("fullName"),id:c,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:m,className:"text-text-sm",children:"Username"}),s.jsx(h,{...r("username"),placeholder:e.name,id:m,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:l,className:"text-text-sm",children:"Email"}),s.jsx(h,{placeholder:((f=e.metadata)==null?void 0:f.email)??void 0,...r("email"),id:l,className:"w-full"})]}),s.jsx("div",{className:"flex justify-end",children:s.jsx(x,{disabled:p||!y,size:"md",intent:"primary",children:"Update"})})]})}),s.jsx(Z,{}),s.jsxs("p",{className:"mt-5 text-text-sm text-theme-text-secondary",children:["Created on ",s.jsx(W,{dateString:((o=e.body)==null?void 0:o.created)||""})]})]})}function hs(){var a;const{data:e}=_();return s.jsxs(B,{className:"flex flex-col gap-5 p-5",children:[s.jsx("h1",{className:"text-text-xl font-semibold",children:"Profile"}),s.jsxs("div",{className:"flex justify-between",children:[e?s.jsx(as,{user:e}):s.jsx(U,{className:"h-[350px] w-full"}),e?s.jsxs(M,{size:"xxl",className:"ml-5 h-[140px] w-[140px]",type:"square",children:[s.jsx(H,{src:R(((a=e.body)==null?void 0:a.avatar_url)??void 0)}),s.jsx(J,{className:"text-display-lg",size:"xxl",children:e.name[0]}),s.jsx(Y,{})]}):s.jsx(U,{className:"h-[140px] w-[140px] rounded-rounded"})]})]})}export{hs as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-B1sy0Lhr.js";import{P as r,a as n,b as o,c as i,d as l,e as c}from"./ProCta-
|
1
|
+
import{j as e}from"./@radix-B1sy0Lhr.js";import{P as r,a as n,b as o,c as i,d as l,e as c}from"./ProCta-DspRnbtD.js";import{C as m}from"./CodeSnippet-D7OZMz7I.js";import{k as d}from"./index-Ci5z7q6x.js";import{f}from"./@react-router-CHjLNlgw.js";import"./check-C9Nye5lR.js";import"./@tanstack-Dwlisomv.js";import"./@reactflow-gbyyU3kq.js";const u="/assets/acp-DOsXjFc7.webp";function x(){const[a]=f(),t=a.get("artifact");function s(){return t?`zenml artifact list --name='contains:${t}'`:"zenml artifact list"}return e.jsxs(d,{className:"flex flex-wrap justify-between p-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-text-xl font-semibold",children:"Staying Open Source? "}),e.jsx("p",{className:"text-theme-text-secondary",children:"No problem! Use this CLI command to list your artifacts"})]}),e.jsx(m,{code:s()})]})}function S(){return e.jsxs("div",{className:"layout-container space-y-5 py-5",children:[e.jsxs(r,{className:"relative overflow-y-hidden",children:[e.jsxs("div",{className:"w-full max-w-none space-y-5 lg:max-w-[900px]",children:[e.jsx(n,{children:"Advanced Artifact Management Features with ZenML Pro"}),e.jsx(o,{}),e.jsx(i,{features:[{title:"Artifact Control Plane Dashboard",subtitle:"Artifact management and monitoring"},{title:"Enterprise Security",subtitle:"Social SSO, RBAC, and User Management"},{title:"Managed ZenML Server",subtitle:"On your VPC or hosted on our infrastructure"},{title:"Advanced MLOps",subtitle:"CI/CD/CT, Model Control Plane and more"}]}),e.jsx(l,{})]}),e.jsx(c,{className:"absolute translate-x-[30%] translate-y-[15%] scale-[40%]",src:u,alt:"Screenshot of the ZenML Pro Artifact Control Plane"})]}),e.jsx(x,{})]})}export{S as default};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{r as i,j as e}from"./@radix-B1sy0Lhr.js";import{a as p,u as D,S as v,E as S}from"./SecretTooltip-
|
1
|
+
import{r as i,j as e}from"./@radix-B1sy0Lhr.js";import{a as p,u as D,S as v,E as S}from"./SecretTooltip-BsFul9Oe.js";import{b as f,h as b}from"./@tanstack-Dwlisomv.js";import{az as C,aA as N,aB as E,I as j,aD as w,aE as k,B as h,aP as T,bb as A,L as K,M as O,N as V,O as B,d as L,aH as z,aI as I,Y as F,$ as P,bc as Q,r as R,k as q,X as H}from"./index-Ci5z7q6x.js";import{S as M}from"./eye-BXcQevds.js";import{S as _}from"./key-icon-BiV171aI.js";import{S as $}from"./trash-D9LA4VFD.js";import{A as U}from"./AlertDialogDropdownItem-DuTp8JFP.js";import{a as X}from"./@react-router-CHjLNlgw.js";import"./plus-DOrkJCmy.js";import"./zod-D48zuELD.js";import"./index.esm-SBF9nn_P.js";import"./CodeSnippet-D7OZMz7I.js";import"./info-CI2szPUG.js";import"./@reactflow-gbyyU3kq.js";function Y({secretId:t,keyName:s}){const{data:a,isLoading:r,isError:u}=f({...p.secretDetail(t)}),l=b(),{mutate:c}=D({onError(d){T(d)&&A({status:"error",emphasis:"subtle",description:d.message,rounded:!0})},onSuccess(){l.invalidateQueries({queryKey:["secrets"]}),l.invalidateQueries({queryKey:["secretDetail",t]})}}),[n,m]=i.useState(""),x=()=>{var d;if(a){const g={...(d=a.body)==null?void 0:d.values};delete g[s];const y={name:a.name,values:g};c({id:t,body:y})}};function o(d){m(d.target.value)}return r?e.jsx("div",{children:"Loading..."}):u?e.jsx("div",{children:"Error loading secret details"}):e.jsxs(C,{children:[e.jsx(N,{children:e.jsx(E,{children:"Delete Key"})}),e.jsxs("div",{className:"gap-5 p-5",children:[e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"Are you sure you want to delete this key?"}),e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"This action cannot be undone."}),e.jsx("h3",{className:"font-inter text-sm mb-1 mt-4 text-left font-medium leading-5",children:"Please type DELETE to confirm"}),e.jsx(j,{name:"key",onChange:o,className:"w-full",required:!0,value:n})]}),e.jsxs(w,{className:"gap-[10px]",children:[e.jsx(k,{asChild:!0,children:e.jsx(h,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(h,{intent:"danger",type:"button",onClick:x,disabled:n!=="DELETE",children:"Delete"})]})]})}function G({secretId:t,keyName:s}){const[a,r]=i.useState(!1),[u,l]=i.useState(!1),c=i.useRef(null),n=i.useRef(null);function m(){n.current=c.current}function x(o){if(o===!1){r(!1),setTimeout(()=>{l(o)},200);return}l(o)}return e.jsxs(K,{onOpenChange:r,open:a,children:[e.jsx(O,{ref:c,children:e.jsx(V,{className:"h-4 w-4 fill-theme-text-tertiary"})}),e.jsx(B,{hidden:u,onCloseAutoFocus:o=>{n.current&&(n.current.focus(),n.current=null,o.preventDefault())},align:"end",sideOffset:7,children:e.jsx(U,{onSelect:m,onOpenChange:x,triggerChildren:"Delete ",icon:e.jsx($,{}),children:e.jsx(Y,{secretId:t,keyName:s})})})]})}const J=({value:t})=>{const[s,a]=i.useState(!1),r=typeof t=="string"?t:"",u="•".repeat(r.length);return e.jsxs("div",{className:"flex items-center gap-2 space-x-2",children:[e.jsx(M,{onClick:()=>a(!s),className:"h-4 w-4 flex-shrink-0"}),e.jsx("span",{children:s?r:u})]})};function W(t,s){return[{id:"key",header:"Key",accessorKey:"key",cell:({row:a})=>{const r=`from zenml.client import Client
|
2
2
|
secret = Client().get_secret("${s}")
|
3
3
|
|
4
4
|
# 'secret.secret_values' will contain a dictionary with all key-value pairs within your secret.
|
@@ -1 +1 @@
|
|
1
|
-
import{r as l,j as e}from"./@radix-B1sy0Lhr.js";import{u as m,W as B,L as I}from"./LeftSideMenu-D5UEs4vB.js";import{p as C,s as M,c as k}from"./persist-B3Hb8HDW.js";import{I as b}from"./Infobox-DnduZjNU.js";import{W as v,H as g,B as y}from"./Wizard-2FIi8JNY.js";import{t as z}from"./zod-D48zuELD.js";import{B as p,bl as A,d as P,b8 as F,r as Z,z as _}from"./index-CO6UN3UX.js";import{u as T,F as L,a as W}from"./index.esm-SBF9nn_P.js";import{S as V,C as x,P as f}from"./ProviderRadio-C6pLVNxC.js";import{S as N}from"./WizardFooter-DQEnlDmZ.js";import{R as H,a as O,E as $,C as G}from"./Partials-DosysQMU.js";import{b as Q,a as Y}from"./persist-Dkbp9MFP.js";import{S as q}from"./logs-lNLbZqHL.js";import{C as j}from"./CodeSnippet-B7Wd4R8u.js";import{N as w}from"./NumberBox-C2Pju4PR.js";import{s as E}from"./index-BYHxFvoG.js";import{b as D}from"./@tanstack-Dwlisomv.js";import{c as J}from"./@react-router-CHjLNlgw.js";import{C as h}from"./ProviderIcon-aQjTuTRX.js";import"./Tick-BQ7_xDBl.js";import"./check-C9Nye5lR.js";import"./info-CI2szPUG.js";import"./@reactflow-gbyyU3kq.js";import"./package-pR4bbXJp.js";import"./credit-card-DfBA6dBb.js";import"./ComponentBadge-MVT08kBV.js";import"./ComponentIcon-C9AY8usJ.js";import"./bar-chart-square-check-_m-oYysN.js";import"./layout-GIiNvS10.js";import"./transform-S7omcvTm.js";import"./sharedSchema-Br1JPr8d.js";import"./index.es-CZMSrR6z.js";import"./stack-detail-query-DnyMCdVE.js";const R=l.createContext(null);function K({children:r}){const{setCurrentStep:t}=m(),[i,s]=l.useState({}),[o,c]=l.useState("");return l.useEffect(()=>{const{success:a,data:n}=C();if(a){t(3),s({location:n.location,provider:n.provider,stackName:n.stackName}),c(n.timestamp);return}t(1)},[C]),e.jsx(R.Provider,{value:{data:i,setData:s,timestamp:o,setTimestamp:c},children:r})}function d(){const r=l.useContext(R);if(r===null)throw new Error("useCreateTerraformContext must be used within an CreateTerraformContext");return r}function U(){const{setData:r,data:t,setTimestamp:i}=d(),{setCurrentStep:s}=m(),o=T({resolver:z(Q,{async:!0}),defaultValues:{region:t.location||"",stackName:t.stackName||""}});function c(a){const n=new Date().toISOString().slice(0,-1);M({location:a.region,provider:t.provider||"aws",stackName:a.stackName,timestamp:n}),i(n),r(u=>({...u,location:a.region,stackName:a.stackName})),s(u=>u+1)}return e.jsx(L,{...o,children:e.jsxs(v,{children:[e.jsx(g,{children:"Review Stack Configuration"}),e.jsx(y,{children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs(b,{className:"text-text-sm",children:[e.jsx("p",{className:"font-semibold",children:"Important"}),e.jsx("p",{children:"This will create new resources in your account. Ensure you have the necessary permissions and are aware of any potential costs."})]}),e.jsxs("form",{id:"configuration-form",onSubmit:o.handleSubmit(c),className:"space-y-5",children:[e.jsx(H,{provider:t.provider||"aws"}),e.jsx(V,{})]}),e.jsx(O,{provider:t.provider||"aws"}),e.jsx($,{provider:t.provider||"aws"})]})}),e.jsx(N,{children:e.jsx(X,{})})]})})}function X(){const{formState:{isSubmitting:r}}=W();return e.jsx(p,{disabled:r,form:"configuration-form",size:"md",children:"Next"})}function ee(){return e.jsxs("div",{className:"space-y-5",children:[e.jsx("div",{className:"space-y-1",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(w,{children:"3"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Run the following commands"})]})}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Initialize the Terraform configuration."}),e.jsx(j,{code:"terraform init --upgrade"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Run terraform apply to deploy the ZenML stack to Azure."}),e.jsx(j,{code:"terraform apply"})]})]})}function re(){const{data:r,timestamp:t}=d(),{setCurrentStep:i}=m(),s=D({...E.stackDeploymentStack({provider:r.provider,stack_name:r.stackName,date_start:t,terraform:!0}),refetchInterval:5e3,throwOnError:!0});return l.useEffect(()=>{s.data&&(k(),i(o=>o+1))},[s.data]),{fullstackDeployment:s,data:r}}function te(){const{fullstackDeployment:r,data:t}=re();return r.isError?e.jsx("p",{children:"Error fetching Terraform Command"}):r.isPending?e.jsx(P,{className:"h-[200px] w-full"}):e.jsx(ae,{provider:t.provider||"aws",stackName:t.stackName||""})}function se(){return e.jsxs("section",{className:"space-y-5 border-t border-theme-border-moderate pt-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(A,{className:"h-5 w-5 fill-primary-400"}),"Waiting for your Terraform script to finish..."]}),e.jsx("p",{className:"text-theme-text-secondary",children:"We are detecting whether your Terraform script ran through successfully. Once the terraform script has finished successfully, come back to check your brand new stack and components ready."})]}),e.jsx(te,{})]})}function ae({stackName:r,provider:t}){return e.jsxs("div",{className:"relative overflow-hidden rounded-md",children:[e.jsx("div",{className:"absolute z-50 h-full w-full bg-neutral-50/50"}),e.jsx(G,{type:t,componentProps:{isLoading:!0,isSuccess:!1,stackName:r}})]})}function oe(){return e.jsxs(v,{children:[e.jsx(g,{children:"Deploy ZenML Stack"}),e.jsx(y,{children:e.jsxs("section",{className:"space-y-5",children:[e.jsx(ne,{}),e.jsx(de,{}),e.jsx(me,{}),e.jsx(ee,{}),e.jsx(se,{})]})}),e.jsxs(N,{displayCancel:!1,children:[e.jsx(ue,{}),e.jsx(ie,{})]})]})}function ie(){return e.jsx(p,{disabled:!0,size:"md",children:"Next"})}function ne(){return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(q,{className:"h-5 w-5 fill-primary-400"}),"Configuration"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Follow the steps to deploy your Stack."})]})}function ce(r){switch(r){case"aws":return"https://aws.amazon.com/cli/";case"azure":return"https://learn.microsoft.com/en-us/cli/azure/";case"gcp":return"https://cloud.google.com/sdk/gcloud"}}function le(r){switch(r){case"aws":return"AWS";case"gcp":return"gcloud";case"azure":return"Azure"}}function de(){const{data:r}=d();return e.jsx("div",{className:"space-y-5",children:e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(w,{children:"1"}),e.jsxs("span",{className:"text-text-lg font-semibold",children:["Login locally with the ",le(r.provider||"aws")," CLI"]})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Make sure you are logged in locally with an account with appropriate permissions."}),e.jsx(p,{asChild:!0,className:"w-fit gap-1",intent:"secondary",emphasis:"subtle",size:"md",children:e.jsxs("a",{rel:"noopener noreferrer",target:"_blank",href:ce(r.provider||"aws"),children:[e.jsx("span",{children:"Learn More"}),e.jsx(F,{className:"h-5 w-5 shrink-0 fill-primary-900"})]})})]})})}function me(){const{data:r}=d();return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(w,{children:"2"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Create a file with the following configuration"})]}),e.jsxs("p",{className:"text-theme-text-secondary",children:["Create a file named ",e.jsx("code",{className:"font-mono text-primary-400",children:"main.tf"})," in the Cloud Shell and copy and paste the Terraform configuration below into it."]})]}),r.provider==="gcp"&&e.jsxs(b,{intent:"warning",children:["Please replace ",e.jsx("code",{className:"font-mono text-primary-400",children:"project_id"})," in the following Terraform script with your own one."]}),e.jsx(pe,{})]})}function pe(){const{data:r}=d(),t=D({...E.stackDeploymentConfig({provider:r.provider||"aws",terraform:!0,stack_name:r.stackName,location:r.location}),enabled:!!r.stackName});return t.isError?null:t.isPending?e.jsx(P,{className:"h-[200px] w-full"}):e.jsx(j,{fullWidth:!0,highlightCode:!0,codeClasses:"whitespace-pre-wrap word-break-all",wrap:!0,code:t.data.configuration||""})}function ue(){const r=J();function t(){k(),r(Z.stacks.create.index)}return e.jsx(p,{onClick:()=>t(),intent:"secondary",size:"md",children:"Cancel"})}const xe=_.object({provider:Y});function fe(){const{setData:r,data:t}=d(),{setCurrentStep:i}=m(),s=T({resolver:z(xe),defaultValues:{provider:t.provider||void 0}});function o(c){r(a=>({...a,provider:c.provider})),i(a=>a+1)}return e.jsx(L,{...s,children:e.jsxs(v,{children:[e.jsx(g,{children:"New Cloud infrastructure"}),e.jsx(y,{children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Select a Cloud Provider"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select the cloud provider where your want to create your infrastructure. You will be able to remove the ZenML stack at any time."})]}),e.jsxs("form",{id:"provider-form",onSubmit:s.handleSubmit(o),className:"grid grid-cols-1 gap-3 xl:grid-cols-3",children:[e.jsx(x,{id:"aws-provider",...s.register("provider"),value:"aws",children:e.jsx(f,{icon:e.jsx(h,{provider:"aws",className:"h-6 w-6 shrink-0"}),title:"AWS",subtitle:"Connect your existing S3, ECR, and Sagemaker components to ZenML"})}),e.jsx(x,{id:"gcp-provider",...s.register("provider"),value:"gcp",children:e.jsx(f,{icon:e.jsx(h,{provider:"gcp",className:"h-6 w-6 shrink-0"}),title:"GCP",subtitle:"Link your GCS, Artifact Registry, and Vertex AI components to ZenML"})}),e.jsx(x,{id:"azure-provider",...s.register("provider"),value:"azure",children:e.jsx(f,{icon:e.jsx(h,{provider:"azure",className:"h-6 w-6 shrink-0"}),title:"Azure",subtitle:"Integrate ZenML with your Blob Storage, Container Registry, and Azure ML"})})]})]})}),e.jsx(N,{children:e.jsx(he,{})})]})})}function he(){const{formState:{isValid:r}}=W();return e.jsx(p,{form:"provider-form",disabled:!r,size:"md",children:"Next"})}function je(){const{currentStep:r}=m();if(r===1)return e.jsx(fe,{});if(r===2)return e.jsx(U,{});if(r===3)return e.jsx(oe,{})}const S=["Infrastructure Type","Cloud Provider","Review Configuration","Deploy Stack"];function Ke(){return e.jsx(B,{maxSteps:S.length,initialStep:0,children:e.jsx(K,{children:e.jsxs("section",{className:"layout-container flex flex-col gap-5 py-5 xl:flex-row",children:[e.jsx(I,{entries:S}),e.jsx("div",{className:"w-full overflow-y-hidden",children:e.jsx(je,{})})]})})})}export{Ke as default};
|
1
|
+
import{r as l,j as e}from"./@radix-B1sy0Lhr.js";import{u as m,W as B,L as I}from"./LeftSideMenu-DGICatl7.js";import{p as C,s as M,c as k}from"./persist-FuiGbvJD.js";import{I as b}from"./Infobox-CXOIY92f.js";import{W as v,H as g,B as y}from"./Wizard-0nbnAM1R.js";import{t as z}from"./zod-D48zuELD.js";import{B as p,bl as A,d as P,b8 as F,r as Z,z as _}from"./index-Ci5z7q6x.js";import{u as T,F as L,a as W}from"./index.esm-SBF9nn_P.js";import{S as V,C as x,P as f}from"./ProviderRadio-BixXi4GC.js";import{S as N}from"./WizardFooter-CLPi4VBo.js";import{R as H,a as O,E as $,C as G}from"./Partials-NicibWrh.js";import{b as Q,a as Y}from"./persist-C98EYq5I.js";import{S as q}from"./logs-lNLbZqHL.js";import{C as j}from"./CodeSnippet-D7OZMz7I.js";import{N as w}from"./NumberBox-7OIA56xe.js";import{s as E}from"./index-BYCBKUXk.js";import{b as D}from"./@tanstack-Dwlisomv.js";import{c as J}from"./@react-router-CHjLNlgw.js";import{C as h}from"./ProviderIcon-DwKsXziU.js";import"./Tick-Bo7jwBjb.js";import"./check-C9Nye5lR.js";import"./info-CI2szPUG.js";import"./@reactflow-gbyyU3kq.js";import"./package-pR4bbXJp.js";import"./credit-card-DfBA6dBb.js";import"./ComponentBadge-BVRb7wgm.js";import"./ComponentIcon-CWDJZO4Q.js";import"./bar-chart-square-check-_m-oYysN.js";import"./layout-GIiNvS10.js";import"./transform-S7omcvTm.js";import"./sharedSchema-CKFbjwmg.js";import"./index.es-CZMSrR6z.js";import"./stack-detail-query-JsrqFo3U.js";const R=l.createContext(null);function K({children:r}){const{setCurrentStep:t}=m(),[i,s]=l.useState({}),[o,c]=l.useState("");return l.useEffect(()=>{const{success:a,data:n}=C();if(a){t(3),s({location:n.location,provider:n.provider,stackName:n.stackName}),c(n.timestamp);return}t(1)},[C]),e.jsx(R.Provider,{value:{data:i,setData:s,timestamp:o,setTimestamp:c},children:r})}function d(){const r=l.useContext(R);if(r===null)throw new Error("useCreateTerraformContext must be used within an CreateTerraformContext");return r}function U(){const{setData:r,data:t,setTimestamp:i}=d(),{setCurrentStep:s}=m(),o=T({resolver:z(Q,{async:!0}),defaultValues:{region:t.location||"",stackName:t.stackName||""}});function c(a){const n=new Date().toISOString().slice(0,-1);M({location:a.region,provider:t.provider||"aws",stackName:a.stackName,timestamp:n}),i(n),r(u=>({...u,location:a.region,stackName:a.stackName})),s(u=>u+1)}return e.jsx(L,{...o,children:e.jsxs(v,{children:[e.jsx(g,{children:"Review Stack Configuration"}),e.jsx(y,{children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs(b,{className:"text-text-sm",children:[e.jsx("p",{className:"font-semibold",children:"Important"}),e.jsx("p",{children:"This will create new resources in your account. Ensure you have the necessary permissions and are aware of any potential costs."})]}),e.jsxs("form",{id:"configuration-form",onSubmit:o.handleSubmit(c),className:"space-y-5",children:[e.jsx(H,{provider:t.provider||"aws"}),e.jsx(V,{})]}),e.jsx(O,{provider:t.provider||"aws"}),e.jsx($,{provider:t.provider||"aws"})]})}),e.jsx(N,{children:e.jsx(X,{})})]})})}function X(){const{formState:{isSubmitting:r}}=W();return e.jsx(p,{disabled:r,form:"configuration-form",size:"md",children:"Next"})}function ee(){return e.jsxs("div",{className:"space-y-5",children:[e.jsx("div",{className:"space-y-1",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(w,{children:"3"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Run the following commands"})]})}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Initialize the Terraform configuration."}),e.jsx(j,{code:"terraform init --upgrade"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Run terraform apply to deploy the ZenML stack to Azure."}),e.jsx(j,{code:"terraform apply"})]})]})}function re(){const{data:r,timestamp:t}=d(),{setCurrentStep:i}=m(),s=D({...E.stackDeploymentStack({provider:r.provider,stack_name:r.stackName,date_start:t,terraform:!0}),refetchInterval:5e3,throwOnError:!0});return l.useEffect(()=>{s.data&&(k(),i(o=>o+1))},[s.data]),{fullstackDeployment:s,data:r}}function te(){const{fullstackDeployment:r,data:t}=re();return r.isError?e.jsx("p",{children:"Error fetching Terraform Command"}):r.isPending?e.jsx(P,{className:"h-[200px] w-full"}):e.jsx(ae,{provider:t.provider||"aws",stackName:t.stackName||""})}function se(){return e.jsxs("section",{className:"space-y-5 border-t border-theme-border-moderate pt-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(A,{className:"h-5 w-5 fill-primary-400"}),"Waiting for your Terraform script to finish..."]}),e.jsx("p",{className:"text-theme-text-secondary",children:"We are detecting whether your Terraform script ran through successfully. Once the terraform script has finished successfully, come back to check your brand new stack and components ready."})]}),e.jsx(te,{})]})}function ae({stackName:r,provider:t}){return e.jsxs("div",{className:"relative overflow-hidden rounded-md",children:[e.jsx("div",{className:"absolute z-50 h-full w-full bg-neutral-50/50"}),e.jsx(G,{type:t,componentProps:{isLoading:!0,isSuccess:!1,stackName:r}})]})}function oe(){return e.jsxs(v,{children:[e.jsx(g,{children:"Deploy ZenML Stack"}),e.jsx(y,{children:e.jsxs("section",{className:"space-y-5",children:[e.jsx(ne,{}),e.jsx(de,{}),e.jsx(me,{}),e.jsx(ee,{}),e.jsx(se,{})]})}),e.jsxs(N,{displayCancel:!1,children:[e.jsx(ue,{}),e.jsx(ie,{})]})]})}function ie(){return e.jsx(p,{disabled:!0,size:"md",children:"Next"})}function ne(){return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(q,{className:"h-5 w-5 fill-primary-400"}),"Configuration"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Follow the steps to deploy your Stack."})]})}function ce(r){switch(r){case"aws":return"https://aws.amazon.com/cli/";case"azure":return"https://learn.microsoft.com/en-us/cli/azure/";case"gcp":return"https://cloud.google.com/sdk/gcloud"}}function le(r){switch(r){case"aws":return"AWS";case"gcp":return"gcloud";case"azure":return"Azure"}}function de(){const{data:r}=d();return e.jsx("div",{className:"space-y-5",children:e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(w,{children:"1"}),e.jsxs("span",{className:"text-text-lg font-semibold",children:["Login locally with the ",le(r.provider||"aws")," CLI"]})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Make sure you are logged in locally with an account with appropriate permissions."}),e.jsx(p,{asChild:!0,className:"w-fit gap-1",intent:"secondary",emphasis:"subtle",size:"md",children:e.jsxs("a",{rel:"noopener noreferrer",target:"_blank",href:ce(r.provider||"aws"),children:[e.jsx("span",{children:"Learn More"}),e.jsx(F,{className:"h-5 w-5 shrink-0 fill-primary-900"})]})})]})})}function me(){const{data:r}=d();return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(w,{children:"2"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Create a file with the following configuration"})]}),e.jsxs("p",{className:"text-theme-text-secondary",children:["Create a file named ",e.jsx("code",{className:"font-mono text-primary-400",children:"main.tf"})," in the Cloud Shell and copy and paste the Terraform configuration below into it."]})]}),r.provider==="gcp"&&e.jsxs(b,{intent:"warning",children:["Please replace ",e.jsx("code",{className:"font-mono text-primary-400",children:"project_id"})," in the following Terraform script with your own one."]}),e.jsx(pe,{})]})}function pe(){const{data:r}=d(),t=D({...E.stackDeploymentConfig({provider:r.provider||"aws",terraform:!0,stack_name:r.stackName,location:r.location}),enabled:!!r.stackName});return t.isError?null:t.isPending?e.jsx(P,{className:"h-[200px] w-full"}):e.jsx(j,{fullWidth:!0,highlightCode:!0,codeClasses:"whitespace-pre-wrap word-break-all",wrap:!0,code:t.data.configuration||""})}function ue(){const r=J();function t(){k(),r(Z.stacks.create.index)}return e.jsx(p,{onClick:()=>t(),intent:"secondary",size:"md",children:"Cancel"})}const xe=_.object({provider:Y});function fe(){const{setData:r,data:t}=d(),{setCurrentStep:i}=m(),s=T({resolver:z(xe),defaultValues:{provider:t.provider||void 0}});function o(c){r(a=>({...a,provider:c.provider})),i(a=>a+1)}return e.jsx(L,{...s,children:e.jsxs(v,{children:[e.jsx(g,{children:"New Cloud infrastructure"}),e.jsx(y,{children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Select a Cloud Provider"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select the cloud provider where your want to create your infrastructure. You will be able to remove the ZenML stack at any time."})]}),e.jsxs("form",{id:"provider-form",onSubmit:s.handleSubmit(o),className:"grid grid-cols-1 gap-3 xl:grid-cols-3",children:[e.jsx(x,{id:"aws-provider",...s.register("provider"),value:"aws",children:e.jsx(f,{icon:e.jsx(h,{provider:"aws",className:"h-6 w-6 shrink-0"}),title:"AWS",subtitle:"Connect your existing S3, ECR, and Sagemaker components to ZenML"})}),e.jsx(x,{id:"gcp-provider",...s.register("provider"),value:"gcp",children:e.jsx(f,{icon:e.jsx(h,{provider:"gcp",className:"h-6 w-6 shrink-0"}),title:"GCP",subtitle:"Link your GCS, Artifact Registry, and Vertex AI components to ZenML"})}),e.jsx(x,{id:"azure-provider",...s.register("provider"),value:"azure",children:e.jsx(f,{icon:e.jsx(h,{provider:"azure",className:"h-6 w-6 shrink-0"}),title:"Azure",subtitle:"Integrate ZenML with your Blob Storage, Container Registry, and Azure ML"})})]})]})}),e.jsx(N,{children:e.jsx(he,{})})]})})}function he(){const{formState:{isValid:r}}=W();return e.jsx(p,{form:"provider-form",disabled:!r,size:"md",children:"Next"})}function je(){const{currentStep:r}=m();if(r===1)return e.jsx(fe,{});if(r===2)return e.jsx(U,{});if(r===3)return e.jsx(oe,{})}const S=["Infrastructure Type","Cloud Provider","Review Configuration","Deploy Stack"];function Ke(){return e.jsx(B,{maxSteps:S.length,initialStep:0,children:e.jsx(K,{children:e.jsxs("section",{className:"layout-container flex flex-col gap-5 py-5 xl:flex-row",children:[e.jsx(I,{entries:S}),e.jsx("div",{className:"w-full overflow-y-hidden",children:e.jsx(je,{})})]})})})}export{Ke as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as p,j as e}from"./@radix-B1sy0Lhr.js";import{x as D,F as C,_ as K,G as k,H as E,aJ as T,aK as P,D as F,I as j,aN as O,aO as A,B as u,L as $,M as B,N as U,O as G,aS as J,r as S,X as v,a2 as X,z as f,u as Y,d as N,aH as W,aI as Z,v as ee,aP as se,Y as te,k as re}from"./index-CO6UN3UX.js";import{P as ae}from"./Pagination-C1sE5Nzn.js";import{S as ne}from"./SearchField-Byv1PtST.js";import{E as ie,S as le,s as ce,a as oe}from"./SecretTooltip-CErfhVgF.js";import{c as V,h as _,b as me}from"./@tanstack-Dwlisomv.js";import{S as de}from"./Lock-u8WOoTTd.js";import{D as ue}from"./DisplayDate-57lUNS79.js";import{c as xe}from"./code-snippets-CqONne41.js";import{L as w,f as he}from"./@react-router-CHjLNlgw.js";import{S as I}from"./trash-D9LA4VFD.js";import{D as b}from"./DialogItem-DD_7v3UY.js";import{S as pe}from"./eye-BXcQevds.js";import{S as L}from"./plus-DOrkJCmy.js";import{t as fe}from"./zod-D48zuELD.js";import{u as je,b as ge,C as g}from"./index.esm-SBF9nn_P.js";import"./@reactflow-gbyyU3kq.js";import"./chevron-right-double-CbMG1dOM.js";import"./index-g7wOyc86.js";import"./CodeSnippet-B7Wd4R8u.js";import"./info-CI2szPUG.js";async function ye(t){const s=C(E.secrets.detail(t)),r=await D(s,{method:"DELETE",headers:{"Content-Type":"application/json"}});if(r.status===404&&K(),!r.ok)throw new k({message:"Error deleting secret",status:r.status,statusText:r.statusText});return r.json()}function Ne(t){return V({mutationFn:async s=>ye(s),...t})}function Se({secretId:t}){const s=_(),{mutate:r}=Ne({onSuccess(){s.invalidateQueries({queryKey:["secrets"]})}}),[a,n]=p.useState("");function o(){r(t)}function m(x){n(x.target.value)}return e.jsxs(T,{children:[e.jsx(P,{children:e.jsx(F,{children:"Delete secret"})}),e.jsxs("div",{className:"gap-5 p-5",children:[e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"Are you sure you want to delete this secret?"}),e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"This action cannot be undone."}),e.jsx("h3",{className:"font-inter text-sm mb-1 mt-4 text-left font-medium leading-5",children:"Please type DELETE to confirm"}),e.jsx(j,{name:"key",onChange:m,className:"w-full",required:!0,value:a})]}),e.jsxs(O,{className:"gap-[10px]",children:[e.jsx(A,{asChild:!0,children:e.jsx(u,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(u,{intent:"danger",type:"submit",form:"edit-secret-form",onClick:o,disabled:a!=="DELETE",children:"Delete"})]})]})}function ve({secretId:t}){const[s,r]=p.useState(!1),[a,n]=p.useState(!1),o=p.useRef(null),m=p.useRef(null);function x(){m.current=o.current}function h(d){if(d===!1){r(!1),setTimeout(()=>{n(d)},200);return}n(d)}return e.jsxs($,{onOpenChange:r,open:s,children:[e.jsx(B,{ref:o,children:e.jsx(U,{className:"h-4 w-4 fill-theme-text-tertiary"})}),e.jsxs(G,{hidden:a,onCloseAutoFocus:d=>{m.current&&(m.current.focus(),m.current=null,d.preventDefault())},align:"end",sideOffset:7,children:[e.jsx(b,{onSelect:x,onOpenChange:h,triggerChildren:"Edit ",icon:e.jsx(J,{}),children:e.jsx(ie,{secretId:t,isSecretNameEditable:!0,dialogTitle:"Edit secret"})}),e.jsx(b,{onSelect:x,onOpenChange:h,triggerChildren:"Delete ",icon:e.jsx(I,{}),children:e.jsx(Se,{secretId:t})})]})]})}const we=[{id:"secret",header:"Secret",accessorFn:t=>t.name,cell:({getValue:t,row:s})=>{const r=xe(s.original.name);return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(de,{className:"h-5 w-5 flex-shrink-0 fill-primary-400"}),e.jsxs("div",{className:"group/copybutton flex flex-col",children:[e.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(w,{className:"text-text-md font-semibold text-theme-text-primary",to:S.settings.secrets.detail(s.original.id),children:s.original.name}),e.jsx(le,{code:r})]}),e.jsx(v,{copyText:t()})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(w,{to:S.settings.secrets.detail(s.original.id),className:"flex items-center gap-1 text-text-sm text-theme-text-secondary",children:s.original.id.slice(0,8)}),e.jsx(v,{copyText:s.original.id})]})]})]})}},{id:"author",header:"Author",accessorFn:t=>{var s,r;return(r=(s=t.resources)==null?void 0:s.user)==null?void 0:r.name},cell:({row:t})=>{var r,a,n;const s=(r=t.original.resources)==null?void 0:r.user;return s?e.jsx(X,{avatarUrl:((a=s.body)==null?void 0:a.avatar_url)??void 0,username:s.name,isServiceAccount:!!((n=s.body)!=null&&n.is_service_account)}):null}},{id:"created_at",header:"Created At",accessorFn:t=>{var s;return(s=t.body)==null?void 0:s.created},cell:({getValue:t})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(ue,{dateString:t()})})},{id:"admin_actions",header:"",accessorFn:t=>String(t.id),cell:({row:t,getValue:s})=>{var a,n,o;const r=s();return(o=(n=(a=t.original.resources)==null?void 0:a.user)==null?void 0:n.body)!=null&&o.is_admin?e.jsx(ve,{secretId:r}):e.jsx("p",{className:"text-sm text-theme-text-secondary",children:"No Actions"})}}],y=1,be=f.object({page:f.coerce.number().min(y).optional().default(y).catch(y),name:f.string().optional(),operator:f.enum(["and","or"]).optional()});function De(){const[t]=he(),{page:s,name:r,operator:a}=be.parse({page:t.get("page")||void 0,name:t.get("name")||void 0,operator:t.get("operator")||void 0});return{page:s,name:r,logical_operator:a}}async function Ce(t){const s=C(E.secrets.all),r=await D(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok){const a=await r.json().then(n=>n.detail).catch(()=>"Failed to create Secret");throw new k({status:r.status,statusText:r.statusText,message:a})}return r.json()}function ke(t){return V({mutationFn:async s=>Ce(s),...t})}function Ee(){const[t,s]=p.useState(!1),r=Y();if(r.isPending)return e.jsx(N,{className:"h-7 w-full"});if(r.isError)return e.jsx("div",{children:"Error loading user"});const a=r.data.id;return e.jsxs(W,{open:t,onOpenChange:s,children:[e.jsx(Z,{asChild:!0,children:e.jsxs(u,{size:"md",className:"shrink-0",intent:"primary",children:[e.jsx(L,{className:"h-5 w-5 shrink-0 fill-white"}),e.jsx("span",{children:"New Secret"})]})}),e.jsxs(T,{className:"mx-auto w-[90vw] max-w-[744px]",children:[e.jsx(P,{children:e.jsx(F,{children:"Register New Secret"})}),e.jsx(Te,{userId:a,setOpen:s})]})]})}function Te({userId:t,setOpen:s}){const{handleSubmit:r,control:a,watch:n,setValue:o,formState:{isValid:m},reset:x}=je({resolver:fe(ce),defaultValues:{secretName:"",keysValues:[{key:"",value:""}]}}),{fields:h,append:d,remove:q}=ge({control:a,name:"keysValues"}),{toast:M}=ee(),R=_(),{mutate:z}=ke({onError(i){se(i)&&M({status:"error",emphasis:"subtle",description:i.message,rounded:!0})},onSuccess(){R.invalidateQueries({queryKey:["secrets"]}),s(!1),x()}}),Q=i=>{z({user:t,name:i.secretName,values:i.keysValues.reduce((l,c)=>(c.key&&c.value&&(l[c.key]=c.value),l),{})})},H=i=>{Q(i)};return e.jsxs(e.Fragment,{children:[e.jsx("form",{id:"create-secret-form",className:"gap-5 p-5",onSubmit:r(H),children:e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("label",{className:"font-inter text-sm text-left font-medium leading-5",children:["Secret Name",e.jsx("span",{className:"ml-1 text-theme-text-error",children:"*"})]}),e.jsx(g,{name:"secretName",control:a,render:({field:i})=>e.jsx(j,{...i,className:"mb-3 w-full",required:!0})})]}),e.jsxs("div",{className:"mt-10",children:[e.jsx("div",{children:e.jsx("h1",{className:"font-inter text-lg text-left font-semibold",children:"Keys"})}),e.jsxs("div",{className:"mt-5 flex flex-row",children:[e.jsx("div",{className:"flex-grow",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Key"})}),e.jsx("div",{className:"flex-grow pr-12",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Value"})})]})]}),h.map((i,l)=>e.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[e.jsx("div",{className:"relative flex-grow",children:e.jsx(g,{name:`keysValues.${l}.key`,control:a,render:({field:c})=>e.jsx(j,{...c,className:"mb-2 w-full",required:!0,placeholder:"key"})})}),e.jsx("div",{className:"relative flex-grow",children:e.jsxs("div",{className:"relative",children:[e.jsx(g,{name:`keysValues.${l}.value`,control:a,render:({field:c})=>e.jsx(j,{...c,className:"mb-2 w-full pr-10",required:!0,placeholder:"•••••••••",type:n(`keysValues.${l}.showPassword`)?"text":"password"})}),e.jsx("button",{type:"button",onClick:()=>{const c=n(`keysValues.${l}.showPassword`);o(`keysValues.${l}.showPassword`,!c)},className:"absolute inset-y-1 right-0 flex items-center pb-1 pr-3",children:e.jsx(pe,{className:"h-4 w-4 flex-shrink-0"})})]})}),e.jsxs("div",{className:"flex items-center",children:[l===h.length-1&&e.jsx(u,{intent:"primary",emphasis:"subtle",onClick:()=>d({key:"",value:""}),className:"mb-2 flex h-7 w-7 items-center justify-center",children:e.jsx(L,{className:"flex-shrink-0 fill-primary-600"})}),l!==h.length-1&&e.jsx(u,{intent:"secondary",emphasis:"minimal",onClick:()=>q(l),className:"mb-2 h-7 w-7 items-center justify-center",children:e.jsx(I,{className:"flex-shrink-0 fill-theme-text-secondary"})})]})]},i.id))]})}),e.jsxs(O,{className:"gap-[10px]",children:[e.jsx(A,{asChild:!0,children:e.jsx(u,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(u,{intent:"primary",disabled:!m,type:"submit",form:"create-secret-form",children:"Register Secret"})]})]})}function Pe(){const t=De(),{data:s}=me({...oe.secretList({...t,sort_by:"desc:created"}),throwOnError:!0});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsx(ne,{searchParams:t}),e.jsx(Ee,{})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:s?e.jsx(te,{columns:we,data:s.items}):e.jsx(N,{className:"h-[250px] w-full"})}),s?s.total_pages>1&&e.jsx(ae,{searchParams:t,paginate:s}):e.jsx(N,{className:"h-[36px] w-[300px]"})]})]})}function We(){return e.jsxs(re,{className:"space-y-4 p-5",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Secrets"}),e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Configure and manage your pipeline secrets and configurations."," ",e.jsx("a",{target:"_blank",rel:"noreferrer noopener",href:"https://docs.zenml.io/how-to/interact-with-secrets",className:"link text-primary-400",children:"Learn More"})]})]}),e.jsx(Pe,{})]})}export{We as default};
|
1
|
+
import{r as p,j as e}from"./@radix-B1sy0Lhr.js";import{x as D,F as C,_ as K,G as k,H as E,aJ as T,aK as P,D as F,I as j,aN as O,aO as A,B as u,L as $,M as B,N as U,O as G,aS as J,r as S,X as v,a2 as X,z as f,u as Y,d as N,aH as W,aI as Z,v as ee,aP as se,Y as te,k as re}from"./index-Ci5z7q6x.js";import{P as ae}from"./Pagination-CVYIgR9l.js";import{S as ne}from"./SearchField-BbwrusMV.js";import{E as ie,S as le,s as ce,a as oe}from"./SecretTooltip-BsFul9Oe.js";import{c as V,h as _,b as me}from"./@tanstack-Dwlisomv.js";import{S as de}from"./Lock-u8WOoTTd.js";import{D as ue}from"./DisplayDate-57lUNS79.js";import{c as xe}from"./code-snippets-CqONne41.js";import{L as w,f as he}from"./@react-router-CHjLNlgw.js";import{S as I}from"./trash-D9LA4VFD.js";import{D as b}from"./DialogItem-Ce3ugDgT.js";import{S as pe}from"./eye-BXcQevds.js";import{S as L}from"./plus-DOrkJCmy.js";import{t as fe}from"./zod-D48zuELD.js";import{u as je,b as ge,C as g}from"./index.esm-SBF9nn_P.js";import"./@reactflow-gbyyU3kq.js";import"./chevron-right-double-CbMG1dOM.js";import"./index-g7wOyc86.js";import"./CodeSnippet-D7OZMz7I.js";import"./info-CI2szPUG.js";async function ye(t){const s=C(E.secrets.detail(t)),r=await D(s,{method:"DELETE",headers:{"Content-Type":"application/json"}});if(r.status===404&&K(),!r.ok)throw new k({message:"Error deleting secret",status:r.status,statusText:r.statusText});return r.json()}function Ne(t){return V({mutationFn:async s=>ye(s),...t})}function Se({secretId:t}){const s=_(),{mutate:r}=Ne({onSuccess(){s.invalidateQueries({queryKey:["secrets"]})}}),[a,n]=p.useState("");function o(){r(t)}function m(x){n(x.target.value)}return e.jsxs(T,{children:[e.jsx(P,{children:e.jsx(F,{children:"Delete secret"})}),e.jsxs("div",{className:"gap-5 p-5",children:[e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"Are you sure you want to delete this secret?"}),e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"This action cannot be undone."}),e.jsx("h3",{className:"font-inter text-sm mb-1 mt-4 text-left font-medium leading-5",children:"Please type DELETE to confirm"}),e.jsx(j,{name:"key",onChange:m,className:"w-full",required:!0,value:a})]}),e.jsxs(O,{className:"gap-[10px]",children:[e.jsx(A,{asChild:!0,children:e.jsx(u,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(u,{intent:"danger",type:"submit",form:"edit-secret-form",onClick:o,disabled:a!=="DELETE",children:"Delete"})]})]})}function ve({secretId:t}){const[s,r]=p.useState(!1),[a,n]=p.useState(!1),o=p.useRef(null),m=p.useRef(null);function x(){m.current=o.current}function h(d){if(d===!1){r(!1),setTimeout(()=>{n(d)},200);return}n(d)}return e.jsxs($,{onOpenChange:r,open:s,children:[e.jsx(B,{ref:o,children:e.jsx(U,{className:"h-4 w-4 fill-theme-text-tertiary"})}),e.jsxs(G,{hidden:a,onCloseAutoFocus:d=>{m.current&&(m.current.focus(),m.current=null,d.preventDefault())},align:"end",sideOffset:7,children:[e.jsx(b,{onSelect:x,onOpenChange:h,triggerChildren:"Edit ",icon:e.jsx(J,{}),children:e.jsx(ie,{secretId:t,isSecretNameEditable:!0,dialogTitle:"Edit secret"})}),e.jsx(b,{onSelect:x,onOpenChange:h,triggerChildren:"Delete ",icon:e.jsx(I,{}),children:e.jsx(Se,{secretId:t})})]})]})}const we=[{id:"secret",header:"Secret",accessorFn:t=>t.name,cell:({getValue:t,row:s})=>{const r=xe(s.original.name);return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(de,{className:"h-5 w-5 flex-shrink-0 fill-primary-400"}),e.jsxs("div",{className:"group/copybutton flex flex-col",children:[e.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(w,{className:"text-text-md font-semibold text-theme-text-primary",to:S.settings.secrets.detail(s.original.id),children:s.original.name}),e.jsx(le,{code:r})]}),e.jsx(v,{copyText:t()})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(w,{to:S.settings.secrets.detail(s.original.id),className:"flex items-center gap-1 text-text-sm text-theme-text-secondary",children:s.original.id.slice(0,8)}),e.jsx(v,{copyText:s.original.id})]})]})]})}},{id:"author",header:"Author",accessorFn:t=>{var s,r;return(r=(s=t.resources)==null?void 0:s.user)==null?void 0:r.name},cell:({row:t})=>{var r,a,n;const s=(r=t.original.resources)==null?void 0:r.user;return s?e.jsx(X,{avatarUrl:((a=s.body)==null?void 0:a.avatar_url)??void 0,username:s.name,isServiceAccount:!!((n=s.body)!=null&&n.is_service_account)}):null}},{id:"created_at",header:"Created At",accessorFn:t=>{var s;return(s=t.body)==null?void 0:s.created},cell:({getValue:t})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(ue,{dateString:t()})})},{id:"admin_actions",header:"",accessorFn:t=>String(t.id),cell:({row:t,getValue:s})=>{var a,n,o;const r=s();return(o=(n=(a=t.original.resources)==null?void 0:a.user)==null?void 0:n.body)!=null&&o.is_admin?e.jsx(ve,{secretId:r}):e.jsx("p",{className:"text-sm text-theme-text-secondary",children:"No Actions"})}}],y=1,be=f.object({page:f.coerce.number().min(y).optional().default(y).catch(y),name:f.string().optional(),operator:f.enum(["and","or"]).optional()});function De(){const[t]=he(),{page:s,name:r,operator:a}=be.parse({page:t.get("page")||void 0,name:t.get("name")||void 0,operator:t.get("operator")||void 0});return{page:s,name:r,logical_operator:a}}async function Ce(t){const s=C(E.secrets.all),r=await D(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok){const a=await r.json().then(n=>n.detail).catch(()=>"Failed to create Secret");throw new k({status:r.status,statusText:r.statusText,message:a})}return r.json()}function ke(t){return V({mutationFn:async s=>Ce(s),...t})}function Ee(){const[t,s]=p.useState(!1),r=Y();if(r.isPending)return e.jsx(N,{className:"h-7 w-full"});if(r.isError)return e.jsx("div",{children:"Error loading user"});const a=r.data.id;return e.jsxs(W,{open:t,onOpenChange:s,children:[e.jsx(Z,{asChild:!0,children:e.jsxs(u,{size:"md",className:"shrink-0",intent:"primary",children:[e.jsx(L,{className:"h-5 w-5 shrink-0 fill-white"}),e.jsx("span",{children:"New Secret"})]})}),e.jsxs(T,{className:"mx-auto w-[90vw] max-w-[744px]",children:[e.jsx(P,{children:e.jsx(F,{children:"Register New Secret"})}),e.jsx(Te,{userId:a,setOpen:s})]})]})}function Te({userId:t,setOpen:s}){const{handleSubmit:r,control:a,watch:n,setValue:o,formState:{isValid:m},reset:x}=je({resolver:fe(ce),defaultValues:{secretName:"",keysValues:[{key:"",value:""}]}}),{fields:h,append:d,remove:q}=ge({control:a,name:"keysValues"}),{toast:M}=ee(),R=_(),{mutate:z}=ke({onError(i){se(i)&&M({status:"error",emphasis:"subtle",description:i.message,rounded:!0})},onSuccess(){R.invalidateQueries({queryKey:["secrets"]}),s(!1),x()}}),Q=i=>{z({user:t,name:i.secretName,values:i.keysValues.reduce((l,c)=>(c.key&&c.value&&(l[c.key]=c.value),l),{})})},H=i=>{Q(i)};return e.jsxs(e.Fragment,{children:[e.jsx("form",{id:"create-secret-form",className:"gap-5 p-5",onSubmit:r(H),children:e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("label",{className:"font-inter text-sm text-left font-medium leading-5",children:["Secret Name",e.jsx("span",{className:"ml-1 text-theme-text-error",children:"*"})]}),e.jsx(g,{name:"secretName",control:a,render:({field:i})=>e.jsx(j,{...i,className:"mb-3 w-full",required:!0})})]}),e.jsxs("div",{className:"mt-10",children:[e.jsx("div",{children:e.jsx("h1",{className:"font-inter text-lg text-left font-semibold",children:"Keys"})}),e.jsxs("div",{className:"mt-5 flex flex-row",children:[e.jsx("div",{className:"flex-grow",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Key"})}),e.jsx("div",{className:"flex-grow pr-12",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Value"})})]})]}),h.map((i,l)=>e.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[e.jsx("div",{className:"relative flex-grow",children:e.jsx(g,{name:`keysValues.${l}.key`,control:a,render:({field:c})=>e.jsx(j,{...c,className:"mb-2 w-full",required:!0,placeholder:"key"})})}),e.jsx("div",{className:"relative flex-grow",children:e.jsxs("div",{className:"relative",children:[e.jsx(g,{name:`keysValues.${l}.value`,control:a,render:({field:c})=>e.jsx(j,{...c,className:"mb-2 w-full pr-10",required:!0,placeholder:"•••••••••",type:n(`keysValues.${l}.showPassword`)?"text":"password"})}),e.jsx("button",{type:"button",onClick:()=>{const c=n(`keysValues.${l}.showPassword`);o(`keysValues.${l}.showPassword`,!c)},className:"absolute inset-y-1 right-0 flex items-center pb-1 pr-3",children:e.jsx(pe,{className:"h-4 w-4 flex-shrink-0"})})]})}),e.jsxs("div",{className:"flex items-center",children:[l===h.length-1&&e.jsx(u,{intent:"primary",emphasis:"subtle",onClick:()=>d({key:"",value:""}),className:"mb-2 flex h-7 w-7 items-center justify-center",children:e.jsx(L,{className:"flex-shrink-0 fill-primary-600"})}),l!==h.length-1&&e.jsx(u,{intent:"secondary",emphasis:"minimal",onClick:()=>q(l),className:"mb-2 h-7 w-7 items-center justify-center",children:e.jsx(I,{className:"flex-shrink-0 fill-theme-text-secondary"})})]})]},i.id))]})}),e.jsxs(O,{className:"gap-[10px]",children:[e.jsx(A,{asChild:!0,children:e.jsx(u,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(u,{intent:"primary",disabled:!m,type:"submit",form:"create-secret-form",children:"Register Secret"})]})]})}function Pe(){const t=De(),{data:s}=me({...oe.secretList({...t,sort_by:"desc:created"}),throwOnError:!0});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsx(ne,{searchParams:t}),e.jsx(Ee,{})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:s?e.jsx(te,{columns:we,data:s.items}):e.jsx(N,{className:"h-[250px] w-full"})}),s?s.total_pages>1&&e.jsx(ae,{searchParams:t,paginate:s}):e.jsx(N,{className:"h-[36px] w-[300px]"})]})]})}function We(){return e.jsxs(re,{className:"space-y-4 p-5",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Secrets"}),e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Configure and manage your pipeline secrets and configurations."," ",e.jsx("a",{target:"_blank",rel:"noreferrer noopener",href:"https://docs.zenml.io/how-to/interact-with-secrets",className:"link text-primary-400",children:"Learn More"})]})]}),e.jsx(Pe,{})]})}export{We as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as j,j as s}from"./@radix-B1sy0Lhr.js";import{R as g,u as b,a as v,b as y}from"./ButtonGroup-
|
1
|
+
import{r as j,j as s}from"./@radix-B1sy0Lhr.js";import{R as g,u as b,a as v,b as y}from"./ButtonGroup-B9_gfcC-.js";import{$ as N,a0 as S,r as c,a1 as P,z as n,Q as p,R,U as k,V as C,W as T,X as u,T as x,a2 as _,B as w,Y as E,d as h}from"./index-Ci5z7q6x.js";import{S as A}from"./pipeline-CDJSAXrb.js";import{f as B,L as l,a as f}from"./@react-router-CHjLNlgw.js";import{S as D}from"./refresh-C8BXS3Fb.js";import{u as F}from"./all-pipeline-runs-query-mPYeJsKz.js";import{S as I}from"./SearchField-BbwrusMV.js";import{P as U}from"./Pagination-CVYIgR9l.js";import{S as z}from"./terminal-C2tAF2XG.js";import{D as H}from"./DisplayDate-57lUNS79.js";import{g as L,E as $}from"./ExecutionStatus-BhDlfndt.js";import"./trash-D9LA4VFD.js";import"./AlertDialogDropdownItem-DuTp8JFP.js";import"./DeleteAlertDialog-C5z9RupH.js";import"./zod-D48zuELD.js";import"./index.esm-SBF9nn_P.js";import"./bulk-delete-Bgf_MsSj.js";import"./@tanstack-Dwlisomv.js";import"./delete-run-MHYb1wuH.js";import"./@reactflow-gbyyU3kq.js";import"./index-g7wOyc86.js";import"./chevron-right-double-CbMG1dOM.js";import"./check-circle-CG6XAdk-.js";import"./help-CRPfbPTO.js";function G(e){const{setBreadcrumbs:t}=N();j.useEffect(()=>{e&&t([S,{label:e,href:c.projects.pipelines.namespace(e)}])},[t,e])}function q({namespace:e}){return s.jsx(P,{children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(A,{className:"h-5 w-5 fill-neutral-400"}),s.jsx("h1",{className:"text-display-xs font-semibold",children:decodeURIComponent(e)})]})})}const d=1,O=n.object({page:n.coerce.number().min(d).optional().default(d).catch(d),name:n.string().optional(),operator:n.enum(["and","or"]).optional()});function Q(){const[e]=B(),{page:t,name:a,operator:r}=O.parse({page:e.get("page")||void 0,name:e.get("name")||void 0});return{page:t,name:a,logical_operator:r}}function V(){return[{id:"select",meta:{width:"1%"},header:({table:e})=>s.jsx(p,{id:"check-all",checked:e.getIsAllRowsSelected(),onCheckedChange:t=>e.toggleAllRowsSelected(t==="indeterminate"?!0:t)}),cell:({row:e})=>s.jsx(p,{id:`check-${e.id}`,checked:e.getIsSelected(),onCheckedChange:e.getToggleSelectedHandler()})},{id:"run",header:"Run",accessorFn:e=>{var t;return{name:e.name,id:e.id,status:(t=e.body)==null?void 0:t.status}},cell:({getValue:e})=>{const{name:t,status:a,id:r}=e();return s.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[s.jsx(z,{className:`h-5 w-5 shrink-0 ${L(a)}`}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(l,{to:c.projects.runs.detail(r),className:"flex items-center gap-1",children:s.jsx("h2",{className:"text-text-md font-semibold",children:t})}),s.jsx(R,{children:s.jsxs(k,{children:[s.jsx(C,{className:"hover:text-theme-text-brand hover:underline",children:s.jsx($,{status:a})}),s.jsx(T,{className:"z-20 capitalize",children:a})]})}),s.jsx(u,{copyText:t})]}),s.jsxs(l,{to:c.projects.runs.detail(r),className:"flex items-center gap-1",children:[s.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:r.split("-")[0]}),s.jsx(u,{copyText:r})]})]})]})}},{id:"stack",header:"Stack",accessorFn:e=>{var t,a,r,o;return{name:(a=(t=e.body)==null?void 0:t.stack)==null?void 0:a.name,id:(o=(r=e.body)==null?void 0:r.stack)==null?void 0:o.id}},cell:({getValue:e})=>{const{name:t,id:a}=e();return!t||!a?null:s.jsx(l,{to:c.stacks.overview,children:s.jsx(x,{rounded:!1,className:"inline-block",color:"turquoise",emphasis:"subtle",children:t})})}},{id:"repository",header:"Repository",accessorFn:e=>{var t,a,r,o,i,m;return{name:(r=(a=(t=e.body)==null?void 0:t.code_reference)==null?void 0:a.body)==null?void 0:r.code_repository.name,id:(m=(i=(o=e.body)==null?void 0:o.code_reference)==null?void 0:i.body)==null?void 0:m.code_repository.id}},cell:({getValue:e})=>{const{name:t,id:a}=e();return!t||!a?null:s.jsx("div",{children:s.jsx(x,{rounded:!1,className:"inline-block",color:"grey",emphasis:"subtle",children:t})})}},{id:"created",header:"Created at",accessorFn:e=>{var t;return(t=e.body)==null?void 0:t.created},cell:({getValue:e})=>s.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s.jsx(H,{dateString:e()})})},{id:"author",header:"Author",accessorFn:e=>{var t;return{author:(t=e.resources)==null?void 0:t.user}},cell:({getValue:e})=>{var a,r;const{author:t}=e();return s.jsx(_,{avatarUrl:((a=t.body)==null?void 0:a.avatar_url)??void 0,username:t.name,isServiceAccount:!!((r=t.body)!=null&&r.is_service_account)})}},{id:"admin_actions",header:"",meta:{width:"5%"},cell:({row:e})=>s.jsx(g,{id:e.original.id})}]}function W(){const{namespace:e}=f(),t=Q(),a=V(),{selectedRowCount:r}=b(),{data:o,refetch:i}=F({params:{pipeline_name:decodeURIComponent(e),...t,sort_by:"desc:updated"}},{throwOnError:!0});return s.jsxs("div",{className:"flex flex-col gap-5 p-5",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[r?s.jsx(v,{}):s.jsx(I,{searchParams:t}),s.jsxs(w,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>i(),children:[s.jsx(D,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]})]}),s.jsxs("div",{className:"flex flex-col items-center gap-5",children:[s.jsx("div",{className:"w-full",children:o?s.jsx(E,{columns:a,data:o.items}):s.jsx(h,{className:"h-[500px] w-full"})}),o?o.total_pages>1&&s.jsx(U,{searchParams:t,paginate:o}):s.jsx(h,{className:"h-[36px] w-[300px]"})]})]})}function be(){const{namespace:e}=f();return G(e),s.jsx("div",{children:s.jsxs(y,{children:[s.jsx(q,{namespace:e}),s.jsx(W,{})]})})}export{be as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as f,j as e}from"./@radix-B1sy0Lhr.js";import{u as y,W as X,L as $}from"./LeftSideMenu-
|
1
|
+
import{r as f,j as e}from"./@radix-B1sy0Lhr.js";import{u as y,W as X,L as $}from"./LeftSideMenu-DGICatl7.js";import{u,R as ee,a as te,E as se,D as F,G as re,A as ae,C as O,b as oe,N as ne}from"./Partials-NicibWrh.js";import{d as V,k as Y,bl as ie,B as ce,r as T}from"./index-Ci5z7q6x.js";import{f as de,c as le}from"./@react-router-CHjLNlgw.js";import{S as me,C as v,P as N,a as ue}from"./ProviderRadio-BixXi4GC.js";import{I as G}from"./Infobox-CXOIY92f.js";import{t as H}from"./zod-D48zuELD.js";import{u as Q,F as pe}from"./index.esm-SBF9nn_P.js";import{b as xe,c as q,d as fe,p as he}from"./persist-C98EYq5I.js";import{C as h}from"./ProviderIcon-DwKsXziU.js";import{s as J}from"./index-BYCBKUXk.js";import{b as K}from"./@tanstack-Dwlisomv.js";import"./Tick-Bo7jwBjb.js";import"./check-C9Nye5lR.js";import"./package-pR4bbXJp.js";import"./credit-card-DfBA6dBb.js";import"./ComponentBadge-BVRb7wgm.js";import"./ComponentIcon-CWDJZO4Q.js";import"./bar-chart-square-check-_m-oYysN.js";import"./layout-GIiNvS10.js";import"./transform-S7omcvTm.js";import"./logs-lNLbZqHL.js";import"./CodeSnippet-D7OZMz7I.js";import"./NumberBox-7OIA56xe.js";import"./@reactflow-gbyyU3kq.js";import"./info-CI2szPUG.js";import"./sharedSchema-CKFbjwmg.js";import"./index.es-CZMSrR6z.js";import"./stack-detail-query-JsrqFo3U.js";function je(){const{formRef:t,setIsNextButtonDisabled:s,setData:a,data:o}=u(),n=Q({resolver:H(xe),mode:"onChange",defaultValues:{region:o.location,stackName:o.stackName||""}});f.useEffect(()=>{s(!n.formState.isValid)},[n.formState.isValid,s]);function l(r){a(m=>({...m,location:r.region,stackName:r.stackName}))}return e.jsx(j,{title:"Review Stack Configuration",children:e.jsx(pe,{...n,children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs(G,{className:"text-text-sm",children:[e.jsx("p",{className:"font-semibold",children:"Important"}),e.jsx("p",{children:"This will create new resources in your account. Ensure you have the necessary permissions and are aware of any potential costs."})]}),e.jsxs("form",{onSubmit:n.handleSubmit(l),ref:t,className:"space-y-5",children:[e.jsx(ee,{provider:o.provider||"aws"}),e.jsx(me,{})]}),e.jsx(te,{provider:o.provider||"aws"}),e.jsx(se,{provider:o.provider||"aws"})]})})})}function ve(){const{data:t,timestamp:s,setIsNextButtonDisabled:a}=u(),{setCurrentStep:o}=y(),{isPending:n,isError:l,data:r}=K({...J.stackDeploymentStack({provider:t.provider,stack_name:t.stackName,date_start:s}),refetchInterval:5e3,throwOnError:!0});return f.useEffect(()=>{r&&(q(),o(m=>m+1),a(!1))},[r]),n?e.jsx(V,{className:"h-[200px] w-full"}):l?null:e.jsxs("div",{className:"space-y-5",children:[e.jsx(Ne,{}),e.jsx(ye,{stack:r})]})}function Ne(){const{data:t}=u();return e.jsxs("section",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs(Y,{className:"flex items-center justify-between gap-4 px-6 py-5",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(h,{provider:t.provider,className:"h-6 w-6 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Deploying the Stack..."}),e.jsx("p",{className:"text-theme-text-secondary",children:"Follow the steps in your Cloud console to finish the setup. You can come back to check once your components are deployed."})]})]}),t.provider==="azure"?e.jsx(F,{children:e.jsx("span",{children:"Deploy in Azure"})}):e.jsx(F,{})]}),t.provider==="gcp"&&e.jsx(re,{}),t.provider==="azure"&&e.jsx(ae,{})]})}function ye({stack:t}){const s=!!t;return e.jsxs("div",{className:"space-y-5",children:[!s&&e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(ie,{className:"h-5 w-5 fill-primary-400"}),"Creating your stack and components..."]}),e.jsx("p",{className:"text-theme-text-secondary",children:"We are creating your stack and stack components based on your configuration. Once you finish the setup, come back to check your brand new stack and components ready."})]}),e.jsx(ke,{isReady:s}),e.jsx(ge,{stack:t})]})}function ge({stack:t}){const s=!!t,{data:a}=u();return e.jsxs("div",{className:"relative overflow-hidden rounded-md",children:[!s&&e.jsx("div",{className:"absolute z-50 h-full w-full bg-neutral-50/50"}),e.jsx(O,{type:a.provider,componentProps:{isLoading:!s,isSuccess:s,stackName:a.stackName}})]})}function ke({isReady:t}){const[s,a]=f.useState(!1);return f.useEffect(()=>{const o=setTimeout(()=>{a(!0)},3e5);return()=>clearTimeout(o)},[]),!s||t?null:e.jsx(G,{children:"Your stack is taking longer than usual to deploy. Please check your Cloud console, or the stacks list in ZenML."})}function Se(){return e.jsx(j,{title:"Deploy ZenML Stack",children:e.jsx(be,{})})}function be(){const{setIsNextButtonDisabled:t,isLoading:s}=u();return f.useEffect(()=>{t(!0)},[]),s?e.jsx(ve,{}):e.jsx(oe,{})}function we(){const{formRef:t,setIsNextButtonDisabled:s,setData:a,data:o}=u(),{register:n,handleSubmit:l,formState:{isValid:r}}=Q({resolver:H(fe),defaultValues:{provider:o.provider}});f.useEffect(()=>{s(!r)},[r,s]);function m(d){a(c=>({...c,provider:d.provider}))}return e.jsx(j,{title:"New Cloud Infrastructure",children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Select a Cloud Provider"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select the cloud provider where your want to create your infrastructure and deploy your ZenML models. You will be able to remove the ZenML stack at any time."})]}),e.jsxs("form",{id:"provider-form",onSubmit:l(m),className:"grid grid-cols-1 gap-3 xl:grid-cols-3",ref:t,children:[e.jsx(v,{id:"aws-provider",...n("provider"),value:"aws",children:e.jsx(N,{icon:e.jsx(h,{provider:"aws",className:"h-6 w-6 shrink-0"}),title:"AWS",subtitle:"ZenML stack with S3, ECR, and SageMaker integration"})}),e.jsx(v,{id:"gcp-provider",...n("provider"),value:"gcp",children:e.jsx(N,{icon:e.jsx(h,{provider:"gcp",className:"h-6 w-6 shrink-0"}),title:"GCP",subtitle:"Create ZenML infrastructure using GCS, Artifact Registry, and Vertex AI"})}),e.jsx(v,{id:"azure-provider",...n("provider"),value:"azure",children:e.jsx(N,{icon:e.jsx(h,{provider:"azure",className:"h-6 w-6 shrink-0"}),title:"Azure",subtitle:"Set up ZenML with Azure Storage, Container Registry, and ML services"})})]})]})})}function Ce({provider:t,stackName:s,timestamp:a,isTerraform:o}){var g,k,S,b,w,C,P,D,I,z,L,R,B,E,W,M,_,A;const{isPending:n,isError:l,data:r}=K({...J.stackDeploymentStack({provider:t,stack_name:s,date_start:a,terraform:o}),throwOnError:!0});if(n)return e.jsx(V,{className:"h-[200px] w-full"});if(l)return null;const m=r.stack.name,d=(g=r.stack.metadata)==null?void 0:g.components.orchestrator,c=(k=r.stack.metadata)==null?void 0:k.components.artifact_store,i=(S=r.stack.metadata)==null?void 0:S.components.container_registry,p=(b=r.stack.metadata)==null?void 0:b.components.image_builder,x=(w=r.stack.metadata)==null?void 0:w.components.step_operator,U={orchestrator:{name:((C=d==null?void 0:d[0])==null?void 0:C.name)??"Orchestrator",id:((P=d==null?void 0:d[0])==null?void 0:P.id.split("-")[0])??""},artifactStore:{name:((D=c==null?void 0:c[0])==null?void 0:D.name)??"Artifact Store",id:((I=c==null?void 0:c[0])==null?void 0:I.id.split("-")[0])??""},registry:{name:((z=i==null?void 0:i[0])==null?void 0:z.name)??"Container Registry",id:((L=i==null?void 0:i[0])==null?void 0:L.id.split("-")[0])??""},connector:{name:(R=r.service_connector)==null?void 0:R.name,id:((E=(B=r.service_connector)==null?void 0:B.id)==null?void 0:E.split("-")[0])??""},imageBuilder:{name:((W=p==null?void 0:p[0])==null?void 0:W.name)??"Image Builder",id:((M=p==null?void 0:p[0])==null?void 0:M.id.split("-")[0])??""},operator:{name:((_=x==null?void 0:x[0])==null?void 0:_.name)??"Step Operator",id:((A=x==null?void 0:x[0])==null?void 0:A.id.split("-")[0])??""}};return e.jsx(O,{type:t,componentProps:{components:U,isSuccess:!0,stackName:m}})}function Pe(){const{setIsNextButtonDisabled:t,data:s,timestamp:a}=u();return t(!1),e.jsx(j,{title:"Your Stack",children:e.jsxs("div",{className:"space-y-5",children:[e.jsx("p",{className:"text-theme-text-secondary",children:"Here you can review the created stack and stack components. Now you can start running pipelines using this new configuration."}),e.jsx(Ce,{provider:s.provider||"aws",stackName:s.stackName||"",timestamp:a})]})})}function De(){const{currentStep:t}=y();if(t===1)return e.jsx(we,{});if(t===2)return e.jsx(je,{});if(t===3)return e.jsx(Se,{});if(t===4)return e.jsx(Pe,{})}function Ie(){var c;const[s]=de(),{setCurrentStep:a,currentStep:o}=y(),{formRef:n,isNextButtonDisabled:l}=u(),r=le(),m=s.get("origin")==="onboarding";async function d(){n.current&&(n.current.requestSubmit(),await new Promise(i=>setTimeout(i,20))),a(i=>i<4?i+1:i),o===4&&(q(),r(m?T.onboarding:T.stacks.overview))}return e.jsx(ce,{form:(c=n.current)==null?void 0:c.id,disabled:l,onClick:()=>d(),size:"md",children:o===4?"Finish":"Next"})}function j({children:t,title:s}){return e.jsxs(Y,{className:"w-full",children:[e.jsx("div",{className:"border-b border-theme-border-moderate px-5 py-3 text-display-xs font-semibold",children:s}),e.jsx("div",{className:"p-5",children:t}),e.jsxs("div",{className:"flex items-center justify-end gap-2 border-t border-theme-border-moderate p-5",children:[e.jsx(ue,{}),e.jsx(Ie,{})]})]})}const Z=["Infrastructure Type","Cloud Provider","Review Configuration","Deploy Stack"];function nt(){const{success:t}=he();return e.jsx(X,{maxSteps:Z.length,initialStep:t?3:1,children:e.jsx(ne,{children:e.jsxs("section",{className:"layout-container flex flex-col gap-5 p-5 xl:flex-row",children:[e.jsx($,{entries:Z}),e.jsx("div",{className:"w-full overflow-y-hidden",children:e.jsx(De,{})})]})})})}export{nt as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as d,j as e}from"./@radix-B1sy0Lhr.js";import{T as y,P as g}from"./ProCta-
|
1
|
+
import{r as d,j as e}from"./@radix-B1sy0Lhr.js";import{T as y,P as g}from"./ProCta-DspRnbtD.js";import{z as c,v as N,x as b,y as v,E as w,u as S,d as k,I as m,B as p,c as F,r as P}from"./index-Ci5z7q6x.js";import{t as U}from"./zod-D48zuELD.js";import{c as C}from"./@tanstack-Dwlisomv.js";import{u as E}from"./index.esm-SBF9nn_P.js";import{S as M}from"./check-circle-CG6XAdk-.js";import{L}from"./@react-router-CHjLNlgw.js";import"./check-C9Nye5lR.js";import"./@reactflow-gbyyU3kq.js";const h=d.createContext(null);function z({children:s}){const[t,n]=d.useState(!1);return e.jsx(h.Provider,{value:{setSubmitSuccess:n,submitSuccess:t},children:s})}function f(){const s=d.useContext(h);if(s===null)throw new Error("useUpgradeContext must be used within an UpgradeProvider");return s}const B=c.object({name:c.string().min(1),company:c.string().min(1),email:c.string().email()});function T(){const{setSubmitSuccess:s}=f(),{toast:t}=N(),n=E({resolver:U(B),defaultValues:{company:"",email:"",name:""}}),a=C({mutationFn:I,onSuccess:()=>s(!0),onError:r=>{t({emphasis:"subtle",status:"error",rounded:!0,description:r.message})}});async function i(r,o,l){a.mutate({...r,userId:o,isDebug:l})}return{form:n,submitFormMutation:a,handleSubmitForm:i}}async function I({company:s,email:t,isDebug:n,name:a,userId:i}){return b(v,{method:"POST",credentials:"omit",headers:{"Content-Type":"application/json"},body:JSON.stringify([{debug:n,event:"Upgrade initiated",type:"track",user_id:i,properties:{company:s,email:t,name:a}}])})}function Z(){return e.jsxs("div",{className:"space-y-5",children:[e.jsx(_,{}),e.jsx(D,{})]})}function _(){return e.jsxs("div",{className:"flex flex-col items-center space-y-0.5",children:[e.jsx("h1",{className:"text-center text-display-xs font-semibold",children:"Upgrade to ZenML Pro on your own VPC"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Direct self-deployment, no sales calls"})]})}function D(){const s=w(),t=S(),{form:n,handleSubmitForm:a,submitFormMutation:i}=T(),{register:r,handleSubmit:o,formState:{isValid:l,isSubmitting:u}}=n,{isPending:x}=i;return s.isPending||t.isPending?e.jsx(k,{className:"h-[250px] w-full"}):s.isError||t.isError?e.jsx("p",{children:"Something went wrong...."}):e.jsxs("div",{className:"space-y-5",children:[e.jsxs("form",{onSubmit:o(j=>a(j,t.data.id,!!s.data.debug)),className:"space-y-5",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{htmlFor:"name",className:"text-text-sm",children:"Your Name"}),e.jsx(m,{...r("name"),id:"name",className:"w-full"})]}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{htmlFor:"company",className:"text-text-sm",children:"Company"}),e.jsx(m,{...r("company"),id:"company",className:"w-full"})]}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{htmlFor:"email",className:"text-text-sm",children:"Email address"}),e.jsx(m,{...r("email"),id:"email",className:"w-full"})]}),e.jsxs(p,{size:"md",className:"w-full justify-center",disabled:u||x||!l,type:"submit",children:[(x||u)&&e.jsx("div",{role:"alert","aria-busy":"true",className:"full h-[20px] w-[20px] animate-spin rounded-rounded border-2 border-theme-text-negative border-b-theme-text-brand"}),"Continue"]})]}),e.jsxs("p",{className:"text-center text-text-xs text-theme-text-secondary",children:["By submitting the form you accept our"," ",e.jsx("a",{className:"link",href:"https://www.zenml.io/cloud-terms-and-privacy",target:"_blank",rel:"noopener noreferrer",children:"terms of use"})," ","and"," ",e.jsx("a",{href:"https://www.zenml.io/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"link",children:"privacy policy"}),"."]})]})}function R(){return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h2",{className:"text-display-xs font-semibold",children:"As easy as following the steps"}),e.jsx("p",{className:"text-theme-text-secondary",children:"From sign-up to deployment in minutes"})]}),e.jsx(W,{})]})}const V=["Fill out your details","Receive comprehensive ZenML Pro documentation","Deploy ZenML Pro and upgrade your tenant","Get a free 14-day trial license"];function W(){return e.jsx("ol",{className:"space-y-3",children:V.map((s,t)=>e.jsxs("li",{className:"flex items-center space-x-1",children:[e.jsx(Y,{children:t+1}),e.jsx("span",{children:s})]},t))})}function Y({className:s,...t}){return e.jsx("div",{...t,className:F("flex h-4 w-4 shrink-0 items-center justify-center rounded-rounded bg-warning-400 text-text-xs text-theme-text-negative")})}function q(){return e.jsxs("section",{className:"flex w-full flex-col-reverse items-center justify-end gap-5 lg:flex-row lg:gap-[100px] xl:pl-[200px] 2xl:pl-[300px]",children:[e.jsx(R,{}),e.jsx(Z,{})]})}const G="/assets/upgrade-form-CwRHBuXB.webp",H=["Comprehensive documentation to get started","Your 14-day trial license key","Step-by-step deployment instructions"];function O(){return e.jsxs("section",{className:"flex h-full w-full flex-col items-center justify-center space-y-5",children:[e.jsx(M,{className:"h-[120px] w-[120px] fill-theme-text-success"}),e.jsxs("div",{className:"space-y-7",children:[e.jsxs("div",{className:"max-w-[500px] space-y-2 text-center",children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"You're on your way to ZenML Pro!"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Thank you for choosing to upgrade to ZenML Pro. We've received your request and you'll receive an email with:"}),e.jsx("ul",{className:"mx-auto w-fit space-y-3",children:H.map((s,t)=>e.jsxs("li",{className:"flex items-center gap-1",children:[e.jsx(y,{}),e.jsx("span",{children:s})]},t))}),e.jsxs("p",{className:"text-theme-text-secondary",children:["Meanwhile, you can ask your questions in our"," ",e.jsx("a",{className:"link",href:"https://zenml.io/slack",target:"_blank",rel:"noopener noreferrer",children:"Slack channel"})," ","or"," ",e.jsx("a",{className:"link",href:"https://docs.zenml.io",target:"_blank",rel:"noopener noreferrer",children:"check our documentation."})]})]}),e.jsx(p,{size:"md",className:"mx-auto",children:e.jsx(L,{to:P.projects.overview,children:"Go to Dashboard"})})]})]})}function A(){const{submitSuccess:s}=f();return e.jsxs(g,{className:"relative min-h-[620px]",children:[e.jsx("img",{src:G,className:"absolute hidden -translate-x-3/4 -rotate-[5deg] scale-75 xl:block 2xl:-translate-x-[60%]"}),s===!1&&e.jsx(q,{}),s===!0&&e.jsx(O,{})]})}function ae(){return e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx("div",{className:"layout-container",children:e.jsx(z,{children:e.jsx(A,{})})})})}export{ae as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-B1sy0Lhr.js";import{k as t,B as a,r as n}from"./index-
|
1
|
+
import{j as e}from"./@radix-B1sy0Lhr.js";import{k as t,B as a,r as n}from"./index-Ci5z7q6x.js";import{L as i}from"./@react-router-CHjLNlgw.js";import"./@tanstack-Dwlisomv.js";import"./@reactflow-gbyyU3kq.js";const l="/assets/templates-1S_8WeSK.webp",o=["Run pipelines from the dashboard with Templates","Re-run a pipeline easily from the UI","Model and Artifact Control Plane Dashboard","Managed ZenML server on your VPC or hosted on our servers","Social SSO, RBAC, and User Management","CI/CD/CT, and more!"];function m(){return e.jsxs(t,{className:"relative overflow-hidden border border-warning-100 px-7 py-5",children:[e.jsxs("div",{className:"max-w-[450px] space-y-4",children:[e.jsx("h2",{className:"text-display-xs font-semibold",children:"Access Advanced Template Features with ZenML Pro"}),e.jsx("ul",{className:"space-y-2",children:o.map((r,s)=>e.jsx("li",{className:"text-text-md text-theme-text-secondary",children:r},s))}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(a,{asChild:!0,className:"truncate bg-warning-600 hover:bg-warning-400 active:bg-warning-500 active:ring-warning-50",size:"md",children:e.jsx(i,{to:n.upgrade,children:"Try Pro Features"})}),e.jsx(a,{emphasis:"minimal",size:"md",children:e.jsx("a",{href:"https://www.zenml.io/pro",target:"_blank",rel:"noopener noreferrer",children:"Learn more"})})]})]}),e.jsx("img",{className:"absolute right-0 top-0 hidden translate-x-[30%] scale-75 md:translate-y-[30%] lg:block xl:-translate-y-[5%]",src:l,alt:"Screenshot of Zenml Pro Templates Feature"})]})}function u(){return e.jsx("div",{className:"layout-container space-y-5 pt-5",children:e.jsx(m,{})})}export{u as default};
|