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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
8bd4212c
Commit
8bd4212c
authored
Oct 26, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: No need .then after dereference
It is a useless block
parent
3e5d9c4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
16 deletions
+5
-16
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_load_schema_js.js
...b_page_module/rjs_gadget_erp5_page_slap_load_schema_js.js
+3
-14
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_load_schema_js.xml
..._page_module/rjs_gadget_erp5_page_slap_load_schema_js.xml
+2
-2
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_load_schema_js.js
View file @
8bd4212c
...
...
@@ -51,11 +51,7 @@
.
push
(
function
(
meta_schema
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
$RefParser
.
dereference
(
url
)
.
then
(
function
(
schema
)
{
return
schema
;
});
return
$RefParser
.
dereference
(
url
);
})
.
push
(
function
(
schema
)
{
var
validator
=
new
Validator
(
JSON
.
parse
(
meta_schema
),
'
7
'
);
...
...
@@ -72,10 +68,7 @@
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
$RefParser
.
dereference
(
"
slapos_load_software_schema.json
"
)
.
then
(
function
(
software_schema
)
{
return
software_schema
;
});
.
dereference
(
"
slapos_load_software_schema.json
"
);
})
.
push
(
function
(
software_schema
)
{
var
software_json
=
JSON
.
parse
(
software_cfg_json
),
...
...
@@ -99,11 +92,7 @@
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
$RefParser
.
dereference
(
parameter_schema_url
)
.
then
(
function
(
schema
)
{
return
schema
;
});
return
$RefParser
.
dereference
(
parameter_schema_url
);
})
.
push
(
function
(
schema
)
{
return
new
Validator
(
schema
,
'
7
'
,
false
).
validate
(
generated_json
);
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_load_schema_js.xml
View file @
8bd4212c
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1003.
49132.42731.3042
9
</string>
</value>
<value>
<string>
1003.
58311.45202.4165
9
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>
1666
203750.58
</float>
<float>
1666
754395.83
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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