From 75fc11f008f3a423c6d2332dc5ae5af2069351c5 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sun, 1 Jun 2025 14:44:05 +1000 Subject: [PATCH] github wf --- .github/workflows/code_checks.yml | 11 ++++++----- front/css/app.css | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml index 39324990..794545ce 100755 --- a/.github/workflows/code_checks.yml +++ b/.github/workflows/code_checks.yml @@ -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 diff --git a/front/css/app.css b/front/css/app.css index 39cfb9fe..202bab03 100755 --- a/front/css/app.css +++ b/front/css/app.css @@ -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; }