{ "version": 4, "changes": [ { "noteId": "EW0u2LoAZTYv", "oldTitle": "표 표시 (renderTable)", "title": "표 표시 (renderTable)", "oldContentSha256": "26e6f64bc522c1d9077082929c16a0f11ccdf33b935b3c3d3a288bd15dc3bf1d", "content": "module.exports = counts => {\n const $statsTable = api.$container.find('.stats-table');\n \n addRow('합계', \n counts.reduce((acc, cur) => acc + cur.countNotDeleted, 0), \n counts.reduce((acc, cur) => acc + cur.countDeleted, 0)\n );\n \n for (const count of counts) {\n addRow(({\"text\":\"텍스트\",\"code\":\"코드\",\"file\":\"파일\",\"image\":\"이미지\",\"search\":\"저장된 검색\",\"book\":\"책\",\"relationMap\":\"관계도\",\"noteMap\":\"노트 지도\",\"render\":\"렌더링 노트\",\"mermaid\":\"Mermaid 도표\",\"canvas\":\"캔버스\",\"webView\":\"웹 보기\",\"mindMap\":\"마인드맵\",\"geoMap\":\"지리 지도\",\"doc\":\"도움말\",\"launcher\":\"실행 도구\"})[count.type] || count.type, count.countNotDeleted, count.countDeleted);\n }\n\n function addRow(type, countNotDeleted, countDeleted) {\n $statsTable.append(\n $(\"