mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactored
This commit is contained in:
parent
94c94f2e4f
commit
73c468db51
3 changed files with 7 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"cache" : {"allowed" : false},
|
||||
"appcache" : true,
|
||||
"appcache" : false,
|
||||
"minification" : {
|
||||
"js" : false,
|
||||
"css" : true,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ var CloudCommander, $;
|
|||
Util = cloudcmd.Util,
|
||||
KeyBinding = cloudcmd.KeyBinding,
|
||||
TerminalId,
|
||||
Term,
|
||||
Hidden = false;
|
||||
|
||||
cloudcmd.Terminal = {};
|
||||
|
|
@ -59,9 +58,12 @@ var CloudCommander, $;
|
|||
|
||||
$(function($, undefined) {
|
||||
$('#terminal').terminal(function(command, term) {
|
||||
Term = term;
|
||||
JqueryTerminal.Term = term;
|
||||
term.echo('');
|
||||
cloudcmd.Socket.send(command);
|
||||
}, {
|
||||
greetings: 'Javascript Interpreter',
|
||||
prompt: 'cloudcmd>'
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
@ -98,8 +100,7 @@ var CloudCommander, $;
|
|||
else
|
||||
document.onkeypress = key_event;
|
||||
});
|
||||
|
||||
JqueryTerminal.Term = Term;
|
||||
|
||||
cloudcmd.Terminal.JqueryTerminal = JqueryTerminal;
|
||||
|
||||
})();
|
||||
|
|
@ -678,7 +678,7 @@ CloudServer.indexReaded = function(pList){
|
|||
'<title>' + CloudFunc.setTitle() + '</title>');
|
||||
|
||||
if(!CloudServer.Config.appcache)
|
||||
pIndex = pIndex.replace('/cloudcmd.appcache', '');
|
||||
pIndex = pIndex.replace(' manifest="/cloudcmd.appcache"', '');
|
||||
|
||||
var lHeader;
|
||||
/* если браузер поддерживает gzip-сжатие*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue