@baseplate-dev/project-builder-web
Version:
Web interface for constructing project builder JSON
3 lines (2 loc) • 1.47 kB
JavaScript
import{i as t}from"./_virtual___federation_fn_import-o6aKHb82.js";import{j as e}from"./jsx-runtime-D_zvdyIk.js";import{h as p}from"./index-B6LhSOJ-.js";import{N as n}from"./new-app-dialog-BbdhVL-K.js";import{s as c}from"./sortBy-C9bvycg5.js";const{appEntityType:d}=await t("@baseplate-dev/project-builder-lib"),{useProjectDefinition:l}=await t("@baseplate-dev/project-builder-lib/web"),{Button:a,Card:m,EmptyDisplay:h}=await t("@baseplate-dev/ui-components"),{Link:x}=await t("@tanstack/react-router"),N=function(){const{definition:r}=l(),{apps:o}=r,i=c(o,[s=>s.name]);return i.length===0?e.jsx(h,{icon:p,header:"No Apps",subtitle:"You haven't created any apps yet",actions:e.jsx(n,{children:e.jsx(a,{children:"New App"})})}):e.jsxs("div",{className:"space-y-4 p-4",children:[e.jsx("h1",{children:"Apps"}),e.jsx("p",{children:"These are the apps that are defined in your project. You can edit them here."}),e.jsx(n,{children:e.jsx(a,{children:"New App"})}),e.jsx("div",{className:"max-w-xl space-y-4",children:i.map(s=>e.jsxs(m,{className:"flex justify-between space-x-4 p-4",children:[e.jsxs("div",{children:[e.jsxs("h3",{children:[s.name," (",s.type,")"]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.packageLocation})]}),e.jsx(x,{to:"/apps/edit/$key",params:{key:d.keyFromId(s.id)},className:"inline-block",children:e.jsx(a,{variant:"secondary",children:"Edit"})})]},s.id))})]})};export{N as component};
//# sourceMappingURL=index-Bzqwlp87.js.map