Skip to content

Commit 7eb4600

Browse files
author
Ilya Radchenko
committed
Move registerPanel to utils, fix comments
1 parent 03b0295 commit 7eb4600

File tree

1 file changed

+30
-7
lines changed

1 file changed

+30
-7
lines changed

main.js

+30-7
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,36 @@ var models = require('./lib/models');
1515
var pluginTemplates = require('./lib/plugin-templates');
1616
var upgrade = require('./lib/models/upgrade').ensure;
1717
var loadExtensions = require('./lib/utils/load-extensions');
18+
<<<<<<< HEAD
1819
var killZombies = require('./lib/utils/kill-zombies');
1920
var registerPanel = require('./lib/utils/register-panel');
21+
=======
22+
var initRegisterPanel = require('./lib/utils/register-panel');
23+
var pkg = require('./package');
24+
>>>>>>> Move registerPanel to utils, fix comments
2025

2126
var Job = models.Job;
2227
var Config = models.Config;
2328

2429
common.extensions = {};
30+
<<<<<<< HEAD
2531
//
2632
// Use globa-tunnel to provide proxy support.
2733
// The http_proxy environment variable will be used if the first parameter to globalTunnel.initialize is null.
2834
//
2935
globalTunnel.initialize();
3036

3137
module.exports = function (extdir, c, callback) {
38+
=======
39+
40+
/**
41+
* Use globa-tunnel to provide proxy support.
42+
* The http_proxy environment variable will be used if the first parameter to globalTunnel.initialize is null.
43+
*/
44+
globalTunnel.initialize();
45+
46+
module.exports = function(extdir, c, callback) {
47+
>>>>>>> Move registerPanel to utils, fix comments
3248
var appConfig = config;
3349
var k;
3450
// override with c
@@ -49,15 +65,18 @@ module.exports = function (extdir, c, callback) {
4965
}
5066

5167
var loader = new Loader([path.join(__dirname, 'client/styles')], true);
68+
5269
appInstance.loader = loader;
5370
common.loader = loader;
54-
//
55-
// ### Strider Context Object
56-
//
57-
// Context object is passed to each extension. It carries various config
58-
// settings, as well as handles to enable functions to register things.
59-
// Context can also be accessed as a singleton within Strider as
60-
// common.context.
71+
72+
/**
73+
* ### Strider Context Object
74+
*
75+
* Context object is passed to each extension. It carries various config
76+
* settings, as well as handles to enable functions to register things.
77+
* Context can also be accessed as a singleton within Strider as
78+
* common.context.
79+
*/
6180
var context = {
6281
serverName: appConfig.strider_server_name,
6382
config: appConfig,
@@ -72,7 +91,11 @@ module.exports = function (extdir, c, callback) {
7291
middleware: middleware,
7392
auth: auth, //TODO - may want to make this a subset of the auth module
7493
passport: passport,
94+
<<<<<<< HEAD
7595
registerPanel: registerPanel(common),
96+
=======
97+
registerPanel: initRegisterPanel(common.extensions),
98+
>>>>>>> Move registerPanel to utils, fix comments
7699
registerBlock: pluginTemplates.registerBlock,
77100
app: appInstance
78101
};

0 commit comments

Comments
 (0)