@@ -15,20 +15,36 @@ var models = require('./lib/models');
15
15
var pluginTemplates = require ( './lib/plugin-templates' ) ;
16
16
var upgrade = require ( './lib/models/upgrade' ) . ensure ;
17
17
var loadExtensions = require ( './lib/utils/load-extensions' ) ;
18
+ < << << << HEAD
18
19
var killZombies = require ( './lib/utils/kill-zombies' ) ;
19
20
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
20
25
21
26
var Job = models.Job;
22
27
var Config = models.Config;
23
28
24
29
common.extensions = { } ;
30
+ < << << << HEAD
25
31
//
26
32
// Use globa-tunnel to provide proxy support.
27
33
// The http_proxy environment variable will be used if the first parameter to globalTunnel.initialize is null.
28
34
//
29
35
globalTunnel . initialize ( ) ;
30
36
31
37
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
32
48
var appConfig = config ;
33
49
var k ;
34
50
// override with c
@@ -49,15 +65,18 @@ module.exports = function (extdir, c, callback) {
49
65
}
50
66
51
67
var loader = new Loader ( [ path . join ( __dirname , 'client/styles' ) ] , true ) ;
68
+
52
69
appInstance . loader = loader ;
53
70
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
+ */
61
80
var context = {
62
81
serverName : appConfig . strider_server_name ,
63
82
config : appConfig ,
@@ -72,7 +91,11 @@ module.exports = function (extdir, c, callback) {
72
91
middleware : middleware ,
73
92
auth : auth , //TODO - may want to make this a subset of the auth module
74
93
passport : passport ,
94
+ << < << << HEAD
75
95
registerPanel: registerPanel ( common ) ,
96
+ = === ===
97
+ registerPanel : initRegisterPanel ( common . extensions ) ,
98
+ > >>> >>> Move registerPanel to utils , fix comments
76
99
registerBlock: pluginTemplates . registerBlock ,
77
100
app : appInstance
78
101
} ;
0 commit comments