moving files from pilot to ace where they more properly belong
This commit is contained in:
parent
a48d0e7688
commit
1e24a23ca5
17 changed files with 1176 additions and 44 deletions
39
demo/boot.js
39
demo/boot.js
|
|
@ -35,6 +35,7 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/*
|
||||
require({
|
||||
paths: {
|
||||
demo: "../demo",
|
||||
|
|
@ -44,16 +45,42 @@ require({
|
|||
}
|
||||
});
|
||||
|
||||
var deps = [ "pilot/fixoldbrowsers", "pilot/plugin_manager", "pilot/settings",
|
||||
"pilot/environment", "demo/demo" ];
|
||||
var deps = [ "pilot/fixoldbrowsers", "ace/plugin_manager",
|
||||
"ace/environment", "demo/demo" ];
|
||||
|
||||
var plugins = [ "pilot/index", "cockpit/index", "ace/defaults" ];
|
||||
var plugins = [ "pilot/index", "cockpit/index", "ace/index" ];
|
||||
require(deps, function() {
|
||||
var catalog = require("pilot/plugin_manager").catalog;
|
||||
var catalog = require("ace/plugin_manager").catalog;
|
||||
catalog.registerPlugins(plugins).then(function() {
|
||||
var env = require("pilot/environment").create();
|
||||
var env = require("ace/environment").create();
|
||||
catalog.startupPlugins({ env: env }).then(function() {
|
||||
require("demo/demo").launch(env);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
||||
require({
|
||||
paths: {
|
||||
demo: "../demo",
|
||||
ace: "../lib/ace",
|
||||
cockpit: "../support/cockpit/lib/cockpit",
|
||||
pilot: "../support/cockpit/support/pilot/lib/pilot"
|
||||
}
|
||||
});
|
||||
|
||||
var deps = [
|
||||
"ace/environment", "pilot/index", "cockpit/index", "ace/index",
|
||||
"pilot/fixoldbrowsers"
|
||||
];
|
||||
|
||||
require(deps, function(environment, pilot, cockpit) {
|
||||
var data = { env: environment.create() };
|
||||
pilot.startup(data);
|
||||
cockpit.startup(data);
|
||||
new cockpit.CliView(data.env);
|
||||
|
||||
require([ "demo/demo" ], function(demo) {
|
||||
demo.launch(data.env);
|
||||
});
|
||||
}.bind(this));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue