PageSourceSearch

https://diagrammix.com/_nuxt/Br6NlubP.js

js diagrammix.com collected 2026-10-02 15:45:21 UTC 4,997 bytes, 1 lines download raw bytes

1import{_ as F}from"./CSHj5KuJ.js";import{u as N,_ as S}from"./DkG4mnkC.js";import{e as E,f as O,r as G,z as H,A as L,j as J,g as K,c as i,a as l,t as v,v as _,x as T,F as z,n as D,l as M,b as w,o as u,w as W,d as A,P as Q}from"./D-rtDSU0.js";import{q as B,a as I}from"./LXx_cgVX.js";const U={class:"pt-24 pb-20"},X={class:"container mx-auto px-4 flex flex-col md:flex-row gap-12"},Y={class:"text-sm font-medium"},Z={class:"sticky top-24 max-h-[calc(100vh-7rem)] overflow-y-auto pr-2"},tt={class:"text-xs font-bold uppercase tracking-widest text-slate-400 mb-6"},et={class:"space-y-1"},at={key:0,class:"space-y-1"},nt={key:0,class:"ml-4 mt-1 space-y-1 border-l border-slate-100"},ot={class:"flex-grow max-w-3xl min-w-0"},st={key:0,class:"prose prose-slate prose-blue max-w-none prose-headings:tracking-tight prose-a:text-blue-600 hover:prose-a:text-blue-700 prose-img:rounded-xl prose-img:shadow-md","data-allow-mismatch":""},lt={key:1,class:"text-center py-20 text-slate-400"},pt={__name:"[...slug]",async setup(rt){let c,f;const{locale:n,t:m}=E();O();const p=G(!1),b=H();function $(t){return t==="en"?"manual":`manual_${t.replace("-","_")}`}function R(t,e){return e==="en"?t:t==="/manual"?`/manual-${e.toLowerCase()}`:t.startsWith("/manual/")?t.replace("/manual/",`/manual-${e.toLowerCase()}/`):t}function g(t,e){if(e==="en")return t.startsWith("/manual")?t:`/manual${t}`;const r=`/manual-${e.toLowerCase()}`;return t===r?"/manual":t.startsWith(`${r}/`)?t.replace(r,"/manual"):t.startsWith("/manual")?t:`/manual${t}`}function V(){const t=b.path;if(n.value!=="en"){const e=`/${n.value}`;if(t.startsWith(e))return t.substring(e.length)}return t}const{data:d}=([c,f]=L(async()=>N(`manual-${n.value}-${b.path}`,async()=>{const t=V();if(n.value!=="en")try{const e=$(n.value),h=[R(t,n.value),t];for(const o of h){const a=await B(e).path(o).first();if(a)return a}}catch{}return B("manual").path(t).first()})),c=await c,f(),c);J({title:()=>d.value?.title?`${d.value.title} - ${m("manual.sidebarTitle")}`:m("seo.manualTitle"),description:()=>d.value?.description||m("seo.manualDescription"),ogTitle:()=>d.value?.title?`${d.value.title} - ${m("manual.sidebarTitle")}`:m("seo.manualTitle"),ogDescription:()=>d.value?.description||m("seo.manualDescription"),ogImage:"https://diagrammix.com/og-image.png"});const{data:C}=([c,f]=L(async()=>N(`manual-navigation-${n.value}`,async()=>{if(n.value!=="en")try{const t=$(n.value),e=await I(t);if(e?.length)return e}catch{}return I("manual")})),c=await c,f(),c),k=K(()=>
1{if(!C.value)return[];const t=n.value==="en"?"":`/${n.value}`,e=a=>a.map(s=>{if(!s.children?.length)return s;const y=[];for(const x of s.children){if(g(x.path,n.value)==="/manual/advanced"){if(x.children?.length){const j=x.children.filter(q=>g(q.path,n.value)!=="/manual/advanced");y.push(...j)}continue}y.push(x)}return{...s,children:y}}),r=a=>{const s=g(a,n.value);return`${t}${s}`},h=a=>g(a.path,n.value)==="/manual"?m("nav.manual"):a.title;return e(C.value).map(a=>({...a,title:h(a),path:r(a.path),children:a.children?.map(s=>({...s,path:r(s.path)}))}))});function P(t){return b.path.startsWith(t)}return(t,e)=>{const r=F,h=S;return u(),i("div",U,[l("div",X,[l("button",{onClick:e[0]||(e[0]=o=>p.value=!p.value),class:"md:hidden flex items-center gap-2 px-4 py-3 bg-slate-50 rounded-lg text-slate-600 hover:bg-slate-100 transition-colors mb-4"},[e[4]||(e[4]=l("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h7"})],-1)),l("span",Y,v(p.value?t.$t("manual.hideNav"):t.$t("manual.showNav")),1),(u(),i("svg",{class:_(["w-4 h-4 transition-transform",p.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...e[3]||(e[3]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))]),l("aside",{class:_(["w-full md:w-64 flex-shrink-0",p.value?"block":"hidden md:block"])},[l("div",Z,[l("h2",tt,v(t.$t("manual.sidebarTitle")),1),l("nav",et,[k.value?(u(),i("ul",at,[(u(!0),i(z,null,D(k.value,o=>(u(),i("li",{key:o.path},[w(r,{to:o.path,class:_(["block px-3 py-2 rounded-lg text-sm transition-colors",P(o.path)?"bg-blue-50 text-blue-600 font-semibold":"text-slate-600 hover:bg-slate-50 hover:text-slate-900"]),onClick:e[1]||(e[1]=a=>p.value=!1)},{default:W(()=>[A(v(o.title),1)]),_:2},1032,["to","class"]),o.children&&P(o.path)?(u(),i("ul",nt,[(u(!0),i(z,null,D(o.children,a=>(u(),i("li",{key:a.path},[w(r,{to:a.path,class:_(["block px-4 py-1.5 text-sm transition-colors",(t._.provides[Q]||t.$route).path===a.path?"text-blue-600 font-medium":"text-slate-500 hover:text-slate-900"]),onClick:e[2]||(e[2]=s=>p.value=!1)},{default:W(()=>[A(v(a.title),1)]),_:2},1032,["to","class"])]))),128))])):T("",!0)]))),128))])):T("",!0)])])],2),l("article",ot,[M(d)?(u(),i("div",st,[w(h,{value:M(d)},null,8,["value"])])):(u(),i("div",lt,v(t.$t("manual.notFound")),1))])])])}}};export{pt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.