Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
390187bc
Commit
390187bc
authored
Apr 30, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_parameter_editor: coding style
parent
675cdf27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
19 deletions
+11
-19
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/gadget_erp5_page_slap_load_schema.js.js
..._parameter_editor/gadget_erp5_page_slap_load_schema.js.js
+10
-18
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/gadget_erp5_page_slap_parameter_form.js.js
...rameter_editor/gadget_erp5_page_slap_parameter_form.js.js
+1
-1
No files found.
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/gadget_erp5_page_slap_load_schema.js.js
View file @
390187bc
...
@@ -17,15 +17,12 @@
...
@@ -17,15 +17,12 @@
};
};
}
}
}
}
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
(
jIO
.
util
.
ajax
({
.
push
(
function
()
{
url
:
url
,
return
jIO
.
util
.
ajax
({
headers
:
headers
url
:
url
,
}))
headers
:
headers
.
push
(
function
(
evt
)
{
})
return
evt
.
target
.
responseText
;
.
then
(
function
(
evt
)
{
return
evt
.
target
.
responseText
;
});
});
});
}
}
...
@@ -42,10 +39,7 @@
...
@@ -42,10 +39,7 @@
}
}
return
getJSON
(
meta_schema_url
)
return
getJSON
(
meta_schema_url
)
.
push
(
function
(
meta_schema
)
{
.
push
(
function
(
meta_schema
)
{
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
(
$RefParser
.
dereference
(
url
))
.
push
(
function
()
{
return
$RefParser
.
dereference
(
url
);
})
.
push
(
function
(
schema
)
{
.
push
(
function
(
schema
)
{
var
validator
=
new
Validator
(
JSON
.
parse
(
meta_schema
),
'
7
'
);
var
validator
=
new
Validator
(
JSON
.
parse
(
meta_schema
),
'
7
'
);
if
(
!
validator
.
validate
(
schema
))
{
if
(
!
validator
.
validate
(
schema
))
{
...
@@ -58,11 +52,9 @@
...
@@ -58,11 +52,9 @@
.
declareMethod
(
"
loadSoftwareJSON
"
,
function
(
url
)
{
.
declareMethod
(
"
loadSoftwareJSON
"
,
function
(
url
)
{
return
getJSON
(
url
)
return
getJSON
(
url
)
.
push
(
function
(
software_cfg_json
)
{
.
push
(
function
(
software_cfg_json
)
{
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
(
$RefParser
.
push
(
function
()
{
.
dereference
(
"
slapos_load_software_schema.json
"
)
return
$RefParser
)
.
dereference
(
"
slapos_load_software_schema.json
"
);
})
.
push
(
function
(
software_schema
)
{
.
push
(
function
(
software_schema
)
{
var
software_json
=
JSON
.
parse
(
software_cfg_json
),
var
software_json
=
JSON
.
parse
(
software_cfg_json
),
validator
=
new
Validator
(
software_schema
,
'
7
'
);
validator
=
new
Validator
(
software_schema
,
'
7
'
);
...
...
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/gadget_erp5_page_slap_parameter_form.js.js
View file @
390187bc
...
@@ -462,7 +462,7 @@
...
@@ -462,7 +462,7 @@
show_form_button
.
classList
.
add
(
"
ui-icon-th-list
"
);
show_form_button
.
classList
.
add
(
"
ui-icon-th-list
"
);
return
changed
;
return
changed
;
})
})
.
fail
(
function
(
error
)
{
.
push
(
undefined
,
function
(
error
)
{
console
.
warn
(
error
);
console
.
warn
(
error
);
console
.
log
(
error
.
stack
);
console
.
log
(
error
.
stack
);
show_form_button
.
classList
.
remove
(
"
ui-icon-spinner
"
);
show_form_button
.
classList
.
remove
(
"
ui-icon-spinner
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment