mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(server) Console -> webconsole, Terminal -> terminal
This commit is contained in:
parent
37b67c6f0c
commit
5198cb5f6e
1 changed files with 6 additions and 6 deletions
|
|
@ -27,7 +27,7 @@
|
|||
minify = require(DIR_SERVER + 'minify'),
|
||||
Socket = require(DIR_SERVER + 'socket'),
|
||||
|
||||
Terminal = !WIN ? require(DIR_SERVER + 'terminal') : function() {},
|
||||
terminal = !WIN ? require(DIR_SERVER + 'terminal') : function() {},
|
||||
join = require(DIR_SERVER + 'join'),
|
||||
ponse = require(DIR_SERVER + 'ponse'),
|
||||
express = require(DIR_SERVER + 'express'),
|
||||
|
|
@ -37,13 +37,13 @@
|
|||
Util.exec(next);
|
||||
},
|
||||
|
||||
Console, expressApp, Rest, Route;
|
||||
webconsole, expressApp, Rest, Route;
|
||||
|
||||
emptyFunc.middle = function() {
|
||||
return emptyFunc;
|
||||
};
|
||||
|
||||
Console = tryRequire('console-io', function(error) {
|
||||
webconsole = tryRequire('console-io', function(error) {
|
||||
if (error)
|
||||
Util.log(error.message);
|
||||
}) || emptyFunc;
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
minify: isMinify
|
||||
}),
|
||||
|
||||
Console.middle('/console', isMinify),
|
||||
webconsole.middle('/console', isMinify),
|
||||
|
||||
minify({
|
||||
dir : DIR,
|
||||
|
|
@ -148,11 +148,11 @@
|
|||
if (socket) {
|
||||
status = 'on';
|
||||
|
||||
Console({
|
||||
webconsole({
|
||||
socket: socket
|
||||
});
|
||||
|
||||
Terminal(socket);
|
||||
terminal(socket);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue