Add theme required fixes

This commit is contained in:
kvan7 2023-10-31 14:31:01 +00:00
parent 0058a112cc
commit 281d0aac91
40 changed files with 998 additions and 886 deletions

View file

@ -44,6 +44,7 @@ node.clean() {
build_msg CLEAN "themes -- locally installed npm dependencies"
( set -e
npm --prefix searx/static/themes/simple run clean
npm --prefix searx/static/themes/kvanDark run clean
)
build_msg CLEAN "locally installed developer and CI tools"
( set -e

View file

@ -15,6 +15,7 @@ themes.:
kvanDark.:
build : build kvanDark theme
test : test kvanDark theme
stylelint : stylelint
EOF
}
@ -33,6 +34,9 @@ themes.live() {
case "${LIVE_THEME}" in
simple)
theme="searx/static/themes/${LIVE_THEME}"
;;
kvanDark)
theme="searx/static/themes/${LIVE_THEME}"
;;
'')
die_caller 42 "missing theme argument"
@ -77,9 +81,14 @@ themes.kvanDark() {
}
themes.kvanDark.test() {
build_msg TEST "theme: cystom"
build_msg TEST "theme: kvanDark"
nodejs.ensure
npm --prefix searx/static/themes/kvanDark install
npm --prefix searx/static/themes/kvanDark run test
dump_return $?
}
themes.kvanDark.stylelint() {
npm --prefix searx/static/themes/kvanDark run stylelint
dump_return $?
}