gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit0573eed30573eed3usage: notes + tickets on MdEditor (md-editor.js retired), gitoria on theme dbe3de7, tracker theme oldermre0573eed3/tools/usage.sh

1.8 KB

  1. #!/usr/bin/env bash
  2. # usage.sh — which app carries which shared piece, and is its copy the same as the source?
  3. # Sources: components → components.hybriel.worldapi.org/components/<name>/<name>.hl,
  4. # theme → layouts.worldapi.org/theme/, tokens → layouts.worldapi.org/shared/tokens.hl,
  5. # md-editor.js (old JS editor, to be retired) → worldapi-components/md-editor.js.
  6. # States: same = byte-identical to the source · DIFFERS = copy is behind/ahead or patched · fork = declared own copy
  7. # (listed in docs/usage.md "Forks"). Run: tools/usage.sh [projects dir] — exit 1 if any copy DIFFERS.
  8. P=${1:-$(cd "$(dirname "$0")/../.." && pwd)}
  9. LIB=$P/components.hybriel.worldapi.org/components; LAY=$P/layouts.worldapi.org
  10. APPS="tickets ident gitoria notes calendar tracker layouts"
  11. FORKS=" calendar:month-view "
  12. bad=0
  13. cmpf() { if cmp -s "$1" "$2"; then echo same; else echo DIFFERS; fi; }
  14. for a in $APPS; do
  15. d=$P/$a.worldapi.org; line=""
  16. for c in $(ls "$LIB" | grep -v '\.hl$'); do
  17. f=$(find "$d/components" -path '*/showcase' -prune -o -name "$c.hl" -print 2>/dev/null | head -1)
  18. [ -z "$f" ] && continue
  19. s=$(cmpf "$f" "$LIB/$c/$c.hl"); [[ $FORKS == *" $a:$c "* ]] && s=fork
  20. [ $s = DIFFERS ] && bad=1; line+=" $c=$s"
  21. done
  22. if [ -d "$d/theme" ] && [ $a != layouts ]; then
  23. if diff -rq "$d/theme" "$LAY/theme" >/dev/null; then line+=" theme=same"; else line+=" theme=DIFFERS"; bad=1; fi
  24. fi
  25. [ -f "$d/shared/tokens.hl" ] && { s=$(cmpf "$d/shared/tokens.hl" "$LAY/shared/tokens.hl"); [ $s = DIFFERS ] && bad=1; line+=" tokens=$s"; }
  26. [ -f "$d/shared/md-editor.js" ] && { s=$(cmpf "$d/shared/md-editor.js" "$P/worldapi-components/md-editor.js"); line+=" md-editor.js(old)=$s"; }
  27. echo "$a:$line"
  28. done
  29. echo "sources: components.hybriel $(git -C "$P/components.hybriel.worldapi.org" log -1 --format=%h) · layouts $(git -C "$LAY" log -1 --format=%h)"
  30. exit $bad

Branches

Latest commits

  • 0573eed3usage: notes + tickets on MdEditor (md-editor.js retired), gitoria on theme dbe3de7, tracker theme oldermre
  • 78478f6eSync showcase to components.hybriel 1442e58: pick-mode page, comments attach, md-editor rows/files off; gates 285/0mre
  • dbe3de79Display bugs from a real Chrome walk (mission 007): Settings page and in-shell doc reader instead of raw .md links, closed phone search hidden whatever a page says, /elements form rules scoped, three-pane danger contrast; display audit gate (132 -> 244 checks), walk + Settings e2e toolsmre
  • 1875a051Theme: 44 px tap targets mobile first (layoutTap), 16 px fields, desktop denser only in @media 60rem; 390 px tap audit + gate checks (mission 006)mre
  • 3d4f8e19Sync showcase to components.hybriel 9db927d: comments and files-upload pages, pagination onPage, md-editor readonly, gate 99 checksmre
  • 64d635acmission brief 005mre
  • 0d0fef25paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • 2dbe0df5Re-vendor Hybriel to the shared static build 0f396652 (plugins; bin/ is git-ignored), compose cache volume + tmpfs /tmp, gate wait 120 s, report 004mre
  • 0adc551emission brief 004mre
  • 1376e905deploy.sh: wait up to DEPLOY_URL_WAIT (120 s) for 200 after the restart, as the other apps (cold compile, hybriel#148)mre
  • c0fdbf6cdocker-compose: init: true (hybriel#156, PID 1 ignored SIGTERM, every restart waited 10 s)mre
  • ecf70665usage: layouts on components a567b57mre
  • 315731efcomponents re-synced to components.hybriel a567b57 (md-editor tables)mre
  • b59e2ee9docs/usage.md + tools/usage.sh: which app carries which component/theme/tokens copy, and whether it matches the sourcemre
  • 0222f67ctheme: two corner radii only (radiusSmall 5px, radiusLarge 10px); check-theme flags any other radius; gate 76/0mre
  • 877b63acdesign rules: two radii only (5px small, 10px large)mre
  • 635234dfcomponents re-synced to components.hybriel 5a98d77 (#15 black/white base look); gate 73/0, check-theme 0, screenshots unchangedmre
  • 876b2064docs: workaround note for hybriel#130 (slot marker mid-line)mre
  • 85b56541layouts mission 002 3/3: same-output tests, letcount, shots ports, docs, reportmre
  • 0f325d3blayouts mission 002 2/3: code rules — styles.hl -> components/styles.hl, the one never-reassigned let dropped; gate 73/0, same outputmre