github wf

This commit is contained in:
jokob-sk
2025-06-01 14:44:05 +10:00
parent 7fa76346b4
commit 75fc11f008
2 changed files with 7 additions and 6 deletions

View File

@@ -17,21 +17,22 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Check for invalid relative 'php/' URLs in frontend code
- name: Check for incorrect absolute '/php/' URLs in frontend code
run: |
echo "🔍 Checking for relative 'php/' URLs that should be './php/' or '/php/'..."
echo "🔍 Checking for incorrect absolute '/php/' URLs (should be 'php/' or './php/')..."
MATCHES=$(grep -rE "['\"]php\/" --include=\*.{js,php,html} . | grep -E "\.get|\.post|\.ajax|fetch|url\s*:") || true
MATCHES=$(grep -rE "['\"]\/php\/" --include=\*.{js,php,html} ./front | grep -E "\.get|\.post|\.ajax|fetch|url\s*:") || true
if [ -n "$MATCHES" ]; then
echo "$MATCHES"
echo "❌ Found improperly relative 'php/' URLs. Use './php/' or '/php/' or a base path."
echo "❌ Found incorrectly absolute '/php/' URLs. Use 'php/' or './php/' for relative paths."
exit 1
else
echo "✅ No bad relative 'php/' URLs found."
echo "✅ No bad '/php/' URLs found."
fi
- name: Check Python syntax
run: |
set -e

View File

@@ -1098,7 +1098,7 @@ height: 50px;
input[readonly] {
/* Apply styles to the readonly input */
background-color: #646566 !important;
color: #000;
color: #e6e6e6;
cursor: not-allowed;
}