learn-anything-cli 1.1.0 → 1.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "learn-anything-cli",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "AI-powered recursive learning system with Socratic method and TDD practice",
5
5
  "keywords": [
6
6
  "learn-anything-cli",
@@ -1 +1 @@
1
- import{d as u,u as m,c as n,a as s,t,b as a,e as x,F as _,r as h,f as p,o as l,n as f,g,l as b}from"./index-BaQnKmab.js";const v={class:"w-full"},y={class:"mb-4"},k={key:0,class:"text-sm text-text-3 mb-10"},C={key:1,class:"flex flex-col items-center justify-center py-24 text-center"},w={class:"text-sm font-medium text-text-2 mb-2"},T={class:"text-xs text-text-3 max-w-md"},B={key:2,class:"grid grid-cols-[repeat(auto-fill,minmax(320px,1fr))] gap-4"},$=["onClick"],D={class:"text-base font-semibold text-text-1 leading-snug mb-3"},F={class:"text-[13px] text-text-2 leading-relaxed"},L={class:"mt-4 flex items-center gap-3"},N={class:"flex-1 h-1 bg-(--color-divider) rounded-full overflow-hidden"},S={class:"text-xs font-semibold tabular-nums text-text-2"},E=u({__name:"Dashboard",setup(V){const c=g(),{t:o}=m(),r=p(()=>b());function i(d){c.push(`/topics/${d}`)}return(d,j)=>(l(),n("div",v,[s("h1",y,t(a(o)("dashboard.title")),1),r.value.length>0?(l(),n("p",k,t(r.value.length)+" "+t(r.value.length===1?"topic":"topics"),1)):x("",!0),r.value.length===0?(l(),n("div",C,[s("p",w,t(a(o)("dashboard.noTopics")),1),s("p",T,t(a(o)("dashboard.startLearning")),1)])):(l(),n("div",B,[(l(!0),n(_,null,h(r.value,e=>(l(),n("button",{key:e.slug,class:"text-left bg-(--color-bg-soft) rounded-xl border border-(--color-divider) p-6 hover:border-brand-2 transition-colors duration-150 cursor-pointer",onClick:z=>i(e.slug)},[s("h3",D,t(e.name),1),s("p",F,t(e.domainCount)+" "+t(a(o)("topic.domains"))+" · "+t(e.totalConcepts)+" "+t(a(o)("topic.concepts"))+" · "+t(e.masteredCount)+"/"+t(e.totalConcepts)+" "+t(a(o)("topic.mastered")),1),s("div",L,[s("div",N,[s("div",{class:"h-full rounded-full bg-brand-2 transition-all duration-500",style:f({width:`${e.percentage}%`})},null,4)]),s("span",S,t(e.percentage)+"% ",1)])],8,$))),128))]))]))}});export{E as default};
1
+ import{d as u,u as m,c as n,a as s,t,b as a,e as x,F as _,r as h,f as p,o as l,n as f,g,l as b}from"./index-CDKcCTJh.js";const v={class:"w-full"},y={class:"mb-4"},k={key:0,class:"text-sm text-text-3 mb-10"},C={key:1,class:"flex flex-col items-center justify-center py-24 text-center"},w={class:"text-sm font-medium text-text-2 mb-2"},T={class:"text-xs text-text-3 max-w-md"},B={key:2,class:"grid grid-cols-[repeat(auto-fill,minmax(320px,1fr))] gap-4"},$=["onClick"],D={class:"text-base font-semibold text-text-1 leading-snug mb-3"},F={class:"text-[13px] text-text-2 leading-relaxed"},L={class:"mt-4 flex items-center gap-3"},N={class:"flex-1 h-1 bg-(--color-divider) rounded-full overflow-hidden"},S={class:"text-xs font-semibold tabular-nums text-text-2"},E=u({__name:"Dashboard",setup(V){const c=g(),{t:o}=m(),r=p(()=>b());function i(d){c.push(`/topics/${d}`)}return(d,j)=>(l(),n("div",v,[s("h1",y,t(a(o)("dashboard.title")),1),r.value.length>0?(l(),n("p",k,t(r.value.length)+" "+t(r.value.length===1?"topic":"topics"),1)):x("",!0),r.value.length===0?(l(),n("div",C,[s("p",w,t(a(o)("dashboard.noTopics")),1),s("p",T,t(a(o)("dashboard.startLearning")),1)])):(l(),n("div",B,[(l(!0),n(_,null,h(r.value,e=>(l(),n("button",{key:e.slug,class:"text-left bg-(--color-bg-soft) rounded-xl border border-(--color-divider) p-6 hover:border-brand-2 transition-colors duration-150 cursor-pointer",onClick:z=>i(e.slug)},[s("h3",D,t(e.name),1),s("p",F,t(e.domainCount)+" "+t(a(o)("topic.domains"))+" · "+t(e.totalConcepts)+" "+t(a(o)("topic.concepts"))+" · "+t(e.masteredCount)+"/"+t(e.totalConcepts)+" "+t(a(o)("topic.mastered")),1),s("div",L,[s("div",N,[s("div",{class:"h-full rounded-full bg-brand-2 transition-all duration-500",style:f({width:`${e.percentage}%`})},null,4)]),s("span",S,t(e.percentage)+"% ",1)])],8,$))),128))]))]))}});export{E as default};
@@ -0,0 +1 @@
1
+ import{d as x,c as l,a as n,t as f,f as s,o,h as m,i as g,j as y,u as w,b as _,k,m as b,p as h,q as M,s as H,v as T}from"./index-CDKcCTJh.js";const L={class:"h-full"},j={key:0,class:"flex items-center justify-center h-full min-h-75 text-sm text-text-3"},$={key:1,class:"prose-content space-y-3","aria-hidden":"true"},B=["innerHTML"],C={key:3,class:"prose-content rounded-lg overflow-hidden bg-(--color-bg-alt)"},F={class:"flex items-center justify-between px-5 py-2 bg-transparent"},D={class:"text-xs text-text-3 font-mono"},E={class:"m-0! p-0! bg-transparent! text-left overflow-x-auto"},S=["innerHTML"],V=x({__name:"ContentViewer",props:{file:{}},setup(a){const e=a,c=s(()=>e.file&&e.file.path.split("/").pop()||""),u=s(()=>y(c.value)),p=s(()=>{var t;return((t=e.file)==null?void 0:t.content)!==void 0}),r=s(()=>{var t;return((t=e.file)==null?void 0:t.content)===void 0?"":e.file.type==="markdown"?m(e.file.content):g(e.file.content,u.value)}),d=s(()=>{var t;return((t=e.file)==null?void 0:t.type)==="markdown"});return(t,i)=>(o(),l("div",L,[a.file?p.value?d.value?(o(),l("div",{key:2,class:"prose-content",innerHTML:r.value},null,8,B)):(o(),l("div",C,[n("div",F,[n("span",D,f(c.value),1)]),n("pre",E,[n("code",{class:"block px-6! py-5! leading-[1.7] font-mono text-[0.875em] text-text-2",innerHTML:r.value},null,8,S)])])):(o(),l("div",$,[...i[0]||(i[0]=[n("div",{class:"h-5 w-2/3 rounded bg-(--color-divider)"},null,-1),n("div",{class:"h-3 w-full rounded bg-(--color-divider)"},null,-1),n("div",{class:"h-3 w-full rounded bg-(--color-divider)"},null,-1),n("div",{class:"h-3 w-4/5 rounded bg-(--color-divider)"},null,-1)])])):(o(),l("div",j," Select a file from the sidebar to view its content "))]))}}),K={key:0,class:"flex flex-col items-center justify-center py-24 text-center"},N={class:"text-base text-(--color-pencil)"},q={key:1},I=["innerHTML"],R=x({__name:"TopicPage",props:{slug:{}},setup(a){const e=a,{t:c}=w(),u=s(()=>(h(),M(e.slug))),p=s(()=>(h(),T(e.slug))),r=s(()=>{const i=p.value;return i?m(i):""}),d=b("topicSelectedFile",H(null)),t=s(()=>!d.value);return(i,v)=>u.value?(o(),l("div",q,[t.value?(o(),l("div",{key:0,class:"prose-content",innerHTML:r.value},null,8,I)):(o(),k(V,{key:1,file:_(d)},null,8,["file"]))])):(o(),l("div",K,[v[0]||(v[0]=n("div",{class:"text-4xl mb-4 opacity-60 select-none"},"🔍",-1)),n("p",N,f(_(c)("topic.notFound"))+": "+f(a.slug),1)]))}});export{R as default};