mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-13 21:51:41 -07:00
github wf
This commit is contained in:
11
.github/workflows/code_checks.yml
vendored
11
.github/workflows/code_checks.yml
vendored
@@ -17,21 +17,22 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
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: |
|
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
|
if [ -n "$MATCHES" ]; then
|
||||||
echo "$MATCHES"
|
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
|
exit 1
|
||||||
else
|
else
|
||||||
echo "✅ No bad relative 'php/' URLs found."
|
echo "✅ No bad '/php/' URLs found."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Check Python syntax
|
- name: Check Python syntax
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
|
|||||||
@@ -1098,7 +1098,7 @@ height: 50px;
|
|||||||
input[readonly] {
|
input[readonly] {
|
||||||
/* Apply styles to the readonly input */
|
/* Apply styles to the readonly input */
|
||||||
background-color: #646566 !important;
|
background-color: #646566 !important;
|
||||||
color: #000;
|
color: #e6e6e6;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user