前后端基本架构和完全excel表的解析及统计图表的生成以及excel表的到出

This commit is contained in:
2026-03-19 01:51:34 +08:00
parent c23b93bb70
commit 2f630695ff
194 changed files with 23354 additions and 174 deletions

39
frontend/.rules/check.sh Normal file
View File

@@ -0,0 +1,39 @@
#!/bin/bash
ast-grep scan -r .rules/SelectItem.yml
ast-grep scan -r .rules/contrast.yml
ast-grep scan -r .rules/supabase-google-sso.yml
ast-grep scan -r .rules/toast-hook.yml
ast-grep scan -r .rules/slot-nesting.yml
ast-grep scan -r .rules/require-button-interaction.yml
useauth_output=$(ast-grep scan -r .rules/useAuth.yml 2>/dev/null)
if [ -z "$useauth_output" ]; then
exit 0
fi
authprovider_output=$(ast-grep scan -r .rules/authProvider.yml 2>/dev/null)
if [ -n "$authprovider_output" ]; then
exit 0
fi
echo "=== ast-grep scan -r .rules/useAuth.yml output ==="
echo "$useauth_output"
echo ""
echo "=== ast-grep scan -r .rules/authProvider.yml output ==="
echo "$authprovider_output"
echo ""
echo "⚠️ Issue detected:"
echo "The code uses useAuth Hook but does not have AuthProvider component wrapping the components."
echo "Please ensure that components using useAuth are wrapped with AuthProvider to provide proper authentication context."
echo ""
echo "Suggested fixes:"
echo "1. Add AuthProvider wrapper in app.tsx or corresponding root component"
echo "2. Ensure all components using useAuth are within AuthProvider scope"