1# The shelves' "has a site" filter is a control, not words: a globe icon2# toggle (the globe repo rows show beside a site) with aria-pressed, a3# label and a title; the sort is a segmented control of two icon toggles;4# shelves are tabs, "all" first and current. ui.ts makes them work.5. "$(dirname "$0")/../lib.sh"6user dami7for r in dami/chess dami/notes; do8 repo "$r"9 clone dami "$r" "$T/w/${r#*/}"10 at "$T/w/${r#*/}" commit "first"11 push_as dami "$T/w/${r#*/}" origin main12done13printf 'games\n' >"$FORGE_ROOT/dami/chess.git/category"14export FORGE_STRICT=115build16i=$FORGE_WWW/dami/index.html17has "$i" '<button type="button" class="icon-btn" aria-pressed="false" aria-label="only repos with a site" title="only repos with a site" data-has-site><svg class="icon"'18has "$i" '<span class="segmented" role="group" aria-label="sort">'19has "$i" 'aria-label="newest first" title="newest first" aria-pressed="true" data-sort="date"'20has "$i" 'aria-label="by name, a to z" title="by name, a to z" aria-pressed="false" data-sort="name"'21has "$i" '<nav class="tabs" aria-label="shelves">'22has "$i" '<a href="#shelves" class="cur" aria-current="page" data-shelf="">all<span class="n">2</span></a>'23has "$i" '<a href="#games" data-shelf="games">games<span class="n">1</span></a>'24lacks "$i" 'class="chip"'