layouts
All repositories: gitoria
2.3 KB
#!/usr/bin/env bash# tools/sync-components.sh — copy the components.hybriel.worldapi.org files this showcase uses, BYTE-VERBATIM from a commit.# tools/sync-components.sh [commit] copy from <commit> (default: HEAD of the source repo), write components/SOURCE# tools/sync-components.sh --check compare the copies with the commit in components/SOURCE (exit 1 on any difference)# Source repo: $COMPONENTS_REPO (default loreana /media/STORAGE/projects/WorldAPI/components.hybriel.worldapi.org). The files come out of# git (`git show <commit>:<path>`), not the working tree, so uncommitted edits there never land here. Never edit the copies:# change them in components.hybriel, commit there, run this, then the gate (README "Run, test, deploy").set -euo pipefailAPP="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"SRC="${COMPONENTS_REPO:-/media/STORAGE/projects/WorldAPI/components.hybriel.worldapi.org}"# what is copied: each component's own file + README (no demo.hl — the showcase pages are in components/showcase/)FILES=(month-view/month-view.hl month-view/clock.hl month-view/README.mddate-picker/date-picker.hl date-picker/README.mdrange-picker/range-picker.hl range-picker/README.mdpagination/pagination.hl pagination/README.mdmd-editor/md-editor.hl md-editor/README.mdicons/icons.hl icons/README.mdcode-editor/code-editor.hl code-editor/README.mdfile-upload/file-upload.hl file-upload/README.mdmodal/modal.hl modal/README.mdcomments/comments.hl comments/README.mdfiles-upload/files-upload.hl files-upload/README.mdmedia-player/media-player.hl media-player/README.md)[ -d "$SRC/.git" ] || { echo "no git repo at $SRC (set COMPONENTS_REPO)"; exit 2; }if [ "${1:-}" = "--check" ]; thenREF="$(head -n1 "$APP/components/SOURCE" | cut -d' ' -f1)"bad=0for f in "${FILES[@]}"; doif ! git -C "$SRC" show "$REF:components/$f" | cmp -s - "$APP/components/$f"; then echo "DIFFERS: components/$f (vs $REF)"; bad=1; fidone[ $bad = 0 ] && echo "verbatim: ${#FILES[@]} files = components.hybriel $REF"exit $badfiREF="$(git -C "$SRC" rev-parse --short "${1:-HEAD}^{commit}")"for f in "${FILES[@]}"; domkdir -p "$APP/components/$(dirname "$f")"git -C "$SRC" show "$REF:components/$f" > "$APP/components/$f"doneecho "$REF $(git -C "$SRC" log -1 --format='%cs %s' "$REF")" > "$APP/components/SOURCE"echo "copied ${#FILES[@]} files from components.hybriel $REF""$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