learn-anything-cli 1.1.0 → 1.1.1

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.
@@ -10,7 +10,7 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400..700;1,14..32,400..700&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/assets/index-BaQnKmab.js"></script>
13
+ <script type="module" crossorigin src="/assets/index-DH9xUENt.js"></script>
14
14
  <link rel="stylesheet" crossorigin href="/assets/index-B42o4lnG.css">
15
15
  </head>
16
16
  <body>
@@ -1 +0,0 @@
1
- import{d as m,c as o,a as t,t as d,f as s,o as n,h,i as v,j as g,u as k,b as _,F as y,k as w,m as b,p as M,q as H,s as T}from"./index-BaQnKmab.js";const F={class:"h-full"},L={key:0,class:"flex items-center justify-center h-full min-h-75 text-sm text-text-3"},$=["innerHTML"],j={key:2,class:"prose-content rounded-lg overflow-hidden bg-(--color-bg-alt)"},B={class:"flex items-center justify-between px-5 py-2 bg-transparent"},C={class:"text-xs text-text-3 font-mono"},E={class:"m-0! p-0! bg-transparent! text-left overflow-x-auto"},S=["innerHTML"],D=m({__name:"ContentViewer",props:{file:{}},setup(i){const e=i,a=s(()=>e.file&&e.file.path.split("/").pop()||""),c=s(()=>g(a.value)),r=s(()=>e.file?e.file.type==="markdown"?h(e.file.content):v(e.file.content,c.value):""),p=s(()=>{var l;return((l=e.file)==null?void 0:l.type)==="markdown"});return(l,f)=>(n(),o("div",F,[i.file?p.value?(n(),o("div",{key:1,class:"prose-content",innerHTML:r.value},null,8,$)):(n(),o("div",j,[t("div",B,[t("span",C,d(a.value),1)]),t("pre",E,[t("code",{class:"block px-6! py-5! leading-[1.7] font-mono text-[0.875em] text-text-2",innerHTML:r.value},null,8,S)])])):(n(),o("div",L," 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)"},V={key:1},q={class:"text-[28px] md:text-[32px] font-semibold tracking-[-0.02em] leading-10 text-(--color-ink) mb-6"},I=["innerHTML"],R=m({__name:"TopicPage",props:{slug:{}},setup(i){const e=i,{t:a}=k(),c=s(()=>M(e.slug)),r=s(()=>T(e.slug)),p=s(()=>{const u=r.value;return u?h(u):""}),l=b("topicSelectedFile",H(null)),f=s(()=>!l.value);return(u,x)=>c.value?(n(),o("div",V,[f.value?(n(),o(y,{key:0},[t("h1",q,d(c.value.topic),1),t("div",{class:"prose-content",innerHTML:p.value},null,8,I)],64)):(n(),w(D,{key:1,file:_(l)},null,8,["file"]))])):(n(),o("div",K,[x[0]||(x[0]=t("div",{class:"text-4xl mb-4 opacity-60 select-none"},"🔍",-1)),t("p",N,d(_(a)("topic.notFound"))+": "+d(i.slug),1)]))}});export{R as default};