1import{_ as C,v as E,$,o as l,c as o,j as a,t as i,F as g,B as p,n as m,e as B,p as h,E as N}from"./chunks/framework.b3K37OPx.js";const S={class:"cl-page"},A={class:"cl-shell"},D={class:"cl-main"},V={key:0,class:"cl-state"},I={key:1,class:"cl-state"},L={key:2,class:"cl-timeline"},G=["id"],T={class:"cl-entry-head"},j={class:"cl-version"},M={key:0,class:"cl-badge"},O={class:"cl-date"},P={class:"cl-changes"},Y={class:"cl-text"},F={class:"cl-aside"},H={class:"cl-aside-inner"},K={class:"cl-aside-nav","aria-labelledby":"cl-aside-title"},U=["href","onClick"],z="/pluginApi/productChangelog/getPublicChangelogList",q={__name:"ChangeLog",setup(y){const f={æ°å¢:"feature",ä¼å:"improve",ä¿®å¤:"fix",UI:"ui",å
¶ä»:"other"},c=h([]),r=h(""),_=h(!0),d=h(""),k=n=>{if(!n)return"";const e=new Date(n);if(Number.isNaN(e.getTime()))return n;const t=e.getFullYear(),s=String(e.getMonth()+1).padStart(2,"0"),v=String(e.getDate()).padStart(2,"0");return`${t}-${s}-${v}`},b=n=>n.map((e,t)=>({version:e.title||`v${e.version}`,date:k(e.releaseDate),latest:t===0,changes:(e.items||[]).map(s=>({type:s.type,typeKey:f[s.type]||"other",text:s.content}))})),w=async()=>{var n;_.value=!0,d.value="";try{const e=await fetch(z);if(!e.ok)throw new Error(`æ¥å£è¿å ${e.status}`);const t=await e.json();if(t.code!==0)throw new Error(t.msg||"è·åæ¥å¿å¤±è´¥");const s=t.data&&t.data.list||[];c.value=b(s),r.value=((n=c.value[0])==null?void 0:n.version)||""}catch(e){d.value=`æ´æ°æ¥å¿å 载失败ï¼${e.message||e}`}finally{_.value=!1}},x=(n,e)=>{const t=document.getElementById(e);t&&(n.preventDefault(),r.value=e,t.scrollIntoView({behavior:"smooth",block:"start"}),history.replaceState(null,"",`#${e}`))};let u=null;return E(async()=>{await w();const n=Array.from(document.querySelectorAll(".cl-entry"));n.length&&(u=new IntersectionObserver(e=>{if(window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-2){r.value=c.value[c.value.length-1].version;return}e.forEach(s=>{s.isIntersecting&&(r.value=s.target.id)})},{rootMargin:"-88px 0px -66% 0px",threshold:0}),n.forEach(e=>u.observe(e)))}),$(()=>{u&&u.disconnect()}),(n,e)=>(l(),o("div",S,[a("div",A,[a("main",D,[e[0]||(e[0]=a("header",{class:"cl-hero"},[a("h1",{class:"cl-title"},"æ´æ°æ¥å¿"),a("p",{class:"cl-subtitle"}," è®°å½ Gin-Vue-Admin æ¯ä¸ªçæ¬çæ°å¢ãä¼åä¸ä¿®å¤ã ")],-1)),_.value?(l(),o("div",V,"å è½½ä¸â¦")):d.value?(l(),o("div",I,i(d.value),1)):(l(),o("div",L,[(l(!0),o(g,null,p(c.value,t=>(l(),o("article",{id:t.version,key:t.version,class:"cl-entry"},[a("span",{class:m(["cl-node",{"cl-node--active":t.latest}]),"aria-hidden":"true"},null,2),a("div",T,[a("h2",j,i(t.version),1),t.latest?(l(),o("span",M,"ææ°")):B("",!0),a("time",O,i(t.date),1)]),a("ul",P,[(l(!0),o(g,null,p(t.changes,(s,v)=>(l(),o("li",{key:v,class:"cl-change"},[a("span",{class:m(["cl-tag",`cl-tag--${s.typeKey}`])},i(s.type),3),a("span",Y,i(s.text),1)]))),128))])],8,G))),128))]))]),a("aside",F,[a("div",H,[e[1]||(e[1]=a("div",{id:"cl-aside-title",class:"cl-aside-title"},"çæ¬",-1)),a("nav",K,[(l(!0),o(g,null,p(c.value,t=>(l(),o("a",{key:t.version,href:`#${t.version}`,class:m(["cl-aside-link",{"cl-aside-link--active":r.value===t.version}]),onClick:s=>x(s,t.version)},i(t.version),11,U))),128))])])])])]))}},J=C(q,[["__scopeId","data-v-031d6b2a"]]),W=JSON.parse('{"title":"æ´æ°æ¥å¿","titleTemplate":"Gin-Vue-Admin æ´æ°æ¥å¿","description":"","frontmatter":{"layout":"page","title":"æ´æ°æ¥å¿","titleTemplate":"Gin-Vue-Admin æ´æ°æ¥å¿","pageClass":"gva-changelog-page","sidebar":false,"aside":false,"footer":false},"headers":[],"relativePath":"changelog.md","filePath":"changelog.md"}'),R={name:"changelog.md"},X=Object.assign(R,{setup(y){return(f,c)=>(l(),o("div",null,[N(J)]))}});export{W as __pageData,X 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.