@@ -15,20 +15,36 @@ var models = require('./lib/models');
1515var pluginTemplates = require ( './lib/plugin-templates' ) ;
1616var upgrade = require ( './lib/models/upgrade' ) . ensure ;
1717var loadExtensions = require ( './lib/utils/load-extensions' ) ;
18+ < << << << HEAD
1819var killZombies = require ( './lib/utils/kill-zombies' ) ;
1920var 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
2126var Job = models.Job;
2227var Config = models.Config;
2328
2429common.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//
2935globalTunnel . initialize ( ) ;
3036
3137module . 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