사이드바 브랜딩을 PharmQ Super Admin (PSA)로 업데이트
- base.html 상단 네비게이션 브랜딩 변경 - 팜큐 약국 관리 시스템 → PharmQ Super Admin (PSA) - UI 일관성 향상을 위한 브랜딩 통합 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
45
farmq-admin/static/novnc/utils/validate
Executable file
45
farmq-admin/static/novnc/utils/validate
Executable file
@@ -0,0 +1,45 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
RET=0
|
||||
|
||||
OUT=`mktemp`
|
||||
|
||||
for fn in "$@"; do
|
||||
echo "Validating $fn..."
|
||||
echo
|
||||
|
||||
case $fn in
|
||||
*.html)
|
||||
type="text/html"
|
||||
;;
|
||||
*.css)
|
||||
type="text/css"
|
||||
;;
|
||||
*)
|
||||
echo "Unknown format!"
|
||||
echo
|
||||
RET=1
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
|
||||
curl --silent \
|
||||
--header "Content-Type: ${type}; charset=utf-8" \
|
||||
--data-binary @${fn} \
|
||||
https://validator.w3.org/nu/?out=text > $OUT
|
||||
cat $OUT
|
||||
echo
|
||||
|
||||
# We don't fail the check for warnings as some warnings are
|
||||
# not relevant for us, and we don't currently have a way to
|
||||
# ignore just those
|
||||
if grep -q -s -E "^Error:" $OUT; then
|
||||
RET=1
|
||||
fi
|
||||
done
|
||||
|
||||
rm $OUT
|
||||
|
||||
exit $RET
|
||||
Reference in New Issue
Block a user