Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
c0e15d6f
Commit
c0e15d6f
authored
Feb 22, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete Output_viewQueueStatGraph widget
parent
2bf25f11
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
126 deletions
+0
-126
dream/platform/src/dream/Output_viewQueueStatGraph.html
dream/platform/src/dream/Output_viewQueueStatGraph.html
+0
-17
dream/platform/src/dream/Output_viewQueueStatGraph.js
dream/platform/src/dream/Output_viewQueueStatGraph.js
+0
-56
dream/platform/static/dream/Output_viewQueueStatGraph.html
dream/platform/static/dream/Output_viewQueueStatGraph.html
+0
-17
dream/platform/static/dream/Output_viewQueueStatGraph.js
dream/platform/static/dream/Output_viewQueueStatGraph.js
+0
-36
No files found.
dream/platform/src/dream/Output_viewQueueStatGraph.html
deleted
100644 → 0
View file @
2bf25f11
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Queues Statistics
</title>
<script
src=
"../<%= copy.rsvp.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= copy.renderjs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= curl.jqueryflot.relative_dest %>"
></script>
<script
src=
"../<%= curl.jqueryflotstack.relative_dest %>"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"Output_viewQueueStatGraph.js"
type=
"text/javascript"
></script>
</head>
<body>
<div
class=
"graph_container"
style=
"width: 100%;height:300px"
></div>
</body>
</html>
dream/platform/src/dream/Output_viewQueueStatGraph.js
deleted
100644 → 0
View file @
2bf25f11
/*global rJS, jQuery, initGadgetMixin */
/*jslint nomen: true, unparam: true */
(
function
(
window
,
rJS
,
$
,
initGadgetMixin
)
{
"
use strict
"
;
function
queue_stat_widget
(
output_data
)
{
/* FIXME: does not support more than one replic.
* + see george email to integrate without the need of an EG
*/
var
series
=
[];
$
.
each
(
output_data
.
elementList
,
function
(
idx
,
el
)
{
if
(
el
.
family
===
'
Buffer
'
)
{
series
.
push
({
label
:
el
.
name
||
el
.
id
,
data
:
el
.
results
.
wip_stat_list
});
}
});
return
series
;
}
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
.
declareAcquiredMethod
(
"
aq_getAttachment
"
,
"
jio_getAttachment
"
)
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
jio_key
=
options
.
id
,
gadget
=
this
;
gadget
.
props
.
jio_key
=
jio_key
;
gadget
.
props
.
result
=
options
.
result
;
return
gadget
.
aq_getAttachment
({
"
_id
"
:
gadget
.
props
.
jio_key
,
"
_attachment
"
:
"
body.json
"
})
.
push
(
function
(
simulation_json
)
{
gadget
.
props
.
series
=
queue_stat_widget
(
JSON
.
parse
(
simulation_json
)
.
result
.
result_list
[
gadget
.
props
.
result
]
);
});
})
.
declareMethod
(
"
startService
"
,
function
()
{
// XXX Manually calculate width and height when resizing
$
.
plot
(
this
.
props
.
element
.
querySelector
(
"
.graph_container
"
),
this
.
props
.
series
);
});
}(
window
,
rJS
,
jQuery
,
initGadgetMixin
));
dream/platform/static/dream/Output_viewQueueStatGraph.html
deleted
100644 → 0
View file @
2bf25f11
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Queues Statistics
</title>
<script
src=
"../lib/rsvp.min.js"
type=
"text/javascript"
></script>
<script
src=
"../lib/renderjs.min.js"
type=
"text/javascript"
></script>
<script
src=
"../lib/jquery.flot.js"
></script>
<script
src=
"../lib/jquery.flot.stack.js"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"Output_viewQueueStatGraph.js"
type=
"text/javascript"
></script>
</head>
<body>
<div
class=
"graph_container"
style=
"width: 100%;height:300px"
></div>
</body>
</html>
dream/platform/static/dream/Output_viewQueueStatGraph.js
deleted
100644 → 0
View file @
2bf25f11
/*global rJS, jQuery, initGadgetMixin */
/*jslint nomen: true, unparam: true */
(
function
(
window
,
rJS
,
$
,
initGadgetMixin
)
{
"
use strict
"
;
function
queue_stat_widget
(
output_data
)
{
/* FIXME: does not support more than one replic.
* + see george email to integrate without the need of an EG
*/
var
series
=
[];
$
.
each
(
output_data
.
elementList
,
function
(
idx
,
el
)
{
if
(
el
.
family
===
"
Buffer
"
)
{
series
.
push
({
label
:
el
.
name
||
el
.
id
,
data
:
el
.
results
.
wip_stat_list
});
}
});
return
series
;
}
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
gadget_klass
.
declareAcquiredMethod
(
"
aq_getAttachment
"
,
"
jio_getAttachment
"
).
declareMethod
(
"
render
"
,
function
(
options
)
{
var
jio_key
=
options
.
id
,
gadget
=
this
;
gadget
.
props
.
jio_key
=
jio_key
;
gadget
.
props
.
result
=
options
.
result
;
return
gadget
.
aq_getAttachment
({
_id
:
gadget
.
props
.
jio_key
,
_attachment
:
"
body.json
"
}).
push
(
function
(
simulation_json
)
{
gadget
.
props
.
series
=
queue_stat_widget
(
JSON
.
parse
(
simulation_json
).
result
.
result_list
[
gadget
.
props
.
result
]);
});
}).
declareMethod
(
"
startService
"
,
function
()
{
// XXX Manually calculate width and height when resizing
$
.
plot
(
this
.
props
.
element
.
querySelector
(
"
.graph_container
"
),
this
.
props
.
series
);
});
})(
window
,
rJS
,
jQuery
,
initGadgetMixin
);
\ No newline at end of file
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