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
0c2c5d82
Commit
0c2c5d82
authored
Oct 08, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "slapos_jio: status"
This reverts commit
38cc7f9c
.
parent
6eaad202
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_compute_node_status_js.js
...b_page_module/rjs_gadget_slapos_compute_node_status_js.js
+8
-12
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_compute_node_status_js.xml
..._page_module/rjs_gadget_slapos_compute_node_status_js.xml
+2
-2
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_compute_node_status_js.js
View file @
0c2c5d82
...
@@ -117,20 +117,16 @@
...
@@ -117,20 +117,16 @@
})
})
.
onLoop
(
function
()
{
.
onLoop
(
function
()
{
var
gadget
=
this
;
var
gadget
=
this
;
if
(
gadget
.
state
.
jio_key
)
{
return
gadget
.
jio_get
(
gadget
.
options
.
value
.
jio_key
)
return
gadget
.
jio_get
(
gadget
.
state
.
jio_key
)
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
return
getStatus
(
gadget
,
result
);
return
gadget
.
changeState
(
result
);
});
});
}
},
300000
)
},
300000
)
.
declareMethod
(
"
render
"
,
function
(
options
)
{
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
state_dict
=
options
.
value
.
result
;
var
gadget
=
this
;
state_dict
.
jio_key
=
options
.
value
.
jio_key
;
gadget
.
options
=
options
;
return
this
.
changeState
(
state_dict
);
gadget
.
flag
=
options
.
value
.
jio_key
;
})
return
gadget
.
getStatus
(
options
.
value
.
result
);
.
onStateChange
(
function
()
{
return
getStatus
(
this
,
this
.
state
);
});
});
}(
window
,
rJS
,
Handlebars
));
}(
window
,
rJS
,
Handlebars
));
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_compute_node_status_js.xml
View file @
0c2c5d82
...
@@ -275,7 +275,7 @@
...
@@ -275,7 +275,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
995.203
67.40971.20633
</string>
</value>
<value>
<string>
995.203
44.18918.62105
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -293,7 +293,7 @@
...
@@ -293,7 +293,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
163362
5272.93
</float>
<float>
163362
3919.82
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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