@kurly-growth/growthman 0.1.9 → 0.1.11
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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/fallback-build-manifest.json +2 -2
- package/.next/server/app/_global-error.html +2 -2
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__41261df4._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__41261df4._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__a757185b._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__a757185b._.js.map +1 -1
- package/.next/server/chunks/ssr/Desktop_Project_Web_growth-mock-server_c7522028._.js +1 -1
- package/.next/server/chunks/ssr/Desktop_Project_Web_growth-mock-server_c7522028._.js.map +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +2 -2
- package/.next/static/chunks/{6903133cc42b83c8.js → 83362d304479bb05.js} +1 -1
- package/.next/trace +1 -1
- package/.next/trace-build +1 -1
- package/README.md +3 -0
- package/package.json +4 -4
- /package/.next/static/{q2kvdJ4xD_wtslnv7fAKm → w5WtKaqxY-0FsR98k9Jhw}/_buildManifest.js +0 -0
- /package/.next/static/{q2kvdJ4xD_wtslnv7fAKm → w5WtKaqxY-0FsR98k9Jhw}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{q2kvdJ4xD_wtslnv7fAKm → w5WtKaqxY-0FsR98k9Jhw}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--w5WtKaqxY_0FsR98k9Jhw--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/da3f3e4f37f68cee.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/33ea23f1243e96f0.js"/><script src="/_next/static/chunks/8d6c35afc42e5d8e.js" async=""></script><script src="/_next/static/chunks/560974ba92e6363e.js" async=""></script><script src="/_next/static/chunks/turbopack-68dbd89b378e971c.js" async=""></script><script src="/_next/static/chunks/525197a7544b0e96.js" async=""></script><script src="/_next/static/chunks/0275b0ee12e7ce52.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Growthman</title><meta name="description" content="Local mock API server with UI dashboard"/><link rel="icon" href="/favicon.ico?favicon.de6b30f1.ico" sizes="48x48" type="image/x-icon"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><script src="/_next/static/chunks/33ea23f1243e96f0.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[66372,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"default\"]\n3:I[66426,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"default\"]\n4:I[47843,[\"/_next/static/chunks/0275b0ee12e7ce52.js\"],\"Toaster\"]\n5:I[96981,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n8:I[96981,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"ViewportBoundary\"]\na:I[96981,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"MetadataBoundary\"]\nc:I[32942,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"default\"]\n:HL[\"/_next/static/chunks/da3f3e4f37f68cee.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"w5WtKaqxY-0FsR98k9Jhw\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/da3f3e4f37f68cee.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0275b0ee12e7ce52.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased\",\"children\":[[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"$L4\",null,{}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:0:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:0:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:0:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:0:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"d:I[14743,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"IconMark\"]\n7:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"Growthman\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Local mock API server with UI dashboard\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.de6b30f1.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"$Ld\",\"3\",{}]]\n"])</script></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
2
|
-
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/33ea23f1243e96f0.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[66372,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"default\"]\n3:I[66426,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"default\"]\n4:I[96981,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[96981,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"ViewportBoundary\"]\n9:I[96981,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"MetadataBoundary\"]\nb:I[32942,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"
|
|
1
|
+
<!DOCTYPE html><!--w5WtKaqxY_0FsR98k9Jhw--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/33ea23f1243e96f0.js"/><script src="/_next/static/chunks/8d6c35afc42e5d8e.js" async=""></script><script src="/_next/static/chunks/560974ba92e6363e.js" async=""></script><script src="/_next/static/chunks/turbopack-68dbd89b378e971c.js" async=""></script><script src="/_next/static/chunks/525197a7544b0e96.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><link rel="icon" href="/favicon.ico?favicon.de6b30f1.ico" sizes="48x48" type="image/x-icon"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
|
|
2
|
+
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/33ea23f1243e96f0.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[66372,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"default\"]\n3:I[66426,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"default\"]\n4:I[96981,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[96981,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"ViewportBoundary\"]\n9:I[96981,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"MetadataBoundary\"]\nb:I[32942,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"w5WtKaqxY-0FsR98k9Jhw\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"c:I[14743,[\"/_next/static/chunks/525197a7544b0e96.js\"],\"IconMark\"]\n6:null\na:[[\"$\",\"link\",\"0\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.de6b30f1.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"$Lc\",\"1\",{}]]\n"])</script></body></html>
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
4
|
|
|
5
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},rK=({contentRef:e,descriptionId:t})=>{let r=rG("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return g.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null};let rV=(0,ti.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function rH({...e}){return(0,h.jsx)(rw,{"data-slot":"dialog",...e})}function rX({...e}){return(0,h.jsx)(rC,{"data-slot":"dialog-portal",...e})}function rq({className:e,...t}){return(0,h.jsx)(rO,{"data-slot":"dialog-overlay",className:eE("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function rY({className:e,children:t,showCloseButton:r=!0,...n}){return(0,h.jsxs)(rX,{"data-slot":"dialog-portal",children:[(0,h.jsx)(rq,{}),(0,h.jsxs)(rz,{"data-slot":"dialog-content",className:eE("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none",e),...n,children:[t,r&&(0,h.jsxs)(r$,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,h.jsx)(rV,{}),(0,h.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function rZ({className:e,...t}){return(0,h.jsx)("div",{"data-slot":"dialog-header",className:eE("flex flex-col gap-2 text-center sm:text-left",e),...t})}function rQ({className:e,...t}){return(0,h.jsx)("div",{"data-slot":"dialog-footer",className:eE("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function r0({className:e,...t}){return(0,h.jsx)(rM,{"data-slot":"dialog-title",className:eE("text-lg leading-none font-semibold",e),...t})}function r1({className:e,type:t,...r}){return(0,h.jsx)("input",{type:t,"data-slot":"input",className:eE("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}var r2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=eM(`Primitive.${t}`),n=g.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,h.jsx)(o?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),r5=g.forwardRef((e,t)=>(0,h.jsx)(r2.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));function r4({className:e,...t}){return(0,h.jsx)(r5,{"data-slot":"label",className:eE("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}r5.displayName="Label";let r8=(0,tf.default)(()=>e.A(32205),{loadableGenerated:{modules:[66699]},ssr:!1,loading:()=>(0,h.jsx)("div",{className:"h-[400px] bg-gray-100 animate-pulse rounded"})}),r3=["GET","POST","PUT","PATCH","DELETE"];function r6({endpoint:e,open:t,onOpenChange:r,onSave:n}){let[o,a]=(0,g.useState)(""),[l,i]=(0,g.useState)("GET"),[s,d]=(0,g.useState)(""),[c,u]=(0,g.useState)(200),[f,p]=(0,g.useState)("{}"),[m,b]=(0,g.useState)(null);return(0,g.useEffect)(()=>{e?(a(e.path),i(e.method),d(e.description||""),u(e.statusCode),p(JSON.stringify(e.responseBody,null,2))):(a(""),i("GET"),d(""),u(200),p("{}")),b(null)},[e,t]),(0,h.jsx)(rH,{open:t,onOpenChange:r,children:(0,h.jsxs)(rY,{className:"sm:max-w-[70vw] h-[90vh] flex flex-col",children:[(0,h.jsx)(rZ,{children:(0,h.jsx)(r0,{children:e?"Edit Endpoint":"Create New Endpoint"})}),(0,h.jsxs)("div",{className:"grid gap-4 py-4 flex-1 overflow-hidden",children:[(0,h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,h.jsx)(r4,{htmlFor:"method",className:"w-28 text-right shrink-0",children:"Method"}),(0,h.jsx)("select",{id:"method",value:l,onChange:e=>i(e.target.value),className:"flex-1 h-10 rounded-md border border-input bg-background px-3 py-2",children:r3.map(e=>(0,h.jsx)("option",{value:e,children:e},e))})]}),(0,h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,h.jsx)(r4,{htmlFor:"path",className:"w-28 text-right shrink-0",children:"Path"}),(0,h.jsx)(r1,{id:"path",value:o,onChange:e=>a(e.target.value),placeholder:"/v1/users/:userId",className:"flex-1"})]}),(0,h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,h.jsx)(r4,{htmlFor:"description",className:"w-28 text-right shrink-0",children:"Description"}),(0,h.jsx)(r1,{id:"description",value:s,onChange:e=>d(e.target.value),placeholder:"API description",className:"flex-1"})]}),(0,h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,h.jsx)(r4,{htmlFor:"statusCode",className:"w-28 text-right shrink-0",children:"Status Code"}),(0,h.jsx)(r1,{id:"statusCode",type:"number",value:c,onChange:e=>u(Number(e.target.value)),className:"flex-1"})]}),(0,h.jsxs)("div",{className:"flex items-start gap-4",children:[(0,h.jsx)(r4,{className:"w-28 text-right shrink-0 pt-2",children:"Response Body"}),(0,h.jsxs)("div",{className:"flex-1",children:[(0,h.jsx)("div",{className:"border rounded-md overflow-hidden",children:(0,h.jsx)(r8,{height:"calc(85vh - 320px)",language:"json",theme:"vs-dark",value:f,onChange:e=>p(e||"{}"),options:{minimap:{enabled:!1},fontSize:14,formatOnPaste:!0,automaticLayout:!0,scrollBeyondLastLine:!1}})}),m&&(0,h.jsx)("p",{className:"text-red-500 text-sm mt-2",children:m})]})]})]}),(0,h.jsxs)(rQ,{className:"shrink-0",children:[(0,h.jsx)(eU,{variant:"outline",onClick:()=>r(!1),children:"Cancel"}),(0,h.jsx)(eU,{onClick:()=>{try{let t=JSON.parse(f);b(null),n({id:e?.id,path:o,method:l,description:s||null,statusCode:c,responseBody:t}),r(!1)}catch{b("Invalid JSON format")}},children:"Save"})]})]})})}var r9=e.i(35130);function r7({open:e,onOpenChange:t,onImportComplete:r}){let[n,o]=(0,g.useState)("url"),[a,l]=(0,g.useState)(""),[i,s]=(0,g.useState)(null),[d,c]=(0,g.useState)(!1),[u,f]=(0,g.useState)(null),p=(0,g.useRef)(null),m=async()=>{c(!0),f(null);try{let e;if("url"===n){if(!a.trim())throw Error("Please enter a URL");e=await fetch("/api/endpoints/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:a.trim()})})}else{if(!i)throw Error("Please select a file");let t=await i.text(),r=JSON.parse(t);e=await fetch("/api/endpoints/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})}let t=await e.json();if(!e.ok)throw Error(t.error||"Import failed");let o=t.succeeded??t.created,l=t.failed??0;l>0?r9.toast.warning(`Imported ${o} endpoints (${l} failed)`):r9.toast.success(`Successfully imported ${o} endpoints`),r(),b()}catch(t){let e=t instanceof Error?t.message:"Import failed";f(e),r9.toast.error(e)}finally{c(!1)}},b=()=>{l(""),s(null),f(null),t(!1)},v="url"===n?a.trim().length>0:null!==i;return(0,h.jsx)(rH,{open:e,onOpenChange:b,children:(0,h.jsxs)(rY,{className:"sm:max-w-lg",children:[(0,h.jsx)(rZ,{children:(0,h.jsx)(r0,{children:"Import OpenAPI Specification"})}),(0,h.jsxs)("div",{className:"py-4 space-y-4",children:[(0,h.jsxs)("div",{className:"flex gap-2",children:[(0,h.jsx)(eU,{type:"button",variant:"url"===n?"default":"outline",size:"sm",onClick:()=>o("url"),children:"From URL"}),(0,h.jsx)(eU,{type:"button",variant:"file"===n?"default":"outline",size:"sm",onClick:()=>o("file"),children:"From File"})]}),"url"===n&&(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(r4,{htmlFor:"url",children:"OpenAPI JSON URL"}),(0,h.jsx)(r1,{id:"url",type:"url",placeholder:"https://api.example.com/api-docs-json",value:a,onChange:e=>{l(e.target.value),f(null)}}),(0,h.jsx)("p",{className:"text-xs text-gray-500",children:"Enter the URL to your OpenAPI/Swagger JSON specification"})]}),"file"===n&&(0,h.jsxs)("div",{className:"border-2 border-dashed rounded-lg p-8 text-center cursor-pointer hover:border-gray-400 transition-colors",onClick:()=>p.current?.click(),children:[(0,h.jsx)("input",{ref:p,type:"file",accept:".json",onChange:e=>{let t=e.target.files?.[0];t&&(s(t),f(null))},className:"hidden"}),i?(0,h.jsxs)("p",{className:"text-sm",children:["Selected: ",(0,h.jsx)("span",{className:"font-medium",children:i.name})]}):(0,h.jsx)("p",{className:"text-gray-500",children:"Click to select an OpenAPI JSON file"})]}),u&&(0,h.jsx)("p",{className:"text-red-500 text-sm",children:u})]}),(0,h.jsxs)(rQ,{children:[(0,h.jsx)(eU,{variant:"outline",onClick:b,children:"Cancel"}),(0,h.jsx)(eU,{onClick:m,disabled:!v||d,children:d?"Importing...":"Import"})]})]})})}let ne=(0,tf.default)(()=>e.A(32205),{loadableGenerated:{modules:[66699]},ssr:!1,loading:()=>(0,h.jsx)("div",{className:"h-[300px] bg-gray-100 animate-pulse rounded"})}),nt={GET:"bg-green-100 text-green-800",POST:"bg-blue-100 text-blue-800",PUT:"bg-yellow-100 text-yellow-800",PATCH:"bg-orange-100 text-orange-800",DELETE:"bg-red-100 text-red-800"};function nr({endpoint:e,open:t,onOpenChange:r}){var n;let o,[a,l]=(0,g.useState)(!1),[i,s]=(0,g.useState)(null),[d,c]=(0,g.useState)(null),[u,f]=(0,g.useState)({}),p=window.location.origin,m=e&&(o=e.path.match(/:(\w+)/g))?o.map(e=>e.slice(1)):[],b=()=>{if(!e)return"";let t=e.path;for(let[e,r]of Object.entries(u))t=t.replace(`:${e}`,r||`:${e}`);return`${p}/api/mock${t}`},v=async()=>{if(!e)return;l(!0),c(null),s(null);let t=performance.now();try{let r=await fetch(b(),{method:e.method}),n=performance.now(),o=await r.text(),a=o;try{a=JSON.stringify(JSON.parse(o),null,2)}catch{}s({status:r.status,statusText:r.statusText,body:a,time:Math.round(n-t)})}catch(e){c(e instanceof Error?e.message:"Request failed")}finally{l(!1)}};return e?(0,h.jsx)(rH,{open:t,onOpenChange:e=>{e||(s(null),c(null),f({})),r(e)},children:(0,h.jsxs)(rY,{className:"sm:max-w-[700px] max-h-[90vh] flex flex-col",children:[(0,h.jsx)(rZ,{children:(0,h.jsxs)(r0,{className:"flex items-center gap-3",children:[(0,h.jsx)("span",{className:`px-2 py-1 rounded text-xs font-medium ${nt[e.method]||"bg-gray-100"}`,children:e.method}),(0,h.jsx)("span",{children:"Test API"})]})}),(0,h.jsxs)("div",{className:"flex flex-col gap-4 flex-1 overflow-hidden",children:[(0,h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,h.jsx)(r1,{readOnly:!0,value:b(),className:"flex-1 font-mono text-sm bg-gray-50"}),(0,h.jsx)(eU,{onClick:v,disabled:a,children:a?"Sending...":"Send"})]}),m.length>0&&(0,h.jsxs)("div",{className:"space-y-2 p-3 bg-gray-50 rounded-lg",children:[(0,h.jsx)(r4,{className:"text-sm font-medium",children:"Path Parameters"}),(0,h.jsx)("div",{className:"grid gap-2",children:m.map(e=>(0,h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,h.jsxs)(r4,{className:"w-24 text-sm text-gray-600",children:[":",e]}),(0,h.jsx)(r1,{placeholder:`Enter ${e}`,value:u[e]||"",onChange:t=>f(r=>({...r,[e]:t.target.value})),className:"flex-1"})]},e))})]}),d&&(0,h.jsx)("div",{className:"p-3 bg-red-50 border border-red-200 rounded-lg",children:(0,h.jsx)("p",{className:"text-red-600 text-sm",children:d})}),i&&(0,h.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden",children:[(0,h.jsxs)("div",{className:"flex items-center gap-4 mb-2",children:[(0,h.jsx)("span",{className:"text-sm font-medium",children:"Response"}),(0,h.jsxs)("span",{className:`text-sm font-medium ${(n=i.status)>=200&&n<300?"text-green-600":n>=400&&n<500?"text-yellow-600":n>=500?"text-red-600":"text-gray-600"}`,children:[i.status," ",i.statusText]}),(0,h.jsxs)("span",{className:"text-sm text-gray-500",children:[i.time,"ms"]})]}),(0,h.jsx)("div",{className:"border rounded-md overflow-hidden flex-1",children:(0,h.jsx)(ne,{height:"300px",language:"json",theme:"vs-dark",value:i.body,options:{readOnly:!0,minimap:{enabled:!1},fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0}})})]}),!i&&!d&&!a&&(0,h.jsx)("div",{className:"flex-1 flex items-center justify-center text-gray-400 border-2 border-dashed rounded-lg",children:"Click Send to test the API"})]})]})}):null}function nn(){let[e,t]=(0,g.useState)([]),[r,n]=(0,g.useState)(!0),[o,a]=(0,g.useState)(!1),[l,i]=(0,g.useState)(!1),[s,d]=(0,g.useState)(!1),[c,u]=(0,g.useState)(null),[f,p]=(0,g.useState)(null),[m,b]=(0,g.useState)(new Set),[v,x]=(0,g.useState)(""),[y,w]=(0,g.useState)(null);(0,g.useEffect)(()=>{x(window.location.origin)},[]);let k=(0,g.useCallback)(async()=>{try{let e=await fetch("/api/endpoints"),r=await e.json();t(r)}catch(e){console.error("Failed to fetch endpoints:",e)}finally{n(!1)}},[]);(0,g.useEffect)(()=>{k()},[k]);let j=async e=>{if(confirm("Are you sure you want to delete this endpoint?"))try{if(!(await fetch(`/api/endpoints/${e}`,{method:"DELETE"})).ok)throw Error("Failed to delete");b(t=>{let r=new Set(t);return r.delete(e),r}),r9.toast.success("Endpoint deleted successfully"),k()}catch(e){console.error("Failed to delete endpoint:",e),r9.toast.error("Failed to delete endpoint")}},E=async()=>{if(0!==m.size&&confirm(`Are you sure you want to delete ${m.size} endpoint(s)?`))try{if(!(await fetch("/api/endpoints/bulk",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:Array.from(m)})})).ok)throw Error("Failed to delete");let e=m.size;b(new Set),r9.toast.success(`${e} endpoint(s) deleted successfully`),k()}catch(e){console.error("Failed to delete endpoints:",e),r9.toast.error("Failed to delete endpoints")}},N=async e=>{try{let t=!!e.id,r=t?await fetch(`/api/endpoints/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}):await fetch("/api/endpoints",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok){let e=await r.json();throw Error(e.error||"Failed to save")}let n=await r.json();w(n.id),r9.toast.success(t?"Endpoint updated successfully":"Endpoint created successfully"),k()}catch(e){console.error("Failed to save endpoint:",e),r9.toast.error(e instanceof Error?e.message:"Failed to save endpoint")}};return(0,h.jsxs)("div",{className:"min-h-screen bg-gray-50",children:[(0,h.jsxs)("div",{className:"max-w-7xl mx-auto py-8 px-4 sm:px-6 lg:px-8",children:[(0,h.jsxs)("div",{className:"flex justify-between items-center mb-8",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("h1",{className:"text-3xl font-bold text-gray-900",children:"Growthman"}),(0,h.jsx)("p",{className:"mt-1 text-gray-500",children:"Manage your mock API endpoints"}),v&&(0,h.jsxs)("p",{className:"mt-2 text-sm font-mono bg-gray-100 px-3 py-1.5 rounded-md inline-block",children:[v,"/api/mock"]})]}),(0,h.jsxs)("div",{className:"flex gap-3",children:[(0,h.jsx)(eU,{variant:"outline",onClick:()=>i(!0),children:"Import OpenAPI"}),(0,h.jsx)(eU,{onClick:()=>{u(null),a(!0)},children:"+ New Endpoint"})]})]}),m.size>0&&(0,h.jsxs)("div",{className:"mb-4 flex items-center gap-4 p-3 bg-blue-50 border border-blue-200 rounded-lg",children:[(0,h.jsxs)("span",{className:"text-sm text-blue-800",children:[m.size," endpoint(s) selected"]}),(0,h.jsx)(eU,{variant:"destructive",size:"sm",onClick:E,children:"Delete Selected"}),(0,h.jsx)(eU,{variant:"ghost",size:"sm",onClick:()=>b(new Set),children:"Clear Selection"})]}),(0,h.jsx)("div",{className:"bg-white shadow rounded-lg",children:r?(0,h.jsx)("div",{className:"p-8 text-center text-gray-500",children:"Loading..."}):(0,h.jsx)(tu,{endpoints:e,onEdit:e=>{u(e),a(!0)},onDelete:j,onTest:e=>{p(e),d(!0)},selectedIds:m,onSelectionChange:b,lastModifiedId:y})})]}),(0,h.jsx)(r6,{endpoint:c,open:o,onOpenChange:a,onSave:N}),(0,h.jsx)(r7,{open:l,onOpenChange:i,onImportComplete:k}),(0,h.jsx)(nr,{endpoint:f,open:s,onOpenChange:d})]})}e.s(["default",()=>nn],65878)}]);
|
|
5
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},rK=({contentRef:e,descriptionId:t})=>{let r=rG("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return g.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null};let rV=(0,ti.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function rH({...e}){return(0,h.jsx)(rw,{"data-slot":"dialog",...e})}function rX({...e}){return(0,h.jsx)(rC,{"data-slot":"dialog-portal",...e})}function rq({className:e,...t}){return(0,h.jsx)(rO,{"data-slot":"dialog-overlay",className:eE("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function rY({className:e,children:t,showCloseButton:r=!0,...n}){return(0,h.jsxs)(rX,{"data-slot":"dialog-portal",children:[(0,h.jsx)(rq,{}),(0,h.jsxs)(rz,{"data-slot":"dialog-content",className:eE("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none",e),...n,children:[t,r&&(0,h.jsxs)(r$,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,h.jsx)(rV,{}),(0,h.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function rZ({className:e,...t}){return(0,h.jsx)("div",{"data-slot":"dialog-header",className:eE("flex flex-col gap-2 text-center sm:text-left",e),...t})}function rQ({className:e,...t}){return(0,h.jsx)("div",{"data-slot":"dialog-footer",className:eE("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function r0({className:e,...t}){return(0,h.jsx)(rM,{"data-slot":"dialog-title",className:eE("text-lg leading-none font-semibold",e),...t})}function r1({className:e,type:t,...r}){return(0,h.jsx)("input",{type:t,"data-slot":"input",className:eE("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}var r2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=eM(`Primitive.${t}`),n=g.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,h.jsx)(o?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),r5=g.forwardRef((e,t)=>(0,h.jsx)(r2.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));function r4({className:e,...t}){return(0,h.jsx)(r5,{"data-slot":"label",className:eE("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}r5.displayName="Label";let r8=(0,tf.default)(()=>e.A(32205),{loadableGenerated:{modules:[66699]},ssr:!1,loading:()=>(0,h.jsx)("div",{className:"h-[400px] bg-gray-100 animate-pulse rounded"})}),r3=["GET","POST","PUT","PATCH","DELETE"];function r6({endpoint:e,open:t,onOpenChange:r,onSave:n}){let[o,a]=(0,g.useState)(""),[l,i]=(0,g.useState)("GET"),[s,d]=(0,g.useState)(""),[c,u]=(0,g.useState)(200),[f,p]=(0,g.useState)("{}"),[m,b]=(0,g.useState)(null);return(0,g.useEffect)(()=>{e?(a(e.path),i(e.method),d(e.description||""),u(e.statusCode),p(JSON.stringify(e.responseBody,null,2))):(a(""),i("GET"),d(""),u(200),p("{}")),b(null)},[e,t]),(0,h.jsx)(rH,{open:t,onOpenChange:r,children:(0,h.jsxs)(rY,{className:"sm:max-w-[70vw] h-[90vh] flex flex-col",children:[(0,h.jsx)(rZ,{children:(0,h.jsx)(r0,{children:e?"Edit Endpoint":"Create New Endpoint"})}),(0,h.jsxs)("div",{className:"grid gap-4 py-4 flex-1 overflow-hidden",children:[(0,h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,h.jsx)(r4,{htmlFor:"method",className:"w-28 text-right shrink-0",children:"Method"}),(0,h.jsx)("select",{id:"method",value:l,onChange:e=>i(e.target.value),className:"flex-1 h-10 rounded-md border border-input bg-background px-3 py-2",children:r3.map(e=>(0,h.jsx)("option",{value:e,children:e},e))})]}),(0,h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,h.jsx)(r4,{htmlFor:"path",className:"w-28 text-right shrink-0",children:"Path"}),(0,h.jsx)(r1,{id:"path",value:o,onChange:e=>a(e.target.value),placeholder:"/v1/users/:userId",className:"flex-1"})]}),(0,h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,h.jsx)(r4,{htmlFor:"description",className:"w-28 text-right shrink-0",children:"Description"}),(0,h.jsx)(r1,{id:"description",value:s,onChange:e=>d(e.target.value),placeholder:"API description",className:"flex-1"})]}),(0,h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,h.jsx)(r4,{htmlFor:"statusCode",className:"w-28 text-right shrink-0",children:"Status Code"}),(0,h.jsx)(r1,{id:"statusCode",type:"number",value:c,onChange:e=>u(Number(e.target.value)),className:"flex-1"})]}),(0,h.jsxs)("div",{className:"flex items-start gap-4",children:[(0,h.jsx)(r4,{className:"w-28 text-right shrink-0 pt-2",children:"Response Body"}),(0,h.jsxs)("div",{className:"flex-1",children:[(0,h.jsx)("div",{className:"border rounded-md overflow-hidden",children:(0,h.jsx)(r8,{height:"calc(85vh - 320px)",language:"json",theme:"vs-dark",value:f,onChange:e=>p(e||"{}"),options:{minimap:{enabled:!1},fontSize:14,formatOnPaste:!0,automaticLayout:!0,scrollBeyondLastLine:!1}})}),m&&(0,h.jsx)("p",{className:"text-red-500 text-sm mt-2",children:m})]})]})]}),(0,h.jsxs)(rQ,{className:"shrink-0",children:[(0,h.jsx)(eU,{variant:"outline",onClick:()=>r(!1),children:"Cancel"}),(0,h.jsx)(eU,{onClick:()=>{try{let t=JSON.parse(f);b(null),n({id:e?.id,path:o,method:l,description:s||null,statusCode:c,responseBody:t}),r(!1)}catch{b("Invalid JSON format")}},children:"Save"})]})]})})}var r9=e.i(35130);function r7({open:e,onOpenChange:t,onImportComplete:r}){let[n,o]=(0,g.useState)("url"),[a,l]=(0,g.useState)(""),[i,s]=(0,g.useState)(null),[d,c]=(0,g.useState)(""),[u,f]=(0,g.useState)(!1),[p,m]=(0,g.useState)(null),b=(0,g.useRef)(null),v=async()=>{f(!0),m(null);try{let e;if("url"===n){if(!a.trim())throw Error("Please enter a URL");e=await fetch("/api/endpoints/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:a.trim(),pathPrefix:d.trim()||void 0})})}else{if(!i)throw Error("Please select a file");let t=await i.text(),r=JSON.parse(t);e=await fetch("/api/endpoints/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({spec:r,pathPrefix:d.trim()||void 0})})}let t=await e.json();if(!e.ok)throw Error(t.error||"Import failed");let o=t.succeeded??t.created,l=t.failed??0;l>0?r9.toast.warning(`Imported ${o} endpoints (${l} failed)`):r9.toast.success(`Successfully imported ${o} endpoints`),r(),x()}catch(t){let e=t instanceof Error?t.message:"Import failed";m(e),r9.toast.error(e)}finally{f(!1)}},x=()=>{l(""),s(null),c(""),m(null),t(!1)},y="url"===n?a.trim().length>0:null!==i;return(0,h.jsx)(rH,{open:e,onOpenChange:x,children:(0,h.jsxs)(rY,{className:"sm:max-w-lg",children:[(0,h.jsx)(rZ,{children:(0,h.jsx)(r0,{children:"Import OpenAPI Specification"})}),(0,h.jsxs)("div",{className:"py-4 space-y-4",children:[(0,h.jsxs)("div",{className:"flex gap-2",children:[(0,h.jsx)(eU,{type:"button",variant:"url"===n?"default":"outline",size:"sm",onClick:()=>o("url"),children:"From URL"}),(0,h.jsx)(eU,{type:"button",variant:"file"===n?"default":"outline",size:"sm",onClick:()=>o("file"),children:"From File"})]}),"url"===n&&(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(r4,{htmlFor:"url",children:"OpenAPI JSON URL"}),(0,h.jsx)(r1,{id:"url",type:"url",placeholder:"https://api.example.com/api-docs-json",value:a,onChange:e=>{l(e.target.value),m(null)}}),(0,h.jsx)("p",{className:"text-xs text-gray-500",children:"Enter the URL to your OpenAPI/Swagger JSON specification"})]}),"file"===n&&(0,h.jsxs)("div",{className:"border-2 border-dashed rounded-lg p-8 text-center cursor-pointer hover:border-gray-400 transition-colors",onClick:()=>b.current?.click(),children:[(0,h.jsx)("input",{ref:b,type:"file",accept:".json",onChange:e=>{let t=e.target.files?.[0];t&&(s(t),m(null))},className:"hidden"}),i?(0,h.jsxs)("p",{className:"text-sm",children:["Selected: ",(0,h.jsx)("span",{className:"font-medium",children:i.name})]}):(0,h.jsx)("p",{className:"text-gray-500",children:"Click to select an OpenAPI JSON file"})]}),(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(r4,{htmlFor:"pathPrefix",children:"Path Prefix (optional)"}),(0,h.jsx)(r1,{id:"pathPrefix",type:"text",placeholder:"/reward",value:d,onChange:e=>c(e.target.value)}),(0,h.jsx)("p",{className:"text-xs text-gray-500",children:"Prefix to add to all imported paths (e.g., /reward → /reward/v1/users/:id)"})]}),p&&(0,h.jsx)("p",{className:"text-red-500 text-sm",children:p})]}),(0,h.jsxs)(rQ,{children:[(0,h.jsx)(eU,{variant:"outline",onClick:x,children:"Cancel"}),(0,h.jsx)(eU,{onClick:v,disabled:!y||u,children:u?"Importing...":"Import"})]})]})})}let ne=(0,tf.default)(()=>e.A(32205),{loadableGenerated:{modules:[66699]},ssr:!1,loading:()=>(0,h.jsx)("div",{className:"h-[300px] bg-gray-100 animate-pulse rounded"})}),nt={GET:"bg-green-100 text-green-800",POST:"bg-blue-100 text-blue-800",PUT:"bg-yellow-100 text-yellow-800",PATCH:"bg-orange-100 text-orange-800",DELETE:"bg-red-100 text-red-800"};function nr({endpoint:e,open:t,onOpenChange:r}){var n;let o,[a,l]=(0,g.useState)(!1),[i,s]=(0,g.useState)(null),[d,c]=(0,g.useState)(null),[u,f]=(0,g.useState)({}),p=window.location.origin,m=e&&(o=e.path.match(/:(\w+)/g))?o.map(e=>e.slice(1)):[],b=()=>{if(!e)return"";let t=e.path;for(let[e,r]of Object.entries(u))t=t.replace(`:${e}`,r||`:${e}`);return`${p}/api/mock${t}`},v=async()=>{if(!e)return;l(!0),c(null),s(null);let t=performance.now();try{let r=await fetch(b(),{method:e.method}),n=performance.now(),o=await r.text(),a=o;try{a=JSON.stringify(JSON.parse(o),null,2)}catch{}s({status:r.status,statusText:r.statusText,body:a,time:Math.round(n-t)})}catch(e){c(e instanceof Error?e.message:"Request failed")}finally{l(!1)}};return e?(0,h.jsx)(rH,{open:t,onOpenChange:e=>{e||(s(null),c(null),f({})),r(e)},children:(0,h.jsxs)(rY,{className:"sm:max-w-[700px] max-h-[90vh] flex flex-col",children:[(0,h.jsx)(rZ,{children:(0,h.jsxs)(r0,{className:"flex items-center gap-3",children:[(0,h.jsx)("span",{className:`px-2 py-1 rounded text-xs font-medium ${nt[e.method]||"bg-gray-100"}`,children:e.method}),(0,h.jsx)("span",{children:"Test API"})]})}),(0,h.jsxs)("div",{className:"flex flex-col gap-4 flex-1 overflow-hidden",children:[(0,h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,h.jsx)(r1,{readOnly:!0,value:b(),className:"flex-1 font-mono text-sm bg-gray-50"}),(0,h.jsx)(eU,{onClick:v,disabled:a,children:a?"Sending...":"Send"})]}),m.length>0&&(0,h.jsxs)("div",{className:"space-y-2 p-3 bg-gray-50 rounded-lg",children:[(0,h.jsx)(r4,{className:"text-sm font-medium",children:"Path Parameters"}),(0,h.jsx)("div",{className:"grid gap-2",children:m.map(e=>(0,h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,h.jsxs)(r4,{className:"w-24 text-sm text-gray-600",children:[":",e]}),(0,h.jsx)(r1,{placeholder:`Enter ${e}`,value:u[e]||"",onChange:t=>f(r=>({...r,[e]:t.target.value})),className:"flex-1"})]},e))})]}),d&&(0,h.jsx)("div",{className:"p-3 bg-red-50 border border-red-200 rounded-lg",children:(0,h.jsx)("p",{className:"text-red-600 text-sm",children:d})}),i&&(0,h.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden",children:[(0,h.jsxs)("div",{className:"flex items-center gap-4 mb-2",children:[(0,h.jsx)("span",{className:"text-sm font-medium",children:"Response"}),(0,h.jsxs)("span",{className:`text-sm font-medium ${(n=i.status)>=200&&n<300?"text-green-600":n>=400&&n<500?"text-yellow-600":n>=500?"text-red-600":"text-gray-600"}`,children:[i.status," ",i.statusText]}),(0,h.jsxs)("span",{className:"text-sm text-gray-500",children:[i.time,"ms"]})]}),(0,h.jsx)("div",{className:"border rounded-md overflow-hidden flex-1",children:(0,h.jsx)(ne,{height:"300px",language:"json",theme:"vs-dark",value:i.body,options:{readOnly:!0,minimap:{enabled:!1},fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0}})})]}),!i&&!d&&!a&&(0,h.jsx)("div",{className:"flex-1 flex items-center justify-center text-gray-400 border-2 border-dashed rounded-lg",children:"Click Send to test the API"})]})]})}):null}function nn(){let[e,t]=(0,g.useState)([]),[r,n]=(0,g.useState)(!0),[o,a]=(0,g.useState)(!1),[l,i]=(0,g.useState)(!1),[s,d]=(0,g.useState)(!1),[c,u]=(0,g.useState)(null),[f,p]=(0,g.useState)(null),[m,b]=(0,g.useState)(new Set),[v,x]=(0,g.useState)(""),[y,w]=(0,g.useState)(null);(0,g.useEffect)(()=>{x(window.location.origin)},[]);let k=(0,g.useCallback)(async()=>{try{let e=await fetch("/api/endpoints"),r=await e.json();t(r)}catch(e){console.error("Failed to fetch endpoints:",e)}finally{n(!1)}},[]);(0,g.useEffect)(()=>{k()},[k]);let j=async e=>{if(confirm("Are you sure you want to delete this endpoint?"))try{if(!(await fetch(`/api/endpoints/${e}`,{method:"DELETE"})).ok)throw Error("Failed to delete");b(t=>{let r=new Set(t);return r.delete(e),r}),r9.toast.success("Endpoint deleted successfully"),k()}catch(e){console.error("Failed to delete endpoint:",e),r9.toast.error("Failed to delete endpoint")}},E=async()=>{if(0!==m.size&&confirm(`Are you sure you want to delete ${m.size} endpoint(s)?`))try{if(!(await fetch("/api/endpoints/bulk",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:Array.from(m)})})).ok)throw Error("Failed to delete");let e=m.size;b(new Set),r9.toast.success(`${e} endpoint(s) deleted successfully`),k()}catch(e){console.error("Failed to delete endpoints:",e),r9.toast.error("Failed to delete endpoints")}},N=async e=>{try{let t=!!e.id,r=t?await fetch(`/api/endpoints/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}):await fetch("/api/endpoints",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok){let e=await r.json();throw Error(e.error||"Failed to save")}let n=await r.json();w(n.id),r9.toast.success(t?"Endpoint updated successfully":"Endpoint created successfully"),k()}catch(e){console.error("Failed to save endpoint:",e),r9.toast.error(e instanceof Error?e.message:"Failed to save endpoint")}};return(0,h.jsxs)("div",{className:"min-h-screen bg-gray-50",children:[(0,h.jsxs)("div",{className:"max-w-7xl mx-auto py-8 px-4 sm:px-6 lg:px-8",children:[(0,h.jsxs)("div",{className:"flex justify-between items-center mb-8",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("h1",{className:"text-3xl font-bold text-gray-900",children:"Growthman"}),(0,h.jsx)("p",{className:"mt-1 text-gray-500",children:"Manage your mock API endpoints"}),v&&(0,h.jsxs)("p",{className:"mt-2 text-sm font-mono bg-gray-100 px-3 py-1.5 rounded-md inline-block",children:[v,"/api/mock"]})]}),(0,h.jsxs)("div",{className:"flex gap-3",children:[(0,h.jsx)(eU,{variant:"outline",onClick:()=>i(!0),children:"Import OpenAPI"}),(0,h.jsx)(eU,{onClick:()=>{u(null),a(!0)},children:"+ New Endpoint"})]})]}),m.size>0&&(0,h.jsxs)("div",{className:"mb-4 flex items-center gap-4 p-3 bg-blue-50 border border-blue-200 rounded-lg",children:[(0,h.jsxs)("span",{className:"text-sm text-blue-800",children:[m.size," endpoint(s) selected"]}),(0,h.jsx)(eU,{variant:"destructive",size:"sm",onClick:E,children:"Delete Selected"}),(0,h.jsx)(eU,{variant:"ghost",size:"sm",onClick:()=>b(new Set),children:"Clear Selection"})]}),(0,h.jsx)("div",{className:"bg-white shadow rounded-lg",children:r?(0,h.jsx)("div",{className:"p-8 text-center text-gray-500",children:"Loading..."}):(0,h.jsx)(tu,{endpoints:e,onEdit:e=>{u(e),a(!0)},onDelete:j,onTest:e=>{p(e),d(!0)},selectedIds:m,onSelectionChange:b,lastModifiedId:y})})]}),(0,h.jsx)(r6,{endpoint:c,open:o,onOpenChange:a,onSave:N}),(0,h.jsx)(r7,{open:l,onOpenChange:i,onImportComplete:k}),(0,h.jsx)(nr,{endpoint:f,open:s,onOpenChange:d})]})}e.s(["default",()=>nn],65878)}]);
|
package/.next/trace
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":70,"timestamp":1800182625051,"id":4,"parentId":1,"tags":{},"startTime":1767671625566,"traceId":"18d7c6a5faee72d2"},{"name":"load-custom-routes","duration":110,"timestamp":1800182625152,"id":5,"parentId":1,"tags":{},"startTime":1767671625566,"traceId":"18d7c6a5faee72d2"},{"name":"create-dist-dir","duration":85,"timestamp":1800182625270,"id":6,"parentId":1,"tags":{},"startTime":1767671625566,"traceId":"18d7c6a5faee72d2"},{"name":"clean","duration":43320,"timestamp":1800182625713,"id":7,"parentId":1,"tags":{},"startTime":1767671625567,"traceId":"18d7c6a5faee72d2"},{"name":"create-pages-mapping","duration":89,"timestamp":1800182674832,"id":8,"parentId":1,"tags":{},"startTime":1767671625616,"traceId":"18d7c6a5faee72d2"},{"name":"collect-app-files","duration":1125,"timestamp":1800182674936,"id":9,"parentId":1,"tags":{},"startTime":1767671625616,"traceId":"18d7c6a5faee72d2"},{"name":"create-app-mapping","duration":832,"timestamp":1800182676076,"id":10,"parentId":1,"tags":{},"startTime":1767671625617,"traceId":"18d7c6a5faee72d2"},{"name":"create-app-layouts","duration":54,"timestamp":1800182676922,"id":11,"parentId":1,"tags":{},"startTime":1767671625618,"traceId":"18d7c6a5faee72d2"},{"name":"collect-default-files","duration":452,"timestamp":1800182677755,"id":13,"parentId":1,"tags":{},"startTime":1767671625619,"traceId":"18d7c6a5faee72d2"},{"name":"generate-route-types","duration":7469,"timestamp":1800182677470,"id":12,"parentId":1,"tags":{},"startTime":1767671625618,"traceId":"18d7c6a5faee72d2"},{"name":"public-dir-conflict-check","duration":29,"timestamp":1800182684965,"id":14,"parentId":1,"tags":{},"startTime":1767671625626,"traceId":"18d7c6a5faee72d2"},{"name":"generate-routes-manifest","duration":960,"timestamp":1800182685018,"id":15,"parentId":1,"tags":{},"startTime":1767671625626,"traceId":"18d7c6a5faee72d2"},{"name":"run-turbopack","duration":1356260,"timestamp":1800182690062,"id":17,"parentId":1,"tags":{},"startTime":1767671625631,"traceId":"18d7c6a5faee72d2"},{"name":"run-typescript","duration":1075218,"timestamp":1800184062025,"id":19,"parentId":1,"tags":{},"startTime":1767671627003,"traceId":"18d7c6a5faee72d2"},{"name":"generate-required-server-files","duration":387,"timestamp":1800185138697,"id":21,"parentId":1,"tags":{},"startTime":1767671628080,"traceId":"18d7c6a5faee72d2"},{"name":"check-static-error-page","duration":3556,"timestamp":1800185149150,"id":23,"parentId":22,"tags":{},"startTime":1767671628090,"traceId":"18d7c6a5faee72d2"},{"name":"is-page-static","duration":261380,"timestamp":1800185153461,"id":34,"parentId":25,"tags":{},"startTime":1767671628094,"traceId":"18d7c6a5faee72d2"},{"name":"check-page","duration":262520,"timestamp":1800185152376,"id":25,"parentId":22,"tags":{"page":"/_global-error"},"startTime":1767671628093,"traceId":"18d7c6a5faee72d2"},{"name":"is-page-static","duration":293512,"timestamp":1800185155434,"id":43,"parentId":33,"tags":{},"startTime":1767671628096,"traceId":"18d7c6a5faee72d2"},{"name":"check-page","duration":296290,"timestamp":1800185152688,"id":33,"parentId":22,"tags":{"page":"/"},"startTime":1767671628094,"traceId":"18d7c6a5faee72d2"},{"name":"is-page-static","duration":296431,"timestamp":1800185153805,"id":40,"parentId":32,"tags":{},"startTime":1767671628095,"traceId":"18d7c6a5faee72d2"},{"name":"check-page","duration":297586,"timestamp":1800185152671,"id":32,"parentId":22,"tags":{"page":"/favicon.ico"},"startTime":1767671628093,"traceId":"18d7c6a5faee72d2"},{"name":"is-page-static","duration":301328,"timestamp":1800185153983,"id":42,"parentId":24,"tags":{},"startTime":1767671628095,"traceId":"18d7c6a5faee72d2"},{"name":"check-page","duration":303425,"timestamp":1800185151914,"id":24,"parentId":22,"tags":{"page":"/_not-found"},"startTime":1767671628093,"traceId":"18d7c6a5faee72d2"},{"name":"is-page-static","duration":303374,"timestamp":1800185153773,"id":39,"parentId":30,"tags":{},"startTime":1767671628095,"traceId":"18d7c6a5faee72d2"},{"name":"check-page","duration":304585,"timestamp":1800185152644,"id":30,"parentId":22,"tags":{"page":"/api/endpoints/sync"},"startTime":1767671628093,"traceId":"18d7c6a5faee72d2"},{"name":"is-page-static","duration":307913,"timestamp":1800185153643,"id":35,"parentId":26,"tags":{},"startTime":1767671628094,"traceId":"18d7c6a5faee72d2"},{"name":"check-page","duration":309126,"timestamp":1800185152466,"id":26,"parentId":22,"tags":{"page":"/api/endpoints/[id]"},"startTime":1767671628093,"traceId":"18d7c6a5faee72d2"},{"name":"is-page-static","duration":309807,"timestamp":1800185153743,"id":38,"parentId":29,"tags":{},"startTime":1767671628095,"traceId":"18d7c6a5faee72d2"},{"name":"check-page","duration":310953,"timestamp":1800185152624,"id":29,"parentId":22,"tags":{"page":"/api/endpoints"},"startTime":1767671628093,"traceId":"18d7c6a5faee72d2"},{"name":"is-page-static","duration":311186,"timestamp":1800185153683,"id":36,"parentId":28,"tags":{},"startTime":1767671628095,"traceId":"18d7c6a5faee72d2"},{"name":"check-page","duration":312290,"timestamp":1800185152598,"id":28,"parentId":22,"tags":{"page":"/api/endpoints/import"},"startTime":1767671628093,"traceId":"18d7c6a5faee72d2"},{"name":"is-page-static","duration":312118,"timestamp":1800185153711,"id":37,"parentId":27,"tags":{},"startTime":1767671628095,"traceId":"18d7c6a5faee72d2"},{"name":"check-page","duration":313357,"timestamp":1800185152488,"id":27,"parentId":22,"tags":{"page":"/api/endpoints/bulk"},"startTime":1767671628093,"traceId":"18d7c6a5faee72d2"},{"name":"is-page-static","duration":314468,"timestamp":1800185153838,"id":41,"parentId":31,"tags":{},"startTime":1767671628095,"traceId":"18d7c6a5faee72d2"},{"name":"check-page","duration":315670,"timestamp":1800185152658,"id":31,"parentId":22,"tags":{"page":"/api/mock/[...slug]"},"startTime":1767671628093,"traceId":"18d7c6a5faee72d2"},{"name":"static-check","duration":319456,"timestamp":1800185148884,"id":22,"parentId":1,"tags":{},"startTime":1767671628090,"traceId":"18d7c6a5faee72d2"},{"name":"write-routes-manifest","duration":566,"timestamp":1800185471988,"id":45,"parentId":1,"tags":{},"startTime":1767671628413,"traceId":"18d7c6a5faee72d2"},{"name":"load-dotenv","duration":12,"timestamp":1800185477969,"id":48,"parentId":47,"tags":{},"startTime":1767671628419,"traceId":"18d7c6a5faee72d2"},{"name":"run-export-path-map","duration":175,"timestamp":1800185479776,"id":49,"parentId":47,"tags":{},"startTime":1767671628421,"traceId":"18d7c6a5faee72d2"},{"name":"next-export","duration":201789,"timestamp":1800185477521,"id":47,"parentId":1,"tags":{},"startTime":1767671628418,"traceId":"18d7c6a5faee72d2"},{"name":"move-exported-app-not-found-","duration":479,"timestamp":1800185679940,"id":50,"parentId":46,"tags":{},"startTime":1767671628621,"traceId":"18d7c6a5faee72d2"},{"name":"move-exported-app-global-error-","duration":382,"timestamp":1800185680455,"id":51,"parentId":46,"tags":{},"startTime":1767671628621,"traceId":"18d7c6a5faee72d2"},{"name":"static-generation","duration":207656,"timestamp":1800185474415,"id":46,"parentId":1,"tags":{},"startTime":1767671628415,"traceId":"18d7c6a5faee72d2"},{"name":"write-routes-manifest","duration":223,"timestamp":1800185682143,"id":52,"parentId":1,"tags":{},"startTime":1767671628623,"traceId":"18d7c6a5faee72d2"},{"name":"print-tree-view","duration":733,"timestamp":1800185693244,"id":53,"parentId":1,"tags":{},"startTime":1767671628634,"traceId":"18d7c6a5faee72d2"},{"name":"telemetry-flush","duration":497030,"timestamp":1800185693984,"id":54,"parentId":1,"tags":{},"startTime":1767671628635,"traceId":"18d7c6a5faee72d2"},{"name":"next-build","duration":3656639,"timestamp":1800182534410,"id":1,"tags":{"buildMode":"default","version":"16.1.1","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1767671625475,"traceId":"18d7c6a5faee72d2"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":1356260,"timestamp":1800182690062,"id":17,"parentId":1,"tags":{},"startTime":1767671625631,"traceId":"18d7c6a5faee72d2"},{"name":"run-typescript","duration":1075218,"timestamp":1800184062025,"id":19,"parentId":1,"tags":{},"startTime":1767671627003,"traceId":"18d7c6a5faee72d2"},{"name":"static-check","duration":319456,"timestamp":1800185148884,"id":22,"parentId":1,"tags":{},"startTime":1767671628090,"traceId":"18d7c6a5faee72d2"},{"name":"static-generation","duration":207656,"timestamp":1800185474415,"id":46,"parentId":1,"tags":{},"startTime":1767671628415,"traceId":"18d7c6a5faee72d2"},{"name":"telemetry-flush","duration":497030,"timestamp":1800185693984,"id":54,"parentId":1,"tags":{},"startTime":1767671628635,"traceId":"18d7c6a5faee72d2"},{"name":"next-build","duration":3656639,"timestamp":1800182534410,"id":1,"tags":{"buildMode":"default","version":"16.1.1","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1767671625475,"traceId":"18d7c6a5faee72d2"}]
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kurly-growth/growthman",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Local mock API server with UI dashboard",
|
|
5
5
|
"bin": {
|
|
6
6
|
"growthman": "./bin/cli.js"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"prepack": "next build",
|
|
21
21
|
"postinstall": "prisma generate",
|
|
22
|
-
"dev": "next dev -p 3100",
|
|
23
|
-
"dev:clean": "npx prisma db seed && next dev -p 3100",
|
|
22
|
+
"dev": "next dev -p ${PORT:-3100}",
|
|
23
|
+
"dev:clean": "npx prisma db seed && next dev -p ${PORT:-3100}",
|
|
24
24
|
"build": "next build",
|
|
25
|
-
"start": "next start -p 3100",
|
|
25
|
+
"start": "next start -p ${PORT:-3100}",
|
|
26
26
|
"lint": "eslint",
|
|
27
27
|
"db:seed": "npx prisma db seed",
|
|
28
28
|
"db:reset": "rm -f prisma/dev.db && npx prisma db push && npx prisma db seed",
|
|
File without changes
|
/package/.next/static/{q2kvdJ4xD_wtslnv7fAKm → w5WtKaqxY-0FsR98k9Jhw}/_clientMiddlewareManifest.json
RENAMED
|
File without changes
|
|
File without changes
|