(size, expanded)
| 322 | ]; |
| 323 | |
| 324 | const treeRecords = (size, expanded) => { |
| 325 | let roots = Array.from({length: 20}, (_, i) => `project-${i}`); |
| 326 | return expanded |
| 327 | ? [roots[0], ...Array.from({length: size / 20}, (_, i) => `file-0-${i}`), ...roots.slice(1)] |
| 328 | : roots; |
| 329 | }; |
| 330 | const treeRows = (size, expanded, focused) => [ |
| 331 | ordered('.project-tree [data-record]', treeRecords(size, expanded)), |
| 332 | condition('.project-tree [data-record="project-0"]', { |