kopia lustrzana https://github.com/c9/core
rename hub to app
rodzic
2e26855080
commit
1ef011719c
|
@ -99,7 +99,7 @@ describe("client config consistency", function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var provides = {"auth.bootstrap": 1, "hub": 1};
|
var provides = { "auth.bootstrap": 1, "hub": 1, "app": 1 };
|
||||||
var paths = {};
|
var paths = {};
|
||||||
clientPlugins.forEach(function(p) {
|
clientPlugins.forEach(function(p) {
|
||||||
if (paths[p.packagePath]) {
|
if (paths[p.packagePath]) {
|
||||||
|
|
|
@ -179,7 +179,8 @@ function checkCycles(config, lookup) {
|
||||||
});
|
});
|
||||||
|
|
||||||
var resolved = {
|
var resolved = {
|
||||||
hub: true
|
hub: true,
|
||||||
|
app: true
|
||||||
};
|
};
|
||||||
var changed = true;
|
var changed = true;
|
||||||
var sorted = [];
|
var sorted = [];
|
||||||
|
@ -253,12 +254,8 @@ function Architect(config) {
|
||||||
|
|
||||||
var isAdditionalMode;
|
var isAdditionalMode;
|
||||||
var services = app.services = {
|
var services = app.services = {
|
||||||
hub: {
|
hub: app,
|
||||||
on: function (name, callback) {
|
|
||||||
app.on(name, callback);
|
|
||||||
},
|
|
||||||
app: app
|
app: app
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Check the config
|
// Check the config
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
define(function(require, exports, module) {
|
define(function(require, exports, module) {
|
||||||
main.consumes = ["hub"];
|
main.consumes = ["app"];
|
||||||
main.provides = ["ext", "Plugin"];
|
main.provides = ["ext", "Plugin"];
|
||||||
return main;
|
return main;
|
||||||
|
|
||||||
function main(options, imports, register) {
|
function main(options, imports, register) {
|
||||||
var Emitter = require("events").EventEmitter;
|
var Emitter = require("events").EventEmitter;
|
||||||
var architectApp = imports.hub.app;
|
var architectApp = imports.app;
|
||||||
|
|
||||||
|
|
||||||
var plugins = [];
|
var plugins = [];
|
||||||
|
|
|
@ -3,7 +3,7 @@ define(function(require, exports, module) {
|
||||||
"Plugin", "dialog.error", "ui", "settings", "tabManager", "save",
|
"Plugin", "dialog.error", "ui", "settings", "tabManager", "save",
|
||||||
"menus", "preferences.keybindings", "preferences.general",
|
"menus", "preferences.keybindings", "preferences.general",
|
||||||
"preferences.project", "c9", "commands", "watcher", "fs",
|
"preferences.project", "c9", "commands", "watcher", "fs",
|
||||||
"tree.favorites", "util", "hub"
|
"tree.favorites", "util", "app"
|
||||||
];
|
];
|
||||||
main.provides = ["configure"];
|
main.provides = ["configure"];
|
||||||
return main;
|
return main;
|
||||||
|
@ -22,7 +22,7 @@ define(function(require, exports, module) {
|
||||||
var kbprefs = imports["preferences.keybindings"];
|
var kbprefs = imports["preferences.keybindings"];
|
||||||
var genprefs = imports["preferences.general"];
|
var genprefs = imports["preferences.general"];
|
||||||
var prjprefs = imports["preferences.project"];
|
var prjprefs = imports["preferences.project"];
|
||||||
var services = imports.hub.app.services;
|
var services = imports.app.services;
|
||||||
var showError = imports["dialog.error"].show;
|
var showError = imports["dialog.error"].show;
|
||||||
var favs = imports["tree.favorites"];
|
var favs = imports["tree.favorites"];
|
||||||
var util = imports.util;
|
var util = imports.util;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
define(function(require, exports, module) {
|
define(function(require, exports, module) {
|
||||||
main.consumes = [
|
main.consumes = [
|
||||||
"PreferencePanel", "settings", "ui", "util", "ext", "c9", "Plugin",
|
"app", "ext", "c9", "PreferencePanel", "settings", "ui", "util",
|
||||||
"layout", "proc", "menus", "commands", "pluginManager",
|
"layout", "menus", "commands", "pluginManager",
|
||||||
"dialog.error", "dialog.info", "tree.favorites", "fs", "tree", "vfs",
|
"dialog.error", "dialog.info", "tree.favorites", "fs", "tree", "vfs",
|
||||||
"preferences.experimental", "apf", "hub", "dialog.notification"
|
"preferences.experimental", "apf","dialog.notification"
|
||||||
];
|
];
|
||||||
main.provides = ["pluginManagerUi"];
|
main.provides = ["pluginManagerUi"];
|
||||||
return main;
|
return main;
|
||||||
|
@ -26,7 +26,7 @@ define(function(require, exports, module) {
|
||||||
var notify = imports["dialog.notification"].show;
|
var notify = imports["dialog.notification"].show;
|
||||||
var experimental = imports["preferences.experimental"];
|
var experimental = imports["preferences.experimental"];
|
||||||
var pluginManager = imports.pluginManager;
|
var pluginManager = imports.pluginManager;
|
||||||
var architectApp = imports.hub.app;
|
var architectApp = imports.app;
|
||||||
|
|
||||||
var search = require("../c9.ide.navigate/search");
|
var search = require("../c9.ide.navigate/search");
|
||||||
var Tree = require("ace_tree/tree");
|
var Tree = require("ace_tree/tree");
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*global requirejs*/
|
/*global requirejs*/
|
||||||
define(function(require, exports, module) {
|
define(function(require, exports, module) {
|
||||||
main.consumes = [
|
main.consumes = [
|
||||||
"hub", "ext", "c9", "Plugin", "proc", "fs", "tree", "vfs",
|
"app", "ext", "c9", "Plugin", "proc", "fs", "tree", "vfs",
|
||||||
"dialog.error", "tree.favorites"
|
"dialog.error", "tree.favorites"
|
||||||
];
|
];
|
||||||
main.provides = ["pluginManager", "plugin.manager", "plugin.debug"];
|
main.provides = ["pluginManager", "plugin.manager", "plugin.debug"];
|
||||||
|
@ -19,7 +19,7 @@ define(function(require, exports, module) {
|
||||||
var vfs = imports.vfs;
|
var vfs = imports.vfs;
|
||||||
var showError = imports["dialog.error"].show;
|
var showError = imports["dialog.error"].show;
|
||||||
var favs = imports["tree.favorites"];
|
var favs = imports["tree.favorites"];
|
||||||
var architectApp = imports.hub.app;
|
var architectApp = imports.app;
|
||||||
|
|
||||||
var join = require("path").join;
|
var join = require("path").join;
|
||||||
var basename = require("path").basename;
|
var basename = require("path").basename;
|
||||||
|
|
Ładowanie…
Reference in New Issue