(atoms)
| 359 | const favorite = document.getElementById("favorite-select")?.value || "all"; |
| 360 | if (favorite !== "all") atoms.push({ t: "filter", kind: "favorite", value: favorite }); |
| 361 | const rating = document.getElementById("rating-select")?.value || "all"; |
| 362 | if (rating !== "all") atoms.push({ t: "filter", kind: "rating", value: rating }); |
| 363 | const ratingMin = document.getElementById("rating-min-select")?.value || "all"; |
| 364 | if (ratingMin !== "all") atoms.push({ t: "filter", kind: "ratingMin", value: ratingMin }); |
| 365 | const ft = document.getElementById("filetype-select")?.value?.trim(); |
| 366 | if (ft) atoms.push({ t: "filter", kind: "fileType", value: ft }); |
| 367 | |
| 368 | function pushKind(kindKey, selId, kindProp) { |
| 369 | const sc = effectiveScalarValues(kindKey, selId); |
| 370 | if (!sc.values.length) return; |
| 371 | if (sc.values.length === 1) atoms.push({ t: "filter", kind: kindProp, value: sc.values[0] }); |
| 372 | else atoms.push({ t: "filterMulti", kind: kindProp, values: sc.values.slice(), combine: sc.combine }); |
no outgoing calls
no test coverage detected