gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain4099e64aMerge branch 'font-segoe-ui' into mainAtlasmain/tools/sync-components.sh

2.3 KB

  1. #!/usr/bin/env bash
  2. # tools/sync-components.sh — copy the components.hybriel.worldapi.org files this showcase uses, BYTE-VERBATIM from a commit.
  3. # tools/sync-components.sh [commit] copy from <commit> (default: HEAD of the source repo), write components/SOURCE
  4. # tools/sync-components.sh --check compare the copies with the commit in components/SOURCE (exit 1 on any difference)
  5. # Source repo: $COMPONENTS_REPO (default loreana /media/STORAGE/projects/WorldAPI/components.hybriel.worldapi.org). The files come out of
  6. # git (`git show <commit>:<path>`), not the working tree, so uncommitted edits there never land here. Never edit the copies:
  7. # change them in components.hybriel, commit there, run this, then the gate (README "Run, test, deploy").
  8. set -euo pipefail
  9. APP="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
  10. SRC="${COMPONENTS_REPO:-/media/STORAGE/projects/WorldAPI/components.hybriel.worldapi.org}"
  11. # what is copied: each component's own file + README (no demo.hl — the showcase pages are in components/showcase/)
  12. FILES=(
  13. month-view/month-view.hl month-view/clock.hl month-view/README.md
  14. date-picker/date-picker.hl date-picker/README.md
  15. range-picker/range-picker.hl range-picker/README.md
  16. pagination/pagination.hl pagination/README.md
  17. md-editor/md-editor.hl md-editor/README.md
  18. icons/icons.hl icons/README.md
  19. code-editor/code-editor.hl code-editor/README.md
  20. file-upload/file-upload.hl file-upload/README.md
  21. modal/modal.hl modal/README.md
  22. comments/comments.hl comments/README.md
  23. files-upload/files-upload.hl files-upload/README.md
  24. media-player/media-player.hl media-player/README.md
  25. )
  26. [ -d "$SRC/.git" ] || { echo "no git repo at $SRC (set COMPONENTS_REPO)"; exit 2; }
  27. if [ "${1:-}" = "--check" ]; then
  28. REF="$(head -n1 "$APP/components/SOURCE" | cut -d' ' -f1)"
  29. bad=0
  30. for f in "${FILES[@]}"; do
  31. if ! git -C "$SRC" show "$REF:components/$f" | cmp -s - "$APP/components/$f"; then echo "DIFFERS: components/$f (vs $REF)"; bad=1; fi
  32. done
  33. [ $bad = 0 ] && echo "verbatim: ${#FILES[@]} files = components.hybriel $REF"
  34. exit $bad
  35. fi
  36. REF="$(git -C "$SRC" rev-parse --short "${1:-HEAD}^{commit}")"
  37. for f in "${FILES[@]}"; do
  38. mkdir -p "$APP/components/$(dirname "$f")"
  39. git -C "$SRC" show "$REF:components/$f" > "$APP/components/$f"
  40. done
  41. echo "$REF $(git -C "$SRC" log -1 --format='%cs %s' "$REF")" > "$APP/components/SOURCE"
  42. echo "copied ${#FILES[@]} files from components.hybriel $REF"
  43. "$0" --check

Branches

Latest commits

  • 4099e64aMerge branch 'font-segoe-ui' into mainAtlas
  • e14fb795|||PR Theme font: Segoe UI first (his choice 2026-11-19)Atlas
  • 44071d2cMerge branch 'hl-standard-5' into mainAtlas
  • 5ea64202|||PR Gate: count the new-tab check's console errors tooAtlas
  • 2752ceddMerge branch 'hl-standard-4' into mainAtlas
  • ac552b81|||PR Gate: keyboard (Tab/Enter/Space) and Back/Forward/reload/new-tab checks (HL-STANDARD F5, F21)Atlas
  • 8cddcaa9Merge branch 'hl-standard-2' into mainAtlas
  • 2b480a64|||PR Type the route parameter of main-menu build (HL-STANDARD L10)Atlas
  • ab54a39dMerge branch 'hl-standard' into mainAtlas
  • 04d36fcf|||PR Type function parameters and drop unneeded let (HL-STANDARD L2, L10)Atlas
  • 220c8fa4Merge branch 'readme-audit' into mainAtlas
  • b78fb85a|||PR README matches the codemre
  • 9f351699Preserve comments and nest supported selectors without changing rendered outputmre
  • 97110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre
  • ce4a0baeKeep caller slot styles whole so minimal shell apps startmre
  • 12cd3992Re-vendor complete Hybriel plugins and runtime to day44mre
  • b05c20feBackup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
  • 8d9ed0b8Re-vendor complete Hybriel plugins and runtime to day39mre
  • ebd00b6cNest caller slot styles in three-panemre
  • 009991efNest caller slot styles in list-firstmre