Commit d494c6b4 authored by Romain Courteaud's avatar Romain Courteaud Committed by Jérome Perrin

Publish static version.

parent c48010a9
/*global console, rJS, RSVP, Handlebars, initGadgetMixin */ /*global rJS, RSVP, Handlebars, initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true */
(function(window, rJS, RSVP, Handlebars, initGadgetMixin) { (function(window, rJS, RSVP, Handlebars, initGadgetMixin) {
"use strict"; "use strict";
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// Precompile the templates while loading the first gadget instance // Precompile the templates while loading the first gadget instance
var gadget_klass = rJS(window), source = gadget_klass.__template_element.getElementById("table-template").innerHTML, table_template = Handlebars.compile(source); var gadget_klass = rJS(window), source = gadget_klass.__template_element.getElementById("table-template").innerHTML, table_template = Handlebars.compile(source);
initGadgetMixin(gadget_klass); initGadgetMixin(gadget_klass);
gadget_klass.declareAcquiredMethod("aq_allDocs", "allDocs").declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash").declareAcquiredMethod("whoWantToDisplayThisDocument", "whoWantToDisplayThisDocument").declareMethod("render", function(options) { gadget_klass.declareAcquiredMethod("aq_allDocs", "allDocs").declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash").declareAcquiredMethod("whoWantToDisplayThisDocument", "whoWantToDisplayThisDocument").declareMethod("render", function() {
var gadget = this; var gadget = this;
return gadget.aq_allDocs({ return gadget.aq_allDocs({
select_list: [ "title", "modified" ] select_list: [ "title", "modified" ]
......
/*global console, rJS, RSVP, jQuery, /*global rJS, RSVP, jQuery,
promiseEventListener, initGadgetMixin */ promiseEventListener, initGadgetMixin */
(function(window, rJS, RSVP, $, promiseEventListener, initGadgetMixin) { (function(window, rJS, RSVP, $, promiseEventListener, initGadgetMixin) {
"use strict"; "use strict";
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
return gadget.aq_remove({ return gadget.aq_remove({
_id: gadget.props.jio_key _id: gadget.props.jio_key
}); });
}).push(function(result) { }).push(function() {
return gadget.whoWantToDisplayHome(); return gadget.whoWantToDisplayHome();
}).push(function(url) { }).push(function(url) {
return gadget.pleaseRedirectMyHash(url); return gadget.pleaseRedirectMyHash(url);
......
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
<script src="Input_viewProductionLine.js" type="text/javascript"></script> <script src="Input_viewProductionLine.js" type="text/javascript"></script>
</head> </head>
<body> <body>
<div data-gadget-url="../toolbox/index.html"
data-gadget-scope="productionline_toolbox"></div>
<div data-gadget-url="../jsplumb/index.html" <div data-gadget-url="../jsplumb/index.html"
data-gadget-scope="productionline"></div> data-gadget-scope="productionline_graph"></div>
</body> </body>
</html> </html>
...@@ -16,13 +16,18 @@ ...@@ -16,13 +16,18 @@
return RSVP.all([ gadget.aq_getAttachment({ return RSVP.all([ gadget.aq_getAttachment({
_id: jio_key, _id: jio_key,
_attachment: "body.json" _attachment: "body.json"
}), gadget.getDeclaredGadget("productionline") ]); }), gadget.getDeclaredGadget("productionline_graph") ]);
}).push(function(result_list) { }).push(function(result_list) {
return result_list[1].render(result_list[0]); return result_list[1].render(result_list[0]);
}); });
}).declareMethod("startService", function() { }).declareMethod("startService", function() {
return this.getDeclaredGadget("productionline").push(function(productionline) { var g = this;
return productionline.startService(); return g.getDeclaredGadget("productionline_graph").push(function(graph) {
return graph.startService();
}).push(function() {
return g.getDeclaredGadget("productionline_toolbox");
}).push(function(toolbox) {
return toolbox.startService();
}); });
}); });
})(window, rJS, RSVP); })(window, rJS, RSVP);
\ No newline at end of file
/*global console, rJS, RSVP, Handlebars, initGadgetMixin */ /*global rJS, RSVP, Handlebars, initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true */
(function(window, rJS, RSVP, Handlebars, initGadgetMixin) { (function(window, rJS, RSVP, Handlebars, initGadgetMixin) {
"use strict"; "use strict";
......
/*global console, rJS, RSVP, initGadgetMixin */ /*global rJS, RSVP, initGadgetMixin */
(function(window, rJS, RSVP, initGadgetMixin) { (function(window, rJS, RSVP, initGadgetMixin) {
"use strict"; "use strict";
var gadget_klass = rJS(window); var gadget_klass = rJS(window);
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
_data: JSON.stringify(json_data.data, null, 2), _data: JSON.stringify(json_data.data, null, 2),
_mimetype: "application/json" _mimetype: "application/json"
}); });
}).push(function(result) { }).push(function() {
return gadget.whoWantToDisplayThisDocument(gadget.props.jio_key, "view_result"); return gadget.whoWantToDisplayThisDocument(gadget.props.jio_key, "view_result");
}).push(function(url) { }).push(function(url) {
return gadget.pleaseRedirectMyHash(url); return gadget.pleaseRedirectMyHash(url);
......
/*global console, rJS, RSVP, initGadgetMixin */ /*global rJS, RSVP, initGadgetMixin */
(function(window, rJS, RSVP, initGadgetMixin) { (function(window, rJS, RSVP, initGadgetMixin) {
"use strict"; "use strict";
var gadget_klass = rJS(window); var gadget_klass = rJS(window);
......
/*global console, rJS, RSVP, initGadgetMixin */ /*global rJS, initGadgetMixin */
(function(window, rJS, RSVP, initGadgetMixin) { (function(window, rJS, initGadgetMixin) {
"use strict"; "use strict";
var gadget_klass = rJS(window); var gadget_klass = rJS(window);
initGadgetMixin(gadget_klass); initGadgetMixin(gadget_klass);
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
gadget.props.element.querySelector(".json_output").textContent = JSON.stringify(result[gadget.props.result].result); gadget.props.element.querySelector(".json_output").textContent = JSON.stringify(result[gadget.props.result].result);
}); });
}); });
})(window, rJS, RSVP, initGadgetMixin); })(window, rJS, initGadgetMixin);
\ No newline at end of file \ No newline at end of file
/*global console, rJS, RSVP, Handlebars, /*global rJS, Handlebars,
initGadgetMixin */ initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true */
(function(window, rJS, RSVP, Handlebars, initGadgetMixin) { (function(window, rJS, Handlebars, initGadgetMixin) {
"use strict"; "use strict";
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// Handlebars // Handlebars
...@@ -97,4 +97,4 @@ ...@@ -97,4 +97,4 @@
gadget.props.element.innerHTML = result; gadget.props.element.innerHTML = result;
}); });
}); });
})(window, rJS, RSVP, Handlebars, initGadgetMixin); })(window, rJS, Handlebars, initGadgetMixin);
\ No newline at end of file \ No newline at end of file
/*global console, rJS, RSVP, jQuery, gantt, /*global rJS, RSVP, jQuery, gantt,
initGadgetMixin */ initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true, unparam: true */
(function(window, rJS, RSVP, $, gantt, initGadgetMixin) { (function(window, rJS, RSVP, $, gantt, initGadgetMixin) {
"use strict"; "use strict";
gantt.templates.task_class = function(start, end, obj) { gantt.templates.task_class = function(start, end, obj) {
......
/*global console, rJS, RSVP, moment, initGadgetMixin */ /*global rJS, RSVP, moment, initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true */
(function(window, rJS, RSVP, moment, initGadgetMixin) { (function(window, rJS, RSVP, moment, initGadgetMixin) {
"use strict"; "use strict";
......
/*global console, rJS, RSVP, jQuery, initGadgetMixin */ /*global rJS, jQuery, initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true, unparam: true */
(function(window, rJS, RSVP, $, initGadgetMixin) { (function(window, rJS, $, initGadgetMixin) {
"use strict"; "use strict";
function queue_stat_widget(output_data) { function queue_stat_widget(output_data) {
/* FIXME: does not support more than one replic. /* FIXME: does not support more than one replic.
...@@ -33,4 +33,4 @@ ...@@ -33,4 +33,4 @@
// XXX Manually calculate width and height when resizing // XXX Manually calculate width and height when resizing
$.plot(this.props.element.querySelector(".graph_container"), this.props.series); $.plot(this.props.element.querySelector(".graph_container"), this.props.series);
}); });
})(window, rJS, RSVP, jQuery, initGadgetMixin); })(window, rJS, jQuery, initGadgetMixin);
\ No newline at end of file \ No newline at end of file
/*global console, rJS, RSVP, jQuery, initGadgetMixin */ /*global rJS, jQuery, initGadgetMixin */
(function(window, rJS, RSVP, $, initGadgetMixin) { /*jslint unparam: true */
(function(window, rJS, $, initGadgetMixin) {
"use strict"; "use strict";
function station_utilisation_graph_widget(output_data) { function station_utilisation_graph_widget(output_data) {
var blockage_data = [], waiting_data = [], failure_data = [], working_data = [], ticks = [], counter = 1, series, options; var blockage_data = [], waiting_data = [], failure_data = [], working_data = [], ticks = [], counter = 1, series, options;
...@@ -111,4 +112,4 @@ ...@@ -111,4 +112,4 @@
// XXX Manually calculate width and height when resizing // XXX Manually calculate width and height when resizing
$.plot(this.props.element.querySelector(".graph_container"), this.props.result_list[0], this.props.result_list[1]); $.plot(this.props.element.querySelector(".graph_container"), this.props.result_list[0], this.props.result_list[1]);
}); });
})(window, rJS, RSVP, jQuery, initGadgetMixin); })(window, rJS, jQuery, initGadgetMixin);
\ No newline at end of file \ No newline at end of file
@media (min-width:35em){.jqm-navmenu-panel.ui-panel-closed{visibility:visible!important;width:17em;-webkit-transition:none!important;-moz-transition:none!important;transition:none!important;-webkit-transform:none!important;-moz-transform:none!important;transform:none!important;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;height:100%;position:absolute;display:block}.ui-panel-page-content-open{width:auto}.ui-panel-page-content-open.ui-panel-page-content-position-left{margin-right:17em}.ui-panel-dismiss,.menu_link{display:none!important}.gadget_container,header,nav{margin-left:17em}.close-entry{display:none!important}.gadget_container{padding:1em}}[data-gadget-scope=productionline] #main{position:relative;margin:20px auto;font-size:80%;border:1px solid #999;width:100%;height:600px;overflow:hidden;border-radius:10px;background-color:#eaedef;text-align:center}[data-gadget-scope=productionline] .selected{color:#bd0b0b!important}[data-gadget-scope=productionline] .window,[data-gadget-scope=productionline] .label{background-color:#fff;text-align:center;z-index:23;cursor:pointer;box-shadow:2px 2px 19px #aaa;-o-box-shadow:2px 2px 19px #aaa;-webkit-box-shadow:2px 2px 19px #aaa;-moz-box-shadow:2px 2px 19px #aaa}[data-gadget-scope=productionline] path,[data-gadget-scope=productionline] ._jsPlumb_endpoint{cursor:pointer}[data-gadget-scope=productionline] ._jsPlumb_endpoint_drop_allowed{border:4px solid #123456;box-shadow:6px 6px 19px #444;-o-box-shadow:6px 6px 19px #444;-webkit-box-shadow:6px 6px 19px #444;-moz-box-shadow:6px 6px 19px #444}[data-gadget-scope=productionline] ._jsPlumb_connector{z-index:18}[data-gadget-scope=productionline] ._jsPlumb_endpoint{z-index:19}[data-gadget-scope=productionline] ._jsPlumb_overlay{z-index:23}[data-gadget-scope=productionline] ._jsPlumb_connector._jsPlumb_hover{z-index:21!important}[data-gadget-scope=productionline] ._jsPlumb_endpoint._jsPlumb_hover{z-index:22!important}[data-gadget-scope=productionline] ._jsPlumb_overlay{border:1px solid #346789;opacity:.8;filter:alpha(opacity=80);background-color:#fff;color:#000;font-family:helvetica;padding:.5em}[data-gadget-scope=productionline] .Dream-Source,[data-gadget-scope=productionline] .Dream-BatchSource{border:1px solid #bbc;background-color:#ffe;background-image:linear-gradient(to bottom,#ffe 0,#dde 100%)}[data-gadget-scope=productionline] .Dream-Machine,[data-gadget-scope=productionline] .Dream-MachineJobShop,[data-gadget-scope=productionline] .Dream-BatchScrapMachine,[data-gadget-scope=productionline] .Dream-MachineManagedJob,[data-gadget-scope=productionline] .Dream-MouldAssembly{border:1px solid #cbc;background-color:#fef;background-image:linear-gradient(to bottom,#fef 0,#ede 100%)}[data-gadget-scope=productionline] .Dream-Queue,[data-gadget-scope=productionline] .Dream-QueueJobShop,[data-gadget-scope=productionline] .Dream-LineClearance,[data-gadget-scope=productionline] .Dream-QueueManagedJob,[data-gadget-scope=productionline] .Dream-ConditionalBuffer,[data-gadget-scope=productionline] .Dream-OrderDecomposition,[data-gadget-scope=productionline] .Dream-MouldAssemblyBuffer{border:1px solid #bcc;background-color:#eff;background-image:linear-gradient(to bottom,#eff 0,#dee 100%)}[data-gadget-scope=productionline] .Dream-Exit,[data-gadget-scope=productionline] .Dream-ExitJobShop{border:1px solid #ccb;background-color:#eef;background-image:linear-gradient(to bottom,#eef 0,#dde 100%)}[data-gadget-scope=productionline] .Dream-EventGenerator{border:1px solid #cba;background-color:#fdc;background-image:linear-gradient(to bottom,#fdc 0,#ecb 100%)}[data-gadget-scope=productionline] .Dream-BatchDecomposition,[data-gadget-scope=productionline] .Dream-BatchDecompositionStartTime,[data-gadget-scope=productionline] .Dream-BatchReassembly{border:1px solid #bcb;background-color:#dfd;background-image:linear-gradient(to bottom,#dfd 0,#cec 100%)}[data-gadget-scope=productionline] .Dream-Repairman{border:1px solid #cbb;background-color:#fdd;background-image:linear-gradient(to bottom,#fdd 0,#dcc 100%)}[data-gadget-scope=productionline] .window,[data-gadget-scope=productionline] .dummy_window{border:1px solid #d3d3d3;width:100px;height:64px;position:absolute;color:#000;font-family:serif;font-style:italic;padding-top:.9em;font-size:.9em;cursor:move;font-size:11px;-webkit-transition:background-color .1s ease-in;-moz-transition:background-color .1s ease-in;transition:background-color .1s ease-in;border-radius:5px}[data-gadget-scope=productionline] .window:hover{background-color:#5c96bc;background-image:none;color:#fff}[data-gadget-scope=productionline] .dummy_window{position:absolute;top:0;left:0;visibility:hidden}[data-gadget-scope=productionline] .ep{position:absolute;bottom:37%;right:5px;width:1em;height:1em;background-color:orange;cursor:pointer;box-shadow:0 0 2px #000;-webkit-transition:-webkit-box-shadow .25s ease-in;-moz-transition:-moz-box-shadow .25s ease-in;transition:box-shadow .25s ease-in}[data-gadget-scope=productionline] ._jsPlumb_source_hover,[data-gadget-scope=productionline] ._jsPlumb_target_hover,[data-gadget-scope=productionline] .dragHover{background-color:#1e8151;background-image:none;color:#fff}[data-gadget-scope=productionline] path{cursor:pointer} @media (min-width:35em){.jqm-navmenu-panel.ui-panel-closed{visibility:visible!important;width:17em;-webkit-transition:none!important;-moz-transition:none!important;transition:none!important;-webkit-transform:none!important;-moz-transform:none!important;transform:none!important;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;height:100%;position:absolute;display:block}.ui-panel-page-content-open{width:auto}.ui-panel-page-content-open.ui-panel-page-content-position-left{margin-right:17em}.ui-panel-dismiss,.menu_link{display:none!important}.gadget_container,header,nav{margin-left:17em}.close-entry{display:none!important}.gadget_container{padding:1em}}[data-gadget-scope=productionline_toolbox]{position:relative;width:19.5%;float:left}[data-gadget-scope=productionline_graph]{position:relative;width:79.5%;float:right}
\ No newline at end of file \ No newline at end of file
/*global console, jQuery, rJS, RSVP, alert, Handlebars, initGadgetMixin */ /*global jQuery, rJS, RSVP, alert, Handlebars, initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true */
(function(window, $, rJS, RSVP, Handlebars, initGadgetMixin) { (function(window, $, rJS, RSVP, Handlebars, initGadgetMixin) {
"use strict"; "use strict";
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
return this.getDeclaredGadget("jio").push(function(jio_gadget) { return this.getDeclaredGadget("jio").push(function(jio_gadget) {
return jio_gadget.getAttachment.apply(jio_gadget, param_list); return jio_gadget.getAttachment.apply(jio_gadget, param_list);
}); });
}).allowPublicAcquisition("whoWantToDisplayHome", function(param_list) { }).allowPublicAcquisition("whoWantToDisplayHome", function() {
// Hey, I want to display some URL // Hey, I want to display some URL
return this.aq_pleasePublishMyState({}); return this.aq_pleasePublishMyState({});
}).allowPublicAcquisition("whoWantToDisplayThisDocument", function(param_list) { }).allowPublicAcquisition("whoWantToDisplayThisDocument", function(param_list) {
...@@ -267,9 +267,9 @@ ...@@ -267,9 +267,9 @@
id: param_list[0], id: param_list[0],
result: param_list[1] result: param_list[1]
}); });
}).allowPublicAcquisition("getConfigurationDict", function(param_list) { }).allowPublicAcquisition("getConfigurationDict", function() {
return this.props.configuration_dict; return this.props.configuration_dict;
}).ready(function(g) { }).ready(function() {
if (panel_template === undefined) { if (panel_template === undefined) {
// XXX Only works as root gadget // XXX Only works as root gadget
panel_template = Handlebars.compile(document.getElementById("panel-template").innerHTML); panel_template = Handlebars.compile(document.getElementById("panel-template").innerHTML);
......
/*global console, RSVP, FileReader */ /*global RSVP, FileReader */
(function(window, RSVP, FileReader) { (function(window, RSVP, FileReader) {
"use strict"; "use strict";
window.promiseEventListener = function(target, type, useCapture) { window.promiseEventListener = function(target, type, useCapture) {
......
/*global asyncTest, rJS, JSON, QUnit, jQuery*/ /*global rJS, JSON, QUnit, jQuery*/
(function(asyncTest, rJS, JSON, QUnit, $) { (function(rJS, JSON, QUnit, $) {
"use strict"; "use strict";
var start = QUnit.start, stop = QUnit.stop, test = QUnit.test, equal = QUnit.equal, sample = JSON.stringify([ [ "row1", "data11", "data12", "data13" ], [ "row2", "data21", "data22", "data23" ], [ "row3", "data31", "data32", "data33" ] ]); var start = QUnit.start, stop = QUnit.stop, test = QUnit.test, equal = QUnit.equal, sample = JSON.stringify([ [ "row1", "data11", "data12", "data13" ], [ "row2", "data21", "data22", "data23" ], [ "row3", "data31", "data32", "data33" ] ]);
QUnit.config.testTimeout = 5e3; QUnit.config.testTimeout = 5e3;
...@@ -34,4 +34,4 @@ ...@@ -34,4 +34,4 @@
}).always(start); }).always(start);
}); });
}); });
})(asyncTest, rJS, JSON, QUnit, jQuery); })(rJS, JSON, QUnit, jQuery);
\ No newline at end of file \ No newline at end of file
/*global rJS, jIO, console */ /*global rJS, jIO */
(function(rJS, jIO) { (function(rJS, jIO) {
"use strict"; "use strict";
rJS(window).ready(function(gadget) { rJS(window).ready(function(gadget) {
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
* along with DREAM. If not, see <http://www.gnu.org/licenses/>. * along with DREAM. If not, see <http://www.gnu.org/licenses/>.
* ==========================================================================*/ * ==========================================================================*/
/*global RSVP, rJS, $, jsPlumb, Handlebars*/ /*global RSVP, rJS, $, jsPlumb, Handlebars*/
/*jslint unparam: true */
(function(RSVP, rJS, $, jsPlumb, Handlebars) { (function(RSVP, rJS, $, jsPlumb, Handlebars) {
"use strict"; "use strict";
/*jslint nomen: true*/ /*jslint nomen: true*/
......
/*global window, rJS, console, RSVP, Handlebars */ /*global window, rJS, Handlebars */
/*jslint nomen: true */ /*jslint nomen: true */
(function(window, rJS, console, RSVP, Handlebars) { (function(window, rJS, Handlebars) {
"use strict"; "use strict";
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// Handlebars // Handlebars
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,4 @@
} }
select.innerHTML += tmp; select.innerHTML += tmp;
}); });
})(window, rJS, console, RSVP, Handlebars); })(window, rJS, Handlebars);
\ No newline at end of file \ No newline at end of file
/*global window, rJS, RSVP */ /*global window, rJS */
(function(window, rJS, RSVP) { (function(window, rJS) {
"use strict"; "use strict";
rJS(window).ready(function(gadget) { rJS(window).ready(function(gadget) {
return gadget.getElement().push(function(element) { return gadget.getElement().push(function(element) {
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
result[input.getAttribute("name")] = input.value; result[input.getAttribute("name")] = input.value;
return result; return result;
}); });
})(window, rJS, RSVP); })(window, rJS);
\ No newline at end of file \ No newline at end of file
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../lib/jquery-ui.css">
<link rel="stylesheet" href="toolbox.css">
<script src="../lib/jquery.js"></script>
<script src="../lib/jquery-ui.js"></script>
<script src="../lib/rsvp.min.js"></script>
<script src="../lib/renderjs.min.js"></script>
<script src="toolbox.js"></script>
</head>
<body>
<div id="tools">
<div id="tools-container"></div>
</div>
</body>
</html>
#tools{border:1px solid #999;margin:20px 0;border-radius:10px;padding-bottom:20px}#tools-container{margin-bottom:4px}#tools .ui-button{margin:4px 0}.tool{border:1px solid #d3d3d3;box-shadow:1px 1px 2px #aaa;min-width:7em;height:3em;z-index:10001;color:gray;font-family:serif;font-style:italic;font-size:.9em;margin:.8em;display:inline-block;border-radius:5px;text-align:center;padding-top:1.3em}.Dream-Source,.Dream-BatchSource{border:1px solid #bbc;background-color:#ffe;background-image:linear-gradient(to bottom,#ffe 0,#dde 100%)}.Dream-Machine,.Dream-MachineJobShop,.Dream-BatchScrapMachine,.Dream-MachineManagedJob,.Dream-MouldAssembly{border:1px solid #cbc;background-color:#fef;background-image:linear-gradient(to bottom,#fef 0,#ede 100%)}.Dream-Queue,.Dream-QueueJobShop,.Dream-LineClearance,.Dream-QueueManagedJob,.Dream-ConditionalBuffer,.Dream-OrderDecomposition,.Dream-MouldAssemblyBuffer{border:1px solid #bcc;background-color:#eff;background-image:linear-gradient(to bottom,#eff 0,#dee 100%)}.Dream-Exit,.Dream-ExitJobShop{border:1px solid #ccb;background-color:#eef;background-image:linear-gradient(to bottom,#eef 0,#dde 100%)}.Dream-EventGenerator{border:1px solid #cba;background-color:#fdc;background-image:linear-gradient(to bottom,#fdc 0,#ecb 100%)}.Dream-BatchDecomposition,.Dream-BatchDecompositionStartTime,.Dream-BatchReassembly{border:1px solid #bcb;background-color:#dfd;background-image:linear-gradient(to bottom,#dfd 0,#cec 100%)}.Dream-Repairman{border:1px solid #cbb;background-color:#fdd;background-image:linear-gradient(to bottom,#fdd 0,#dcc 100%)}
\ No newline at end of file
/*global window, RSVP, $, rJS*/
(function(window, RSVP, $, rJS) {
"use strict";
rJS(window).declareAcquiredMethod("getConfigurationDict", "getConfigurationDict").declareMethod("startService", function() {
var g = this;
return RSVP.all([ g.getElement(), g.getConfigurationDict() ]).then(function(result) {
var render_element = $(result[0]).find("#tools-container");
$.each(result[1], function(key, val) {
var name = val.name || key.split("-")[1];
if (key !== "Dream-Configuration") {
render_element.append('<div id="' + key + '" class="tool ' + key + '">' + name + "<ul/></div>");
}
});
});
});
})(window, RSVP, $, rJS);
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment