Exclude conftree.js from beautification
This commit is contained in:
parent
598b9ac8d8
commit
2849b4b610
10
Makefile
10
Makefile
|
@ -817,7 +817,15 @@ tidy: clean
|
||||||
find lemon*/ -name '*.bak' -delete
|
find lemon*/ -name '*.bak' -delete
|
||||||
|
|
||||||
tidy-js: clean
|
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 #
|
# TRANSLATION TARGETS #
|
||||||
|
|
||||||
|
|
|
@ -67,15 +67,15 @@ sub run {
|
||||||
$mainTree = Lemonldap::NG::Manager::Build::CTrees::cTrees();
|
$mainTree = Lemonldap::NG::Manager::Build::CTrees::cTrees();
|
||||||
|
|
||||||
my $script = 'function templates(tpl,key) {
|
my $script = 'function templates(tpl,key) {
|
||||||
var ind;
|
var ind;
|
||||||
var scalarTemplate = function(r) {
|
var scalarTemplate = function(r) {
|
||||||
return {
|
return {
|
||||||
"id": tpl+"s/"+(ind++),
|
"id": tpl+"s/"+(ind++),
|
||||||
"title": r,
|
"title": r,
|
||||||
"get": tpl+"s/"+key+"/"+r
|
"get": tpl+"s/"+key+"/"+r
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
switch(tpl){
|
||||||
switch(tpl){
|
|
||||||
';
|
';
|
||||||
|
|
||||||
# To build confTree.js, each special node is scanned from
|
# To build confTree.js, each special node is scanned from
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
function templates(tpl,key) {
|
function templates(tpl,key) {
|
||||||
var ind;
|
var ind;
|
||||||
var scalarTemplate = function(r) {
|
var scalarTemplate = function(r) {
|
||||||
return {
|
return {
|
||||||
"id": tpl+"s/"+(ind++),
|
"id": tpl+"s/"+(ind++),
|
||||||
"title": r,
|
"title": r,
|
||||||
"get": tpl+"s/"+key+"/"+r
|
"get": tpl+"s/"+key+"/"+r
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
switch(tpl){
|
||||||
switch(tpl){
|
|
||||||
case 'oidcOPMetaDataNode':
|
case 'oidcOPMetaDataNode':
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user