layouts
All repositories: gitoria
1.8 KB
#!/usr/bin/env bash# usage.sh — which app carries which shared piece, and is its copy the same as the source?# Sources: components → components.hybriel.worldapi.org/components/<name>/<name>.hl,# theme → layouts.worldapi.org/theme/, tokens → layouts.worldapi.org/shared/tokens.hl,# md-editor.js (old JS editor, to be retired) → worldapi-components/md-editor.js.# States: same = byte-identical to the source · DIFFERS = copy is behind/ahead or patched · fork = declared own copy# (listed in docs/usage.md "Forks"). Run: tools/usage.sh [projects dir] — exit 1 if any copy DIFFERS.P=${1:-$(cd "$(dirname "$0")/../.." && pwd)}LIB=$P/components.hybriel.worldapi.org/components; LAY=$P/layouts.worldapi.orgAPPS="tickets ident gitoria notes calendar tracker layouts"FORKS=" calendar:month-view "bad=0cmpf() { if cmp -s "$1" "$2"; then echo same; else echo DIFFERS; fi; }for a in $APPS; dod=$P/$a.worldapi.org; line=""for c in $(ls "$LIB" | grep -v '\.hl$'); dof=$(find "$d/components" -path '*/showcase' -prune -o -name "$c.hl" -print 2>/dev/null | head -1)[ -z "$f" ] && continues=$(cmpf "$f" "$LIB/$c/$c.hl"); [[ $FORKS == *" $a:$c "* ]] && s=fork[ $s = DIFFERS ] && bad=1; line+=" $c=$s"doneif [ -d "$d/theme" ] && [ $a != layouts ]; thenif diff -rq "$d/theme" "$LAY/theme" >/dev/null; then line+=" theme=same"; else line+=" theme=DIFFERS"; bad=1; fifi[ -f "$d/shared/tokens.hl" ] && { s=$(cmpf "$d/shared/tokens.hl" "$LAY/shared/tokens.hl"); [ $s = DIFFERS ] && bad=1; line+=" tokens=$s"; }[ -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"; }echo "$a:$line"doneecho "sources: components.hybriel $(git -C "$P/components.hybriel.worldapi.org" log -1 --format=%h) · layouts $(git -C "$LAY" log -1 --format=%h)"exit $bad
Branches
Latest commits
- 8d9ed0b8Re-vendor complete Hybriel plugins and runtime to day39mre
- ebd00b6cNest caller slot styles in three-panemre
- 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