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
85e6e268
Commit
85e6e268
authored
Oct 07, 2021
by
Romain Courteaud
8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: gadget_slapos_compute_node_status cleanup
parent
628c254f
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
334 additions
and
346 deletions
+334
-346
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_compute_node_status_html.html
...ge_module/rjs_gadget_slapos_compute_node_status_html.html
+0
-13
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_compute_node_status_html.xml
...age_module/rjs_gadget_slapos_compute_node_status_html.xml
+163
-154
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
-25
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
+163
-154
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_compute_node_status_html.html
View file @
85e6e268
...
...
@@ -19,21 +19,8 @@
<
a
class
=
"
ui-btn ui-btn-icon-left ui-icon-desktop
"
href
=
"
{{monitor_url}}
"
target
=
_blank
>
{{
right_title
}}
<
/a></
div
><
/div
>
</script>
<script
id=
"loading-template"
type=
"text/x-handlebars-template"
>
<
button
data
-
i18n
=
"
loading
"
type
=
"
submit
"
class
=
"
responsive ui-btn ui-icon-spinner ui-icon-spin ui-btn-icon-center ui-disabled
"
style
=
"
border:none;
"
>
loading
<
/button
>
</script>
</head>
<body>
<div
class=
"ui-block-a"
style=
"width:50%"
>
<div
class=
"ui-bar ui-corner-all first-child ui-btn-no-data"
>
<a
class=
"ui-btn ui-btn-icon-left ui-icon-spinner"
style=
"color: white !important;"
>
Compute Node
</a>
</div>
</div>
<div
class=
"ui-block-c"
style=
"width:50%"
>
<div
class=
"ui-bar ui-corner-all first-child ui-btn-no-data"
>
<a
class=
"ui-btn ui-btn-icon-left ui-icon-spinner"
style=
"color: white !important;"
>
Partitions
</a>
</div>
</div>
</body>
</html>
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_compute_node_status_html.xml
View file @
85e6e268
This diff is collapsed.
Click to expand it.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_compute_node_status_js.js
View file @
85e6e268
/*globals
console, window, rJS, RSVP, loopEventListener, i18n, Handlebars, $
*/
/*globals
window, rJS, Handlebars
*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
rJS
,
RSVP
,
Handlebars
)
{
(
function
(
window
,
rJS
,
Handlebars
)
{
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
),
inline_status_source
=
gadget_klass
.
__template_element
...
...
@@ -105,39 +105,22 @@
return
gadget
;
}
function
getStatusLoop
(
gadget
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
jio_get
(
gadget
.
options
.
value
.
jio_key
);
})
.
push
(
function
(
result
)
{
return
getStatus
(
gadget
,
result
);
});
}
gadget_klass
.
ready
(
function
(
gadget
)
{
gadget
.
props
=
{};
return
gadget
.
getSetting
(
"
hateoas_url
"
)
.
push
(
function
(
url
)
{
gadget
.
props
.
hateoas_url
=
url
;
});
})
.
declareAcquiredMethod
(
"
jio_get
"
,
"
jio_get
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
translateHtml
"
,
"
translateHtml
"
)
.
declareMethod
(
"
getContent
"
,
function
()
{
return
{};
})
.
declareJob
(
"
getStatus
"
,
function
(
result
)
{
var
gadget
=
this
;
return
getStatus
(
gadget
,
{
news
:
result
});
return
getStatus
(
this
,
{
news
:
result
});
})
.
onLoop
(
function
()
{
var
gadget
=
this
;
return
getStatusLoop
(
gadget
);
return
gadget
.
jio_get
(
gadget
.
options
.
value
.
jio_key
)
.
push
(
function
(
result
)
{
return
getStatus
(
gadget
,
result
);
});
},
300000
)
.
declareMethod
(
"
render
"
,
function
(
options
)
{
...
...
@@ -146,4 +129,4 @@
gadget
.
flag
=
options
.
value
.
jio_key
;
return
gadget
.
getStatus
(
options
.
value
.
result
);
});
}(
window
,
rJS
,
RSVP
,
Handlebars
));
\ No newline at end of file
}(
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 @
85e6e268
This diff is collapsed.
Click to expand it.
Romain Courteaud
@romain
mentioned in commit
29a389f5
·
Oct 14, 2021
mentioned in commit
29a389f5
mentioned in commit 29a389f562971b280142f4757446fa99933c706f
Toggle commit list
Romain Courteaud
@romain
mentioned in commit
f1070df6
·
Dec 15, 2021
mentioned in commit
f1070df6
mentioned in commit f1070df6292106fc803c91553bc35e9fa7d7fa1a
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