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
c2fc0402
Commit
c2fc0402
authored
Jun 13, 2014
by
Romain Courteaud
Committed by
Jérome Perrin
Aug 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop duplicated code.
parent
29ea1090
Changes
25
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
97 additions
and
228 deletions
+97
-228
dream/platform/src2/dream/create_document.html
dream/platform/src2/dream/create_document.html
+1
-0
dream/platform/src2/dream/create_document.js
dream/platform/src2/dream/create_document.js
+9
-20
dream/platform/src2/dream/debug_json.html
dream/platform/src2/dream/debug_json.html
+1
-0
dream/platform/src2/dream/debug_json.js
dream/platform/src2/dream/debug_json.js
+4
-19
dream/platform/src2/dream/document_list.html
dream/platform/src2/dream/document_list.html
+1
-0
dream/platform/src2/dream/document_list.js
dream/platform/src2/dream/document_list.js
+4
-19
dream/platform/src2/dream/edit_table.html
dream/platform/src2/dream/edit_table.html
+1
-0
dream/platform/src2/dream/edit_table.js
dream/platform/src2/dream/edit_table.js
+4
-19
dream/platform/src2/dream/exit_stat.html
dream/platform/src2/dream/exit_stat.html
+1
-0
dream/platform/src2/dream/exit_stat.js
dream/platform/src2/dream/exit_stat.js
+6
-19
dream/platform/src2/dream/index.html
dream/platform/src2/dream/index.html
+1
-0
dream/platform/src2/dream/index.js
dream/platform/src2/dream/index.js
+7
-19
dream/platform/src2/dream/job_gantt.html
dream/platform/src2/dream/job_gantt.html
+1
-0
dream/platform/src2/dream/job_gantt.js
dream/platform/src2/dream/job_gantt.js
+6
-19
dream/platform/src2/dream/job_schedule_spreadsheet.html
dream/platform/src2/dream/job_schedule_spreadsheet.html
+1
-0
dream/platform/src2/dream/job_schedule_spreadsheet.js
dream/platform/src2/dream/job_schedule_spreadsheet.js
+4
-18
dream/platform/src2/dream/manage_document.html
dream/platform/src2/dream/manage_document.html
+1
-0
dream/platform/src2/dream/manage_document.js
dream/platform/src2/dream/manage_document.js
+6
-19
dream/platform/src2/dream/mixin_gadget.js
dream/platform/src2/dream/mixin_gadget.js
+23
-0
dream/platform/src2/dream/queue_stat_graph.html
dream/platform/src2/dream/queue_stat_graph.html
+1
-0
dream/platform/src2/dream/queue_stat_graph.js
dream/platform/src2/dream/queue_stat_graph.js
+4
-19
dream/platform/src2/dream/run_simulation.html
dream/platform/src2/dream/run_simulation.html
+1
-0
dream/platform/src2/dream/run_simulation.js
dream/platform/src2/dream/run_simulation.js
+4
-19
dream/platform/src2/dream/station_utilisation_graph.html
dream/platform/src2/dream/station_utilisation_graph.html
+1
-0
dream/platform/src2/dream/station_utilisation_graph.js
dream/platform/src2/dream/station_utilisation_graph.js
+4
-19
No files found.
dream/platform/src2/dream/create_document.html
View file @
c2fc0402
...
...
@@ -6,6 +6,7 @@
<title>
Create Document
</title>
<script
src=
"../<%= copy.rsvp.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= copy.renderjs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_promise.js"
type=
"text/javascript"
></script>
<script
src=
"create_document.js"
type=
"text/javascript"
></script>
</head>
...
...
dream/platform/src2/dream/create_document.js
View file @
c2fc0402
/*global console, rJS, RSVP, promiseEventListener, promiseReadAsText */
(
function
(
window
,
rJS
,
RSVP
,
promiseEventListener
,
promiseReadAsText
)
{
/*global rJS, RSVP, promiseEventListener, promiseReadAsText,
initGadgetMixin */
(
function
(
window
,
rJS
,
RSVP
,
promiseEventListener
,
promiseReadAsText
,
initGadgetMixin
)
{
"
use strict
"
;
rJS
(
window
)
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
...
...
@@ -12,22 +16,6 @@
.
declareAcquiredMethod
(
"
whoWantToDisplayThisDocument
"
,
"
whoWantToDisplayThisDocument
"
)
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
...
...
@@ -83,4 +71,5 @@
});
});
}(
window
,
rJS
,
RSVP
,
promiseEventListener
,
promiseReadAsText
));
}(
window
,
rJS
,
RSVP
,
promiseEventListener
,
promiseReadAsText
,
initGadgetMixin
));
dream/platform/src2/dream/debug_json.html
View file @
c2fc0402
...
...
@@ -6,6 +6,7 @@
<title>
Debug JSON
</title>
<script
src=
"../<%= copy.rsvp.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= copy.renderjs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_document_page.js"
type=
"text/javascript"
></script>
<script
src=
"debug_json.js"
type=
"text/javascript"
></script>
</head>
...
...
dream/platform/src2/dream/debug_json.js
View file @
c2fc0402
/*global console, rJS, RSVP, initDocumentPageMixin */
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
)
{
/*global console, rJS, RSVP, initDocumentPageMixin
, initGadgetMixin
*/
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
initGadgetMixin
)
{
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
initDocumentPageMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
...
...
@@ -56,4 +41,4 @@
});
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
));
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
initGadgetMixin
));
dream/platform/src2/dream/document_list.html
View file @
c2fc0402
...
...
@@ -16,6 +16,7 @@
<
/ul
>
</script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"document_list.js"
type=
"text/javascript"
></script>
</head>
<body>
...
...
dream/platform/src2/dream/document_list.js
View file @
c2fc0402
/*global console, rJS, RSVP, Handlebars */
/*global console, rJS, RSVP, Handlebars
, initGadgetMixin
*/
/*jslint nomen: true */
(
function
(
window
,
rJS
,
RSVP
,
Handlebars
)
{
(
function
(
window
,
rJS
,
RSVP
,
Handlebars
,
initGadgetMixin
)
{
"
use strict
"
;
/////////////////////////////////////////////////////////////////
...
...
@@ -13,24 +13,9 @@
.
innerHTML
,
table_template
=
Handlebars
.
compile
(
source
);
initGadgetMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
...
...
@@ -95,4 +80,4 @@
return
[{
title
:
"
New Document
"
,
link
:
url
}];
});
});
}(
window
,
rJS
,
RSVP
,
Handlebars
));
}(
window
,
rJS
,
RSVP
,
Handlebars
,
initGadgetMixin
));
dream/platform/src2/dream/edit_table.html
View file @
c2fc0402
...
...
@@ -7,6 +7,7 @@
<script
src=
"../<%= copy.rsvp.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= copy.renderjs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_document_page.js"
type=
"text/javascript"
></script>
<script
src=
"edit_table.js"
type=
"text/javascript"
></script>
</head>
...
...
dream/platform/src2/dream/edit_table.js
View file @
c2fc0402
/*global console, rJS, RSVP, initDocumentPageMixin */
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
)
{
/*global console, rJS, RSVP, initDocumentPageMixin
, initGadgetMixin
*/
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
initGadgetMixin
)
{
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
);
initDocumentPageMixin
(
gadget_klass
);
initGadgetMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
...
...
@@ -57,4 +42,4 @@
return
tableeditor
.
startService
();
});
});
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
));
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
initGadgetMixin
));
dream/platform/src2/dream/exit_stat.html
View file @
c2fc0402
...
...
@@ -7,6 +7,7 @@
<script
src=
"../<%= copy.rsvp.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= copy.renderjs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= copy.handlebars.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_document_page.js"
type=
"text/javascript"
></script>
<script
src=
"exit_stat.js"
type=
"text/javascript"
></script>
...
...
dream/platform/src2/dream/exit_stat.js
View file @
c2fc0402
/*global console, rJS, RSVP, initDocumentPageMixin, Handlebars */
/*global console, rJS, RSVP, initDocumentPageMixin, Handlebars,
initGadgetMixin */
/*jslint nomen: true */
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
Handlebars
)
{
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
Handlebars
,
initGadgetMixin
)
{
"
use strict
"
;
/////////////////////////////////////////////////////////////////
...
...
@@ -122,24 +124,9 @@
return
result
;
}
initGadgetMixin
(
gadget_klass
);
initDocumentPageMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
...
...
@@ -165,4 +152,4 @@
gadget
.
props
.
element
.
innerHTML
=
result
;
});
});
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
Handlebars
));
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
Handlebars
,
initGadgetMixin
));
dream/platform/src2/dream/index.html
View file @
c2fc0402
...
...
@@ -13,6 +13,7 @@
<script
src=
"../<%= copy.handlebars.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= curl.jquery.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= curl.jquerymobilejs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"index.js"
type=
"text/javascript"
></script>
<script
id=
"navigation-template"
type=
"text/x-handlebars-template"
>
...
...
dream/platform/src2/dream/index.js
View file @
c2fc0402
/*global console, jQuery, rJS, RSVP, alert, Handlebars */
/*global console, jQuery, rJS, RSVP, alert, Handlebars
, initGadgetMixin
*/
/*jslint nomen: true */
(
function
(
window
,
$
,
rJS
,
RSVP
,
Handlebars
)
{
(
function
(
window
,
$
,
rJS
,
RSVP
,
Handlebars
,
initGadgetMixin
)
{
"
use strict
"
;
/////////////////////////////////////////////////////////////////
...
...
@@ -11,9 +11,10 @@
$
.
mobile
.
hashListeningEnabled
=
false
;
$
.
mobile
.
pushStateEnabled
=
false
;
var
navigation_template
;
rJS
(
window
)
var
navigation_template
,
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
...
...
@@ -94,19 +95,6 @@
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
// Create some link on the page
.
ready
(
function
(
g
)
{
return
g
.
aq_pleasePublishMyState
({})
...
...
@@ -215,4 +203,4 @@
}
});
});
}(
window
,
jQuery
,
rJS
,
RSVP
,
Handlebars
));
}(
window
,
jQuery
,
rJS
,
RSVP
,
Handlebars
,
initGadgetMixin
));
dream/platform/src2/dream/job_gantt.html
View file @
c2fc0402
...
...
@@ -10,6 +10,7 @@
<script
src=
"../<%= copy.renderjs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= curl.jquery.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= copy.dhtmlxganttjs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_document_page.js"
type=
"text/javascript"
></script>
<script
src=
"job_gantt.js"
type=
"text/javascript"
></script>
</head>
...
...
dream/platform/src2/dream/job_gantt.js
View file @
c2fc0402
/*global console, rJS, RSVP, initDocumentPageMixin, jQuery, gantt */
/*global console, rJS, RSVP, initDocumentPageMixin, jQuery, gantt,
initGadgetMixin */
/*jslint nomen: true */
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
$
,
gantt
)
{
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
$
,
gantt
,
initGadgetMixin
)
{
"
use strict
"
;
gantt
.
templates
.
task_class
=
function
(
start
,
end
,
obj
)
{
...
...
@@ -200,24 +202,9 @@
}
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
initDocumentPageMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
...
...
@@ -271,4 +258,4 @@
throw
error
;
});
});
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
jQuery
,
gantt
));
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
jQuery
,
gantt
,
initGadgetMixin
));
dream/platform/src2/dream/job_schedule_spreadsheet.html
View file @
c2fc0402
...
...
@@ -8,6 +8,7 @@
<script
src=
"../<%= copy.renderjs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= curl.momentjs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_document_page.js"
type=
"text/javascript"
></script>
<script
src=
"job_schedule_spreadsheet.js"
type=
"text/javascript"
></script>
</head>
...
...
dream/platform/src2/dream/job_schedule_spreadsheet.js
View file @
c2fc0402
/*global console, rJS, RSVP, initDocumentPageMixin, moment */
/*global console, rJS, RSVP, initDocumentPageMixin, moment
, initGadgetMixin
*/
/*jslint nomen: true */
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
moment
)
{
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
moment
,
initGadgetMixin
)
{
"
use strict
"
;
function
job_schedule_spreadsheet_widget
(
all_data
)
{
...
...
@@ -149,23 +149,9 @@
}
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
initDocumentPageMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
/////////////////////////////////////////////////////////////////
// Acquired methods
...
...
@@ -220,4 +206,4 @@
return
tableeditor
.
startService
();
});
});
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
moment
));
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
moment
,
initGadgetMixin
));
dream/platform/src2/dream/manage_document.html
View file @
c2fc0402
...
...
@@ -9,6 +9,7 @@
<script
src=
"../<%= curl.jquery.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= curl.jquerymobilejs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_promise.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_document_page.js"
type=
"text/javascript"
></script>
<script
src=
"manage_document.js"
type=
"text/javascript"
></script>
...
...
dream/platform/src2/dream/manage_document.js
View file @
c2fc0402
/*global console, rJS, RSVP, initDocumentPageMixin, jQuery,
promiseEventListener */
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
$
,
promiseEventListener
)
{
promiseEventListener, initGadgetMixin */
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
$
,
promiseEventListener
,
initGadgetMixin
)
{
"
use strict
"
;
function
datatouri
(
data
,
mime_type
)
{
...
...
@@ -102,24 +103,9 @@
}
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
initDocumentPageMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
...
...
@@ -167,4 +153,5 @@
waitForKnowledgeExtraction
(
this
)
]);
});
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
jQuery
,
promiseEventListener
));
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
jQuery
,
promiseEventListener
,
initGadgetMixin
));
dream/platform/src2/dream/mixin_gadget.js
0 → 100644
View file @
c2fc0402
(
function
(
window
)
{
"
use strict
"
;
window
.
initGadgetMixin
=
function
(
gadget_klass
)
{
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
});
};
}(
window
));
dream/platform/src2/dream/queue_stat_graph.html
View file @
c2fc0402
...
...
@@ -8,6 +8,7 @@
<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=
"mixin_document_page.js"
type=
"text/javascript"
></script>
<script
src=
"queue_stat_graph.js"
type=
"text/javascript"
></script>
</head>
...
...
dream/platform/src2/dream/queue_stat_graph.js
View file @
c2fc0402
/*global console, rJS, RSVP, initDocumentPageMixin, jQuery */
/*global console, rJS, RSVP, initDocumentPageMixin, jQuery
, initGadgetMixin
*/
/*jslint nomen: true */
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
$
)
{
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
$
,
initGadgetMixin
)
{
"
use strict
"
;
function
queue_stat_widget
(
output_data
)
{
...
...
@@ -18,24 +18,9 @@
}
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
initDocumentPageMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
...
...
@@ -68,4 +53,4 @@
this
.
props
.
series
);
});
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
jQuery
));
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
jQuery
,
initGadgetMixin
));
dream/platform/src2/dream/run_simulation.html
View file @
c2fc0402
...
...
@@ -14,6 +14,7 @@
<
label
>
{{
label
}}
<
/label
>
</script>
<script
src=
"mixin_gadget.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_promise.js"
type=
"text/javascript"
></script>
<script
src=
"mixin_document_page.js"
type=
"text/javascript"
></script>
<script
src=
"run_simulation.js"
type=
"text/javascript"
></script>
...
...
dream/platform/src2/dream/run_simulation.js
View file @
c2fc0402
/*global rJS, RSVP, initDocumentPageMixin, jQuery, Handlebars,
promiseEventListener */
promiseEventListener
, initGadgetMixin
*/
/*jslint nomen: true */
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
$
,
Handlebars
,
promiseEventListener
)
{
promiseEventListener
,
initGadgetMixin
)
{
"
use strict
"
;
/////////////////////////////////////////////////////////////////
...
...
@@ -15,24 +15,9 @@
.
innerHTML
,
label_template
=
Handlebars
.
compile
(
source
);
initGadgetMixin
(
gadget_klass
);
initDocumentPageMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
...
...
@@ -167,4 +152,4 @@
});
});
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
jQuery
,
Handlebars
,
promiseEventListener
));
promiseEventListener
,
initGadgetMixin
));
dream/platform/src2/dream/station_utilisation_graph.html
View file @
c2fc0402
...
...
@@ -9,6 +9,7 @@
<script
src=
"../<%= curl.jquery.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=
"mixin_document_page.js"
type=
"text/javascript"
></script>
<script
src=
"station_utilisation_graph.js"
type=
"text/javascript"
></script>
</head>
...
...
dream/platform/src2/dream/station_utilisation_graph.js
View file @
c2fc0402
/*global console, rJS, RSVP, initDocumentPageMixin, jQuery */
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
$
)
{
/*global console, rJS, RSVP, initDocumentPageMixin, jQuery
, initGadgetMixin
*/
(
function
(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
$
,
initGadgetMixin
)
{
"
use strict
"
;
function
station_utilisation_graph_widget
(
output_data
)
{
...
...
@@ -123,24 +123,9 @@
}
var
gadget_klass
=
rJS
(
window
);
initGadgetMixin
(
gadget_klass
);
initDocumentPageMixin
(
gadget_klass
);
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
// Assign the element to a variable
.
ready
(
function
(
g
)
{
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
...
...
@@ -174,4 +159,4 @@
this
.
props
.
result_list
[
1
]
);
});
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
jQuery
));
}(
window
,
rJS
,
RSVP
,
initDocumentPageMixin
,
jQuery
,
initGadgetMixin
));
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