Mercurial > kallithea
diff kallithea/templates/base/root.html @ 8274:a42ab217f3d0
front-end: add eslint-plugin-html as dependency as introduced in .eslintrc.js in 4d36432bf705
Usage example:
hg up -cr.
sed -i -e 's/\${[^{}]*\({[^{}]*}[^{}]*\)*}/""/g' -e 's/%\(if\|else\|endif\|for\|endfor\)\>.*//g' -e 's/##.*//g' $(hg loc 'kallithea/templates/**.html')
vim kallithea/templates/pullrequests/pullrequest.html +139 # blank out the multi line 'var url = ${}'
( cd kallithea/front-end/ && node_modules/.bin/eslint $(hg loc 'kallithea/templates/**.html')) | tee l
hg up -Cr.
( sed -n 's/^function \([^(]*\).*/\1/gp' kallithea/public/js/base.js; sed -n 's/.* var \([^ ]*\) =.*/\1/p' kallithea/templates/base/root.html; echo pyroutes; echo CodeMirror; echo Select2; echo BranchRenderer;)|while read x; do echo $x; sed -i "/error .$x. is not defined /d" l; done; cat l
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 25 Feb 2020 18:03:54 +0100 |
parents | fb9550946c26 |
children | 19d93bd709bf f520c7f10b1d |
line wrap: on
line diff
--- a/kallithea/templates/base/root.html Tue Feb 25 18:24:39 2020 +0100 +++ b/kallithea/templates/base/root.html Tue Feb 25 18:03:54 2020 +0100 @@ -58,7 +58,7 @@ }; var _TM = TRANSLATION_MAP; - var TOGGLE_FOLLOW_URL = ${h.js(h.url('toggle_following'))}; + var TOGGLE_FOLLOW_URL = ${h.js(h.url('toggle_following'))}; var REPO_NAME = ""; %if hasattr(c, 'repo_name'):