${t.cover ? `
` : ''}
${t.id}
${t.figma_key ? '已入 Figma' : ''}
let DATA = null; let currentFilter = 'all'; let currentSearch = ''; async function load() { const res = await fetch('data.json?_=' + Date.now()); DATA = await res.json(); renderStats(); render(); document.getElementById('gen').textContent = '生成于 ' + DATA.generated_at; } function renderStats() { const t = DATA.templates; const fig = t.filter(x => x.has_fig).length; const sk = t.filter(x => x.has_sketch).length; const xd = t.filter(x => x.has_xd).length; const psd = t.filter(x => x.has_psd).length; const imp = t.filter(x => x.figma_key).length; const el = document.getElementById('stats'); el.innerHTML = `
${t.id}
${t.archive_size_mb} MB
${t.has_fig ? `FIG×${t.fig_count}` : ''}
${t.has_sketch ? `SKETCH×${t.sketch_count}` : ''}
${t.has_xd ? `XD×${t.xd_count}` : ''}
${t.has_psd ? `PSD` : ''}