1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[183],{4215:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/category",function(){return n(9225)}])},9225:function(e,a,n){"use strict";n.r(a);var r=n(5893),t=n(1664),l=n.n(t),s=n(1482);let d={additionalTypenames:["Category"]};a.default=()=>{let[{data:e}]=(0,s.T8)({context:d,variables:{orderBy:{name:s.d$.Asc}}}),[{fetching:a},n]=(0,s.Ql)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"max-w-2xl m-auto py-4",children:[(0,r.jsx)(l(),{className:"underline text-blue-500",href:"/",children:"æç¨¿ä¸è¦§"}),(0,r.jsxs)("form",{className:"grid border-gray-400 border-solid",onSubmit:e=>{e.preventDefault();let a=e.target;a.name.value&&(n({input:{name:a.name.value}}),e.currentTarget.reset())},children:[(0,r.jsx)("label",{htmlFor:"flex-1",children:"Category"}),(0,r.jsx)("input",{className:"border p-1",type:"text",name:"name"}),(0,r.jsx)("button",{className:"shadow bg-blue-500 hover:bg-blue-400 focus:shadow-outline focus:outline-none text-white font-bold py-2 px-4 rounded m-1 disabled:opacity-30 disabled:cursor-not-allowed",type:"submit",disabled:a,children:"Create Category"})]}),(0,r.jsx)("hr",{className:"m-2"}),(0,r.jsx)("div",{children:null==e?void 0:e.findManyCategory.map(e=>(0,r.jsx)("div",{className:"mt-5 p-1 border rounded",children:(0,r.jsx)("div",{className:"flex-1",children:e.name})},e.id))})]})})}}},function(e){e.O(0,[53,482,774,888,179],function(){return e(e.s=4215)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.