@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
1 lines • 2.85 kB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7475],{47389:function(e,t,n){"use strict";var i=n(1413),a=n(67294),r=n(27363),o=n(91146),d=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:r.Z}))});t.Z=d},64865:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return teams}});var i,a=n(22598),r=n(90447),o=n(47389),d=n(48689),s=n(84213),u=n(73318),l=n(78957),c=n(44973),f=n(27484),x=n.n(f),m=n(67294),h=n(11778),p=n(61123),w=n(55611),g=n(85893),k=n(56176),j=n(84110);x().extend(j),x().extend(k);var v=[{title:"Name",width:60,dataIndex:"name",key:"name",fixed:"left",filterSearch:!0,filters:[{text:"goon",value:"goon"}],onFilter:function(e,t){return!t.name||t.name.indexOf(e.toString())>-1}},{title:"Owner",dataIndex:"owner",key:"owner",width:50,render:function(e,t){return(0,g.jsx)(u.ZP,{type:"link",style:{padding:0},children:t.owner.slug})},filterSearch:!0,filters:[{text:"goon",value:"goon"}],onFilter:function(e,t){return!t.owner||(t.owner.slug||"").indexOf(e.toString())>-1}},{title:"Email",dataIndex:"email",key:"email",width:80},{title:"Updated at",dataIndex:"updatedAt",key:"updatedAt",width:50,render:function(e){return(0,g.jsx)(p.q,{date:e})},sorter:function(e,t){return x()(e.updatedAt).diff(x()(t.updatedAt))}},{title:"Created at",dataIndex:"createdAt",key:"createdAt",width:50,render:function(e){return(0,g.jsx)(p.q,{date:e})},sorter:function(e,t){return x()(e.createdAt).diff(x()(t.createdAt))}},{title:"Action",key:"action",width:50,fixed:"right",render:function(){return(0,g.jsxs)(l.Z.Compact,{children:[(0,g.jsx)(u.ZP,{icon:(0,g.jsx)(o.Z,{})}),(0,g.jsx)(u.ZP,{icon:(0,g.jsx)(d.Z,{})})]})}}],Z=null!==(i=w.XL.tableConfig.defaultPageSize)&&void 0!==i?i:20,TeamList=function(){var e=(0,m.useState)(1),t=e[0],n=e[1],i=(0,h.wz)(["teams","list"],"/api/v1/team",{populate:"owner",pagination:{page:t,size:Z}}),a=i.data,r=i.status,o=a||{},d=o.list,u=(o.pagination||{}).total_items;console.log("teams :>> ",d);var l=(0,m.useRef)(null),f=(0,s.Z)(l);return(0,g.jsx)("div",{className:"h-full flex-auto overflow-hidden",ref:l,children:(0,g.jsx)(c.Z,{sticky:!0,size:"small",loading:"loading"===r,columns:v,dataSource:d,scroll:{x:1e3,y:void 0!==(null==f?void 0:f.height)?f.height-140:void 0},pagination:{pageSize:Z,total:u,position:["bottomCenter"]},onChange:function(e){var t=e.current;t&&n(t)}})})},_=n(6761),y=n(1071),teams=function(){return(0,g.jsx)(a.Wk,{children:(0,g.jsxs)(_.o,{meta:(0,g.jsx)(y.h,{title:"Teams",description:"List of teams in the workspace."}),children:[(0,g.jsx)(r.V,{title:"Teams",breadcrumbs:[{name:"Workspace"}]}),(0,g.jsx)(TeamList,{})]})})}},30531:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/workspace/teams",function(){return n(64865)}])}},function(e){e.O(0,[3662,5877,3945,9774,2888,179],function(){return e(e.s=30531)}),_N_E=e.O()}]);