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
38cc7f9c
Commit
38cc7f9c
authored
Oct 07, 2021
by
Romain Courteaud
8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: status
parent
85e6e268
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
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
+12
-8
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 @
38cc7f9c
...
...
@@ -117,16 +117,20 @@
})
.
onLoop
(
function
()
{
var
gadget
=
this
;
return
gadget
.
jio_get
(
gadget
.
options
.
value
.
jio_key
)
if
(
gadget
.
state
.
jio_key
)
{
return
gadget
.
jio_get
(
gadget
.
state
.
jio_key
)
.
push
(
function
(
result
)
{
return
getStatus
(
gadget
,
result
);
return
gadget
.
changeState
(
result
);
});
}
},
300000
)
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
;
gadget
.
options
=
options
;
gadget
.
flag
=
options
.
value
.
jio_key
;
return
gadget
.
getStatus
(
options
.
value
.
result
);
var
state_dict
=
options
.
value
.
result
;
state_dict
.
jio_key
=
options
.
value
.
jio_key
;
return
this
.
changeState
(
state_dict
);
})
.
onStateChange
(
function
()
{
return
getStatus
(
this
,
this
.
state
);
});
}(
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 @
38cc7f9c
...
...
@@ -275,7 +275,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
995.203
44.18918.62105
</string>
</value>
<value>
<string>
995.203
67.40971.20633
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -293,7 +293,7 @@
</tuple>
<state>
<tuple>
<float>
163362
3919.82
</float>
<float>
163362
5272.93
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
Romain Courteaud
@romain
mentioned in commit
e988eb45
·
Oct 14, 2021
mentioned in commit
e988eb45
mentioned in commit e988eb4560aa27dac2b818feaf5c46c8cffcab75
Toggle commit list
Romain Courteaud
@romain
mentioned in commit
0c2c5d82
·
Dec 15, 2021
mentioned in commit
0c2c5d82
mentioned in commit 0c2c5d820c5346456c067d4f6a86aee989582e1d
Toggle commit list
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