Commit 2849b4b6 authored by Xavier Guimard's avatar Xavier Guimard

Exclude conftree.js from beautification

parent 598b9ac8
......@@ -817,7 +817,15 @@ tidy: clean
find lemon*/ -name '*.bak' -delete
tidy-js: clean
find $(SRCMANAGERDIR)/site/static/js/ e2e-tests/ $(SRCPORTALDIR)/example -type f -name '*.js' ! -name 'jq*' ! -name 'bootstrap*' ! -name '*.min.js' -print -exec js_beautify -o -s=2 {} \;
find $(SRCMANAGERDIR)/site/static/js/ e2e-tests/ $(SRCPORTALDIR)/example \
-type f \
-name '*.js' \
! -name 'jq*' \
! -name 'bootstrap*' \
! -name '*.min.js' \
! -name conftree.js \
-print \
-exec js_beautify -o -s=2 {} \;
# TRANSLATION TARGETS #
......
......@@ -67,15 +67,15 @@ sub run {
$mainTree = Lemonldap::NG::Manager::Build::CTrees::cTrees();
my $script = 'function templates(tpl,key) {
var ind;
var scalarTemplate = function(r) {
return {
"id": tpl+"s/"+(ind++),
"title": r,
"get": tpl+"s/"+key+"/"+r
var ind;
var scalarTemplate = function(r) {
return {
"id": tpl+"s/"+(ind++),
"title": r,
"get": tpl+"s/"+key+"/"+r
};
};
};
switch(tpl){
switch(tpl){
';
# To build confTree.js, each special node is scanned from
......
function templates(tpl,key) {
var ind;
var scalarTemplate = function(r) {
return {
"id": tpl+"s/"+(ind++),
"title": r,
"get": tpl+"s/"+key+"/"+r
var ind;
var scalarTemplate = function(r) {
return {
"id": tpl+"s/"+(ind++),
"title": r,
"get": tpl+"s/"+key+"/"+r
};
};
};
switch(tpl){
switch(tpl){
case 'oidcOPMetaDataNode':
return [
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment