PageSourceSearch

https://main-site-drab.vercel.app/_next/static/chunks/pages/domain…/collection/[id]-7b8052bcb2769393.js

js main-site-drab.vercel.app collected 2026-10-03 07:16:33 UTC 3,833 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6095],{97083:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/domain/polybase/collection/[id]",function(){return l(44183)}])},88283:function(e,t,l){"use strict";var a=l(85893),r=l(11163),o=l(42394);let s=e=>{let t=(0,r.useRouter)(),l=(0,o.SF)();console.log("address",l);let s=()=>{t.push("/form?address=".concat(l))};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:" lg:w-1/6 md:w-1/4 bg-tertiary-light pl-8  p-2 ",children:(0,a.jsxs)("ul",{className:"list-none flex flex-col",children:[(0,a.jsxs)("li",{className:" my-2 p-2 font-bold bg-tertiary text-tertiary-dark hover:text-white hover:bg-primary rounded w-3/4 ",children:[" ","Dashboard"," "]}),(0,a.jsxs)("li",{className:"my-2 p-2 font-bold bg-tertiary text-tertiary-dark hover:text-white hover:bg-primary rounded w-3/4",onClick:s,children:[" ","Create +"]}),(0,a.jsxs)("li",{className:"my-2 p-2 font-bold bg-tertiary text-tertiary-dark hover:text-white hover:bg-primary rounded w-3/4 ",children:[" ","Pricing"," "]})]})})})};t.Z=s},44183:function(e,t,l){"use strict";l.r(t);var a=l(85893),r=l(67294),o=l(11163),s=l(6154),n=l(42394),c=l(88283);let i=e=>{let t=(0,o.useRouter)(),l=(0,n.SF)(),{id:i}=t.query,[d,u]=(0,r.useState)(),[m,p]=(0,r.useState)([]),[h,b]=(0,r.useState)([]),[x,f]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e=async()=>{let e=await s.Z.get("/api/polybase/collections/readId",{params:{id:i}});console.log("res",e.data),u(e.data[0]),p(JSON.parse(e.data[0].fields)),console.log("fields",m)};e()},[l]),(0,r.useEffect)(()=>{let e=async()=>{await s.Z.get("/api/polybase/collections/readOne",{params:{collectionName:null==d?void 0:d.collectionName,nameSpace:null==d?void 0:d.nameSpace}}).then(e=>{console.log("res",e.data),f(e.data)}).catch(e=>{console.log("err at fetching for collection data",e)})};e()},[h]);let g=e=>{e.preventDefault();let t=m.length,l=[];for(let a=0;a<t;a++)0!==a&&("number"===m[a].value?(l.push(Number(e.target[a].value)),e.target[a].value=""):(l.push(e.target[a].value),e.target[a].value=""));console.log("dataList",l),s.Z.post("/api/polybase/collections/createOne",{nameSpace:null==d?void 0:d.nameSpace,collectionName:null==d?void 0:d.collectionName,data:JSON.stringify(l)}).then(e=>{console.log("res",e),b(l)}).catch(e=>{console.log("err",e)})};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"h-full min-h-screen flex flex-row mt-20",children:[(0,a.jsx)(c.Z,{}),(0,a.jsxs)("div",{className:"w-full p-2",children:[(0,a.jsxs)("h1",{className:"text-4xl font-bold",children:["Collection - ",null==d?void 0:d.collectionName]}),(0,a.jsxs)("form",{className:"mt-10 flex flex-row",onSubmit:g,children:[m.map((e,t)=>(0,a.jsx)("div",{className:" border-b border-gray-300",children:0===t?(0,a.jsx)("input",{className:"w-full h-16 p-4 border border-black",placeholder:"ID will be automatic",type:e.value,readOnly:!0}):(0,a.jsx)("input",{className:"w-full h-16 p-4 border border-black",placeholder:"Enter ".concat(e.name),type:e.value,required:!0})},t)),(0,a.jsx)("input",{className:"bg-tertiary p-4 shadow-lg rounded-lg text-tertiary-dark font-bold",type:"submit"})]}),(0,a.jsxs)("table",{className:"border-collapse border border-gray-300 mt-10",children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{className:"bg-tertiary text-tertiary-dark font-bold text-left",children:m.map((e,t)=>(0,a.jsx)("th",{className:"px-6 py-3   border-b border-gray-300",children:e.name.toUpperCase()},t))})}),(0,a.jsx)("tbody",{children:null==x?void 0:x.map((e,t)=>(0,a.jsx)("tr",{children:null==m?void 0:m.map((t,l)=>(0,a.jsx)("td",{className:"px-6 py-4 border-b border-gray-300",children:e[t.name]},l))},t))})]})]})]})})};t.default=i},11163:function(e,t,l){e.exports=l(90387)}},function(e){e.O(0,[6154,9774,2888,179],function(){return e(e.s=97083)}),_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.