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
- 009991efNest caller slot styles in list-firstmre
- 494d75d4Nest caller slot styles in app-sidebarmre
- e5571680Align all plugin sources with Hybriel day38bmre
- 5d204c46Re-vendor layouts to Hybriel set day38bmre
- 17e0f03eNest html-prefixed theme component overridesmre
- e54e735eFormat plain theme elements with nested rules and bare mediamre
- 547f834eRecord LY7 deployment and live verificationmre
- fa4600b1Link caller-slot style exceptions to hybriel#270mre
- 413b11e1Record corrected LY7 nesting, exact CSS and Chrome proofmre
- b810453etracker-demo: nest child and compound selectors in Stylemre
- 0b5b1d61notes-demo: nest child and compound selectors in Stylemre
- ab22bdc2mail-demo: nest child and compound selectors in Stylemre
- fe2d8de9home: nest child and compound selectors in Stylemre
- e631791buser-menu: nest child and compound selectors in Stylemre
- 69604944three-pane: nest child and compound selectors in Stylemre
- 3e389b83main-menu: nest child and compound selectors in Stylemre
- 05413975list-first: nest child and compound selectors in Stylemre
- c545b642content-first: nest child and compound selectors in Stylemre
- eae2be7aapp-sidebar: nest child selectors and document caller-slot gapmre
- 69c9f784Record LY7 slot nesting blocker and minimal repromre