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
f1070df6
Commit
f1070df6
authored
Oct 08, 2021
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "slapos_jio: gadget_slapos_compute_node_status cleanup"
This reverts commit
85e6e268
.
parent
0c2c5d82
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
346 additions
and
334 deletions
+346
-334
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
+13
-0
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
+154
-163
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
+25
-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
+154
-163
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_compute_node_status_html.html
View file @
f1070df6
...
@@ -19,8 +19,21 @@
...
@@ -19,8 +19,21 @@
<
a
class
=
"
ui-btn ui-btn-icon-left ui-icon-desktop
"
href
=
"
{{monitor_url}}
"
target
=
_blank
>
{{
right_title
}}
<
/a></
div
><
/div
>
<
a
class
=
"
ui-btn ui-btn-icon-left ui-icon-desktop
"
href
=
"
{{monitor_url}}
"
target
=
_blank
>
{{
right_title
}}
<
/a></
div
><
/div
>
</script>
</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>
</head>
<body>
<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>
</body>
</html>
</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 @
f1070df6
...
@@ -193,13 +193,11 @@
...
@@ -193,13 +193,11 @@
</record>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<tuple>
<item>
<none/>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -243,20 +241,17 @@
...
@@ -243,20 +241,17 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</value>
<none/>
</item>
</tuple>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<tuple>
<item>
<none/>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -279,7 +274,7 @@
...
@@ -279,7 +274,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
995.20349.59441.46318
</string>
</value>
<value>
<string>
966.58781.43824.3635
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -297,7 +292,7 @@
...
@@ -297,7 +292,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1633624275.3
2
</float>
<float>
1530120172.
2
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
@@ -306,20 +301,17 @@
...
@@ -306,20 +301,17 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</value>
<none/>
</item>
</tuple>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<tuple>
<item>
<none/>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -367,9 +359,8 @@
...
@@ -367,9 +359,8 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</value>
<none/>
</item>
</tuple>
</dictionary>
</pickle>
</pickle>
</record>
</record>
</ZopeData>
</ZopeData>
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_compute_node_status_js.js
View file @
f1070df6
/*globals
window, rJS, Handlebars
*/
/*globals
console, window, rJS, RSVP, loopEventListener, i18n, Handlebars, $
*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
rJS
,
Handlebars
)
{
(
function
(
window
,
rJS
,
RSVP
,
Handlebars
)
{
"
use strict
"
;
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
),
var
gadget_klass
=
rJS
(
window
),
inline_status_source
=
gadget_klass
.
__template_element
inline_status_source
=
gadget_klass
.
__template_element
...
@@ -105,22 +105,39 @@
...
@@ -105,22 +105,39 @@
return
gadget
;
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
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
(
"
jio_get
"
,
"
jio_get
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
translateHtml
"
,
"
translateHtml
"
)
.
declareMethod
(
"
getContent
"
,
function
()
{
.
declareMethod
(
"
getContent
"
,
function
()
{
return
{};
return
{};
})
})
.
declareJob
(
"
getStatus
"
,
function
(
result
)
{
.
declareJob
(
"
getStatus
"
,
function
(
result
)
{
return
getStatus
(
this
,
{
news
:
result
});
var
gadget
=
this
;
return
getStatus
(
gadget
,
{
news
:
result
});
})
})
.
onLoop
(
function
()
{
.
onLoop
(
function
()
{
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
jio_get
(
gadget
.
options
.
value
.
jio_key
)
return
getStatusLoop
(
gadget
);
.
push
(
function
(
result
)
{
return
getStatus
(
gadget
,
result
);
});
},
300000
)
},
300000
)
.
declareMethod
(
"
render
"
,
function
(
options
)
{
.
declareMethod
(
"
render
"
,
function
(
options
)
{
...
@@ -129,4 +146,4 @@
...
@@ -129,4 +146,4 @@
gadget
.
flag
=
options
.
value
.
jio_key
;
gadget
.
flag
=
options
.
value
.
jio_key
;
return
gadget
.
getStatus
(
options
.
value
.
result
);
return
gadget
.
getStatus
(
options
.
value
.
result
);
});
});
}(
window
,
rJS
,
Handlebars
));
}(
window
,
rJS
,
RSVP
,
Handlebars
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_compute_node_status_js.xml
View file @
f1070df6
...
@@ -189,13 +189,11 @@
...
@@ -189,13 +189,11 @@
</record>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<tuple>
<item>
<none/>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -239,20 +237,17 @@
...
@@ -239,20 +237,17 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</value>
<none/>
</item>
</tuple>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<tuple>
<item>
<none/>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -275,7 +270,7 @@
...
@@ -275,7 +270,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
995.20344.18918.62105
</string>
</value>
<value>
<string>
978.25610.31873.42666
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -293,7 +288,7 @@
...
@@ -293,7 +288,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1633623919.8
2
</float>
<float>
1568302726.9
2
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
@@ -302,20 +297,17 @@
...
@@ -302,20 +297,17 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</value>
<none/>
</item>
</tuple>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<tuple>
<item>
<none/>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -363,9 +355,8 @@
...
@@ -363,9 +355,8 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</value>
<none/>
</item>
</tuple>
</dictionary>
</pickle>
</pickle>
</record>
</record>
</ZopeData>
</ZopeData>
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