@grindxp/cli 0.1.7 → 0.1.9
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/dist/index.js +766 -134
- package/dist/web/client/assets/Copy.es-Bs4NgJu-.js +1 -0
- package/dist/web/client/assets/Sword.es-2Xm7T3t2.js +1 -0
- package/dist/web/client/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2 +0 -0
- package/dist/web/client/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2 +0 -0
- package/dist/web/client/assets/geist-latin-wght-normal-Dm3htQBi.woff2 +0 -0
- package/dist/web/client/assets/index-6XDcqRbL.js +42 -0
- package/dist/web/client/assets/index-BXM1N6tm.js +1 -0
- package/dist/web/client/assets/index-B_KMiE38.js +1 -0
- package/dist/web/client/assets/index-CGj2rOLm.js +1 -0
- package/dist/web/client/assets/index-CS5BuFbt.js +1 -0
- package/dist/web/client/assets/index-CYsASiu-.js +1 -0
- package/dist/web/client/assets/index-DAvwM0SX.js +1 -0
- package/dist/web/client/assets/index-DCBFp5DJ.js +1 -0
- package/dist/web/client/assets/index-DjKt1qNz.js +1 -0
- package/dist/web/client/assets/index-PIcFs1vr.js +1 -0
- package/dist/web/client/assets/instrument-serif-latin-400-italic-DKMiL14s.woff2 +0 -0
- package/dist/web/client/assets/instrument-serif-latin-400-italic-u__WvvIK.woff +0 -0
- package/dist/web/client/assets/instrument-serif-latin-400-normal-BVbkICAY.woff +0 -0
- package/dist/web/client/assets/instrument-serif-latin-400-normal-DnYpCC2O.woff2 +0 -0
- package/dist/web/client/assets/instrument-serif-latin-ext-400-italic-C9HzH3YL.woff2 +0 -0
- package/dist/web/client/assets/instrument-serif-latin-ext-400-italic-D7-lnxEk.woff +0 -0
- package/dist/web/client/assets/instrument-serif-latin-ext-400-normal-C2je3j2s.woff2 +0 -0
- package/dist/web/client/assets/instrument-serif-latin-ext-400-normal-CFCUzsTy.woff +0 -0
- package/dist/web/client/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/web/client/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/web/client/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/web/client/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/web/client/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/web/client/assets/main-BI1EOhmt.js +18 -0
- package/dist/web/client/assets/styles-7TpWqjrh.css +1 -0
- package/dist/web/client/favicon.ico +0 -0
- package/dist/web/server/assets/_tanstack-start-manifest_v-B_rvI8DG.js +4 -0
- package/dist/web/server/assets/agent.functions-BL3upUNr.js +19541 -0
- package/dist/web/server/assets/data.functions-DZmdFOMQ.js +285 -0
- package/dist/web/server/assets/index-4SxmUYH6.js +14 -0
- package/dist/web/server/assets/index-B2ULpkv2.js +4587 -0
- package/dist/web/server/assets/index-BGBMycx-.js +2275 -0
- package/dist/web/server/assets/index-BL8u2X7w.js +14 -0
- package/dist/web/server/assets/index-BQUCDamI.js +5924 -0
- package/dist/web/server/assets/index-BRRsXrOi.js +14 -0
- package/dist/web/server/assets/index-BiD7uOOh.js +14 -0
- package/dist/web/server/assets/index-CB8UtTN8.js +66 -0
- package/dist/web/server/assets/index-D2yaimYL.js +14 -0
- package/dist/web/server/assets/index-D3RUqTdb.js +14 -0
- package/dist/web/server/assets/index-DTB2dYCz.js +1426 -0
- package/dist/web/server/assets/index-DfU25rnD.js +477 -0
- package/dist/web/server/assets/index-SHH7zSKt.js +66 -0
- package/dist/web/server/assets/router-CXyGzWDS.js +589 -0
- package/dist/web/server/assets/sessions-UCWtijHE.js +438 -0
- package/dist/web/server/assets/start-HYkvq4Ni.js +4 -0
- package/dist/web/server/assets/token-DGoahKjI.js +86 -0
- package/dist/web/server/assets/token-util-BopJPy-I.js +451 -0
- package/dist/web/server/assets/token-util-Bw35afYM.js +30 -0
- package/dist/web/server/assets/vault.server-CscY5Z8e.js +19357 -0
- package/dist/web/server/server.js +4889 -0
- package/package.json +53 -51
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./main-BI1EOhmt.js";import{r as t}from"./Sword.es-2Xm7T3t2.js";function o(){return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-4 p-8 text-center",children:[e.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card",children:e.jsx(t,{size:28,className:"text-muted-foreground","aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Quests"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Coming soon…"})]})]})}export{o as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,t as r}from"./main-BI1EOhmt.js";function s(){return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-4 p-8 text-center",children:[e.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card",children:e.jsx(r,{size:28,className:"text-muted-foreground","aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Forge"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Coming soon…"})]})]})}export{s as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,t as a,r as i,c as n}from"./main-BI1EOhmt.js";import{e as c,o as d}from"./Copy.es-Bs4NgJu-.js";function l({command:t}){const[r,o]=i.useState(!1),s=i.useCallback(()=>{navigator.clipboard.writeText(t).then(()=>{o(!0),setTimeout(()=>o(!1),2e3)})},[t]);return e.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-card pl-4 pr-3 py-3",children:[e.jsx("code",{className:"flex-1 min-w-0 break-all font-mono text-sm text-grind-orange",children:t}),e.jsx("button",{type:"button",onClick:s,"aria-label":r?"Copied":`Copy command: ${t}`,className:"flex shrink-0 items-center justify-center rounded-md p-1 text-muted-foreground [touch-action:manipulation] transition-[transform,background-color,color] duration-150 active:scale-[0.97] hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:e.jsxs("span",{className:"relative flex size-4 items-center justify-center",children:[e.jsx(c,{size:14,"aria-hidden":"true",className:n("absolute motion-safe:transition-opacity duration-200",r?"opacity-0":"opacity-100")}),e.jsx(d,{size:14,"aria-hidden":"true",className:n("absolute text-grind-xp motion-safe:transition-opacity duration-200",r?"opacity-100":"opacity-0")})]})})]})}function x({error:t}){const r=t instanceof Error?t.message:"Something went wrong",o=r.includes("not initialized");return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-4 p-8 text-center",children:[e.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card",children:e.jsx(a,{size:28,className:"text-muted-foreground","aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold text-foreground",children:o?"Grind Not Initialized":"Failed to Load Chat"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:o?"Run the command below in your terminal to get started.":r})]}),o&&e.jsx(l,{command:"grindxp init"})]})}export{x as errorComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,a as r}from"./main-BI1EOhmt.js";function t(){return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-4 p-8 text-center",children:[e.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card",children:e.jsx(r,{size:28,className:"text-muted-foreground","aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Skills"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Coming soon…"})]})]})}export{t as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,p as g,j as e,c as o,R as E,t as p,L as V}from"./main-BI1EOhmt.js";import{r as f}from"./Sword.es-2Xm7T3t2.js";const Z=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M176.69,48.72a225,225,0,0,0-42.52-35,12,12,0,0,0-12.34,0,225,225,0,0,0-42.52,35C51,78.47,36,111.42,36,144a92,92,0,0,0,184,0C220,111.42,205,78.47,176.69,48.72ZM100,184c0-13.33,5.53-26.26,16.45-38.45A93,93,0,0,1,128,134.72a93,93,0,0,1,11.55,10.83C150.47,157.74,156,170.67,156,184a28,28,0,0,1-56,0Zm79.84,3.94c.09-1.3.16-2.61.16-3.94,0-46.26-44-73.17-45.83-74.29a12,12,0,0,0-12.34,0C120,110.83,76,137.74,76,184c0,1.33.07,2.64.16,3.94A67.68,67.68,0,0,1,60,144c0-26.52,12.21-52.86,36.28-78.3A213.07,213.07,0,0,1,128,38.39C145.82,50.86,196,90.71,196,144A67.68,67.68,0,0,1,179.84,187.94Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,144A80,80,0,0,1,130.06,224,40,40,0,0,0,168,184c0-40-40-64-40-64s-40,24-40,64A40,40,0,0,0,125.94,224,80,80,0,0,1,48,144c0-72,80-120,80-120S208,72,208,144Z",opacity:"0.2"}),t.createElement("path",{d:"M173.79,51.48a221.25,221.25,0,0,0-41.67-34.34,8,8,0,0,0-8.24,0A221.25,221.25,0,0,0,82.21,51.48C54.59,80.48,40,112.47,40,144a88,88,0,0,0,176,0C216,112.47,201.41,80.48,173.79,51.48ZM96,184c0-27.67,22.53-47.28,32-54.3,9.48,7,32,26.63,32,54.3a32,32,0,0,1-64,0Zm77.27,15.93A47.8,47.8,0,0,0,176,184c0-44-42.09-69.79-43.88-70.86a8,8,0,0,0-8.24,0C122.09,114.21,80,140,80,184a47.8,47.8,0,0,0,2.73,15.93A71.88,71.88,0,0,1,56,144c0-34.41,20.4-63.15,37.52-81.19A216.21,216.21,0,0,1,128,33.54a215.77,215.77,0,0,1,34.48,29.27C193.49,95.5,200,125,200,144A71.88,71.88,0,0,1,173.27,199.93Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M173.79,51.48a221.25,221.25,0,0,0-41.67-34.34,8,8,0,0,0-8.24,0A221.25,221.25,0,0,0,82.21,51.48C54.59,80.48,40,112.47,40,144a88,88,0,0,0,176,0C216,112.47,201.41,80.48,173.79,51.48ZM96,184c0-27.67,22.53-47.28,32-54.3,9.48,7,32,26.63,32,54.3a32,32,0,0,1-64,0Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M172.34,52.86a218.34,218.34,0,0,0-41.25-34,6,6,0,0,0-6.18,0,218.34,218.34,0,0,0-41.25,34C56.4,81.48,42,113,42,144a86,86,0,0,0,172,0C214,113,199.6,81.48,172.34,52.86ZM94,184c0-29.8,25.11-50.41,34-56.78,8.91,6.35,34,26.87,34,56.78a34.05,34.05,0,0,1-32.25,34c-.59,0-1.16,0-1.75,0s-1.16,0-1.75,0A34.05,34.05,0,0,1,94,184Zm74.42,21.94A45.68,45.68,0,0,0,174,184c0-42.9-41.16-68.09-42.91-69.14a6,6,0,0,0-6.18,0C123.16,115.91,82,141.1,82,184a45.68,45.68,0,0,0,5.58,21.94A74,74,0,0,1,54,144c0-59.83,59.62-103.26,74-112.86,14.39,9.6,74,53,74,112.86A74,74,0,0,1,168.42,205.94Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M173.79,51.48a221.25,221.25,0,0,0-41.67-34.34,8,8,0,0,0-8.24,0A221.25,221.25,0,0,0,82.21,51.48C54.59,80.48,40,112.47,40,144a88,88,0,0,0,176,0C216,112.47,201.41,80.48,173.79,51.48ZM96,184c0-27.67,22.53-47.28,32-54.3,9.48,7,32,26.63,32,54.3a32,32,0,0,1-64,0Zm77.27,15.93A47.8,47.8,0,0,0,176,184c0-44-42.09-69.79-43.88-70.86a8,8,0,0,0-8.24,0C122.09,114.21,80,140,80,184a47.8,47.8,0,0,0,2.73,15.93A71.88,71.88,0,0,1,56,144c0-34.41,20.4-63.15,37.52-81.19A216.21,216.21,0,0,1,128,33.54a215.77,215.77,0,0,1,34.48,29.27C193.49,95.5,200,125,200,144A71.88,71.88,0,0,1,173.27,199.93Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M170.9,54.24a216.79,216.79,0,0,0-40.84-33.67,4,4,0,0,0-4.12,0A216.79,216.79,0,0,0,85.1,54.24C58.21,82.48,44,113.51,44,144a84,84,0,0,0,168,0C212,113.51,197.79,82.48,170.9,54.24ZM92,184c0-32.11,28.07-53.75,36-59.21,7.93,5.47,36,27.1,36,59.21a36,36,0,0,1-72,0Zm69.94,28A43.82,43.82,0,0,0,172,184c0-41.78-40.23-66.4-41.94-67.43a4,4,0,0,0-4.12,0C124.23,117.6,84,142.22,84,184a43.82,43.82,0,0,0,10.06,28A76.07,76.07,0,0,1,52,144c0-62.48,63.64-107.17,76-115.26,12.36,8.09,76,52.78,76,115.26A76.07,76.07,0,0,1,161.94,212Z"}))]]),H=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M243,96a20.33,20.33,0,0,0-17.74-14l-56.59-4.57L146.83,24.62a20.36,20.36,0,0,0-37.66,0L87.35,77.44,30.76,82A20.45,20.45,0,0,0,19.1,117.88l43.18,37.24-13.2,55.7A20.37,20.37,0,0,0,79.57,233L128,203.19,176.43,233a20.39,20.39,0,0,0,30.49-22.15l-13.2-55.7,43.18-37.24A20.43,20.43,0,0,0,243,96ZM172.53,141.7a12,12,0,0,0-3.84,11.86L181.58,208l-47.29-29.08a12,12,0,0,0-12.58,0L74.42,208l12.89-54.4a12,12,0,0,0-3.84-11.86L41.2,105.24l55.4-4.47a12,12,0,0,0,10.13-7.38L128,41.89l21.27,51.5a12,12,0,0,0,10.13,7.38l55.4,4.47Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M229.06,108.79l-48.7,42,14.88,62.79a8.4,8.4,0,0,1-12.52,9.17L128,189.09,73.28,222.74a8.4,8.4,0,0,1-12.52-9.17l14.88-62.79-48.7-42A8.46,8.46,0,0,1,31.73,94L95.64,88.8l24.62-59.6a8.36,8.36,0,0,1,15.48,0l24.62,59.6L224.27,94A8.46,8.46,0,0,1,229.06,108.79Z",opacity:"0.2"}),t.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M237.28,97.87A14.18,14.18,0,0,0,224.76,88l-60.25-4.87-23.22-56.2a14.37,14.37,0,0,0-26.58,0L91.49,83.11,31.24,88a14.18,14.18,0,0,0-12.52,9.89A14.43,14.43,0,0,0,23,113.32L69,152.93l-14,59.25a14.4,14.4,0,0,0,5.59,15,14.1,14.1,0,0,0,15.91.6L128,196.12l51.58,31.71a14.1,14.1,0,0,0,15.91-.6,14.4,14.4,0,0,0,5.59-15l-14-59.25L233,113.32A14.43,14.43,0,0,0,237.28,97.87Zm-12.14,6.37-48.69,42a6,6,0,0,0-1.92,5.92l14.88,62.79a2.35,2.35,0,0,1-.95,2.57,2.24,2.24,0,0,1-2.6.1L131.14,184a6,6,0,0,0-6.28,0L70.14,217.61a2.24,2.24,0,0,1-2.6-.1,2.35,2.35,0,0,1-1-2.57l14.88-62.79a6,6,0,0,0-1.92-5.92l-48.69-42a2.37,2.37,0,0,1-.73-2.65,2.28,2.28,0,0,1,2.07-1.65l63.92-5.16a6,6,0,0,0,5.06-3.69l24.63-59.6a2.35,2.35,0,0,1,4.38,0l24.63,59.6a6,6,0,0,0,5.06,3.69l63.92,5.16a2.28,2.28,0,0,1,2.07,1.65A2.37,2.37,0,0,1,225.14,104.24Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M235.36,98.49A12.21,12.21,0,0,0,224.59,90l-61.47-5L139.44,27.67a12.37,12.37,0,0,0-22.88,0L92.88,85,31.41,90a12.45,12.45,0,0,0-7.07,21.84l46.85,40.41L56.87,212.64a12.35,12.35,0,0,0,18.51,13.49L128,193.77l52.62,32.36a12.12,12.12,0,0,0,13.69-.51,12.28,12.28,0,0,0,4.82-13l-14.32-60.42,46.85-40.41A12.29,12.29,0,0,0,235.36,98.49Zm-8.93,7.26-48.68,42a4,4,0,0,0-1.28,3.95l14.87,62.79a4.37,4.37,0,0,1-1.72,4.65,4.24,4.24,0,0,1-4.81.18L130.1,185.67a4,4,0,0,0-4.2,0L71.19,219.32a4.24,4.24,0,0,1-4.81-.18,4.37,4.37,0,0,1-1.72-4.65L79.53,151.7a4,4,0,0,0-1.28-3.95l-48.68-42A4.37,4.37,0,0,1,28.25,101a4.31,4.31,0,0,1,3.81-3L96,92.79a4,4,0,0,0,3.38-2.46L124,30.73a4.35,4.35,0,0,1,8.08,0l24.62,59.6A4,4,0,0,0,160,92.79l63.9,5.15a4.31,4.31,0,0,1,3.81,3A4.37,4.37,0,0,1,226.43,105.75Z"}))]]),w=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,60H212V48a12,12,0,0,0-12-12H56A12,12,0,0,0,44,48V60H24A20,20,0,0,0,4,80V96a44.05,44.05,0,0,0,44,44h.77A84.18,84.18,0,0,0,116,195.15V212H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24H140V195.11c30.94-4.51,56.53-26.2,67-55.11h1a44.05,44.05,0,0,0,44-44V80A20,20,0,0,0,232,60ZM28,96V84H44v28c0,1.21,0,2.41.09,3.61A20,20,0,0,1,28,96Zm160,15.1c0,33.33-26.71,60.65-59.54,60.9A60,60,0,0,1,68,112V60H188ZM228,96a20,20,0,0,1-16.12,19.62c.08-1.5.12-3,.12-4.52V84h16Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M200,48v63.1c0,39.7-31.75,72.6-71.45,72.9A72,72,0,0,1,56,112V48Z",opacity:"0.2"}),t.createElement("path",{d:"M232,64H208V48a8,8,0,0,0-8-8H56a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80V96a40,40,0,0,0,40,40h3.65A80.13,80.13,0,0,0,120,191.61V216H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V191.58c31.94-3.23,58.44-25.64,68.08-55.58H208a40,40,0,0,0,40-40V80A16,16,0,0,0,232,64ZM48,120A24,24,0,0,1,24,96V80H48v32q0,4,.39,8Zm144-8.9c0,35.52-29,64.64-64,64.9a64,64,0,0,1-64-64V56H192ZM232,96a24,24,0,0,1-24,24h-.5a81.81,81.81,0,0,0,.5-8.9V80h24Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,64H208V48a8,8,0,0,0-8-8H56a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80V96a40,40,0,0,0,40,40h3.65A80.13,80.13,0,0,0,120,191.61V216H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V191.58c31.94-3.23,58.44-25.64,68.08-55.58H208a40,40,0,0,0,40-40V80A16,16,0,0,0,232,64ZM48,120A24,24,0,0,1,24,96V80H48v32q0,4,.39,8ZM232,96a24,24,0,0,1-24,24h-.5a81.81,81.81,0,0,0,.5-8.9V80h24Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,66H206V48a6,6,0,0,0-6-6H56a6,6,0,0,0-6,6V66H24A14,14,0,0,0,10,80V96a38,38,0,0,0,38,38h5.14A78,78,0,0,0,122,189.75V218H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12H134V189.75c32.44-2.52,59.43-25.3,68.62-55.75H208a38,38,0,0,0,38-38V80A14,14,0,0,0,232,66ZM48,122A26,26,0,0,1,22,96V80a2,2,0,0,1,2-2H50v34a80.87,80.87,0,0,0,.65,10Zm146-10.9c0,36.62-29.38,66.63-65.5,66.9A66,66,0,0,1,62,112V54H194ZM234,96a26,26,0,0,1-26,26h-2.77a78.45,78.45,0,0,0,.77-10.9V78h26a2,2,0,0,1,2,2Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,64H208V48a8,8,0,0,0-8-8H56a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80V96a40,40,0,0,0,40,40h3.65A80.13,80.13,0,0,0,120,191.61V216H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16H136V191.58c31.94-3.23,58.44-25.64,68.08-55.58H208a40,40,0,0,0,40-40V80A16,16,0,0,0,232,64ZM48,120A24,24,0,0,1,24,96V80H48v32q0,4,.39,8Zm144-8.9c0,35.52-29,64.64-64,64.9a64,64,0,0,1-64-64V56H192ZM232,96a24,24,0,0,1-24,24h-.5a81.81,81.81,0,0,0,.5-8.9V80h24Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,68H204V48a4,4,0,0,0-4-4H56a4,4,0,0,0-4,4V68H24A12,12,0,0,0,12,80V96a36,36,0,0,0,36,36h6.66A76,76,0,0,0,124,187.89V220H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8H132V187.88c32.93-1.74,60.41-24.91,69.11-55.88H208a36,36,0,0,0,36-36V80A12,12,0,0,0,232,68ZM48,124A28,28,0,0,1,20,96V80a4,4,0,0,1,4-4H52v36a77,77,0,0,0,1,12Zm148-12.9c0,37.71-30.79,68.62-68,68.9a68,68,0,0,1-68-68V52H196ZM236,96a28,28,0,0,1-28,28h-5.1a77.35,77.35,0,0,0,1.1-12.9V76h28a4,4,0,0,1,4,4Z"}))]]),h=t.forwardRef((a,r)=>t.createElement(g,{ref:r,...a,weights:Z}));h.displayName="FlameIcon";const N=t.forwardRef((a,r)=>t.createElement(g,{ref:r,...a,weights:H}));N.displayName="StarIcon";const A=t.forwardRef((a,r)=>t.createElement(g,{ref:r,...a,weights:w}));A.displayName="TrophyIcon";const b={orange:"text-grind-orange",green:"text-grind-xp",purple:"text-[oklch(0.72_0.19_285)]",default:"text-foreground"};function x({label:a,value:r,sub:l,icon:s,accent:c="default",className:n}){const m=b[c]??b.default;return e.jsxs("div",{className:o("flex flex-col gap-1 rounded-xl border border-border bg-card px-5 py-4",n),children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[s&&e.jsx("span",{"aria-hidden":"true",className:"shrink-0",children:s}),a]}),e.jsx("div",{className:o("font-mono text-2xl font-semibold leading-none tabular-nums",m),style:{fontVariantNumeric:"tabular-nums"},children:r}),l&&e.jsx("div",{className:"text-xs text-muted-foreground",children:l})]})}const C={easy:"◆◇◇",medium:"◆◆◇",hard:"◆◆◆",epic:"◆◆◆★"},S={easy:"text-grind-xp",medium:"text-grind-orange",hard:"text-[oklch(0.65_0.24_27)]",epic:"text-[oklch(0.72_0.19_285)]"},F={daily:"Daily",weekly:"Weekly",epic:"Epic",bounty:"Bounty",chain:"Chain",ritual:"Ritual"};function T({objective:a}){return e.jsx("span",{"aria-label":a.completed?`${a.label} — done`:`${a.label} — pending`,className:o("inline-flex h-5 w-5 shrink-0 items-center justify-center rounded border text-[10px] font-bold",a.completed?"border-grind-xp/40 bg-grind-xp/10 text-grind-xp":"border-border bg-transparent text-transparent"),children:a.completed?"✓":""})}function k({quest:a,className:r}){const l=a.objectives.filter(d=>d.completed).length,s=a.objectives.length,c=C[a.difficulty]??"◆◇◇",n=S[a.difficulty]??"text-muted-foreground",m=F[a.type]??a.type;return e.jsxs("div",{className:o("flex flex-col gap-2 rounded-lg border border-border bg-card px-4 py-3 transition-colors duration-150 hover:border-border/80 hover:bg-card/80",r),children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[e.jsx("span",{className:"truncate text-sm font-medium text-foreground",children:a.title}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px]",children:m}),a.streakCount>0&&e.jsxs("span",{className:"text-grind-orange","aria-label":`${a.streakCount} day streak`,children:["🔥 ",a.streakCount,"d"]})]})]}),e.jsxs("div",{className:"flex shrink-0 flex-col items-end gap-1",children:[e.jsx("span",{className:o("font-mono text-sm font-semibold",n),"aria-label":`Difficulty: ${a.difficulty}`,children:c}),s>0&&e.jsxs("span",{className:"text-xs text-muted-foreground","aria-label":`${l} of ${s} objectives complete`,children:[l,"/",s]})]})]}),a.objectives.length>0&&e.jsx("div",{className:"flex flex-wrap gap-1.5",children:a.objectives.map(d=>e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(T,{objective:d}),e.jsx("span",{className:o("text-xs",d.completed?"text-muted-foreground line-through":"text-foreground"),children:d.label})]},d.id))}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs("span",{className:"text-xs text-muted-foreground",children:["+",a.baseXp," XP base"]})})]})}const v=[0,100,300,600,1e3,1500],_=["Novice","Apprentice","Journeyman","Expert","Master","Grandmaster"],$={fitness:"bg-grind-xp",music:"bg-[oklch(0.72_0.19_285)]",academics:"bg-[oklch(0.72_0.19_220)]",discipline:"bg-grind-orange",life:"bg-[oklch(0.72_0.19_180)]"};function I(a){const r=Math.min(a.level,5),l=v[r]??0,s=v[r+1]??1500;if(r>=5)return{progress:1,xpInLevel:a.xp-l,xpForLevel:1};const c=Math.max(0,a.xp-l),n=s-l;return{progress:Math.min(1,c/n),xpInLevel:c,xpForLevel:n}}function R({level:a}){const r=Math.min(a,5);return e.jsx("span",{className:"flex items-center gap-0.5","aria-label":`Level ${r}`,children:Array.from({length:5},(l,s)=>e.jsx("span",{"aria-hidden":"true",className:o("h-1.5 w-1.5 rounded-full",s<r?"bg-grind-orange":"bg-border")},s))})}function O({skill:a,className:r}){const{progress:l}=I(a),s=_[Math.min(a.level,5)]??"Grandmaster",c=$[a.category]??"bg-primary";return e.jsxs("div",{className:o("flex flex-col gap-1.5",r),children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx("span",{className:"truncate text-sm font-medium text-foreground",children:a.name}),e.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:s})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[e.jsx(R,{level:a.level}),e.jsxs("span",{className:"font-mono text-xs text-muted-foreground tabular-nums",style:{fontVariantNumeric:"tabular-nums"},"aria-label":`${a.xp} XP`,children:[a.xp.toLocaleString()," XP"]})]})]}),e.jsx("div",{className:"h-1 overflow-hidden rounded-full bg-secondary",role:"progressbar","aria-valuenow":Math.round(l*100),"aria-valuemin":0,"aria-valuemax":100,"aria-label":`${a.name} progress: ${Math.round(l*100)}%`,children:e.jsx("div",{className:o("h-full rounded-full transition-[width] duration-500",c),style:{width:`${l*100}%`}})})]})}const P={"self-report":"self",timestamp:"timestamp",duration:"timed",screenshot:"screenshot","git-commit":"git","file-change":"file","process-check":"process","ai-verify":"AI verified","calendar-match":"calendar","multi-proof":"multi"},D={"self-report":1,timestamp:1.1,duration:1.5,screenshot:1.25,"git-commit":1.5,"file-change":1.5,"process-check":1.5,"ai-verify":1.75,"calendar-match":1.1,"multi-proof":2};function z(a){const l=Date.now()-a,s=Math.floor(l/6e4),c=Math.floor(l/36e5),n=Math.floor(l/864e5);return s<1?"just now":s<60?`${s}m ago`:c<24?`${c}h ago`:n===1?"yesterday":`${n}d ago`}function X({item:a,className:r}){const l=P[a.proofType]??a.proofType,s=D[a.proofType]??1,c=z(a.completedAt),n=a.durationMinutes!=null?`${a.durationMinutes}m`:null;return e.jsxs("div",{className:o("flex items-center gap-3 rounded-lg px-3 py-2.5 transition-colors duration-150 hover:bg-secondary/40",r),children:[e.jsx("span",{"aria-hidden":"true",className:"shrink-0 text-base",children:"✅"}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[e.jsx("span",{className:"truncate text-sm text-foreground",children:a.questTitle}),e.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[e.jsx("time",{dateTime:new Date(a.completedAt).toISOString(),children:c}),n&&e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":"true",children:"·"}),e.jsx("span",{children:n})]}),e.jsx("span",{"aria-hidden":"true",children:"·"}),e.jsxs("span",{className:o("rounded px-1 py-0.5 font-mono text-[10px]",a.proofType==="ai-verify"?"bg-[oklch(0.72_0.19_285)]/10 text-[oklch(0.72_0.19_285)]":a.proofType==="duration"||a.proofType==="multi-proof"?"bg-grind-xp/10 text-grind-xp":"bg-secondary text-muted-foreground"),children:[l,s>1&&` ${s}×`]})]})]}),e.jsxs("div",{className:"shrink-0 text-right",children:[e.jsxs("span",{className:"font-mono text-sm font-semibold text-grind-xp tabular-nums",style:{fontVariantNumeric:"tabular-nums"},children:["+",a.xpEarned]}),e.jsx("span",{className:"ml-0.5 text-xs text-muted-foreground",children:"XP"})]})]})}const B={1:"Newcomer",2:"Initiate",3:"Apprentice",4:"Journeyman",5:"Adept",6:"Expert",7:"Veteran",8:"Master",9:"Grandmaster",10:"Legend"};function j(a){return a<=1?0:50*a*a+50*a}function Y(a,r){const l=j(r),s=j(r+1),c=Math.max(0,a-l),n=s-l;return{progress:Math.min(1,c/n),xpToNext:Math.max(0,s-a)}}function U(){const a=E.useLoaderData(),{user:r,xpToday:l,bestStreak:s,questsCompletedTotal:c,activeQuests:n,topSkills:m,recentActivity:d}=a,L=B[r.level]??`Lv.${r.level}`,{progress:u,xpToNext:y}=Y(r.totalXp,r.level);return e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsx("header",{className:"flex h-14 shrink-0 items-center border-b border-border bg-sidebar px-6",children:e.jsxs("div",{className:"flex w-full items-center justify-between gap-4",children:[e.jsxs("div",{className:"md:ml-8 flex items-center gap-2",children:[e.jsxs("span",{className:"font-mono text-xs text-muted-foreground",children:["Lv.",r.level]}),e.jsx("h1",{className:"font-display text-lg text-foreground",children:L}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:["— ",r.displayName]})]}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[y.toLocaleString()," XP to next level"]}),e.jsx("div",{className:"hidden w-48 sm:block",children:e.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-secondary",role:"progressbar","aria-valuenow":Math.round(u*100),"aria-valuemin":0,"aria-valuemax":100,"aria-label":`Level progress: ${Math.round(u*100)}%`,children:e.jsx("div",{className:"h-full rounded-full bg-grind-orange transition-[width] duration-700",style:{width:`${u*100}%`}})})})]})}),e.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:e.jsxs("div",{className:"mx-auto max-w-6xl space-y-6",children:[e.jsx("section",{"aria-label":"Stats",children:e.jsxs("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-4",children:[e.jsx(x,{label:"Total XP",value:r.totalXp.toLocaleString(),icon:e.jsx(N,{size:14,"aria-hidden":"true"}),accent:"orange"}),e.jsx(x,{label:"XP Today",value:`+${l.toLocaleString()}`,icon:e.jsx(p,{size:14,"aria-hidden":"true"}),accent:"green"}),e.jsx(x,{label:"Best Streak",value:s,sub:s>0?`${s} day${s===1?"":"s"}`:"No active streak",icon:e.jsx(h,{size:14,"aria-hidden":"true"}),accent:s>0?"orange":"default"}),e.jsx(x,{label:"Completed",value:c.toLocaleString(),sub:"quest logs",icon:e.jsx(A,{size:14,"aria-hidden":"true"}),accent:"default"})]})}),e.jsxs("div",{className:"grid gap-5 lg:grid-cols-2",children:[e.jsxs("section",{"aria-labelledby":"active-quests-heading",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 mb-3",children:[e.jsxs("h2",{id:"active-quests-heading",className:"flex items-center gap-2 text-sm font-medium text-foreground",children:[e.jsx(f,{size:16,weight:"fill",className:"text-grind-orange","aria-hidden":"true"}),"Active Quests"]}),n.length>0&&e.jsxs("span",{className:"text-xs text-muted-foreground",children:[n.length,"/5"]})]}),n.length===0?e.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-dashed border-border py-8 text-center",children:[e.jsx(f,{size:28,className:"text-muted-foreground/40","aria-hidden":"true"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"No active quests"}),e.jsxs("p",{className:"mt-0.5 text-xs text-muted-foreground/70",children:["Ask the"," ",e.jsx(V,{to:"/app/chat",search:{c:void 0},className:"text-grind-orange underline-offset-2 hover:underline focus-visible:underline focus-visible:outline-none",children:"Companion"})," ","to create some"]})]})]}):e.jsx("div",{className:"flex flex-col gap-2",children:n.map(i=>e.jsx(k,{quest:i},i.id))})]}),e.jsxs("section",{"aria-labelledby":"skills-heading",children:[e.jsxs("h2",{id:"skills-heading",className:"mb-3 flex items-center gap-2 text-sm font-medium text-foreground",children:[e.jsx(p,{size:16,weight:"fill",className:"text-grind-orange","aria-hidden":"true"}),"Skills"]}),m.length===0?e.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-dashed border-border py-8 text-center",children:[e.jsx(p,{size:28,className:"text-muted-foreground/40","aria-hidden":"true"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Skills appear as you complete quests"})]}):e.jsx("div",{className:"flex flex-col gap-4 rounded-xl border border-border bg-card p-4",children:m.map(i=>e.jsx(O,{skill:i},i.id))})]})]}),e.jsxs("section",{"aria-labelledby":"activity-heading",children:[e.jsxs("h2",{id:"activity-heading",className:"mb-3 flex items-center gap-2 text-sm font-medium text-foreground",children:[e.jsx(h,{size:16,weight:"fill",className:"text-grind-orange","aria-hidden":"true"}),"Recent Activity"]}),d.length===0?e.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-dashed border-border py-8 text-center",children:[e.jsx(h,{size:28,className:"text-muted-foreground/40","aria-hidden":"true"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Your completed quests will appear here"})]}):e.jsx("div",{className:"rounded-xl border border-border bg-card",children:d.map((i,M)=>e.jsx("div",{className:M<d.length-1?"border-b border-border/50":void 0,children:e.jsx(X,{item:i})},i.id))})]})]})})]})}export{U as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,p as r,j as e}from"./main-BI1EOhmt.js";const l=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z",opacity:"0.2"}),a.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z"}))]]),t=a.forwardRef((m,n)=>a.createElement(r,{ref:n,...m,weights:l}));t.displayName="RobotIcon";function Z(){return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-4 p-8 text-center",children:[e.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card",children:e.jsx(t,{size:28,className:"text-muted-foreground","aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Companion"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Coming soon…"})]})]})}export{Z as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,p as n,j as a}from"./main-BI1EOhmt.js";const L=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M240.49,63.51a12,12,0,0,0-17,0L192,95,161,64l31.52-31.51a12,12,0,0,0-17-17L144,47,120.49,23.51a12,12,0,1,0-17,17L107,44,56.89,94.14a44,44,0,0,0,0,62.23l12.88,12.88L23.51,215.51a12,12,0,0,0,17,17l46.26-46.26,12.88,12.88a44,44,0,0,0,62.23,0L212,149l3.51,3.52a12,12,0,0,0,17-17L209,112l31.52-31.51A12,12,0,0,0,240.49,63.51Zm-95.6,118.63a20,20,0,0,1-28.29,0L73.86,139.4a20,20,0,0,1,0-28.29L124,61l71,71Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M212,132l-58.63,58.63a32,32,0,0,1-45.25,0L65.37,147.88a32,32,0,0,1,0-45.25L124,44Z",opacity:"0.2"}),e.createElement("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M237.66,77.66,203.31,112l26.35,26.34a8,8,0,0,1-11.32,11.32L212,143.31l-53,53a40,40,0,0,1-56.57,0L86.75,180.57,37.66,229.66a8,8,0,0,1-11.32-11.32l49.09-49.09L59.72,153.54a40,40,0,0,1,0-56.57l53-53-6.35-6.34a8,8,0,0,1,11.32-11.32L144,52.69l34.34-34.35a8,8,0,1,1,11.32,11.32L155.31,64,192,100.69l34.34-34.35a8,8,0,0,1,11.32,11.32Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M236.24,67.76a6,6,0,0,0-8.48,0L192,103.51,152.49,64l35.75-35.76a6,6,0,0,0-8.48-8.48L144,55.51,116.24,27.76a6,6,0,1,0-8.48,8.48L115.51,44,61.13,98.38a38,38,0,0,0,0,53.75l17.13,17.12-50.5,50.51a6,6,0,1,0,8.48,8.48l50.51-50.5,17.13,17.13a38,38,0,0,0,53.74,0L212,140.49l7.76,7.75a6,6,0,0,0,8.48-8.48L200.49,112l35.75-35.76A6,6,0,0,0,236.24,67.76ZM149.13,186.38a26,26,0,0,1-36.77,0L69.62,143.64a26,26,0,0,1,0-36.77L124,52.49,203.51,132Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M234.83,69.17a4,4,0,0,0-5.66,0L192,106.34,149.66,64l37.17-37.17a4,4,0,1,0-5.66-5.66L144,58.34,114.83,29.17a4,4,0,0,0-5.66,5.66L118.34,44,62.54,99.8a36.05,36.05,0,0,0,0,50.91l18.55,18.54L29.17,221.17a4,4,0,0,0,5.66,5.66l51.92-51.92,18.54,18.55a36.06,36.06,0,0,0,50.91,0l55.8-55.8,9.17,9.17a4,4,0,0,0,5.66-5.66L197.66,112l37.17-37.17A4,4,0,0,0,234.83,69.17ZM150.54,187.8a28,28,0,0,1-39.59,0L68.2,145.05a28,28,0,0,1,0-39.59L124,49.66,206.34,132Z"}))]]),l=e.forwardRef((t,r)=>e.createElement(n,{ref:r,...t,weights:L}));l.displayName="PlugIcon";function c(){return a.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-4 p-8 text-center",children:[a.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card",children:a.jsx(l,{size:28,className:"text-muted-foreground","aria-hidden":"true"})}),a.jsxs("div",{children:[a.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Integrations"}),a.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Coming soon…"})]})]})}export{c as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,t as a,r as s,c as n}from"./main-BI1EOhmt.js";import{e as l,o as c}from"./Copy.es-Bs4NgJu-.js";function d({command:t}){const[r,o]=s.useState(!1),i=s.useCallback(()=>{navigator.clipboard.writeText(t).then(()=>{o(!0),setTimeout(()=>o(!1),2e3)})},[t]);return e.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-card pl-4 pr-3 py-3",children:[e.jsx("code",{className:"flex-1 font-mono text-sm text-grind-orange",children:t}),e.jsx("button",{type:"button",onClick:i,"aria-label":r?"Copied":`Copy command: ${t}`,className:"flex shrink-0 items-center justify-center rounded-md p-1 text-muted-foreground transition-[transform,background-color,color] duration-150 active:scale-[0.97] hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:e.jsxs("span",{className:"relative flex size-4 items-center justify-center",children:[e.jsx(l,{size:14,"aria-hidden":"true",className:n("absolute transition-[opacity,filter,transform] duration-200",r?"opacity-0 blur-[4px] scale-75":"opacity-100 blur-none scale-100")}),e.jsx(c,{size:14,"aria-hidden":"true",className:n("absolute text-grind-xp transition-[opacity,filter,transform] duration-200",r?"opacity-100 blur-none scale-100":"opacity-0 blur-[4px] scale-75")})]})})]})}function x({error:t}){const r=t instanceof Error?t.message:"Something went wrong",o=r.includes("not initialized");return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-4 p-8 text-center",children:[e.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card",children:e.jsx(a,{size:28,className:"text-muted-foreground","aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold text-foreground",children:o?"Grind Not Initialized":"Failed to Load Dashboard"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:o?"Run the command below in your terminal to get started.":r})]}),o&&e.jsx(d,{command:"grindxp init"})]})}export{x as errorComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,o as t}from"./main-BI1EOhmt.js";function s(){return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-4 p-8 text-center",children:[e.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card",children:e.jsx(t,{size:28,className:"text-muted-foreground","aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Analytics"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Coming soon…"})]})]})}export{s as component};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|