mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
Initial commit: reorganized source tree
- backend/: 13 Maven modules (cw-elevator-application, cloudwalk-cloud, intelligent-cwoscomponent, ninca-crk, etc.) - frontend/: 4 Vue projects (elevator-front, cwos-portal, alarm-front, front_acs) + decompiled + scripts - scripts/: build, test-env, tools (Docker Compose, service templates, API parity) - docs/: AGENTS.md, superpowers specs, architecture docs - .gitignore: standard Java/Maven exclusions Moved from legacy maven-*/ root layout to backend/ organized structure.
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Simple, conservative beautifier runner for alarm-front decompilation.
|
||||
# If the real beautifier is unavailable, gracefully copy input to output.
|
||||
INPUT_DIR="$1"
|
||||
OUTPUT_DIR="$2"
|
||||
|
||||
if [ -z "${INPUT_DIR:-}" ] || [ -z "${OUTPUT_DIR:-}" ]; then
|
||||
echo "Usage: $0 <input-dir> <output-dir>" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$OUTPUT_DIR"
|
||||
|
||||
shopt -s nullglob
|
||||
for f in "$INPUT_DIR"/*.js; do
|
||||
[ -f "$f" ] || continue
|
||||
# Try to beautify with existing local tool if available, else copy as-is
|
||||
if [ -x "$OUTPUT_DIR"/../node_modules/.bin/js-beautify ]; then
|
||||
"$OUTPUT_DIR"/../node_modules/.bin/js-beautify "$f" -r > "$OUTPUT_DIR/$(basename "$f")"
|
||||
else
|
||||
cp "$f" "$OUTPUT_DIR/$(basename "$f")"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user