Files
technitium-console/.githooks/pre-commit
T
DenozordecandClaude Sonnet 5.5 f3531c64f9 Move the console onto ReUI PRO
Install ReUI (MCP, skill, @reui registry, Tailwind v4, shadcn base-nova) and move
the shared UI onto it: Button, Tag, Check, Input/Textarea, Segmented, Alert, Panel,
Dialog, Tooltip, Menu and Select (Popover), Toast (sonner), the Table frame
(DataGrid), the Dashboard KPI strip, the shnt Ops palette, Geist and the type scale.

Design only: behaviour, texts and roles are unchanged. Tests that asserted the old
DOM were updated; the tests now format numbers in English wherever they run.
docs/reui-migration-plan.md records the plan and its decisions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 00:06:06 +07:00

16 lines
627 B
Bash

#!/usr/bin/env bash
# Guards every commit against leaked secrets.
#
# It lives HERE on purpose: `technitium-console` is its own repository with its
# own remote, so pointing `core.hooksPath` at a hooks folder outside it would
# leave the guard broken as soon as someone cloned this repository on its own.
#
# Per machine: git config core.hooksPath .githooks
set -euo pipefail
if ! command -v gitleaks >/dev/null 2>&1; then
echo "pre-commit: gitleaks is not installed. Commit aborted for safety" >&2
exit 1
fi
# gitleaks v8.19+: `protect` was replaced by `git --staged` (pre-commit mode).
gitleaks git --staged --redact -v