added in admin pages to add models and parts

This commit is contained in:
2025-11-24 18:06:26 +00:00
parent f8bb195159
commit 2682308015
30 changed files with 1569 additions and 57 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/zsh
echo "🩹 Auto-patching SCSS files with @reference \"tailwindcss\"..."
SCSS_FILES=$(find src -type f -name "*.scss")
for FILE in $SCSS_FILES; do
echo "Checking: $FILE"
# Skip if already has @reference
if grep -q '@reference "tailwindcss"' "$FILE"; then
echo " ✔ Already patched"
continue
fi
echo " Adding @reference to $FILE"
# Prepend @reference at top of file
echo '@reference "tailwindcss";' | cat - "$FILE" > "$FILE.tmp" && mv "$FILE.tmp" "$FILE"
done
echo "🎉 All SCSS files have been patched for Tailwind v4!"