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
0
Merge Requests
0
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
Léo-Paul Géneau
slapos.core
Commits
cd88f42e
Commit
cd88f42e
authored
Mar 31, 2023
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
Fixup status gadget
See merge request
nexedi/slapos.core!506
parents
ab66c0c0
7c47a33a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
10 deletions
+15
-10
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_compute_node_view_js.js
..._module/rjs_gadget_erp5_page_slap_compute_node_view_js.js
+3
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_compute_node_view_js.xml
...module/rjs_gadget_erp5_page_slap_compute_node_view_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_status_js.js
...mplateItem/web_page_module/rjs_gadget_slapos_status_js.js
+8
-4
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_status_js.xml
...plateItem/web_page_module/rjs_gadget_slapos_status_js.xml
+2
-2
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_compute_node_view_js.js
View file @
cd88f42e
...
@@ -26,17 +26,18 @@
...
@@ -26,17 +26,18 @@
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
jio_allDocs
(
param_list
[
0
])
return
gadget
.
jio_allDocs
(
param_list
[
0
])
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
value
,
len
=
result
.
data
.
total_rows
;
var
i
,
value
,
value_jio_key
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
SoftwareInstallation_getNewsDict
))
{
if
(
1
||
(
result
.
data
.
rows
[
i
].
value
.
SoftwareInstallation_getNewsDict
))
{
value
=
result
.
data
.
rows
[
i
].
value
.
SoftwareInstallation_getNewsDict
;
value
=
result
.
data
.
rows
[
i
].
value
.
SoftwareInstallation_getNewsDict
;
value_jio_key
=
result
.
data
.
rows
[
i
].
id
;
result
.
data
.
rows
[
i
].
value
.
SoftwareInstallation_getNewsDict
=
{
result
.
data
.
rows
[
i
].
value
.
SoftwareInstallation_getNewsDict
=
{
field_gadget_param
:
{
field_gadget_param
:
{
css_class
:
""
,
css_class
:
""
,
description
:
"
The Status
"
,
description
:
"
The Status
"
,
hidden
:
0
,
hidden
:
0
,
"
default
"
:
{
"
default
"
:
{
jio_key
:
value
,
jio_key
:
value
_jio_key
,
result
:
value
,
result
:
value
,
portal_type
:
"
Software Installation
"
},
portal_type
:
"
Software Installation
"
},
key
:
"
status
"
,
key
:
"
status
"
,
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_compute_node_view_js.xml
View file @
cd88f42e
...
@@ -267,7 +267,7 @@
...
@@ -267,7 +267,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1006.
26651.31767.25907
</string>
</value>
<value>
<string>
1006.
58340.40727.23620
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -287,7 +287,7 @@
...
@@ -287,7 +287,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
76577476.87
</float>
<float>
16
80014283.61
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_status_js.js
View file @
cd88f42e
/*globals console, window, rJS,
i18n, domsugar
*/
/*globals console, window, rJS,
domsugar, JSON
*/
/*jslint indent: 2, nomen: true, maxlen: 80 */
/*jslint indent: 2, nomen: true, maxlen: 80 */
(
function
(
window
,
rJS
,
domsugar
)
{
(
function
(
window
,
rJS
,
domsugar
,
JSON
)
{
"
use strict
"
;
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
);
var
gadget_klass
=
rJS
(
window
);
...
@@ -338,7 +338,7 @@
...
@@ -338,7 +338,7 @@
.
onLoop
(
function
()
{
.
onLoop
(
function
()
{
var
gadget
=
this
;
var
gadget
=
this
;
if
(
gadget
.
state
.
jio_key
)
{
if
(
typeof
gadget
.
state
.
jio_key
===
'
string
'
&&
gadget
.
state
.
jio_key
!==
''
)
{
return
gadget
.
jio_get
(
gadget
.
state
.
jio_key
)
return
gadget
.
jio_get
(
gadget
.
state
.
jio_key
)
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
state_dict
=
result
.
news
||
{};
var
state_dict
=
result
.
news
||
{};
...
@@ -346,6 +346,10 @@
...
@@ -346,6 +346,10 @@
return
gadget
.
changeState
(
state_dict
);
return
gadget
.
changeState
(
state_dict
);
});
});
}
}
throw
new
Error
(
'
jio_key dont contains a proper value:
'
+
JSON
.
stringify
(
gadget
.
state
.
jio_key
)
);
},
300000
)
},
300000
)
.
onStateChange
(
function
()
{
.
onStateChange
(
function
()
{
...
@@ -360,4 +364,4 @@
...
@@ -360,4 +364,4 @@
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
});
});
}(
window
,
rJS
,
domsugar
));
}(
window
,
rJS
,
domsugar
,
JSON
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_status_js.xml
View file @
cd88f42e
...
@@ -278,7 +278,7 @@
...
@@ -278,7 +278,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
100
1.50668.64434.58
0
</string>
</value>
<value>
<string>
100
6.58340.40727.2362
0
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -298,7 +298,7 @@
...
@@ -298,7 +298,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
60581838.54
</float>
<float>
16
80031759.77
</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