mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
updated jquery-terminal to v0.4.22
This commit is contained in:
parent
165b30edbd
commit
2e1e986767
6 changed files with 848 additions and 584 deletions
|
|
@ -49,6 +49,8 @@ keyStop: function(e, opt) {
|
|||
```
|
||||
* Updated socket.io to v0.9.13.
|
||||
|
||||
* Updated jquery-terminal to v0.4.22.
|
||||
|
||||
|
||||
2012.12.12, Version 0.1.8
|
||||
|
||||
|
|
|
|||
|
|
@ -1,82 +1,88 @@
|
|||
0.4.17 fix IE formatting issue by adding cross-browser split
|
||||
0.4.16 add reverse history search on CTRL+R
|
||||
|
||||
fix cancel ajax call on CTRL+D
|
||||
0.4.15 only one command from multiply commands is added to history
|
||||
CTRL+D is handled even if exit is false
|
||||
0.4.14 terminal don't add space after prompt (prompt need to add this space)
|
||||
fix historyFilter
|
||||
remove livequery
|
||||
0.4.12 history return history object
|
||||
add historyFilter
|
||||
new event onCommandChange that execute scroll_to_bottom
|
||||
add event onBeforeLogin
|
||||
0.4.11 fix blank lines when echo longer strings
|
||||
0.4.10 fix long line formatting and linebreak in the middle of formatting
|
||||
0.4.9 fix wrap first line when prompt contain formatting
|
||||
0.4.8 fix alt+d and ctrl+u
|
||||
0.4.7 fix inserting special characters in Webkit on Windows
|
||||
0.4.6 remove undocumented pipe operator
|
||||
refreash prompt on resume
|
||||
0.4.5 fix line wrapping when text contains tabulations
|
||||
0.4.4 fix line wrapping with scrollbars
|
||||
0.4.3 fix JSON-RPC when use without login
|
||||
0.4.2 fix formatting when text contain empty lines
|
||||
0.4.1 fix formatting when text contains newline characters
|
||||
0.4 fix text formating when text splited into more then one line
|
||||
you can pass nested objects as first argument
|
||||
add tab completion with object passed as first argument
|
||||
0.3.8 fix cursor manipulation when command contain new line characters
|
||||
0.3.7 fix function terminal.login_name
|
||||
0.3.6 fix switch between terminals - when terminal is not visible scroll to current terminal
|
||||
0.3.5 fix scrolling in jQuery 1.6
|
||||
0.3.3 fixing PAGE UP/DOWN
|
||||
0.3.2 fixing cursor in long lines
|
||||
0.3.1 fixing small bugs, speed up resizing
|
||||
0.3 fix resizing on start and issue with greetings
|
||||
add formating strings to set style of text.
|
||||
add to echo a function which will be called when terminal
|
||||
is resized
|
||||
0.3-RC2 fix manipulation of long line commands
|
||||
0.3-RC1 add callbacks and new functions
|
||||
you can now overwrite keyboard shortcuts
|
||||
resizing recalculates lines lenght and redraw content
|
||||
if you create plugin for elements that are not in the DOM
|
||||
and then append it to DOM it's display corectly
|
||||
put all dependencies in one file
|
||||
Default greetings show terminal signature depending on
|
||||
width of terminal
|
||||
use Local Sorage for command line history if posible
|
||||
remove access to command line (cmd plugin) and add interface
|
||||
to allow interact with it
|
||||
|
||||
0.2.3.9 fix append enter character (0x0D) to the command (thanks to marat
|
||||
for reporting the bug)
|
||||
|
||||
0.2.3.8 update mousewheel plugin which fix scrolling in Opera (Thanks for
|
||||
Alexey Dubovtsev for reporting the bug)
|
||||
|
||||
0.2.3.7 fix cursor in IE in tilda example
|
||||
|
||||
0.2.3.6 fix json serialization in IE
|
||||
|
||||
0.2.3.5 fix demos and clipboard textarea transparency in IE
|
||||
|
||||
0.2.3.4 fix long lines in command line issue
|
||||
|
||||
0.2.3.3 fix Terminal in Internet Exporer
|
||||
|
||||
0.2.3.2 fix blank line issue (thanks to Chris Janicki for finding the
|
||||
bug) and fix CTRL + Arrows scroll on CTRL+V
|
||||
|
||||
0.2.3.1 allow CTRL+W CTRL+T
|
||||
|
||||
0.2.3 fix for "(#$%.{" characters on Opera/Chrome, add cursor move
|
||||
with CTRL+P, CTRL+N, CTRL+F, CTRL+B which also work in Chrome.
|
||||
Fix Arrow Keys on Chrome (for cursor move and command line
|
||||
history). Change License to LGPL3.
|
||||
|
||||
0.2.2 fix down-arrow/open parentises issue in Opera and Chrome
|
||||
|
||||
0.2.1 add support for paste from clipboard with CTRL+V (Copy to
|
||||
clipboard is alway enabled on websites)
|
||||
0.4.20 Add exec, greetings, onClear, onBlur, onFocus, onTerminalChange
|
||||
0.4.19 add support for ANSI terminal formatting, fix cancelable ajax on
|
||||
CTRL+D, replace emails with link mailto, remove formatting processing
|
||||
from command line, add text glow option to formatting
|
||||
0.4.18 fix scrollbar, better exceptions in chrome, replace urls with links
|
||||
one style for font and color in root .terminal class
|
||||
0.4.17 fix IE formatting issue by adding cross-browser split
|
||||
0.4.16 add reverse history search on CTRL+R
|
||||
|
||||
fix cancel ajax call on CTRL+D
|
||||
0.4.15 only one command from multiply commands is added to history
|
||||
CTRL+D is handled even if exit is false
|
||||
0.4.14 terminal don't add space after prompt (prompt need to add this space)
|
||||
fix historyFilter
|
||||
remove livequery
|
||||
0.4.12 history return history object
|
||||
add historyFilter
|
||||
new event onCommandChange that execute scroll_to_bottom
|
||||
add event onBeforeLogin
|
||||
0.4.11 fix blank lines when echo longer strings
|
||||
0.4.10 fix long line formatting and linebreak in the middle of formatting
|
||||
0.4.9 fix wrap first line when prompt contain formatting
|
||||
0.4.8 fix alt+d and ctrl+u
|
||||
0.4.7 fix inserting special characters in Webkit on Windows
|
||||
0.4.6 remove undocumented pipe operator
|
||||
refreash prompt on resume
|
||||
0.4.5 fix line wrapping when text contains tabulations
|
||||
0.4.4 fix line wrapping with scrollbars
|
||||
0.4.3 fix JSON-RPC when use without login
|
||||
0.4.2 fix formatting when text contain empty lines
|
||||
0.4.1 fix formatting when text contains newline characters
|
||||
0.4 fix text formating when text splited into more then one line
|
||||
you can pass nested objects as first argument
|
||||
add tab completion with object passed as first argument
|
||||
0.3.8 fix cursor manipulation when command contain new line characters
|
||||
0.3.7 fix function terminal.login_name
|
||||
0.3.6 fix switch between terminals - when terminal is not visible scroll to current terminal
|
||||
0.3.5 fix scrolling in jQuery 1.6
|
||||
0.3.3 fixing PAGE UP/DOWN
|
||||
0.3.2 fixing cursor in long lines
|
||||
0.3.1 fixing small bugs, speed up resizing
|
||||
0.3 fix resizing on start and issue with greetings
|
||||
add formating strings to set style of text.
|
||||
add to echo a function which will be called when terminal
|
||||
is resized
|
||||
0.3-RC2 fix manipulation of long line commands
|
||||
0.3-RC1 add callbacks and new functions
|
||||
you can now overwrite keyboard shortcuts
|
||||
resizing recalculates lines lenght and redraw content
|
||||
if you create plugin for elements that are not in the DOM
|
||||
and then append it to DOM it's display corectly
|
||||
put all dependencies in one file
|
||||
Default greetings show terminal signature depending on
|
||||
width of terminal
|
||||
use Local Sorage for command line history if posible
|
||||
remove access to command line (cmd plugin) and add interface
|
||||
to allow interact with it
|
||||
|
||||
0.2.3.9 fix append enter character (0x0D) to the command (thanks to marat
|
||||
for reporting the bug)
|
||||
|
||||
0.2.3.8 update mousewheel plugin which fix scrolling in Opera (Thanks for
|
||||
Alexey Dubovtsev for reporting the bug)
|
||||
|
||||
0.2.3.7 fix cursor in IE in tilda example
|
||||
|
||||
0.2.3.6 fix json serialization in IE
|
||||
|
||||
0.2.3.5 fix demos and clipboard textarea transparency in IE
|
||||
|
||||
0.2.3.4 fix long lines in command line issue
|
||||
|
||||
0.2.3.3 fix Terminal in Internet Exporer
|
||||
|
||||
0.2.3.2 fix blank line issue (thanks to Chris Janicki for finding the
|
||||
bug) and fix CTRL + Arrows scroll on CTRL+V
|
||||
|
||||
0.2.3.1 allow CTRL+W CTRL+T
|
||||
|
||||
0.2.3 fix for "(#$%.{" characters on Opera/Chrome, add cursor move
|
||||
with CTRL+P, CTRL+N, CTRL+F, CTRL+B which also work in Chrome.
|
||||
Fix Arrow Keys on Chrome (for cursor move and command line
|
||||
history). Change License to LGPL3.
|
||||
|
||||
0.2.2 fix down-arrow/open parentises issue in Opera and Chrome
|
||||
|
||||
0.2.1 add support for paste from clipboard with CTRL+V (Copy to
|
||||
clipboard is alway enabled on websites)
|
||||
|
|
@ -1,69 +1,69 @@
|
|||
__ _____ ________ __
|
||||
/ // _ /__ __ _____ ___ __ _/__ ___/__ ___ ______ __ __ __ ___ / /
|
||||
__ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
|
||||
/ / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__
|
||||
\___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
|
||||
\/ /____/ version 0.4.18
|
||||
|
||||
|
||||
http://terminal.jcubic.pl
|
||||
|
||||
Licensed under GNU LGPL Version 3 license http://www.gnu.org/licenses/lgpl.html
|
||||
Copyright (c) 2011 Jakub Jankiewicz <http://jcubic.pl>
|
||||
|
||||
JQuery Terminal Emulator is a plugin for creating command line interpreters in
|
||||
your applications. It can automatically call JSON-RPC service when user type
|
||||
commands or you can provide you own function in which you can parse user
|
||||
command. It's ideal if you want to provide additional functionality for power
|
||||
users. It can also be used to debug your aplication.
|
||||
|
||||
Features:
|
||||
|
||||
* You can create interpreter for your JSON-RPC service with one line
|
||||
of code.
|
||||
|
||||
* Support for authentication (you can provide function when user enter
|
||||
login and password or if you use JSON-RPC it can automatically call
|
||||
login function on the server and pass token to all functions)
|
||||
|
||||
* Stack of interpreters - you can create commands that trigger additional
|
||||
interpreters (eg. you can use couple of JSON-RPC service and run them
|
||||
when user type command)
|
||||
|
||||
* Command Tree - you can use nested objects. Each command will invoke a
|
||||
function, if the value is an object it will create new interpreter and
|
||||
use function from that object as commands. You can use as much nested
|
||||
object/commands as you like. If the value is a string it will create
|
||||
JSON-RPC service.
|
||||
|
||||
* Support for command line history it use Local Storage if posible
|
||||
|
||||
* Support for tab completion if you create terminal from an object
|
||||
|
||||
* Include keyboard shortcut from bash like CTRL+A, CTRL+D, CTRL+E etc.
|
||||
|
||||
* Multiply terminals on one page (every terminal can have different
|
||||
command, it's own authentication function and it's own command history)
|
||||
|
||||
* It catch all exceptions and display error messages in terminal
|
||||
(you can see errors in your javascript and php code in terminal if they
|
||||
are in interpreter function)
|
||||
|
||||
|
||||
Example of usage (javascript interpreter)
|
||||
|
||||
jQuery(function($, undefined) {
|
||||
$('#term_demo').terminal(function(command, term) {
|
||||
if (command !== '') {
|
||||
var result = window.eval(command);
|
||||
if (result != undefined) {
|
||||
term.echo(String(result));
|
||||
}
|
||||
}
|
||||
}, {
|
||||
greetings: 'Javascript Interpreter',
|
||||
name: 'js_demo',
|
||||
height: 200,
|
||||
width: 450,
|
||||
prompt: 'js> '});
|
||||
});
|
||||
__ _____ ________ __
|
||||
/ // _ /__ __ _____ ___ __ _/__ ___/__ ___ ______ __ __ __ ___ / /
|
||||
__ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
|
||||
/ / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__
|
||||
\___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
|
||||
\/ /____/ version 0.4.22
|
||||
|
||||
|
||||
http://terminal.jcubic.pl
|
||||
|
||||
Licensed under GNU LGPL Version 3 license http://www.gnu.org/licenses/lgpl.html
|
||||
Copyright (c) 2011-2012 Jakub Jankiewicz <http://jcubic.pl>
|
||||
|
||||
JQuery Terminal Emulator is a plugin for creating command line interpreters in
|
||||
your applications. It can automatically call JSON-RPC service when user type
|
||||
commands or you can provide you own function in which you can parse user
|
||||
command. It's ideal if you want to provide additional functionality for power
|
||||
users. It can also be used to debug your aplication.
|
||||
|
||||
Features:
|
||||
|
||||
* You can create interpreter for your JSON-RPC service with one line
|
||||
of code.
|
||||
|
||||
* Support for authentication (you can provide function when user enter
|
||||
login and password or if you use JSON-RPC it can automatically call
|
||||
login function on the server and pass token to all functions)
|
||||
|
||||
* Stack of interpreters - you can create commands that trigger additional
|
||||
interpreters (eg. you can use couple of JSON-RPC service and run them
|
||||
when user type command)
|
||||
|
||||
* Command Tree - you can use nested objects. Each command will invoke a
|
||||
function, if the value is an object it will create new interpreter and
|
||||
use function from that object as commands. You can use as much nested
|
||||
object/commands as you like. If the value is a string it will create
|
||||
JSON-RPC service.
|
||||
|
||||
* Support for command line history it use Local Storage if posible
|
||||
|
||||
* Support for tab completion if you create terminal from an object
|
||||
|
||||
* Include keyboard shortcut from bash like CTRL+A, CTRL+D, CTRL+E etc.
|
||||
|
||||
* Multiply terminals on one page (every terminal can have different
|
||||
command, it's own authentication function and it's own command history)
|
||||
|
||||
* It catch all exceptions and display error messages in terminal
|
||||
(you can see errors in your javascript and php code in terminal if they
|
||||
are in interpreter function)
|
||||
|
||||
|
||||
Example of usage (javascript interpreter)
|
||||
|
||||
jQuery(function($, undefined) {
|
||||
$('#term_demo').terminal(function(command, term) {
|
||||
if (command !== '') {
|
||||
var result = window.eval(command);
|
||||
if (result != undefined) {
|
||||
term.echo(String(result));
|
||||
}
|
||||
}
|
||||
}, {
|
||||
greetings: 'Javascript Interpreter',
|
||||
name: 'js_demo',
|
||||
height: 200,
|
||||
width: 450,
|
||||
prompt: 'js> '});
|
||||
});
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
__ _____ ________ __
|
||||
/ // _ /__ __ _____ ___ __ _/__ ___/__ ___ ______ __ __ __ ___ / /
|
||||
__ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
|
||||
/ / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__
|
||||
\___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
|
||||
\/ /____/ version {{VER}}
|
||||
|
||||
|
||||
http://terminal.jcubic.pl
|
||||
|
||||
Licensed under GNU LGPL Version 3 license http://www.gnu.org/licenses/lgpl.html
|
||||
Copyright (c) 2011 Jakub Jankiewicz <http://jcubic.pl>
|
||||
|
||||
JQuery Terminal Emulator is a plugin for creating command line interpreters in
|
||||
your applications. It can automatically call JSON-RPC service when user type
|
||||
commands or you can provide you own function in which you can parse user
|
||||
command. It's ideal if you want to provide additional functionality for power
|
||||
users. It can also be used to debug your aplication.
|
||||
|
||||
Features:
|
||||
|
||||
* You can create interpreter for your JSON-RPC service with one line
|
||||
of code.
|
||||
|
||||
* Support for authentication (you can provide function when user enter
|
||||
login and password or if you use JSON-RPC it can automatically call
|
||||
login function on the server and pass token to all functions)
|
||||
|
||||
* Stack of interpreters - you can create commands that trigger additional
|
||||
interpreters (eg. you can use couple of JSON-RPC service and run them
|
||||
when user type command)
|
||||
|
||||
* Command Tree - you can use nested objects. Each command will invoke a
|
||||
function, if the value is an object it will create new interpreter and
|
||||
use function from that object as commands. You can use as much nested
|
||||
object/commands as you like. If the value is a string it will create
|
||||
JSON-RPC service.
|
||||
|
||||
* Support for command line history it use Local Storage if posible
|
||||
|
||||
* Support for tab completion if you create terminal from an object
|
||||
|
||||
* Include keyboard shortcut from bash like CTRL+A, CTRL+D, CTRL+E etc.
|
||||
|
||||
* Multiply terminals on one page (every terminal can have different
|
||||
command, it's own authentication function and it's own command history)
|
||||
|
||||
* It catch all exceptions and display error messages in terminal
|
||||
(you can see errors in your javascript and php code in terminal if they
|
||||
are in interpreter function)
|
||||
|
||||
|
||||
Example of usage (javascript interpreter)
|
||||
|
||||
jQuery(function($, undefined) {
|
||||
$('#term_demo').terminal(function(command, term) {
|
||||
if (command !== '') {
|
||||
var result = window.eval(command);
|
||||
if (result != undefined) {
|
||||
term.echo(String(result));
|
||||
}
|
||||
}
|
||||
}, {
|
||||
greetings: 'Javascript Interpreter',
|
||||
name: 'js_demo',
|
||||
height: 200,
|
||||
width: 450,
|
||||
prompt: 'js> '});
|
||||
});
|
||||
|
|
@ -1,67 +1,72 @@
|
|||
.terminal .clipboard {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
opacity: 0.01;
|
||||
filter: alpha(opacity = 0.01);
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0.01);
|
||||
width: 2px;
|
||||
}
|
||||
.cmd > .clipboard {
|
||||
position: fixed;
|
||||
}
|
||||
.terminal {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.cmd {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: 1.3em;
|
||||
}
|
||||
.terminal .terminal-output div {
|
||||
display: block;
|
||||
}
|
||||
.terminal {
|
||||
font-family: FreeMono, monospace;
|
||||
color: #aaa;
|
||||
background-color: #000;
|
||||
line-height: 16px;
|
||||
/* removing breaking the lines */
|
||||
white-space: nowrap;
|
||||
overflow:hidden;
|
||||
}
|
||||
.terminal .cmd span {
|
||||
float: left;
|
||||
}
|
||||
.terminal .cmd span.inverted {
|
||||
background-color: #aaa;
|
||||
color: #000;
|
||||
}
|
||||
.terminal div::-moz-selection, .terminal span::-moz-selection {
|
||||
background-color: #aaa;
|
||||
color: #000;
|
||||
}
|
||||
.terminal div::selection, .terminal span::selection {
|
||||
background-color: #aaa;
|
||||
color: #000;
|
||||
}
|
||||
.terminal .terminal-output div.error, .terminal .terminal-output div.error div {
|
||||
color: red;
|
||||
}
|
||||
.tilda {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 1100;
|
||||
}
|
||||
.clear {
|
||||
clear: both;
|
||||
}
|
||||
.terminal a {
|
||||
color: #0F60FF;
|
||||
}
|
||||
.terminal a:hover {
|
||||
color: red;
|
||||
}
|
||||
.terminal .clipboard {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
opacity: 0.01;
|
||||
filter: alpha(opacity = 0.01);
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0.01);
|
||||
width: 2px;
|
||||
}
|
||||
.cmd > .clipboard {
|
||||
position: fixed;
|
||||
}
|
||||
.terminal {
|
||||
padding: 10px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.cmd {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: 1.3em;
|
||||
}
|
||||
.terminal .terminal-output div div, .terminal .prompt {
|
||||
display: block;
|
||||
line-height: 9px;
|
||||
height: 14px;
|
||||
}
|
||||
.terminal {
|
||||
font-family: FreeMono, monospace;
|
||||
color: #aaa;
|
||||
background-color: #000;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
}
|
||||
.terminal .terminal-output div span {
|
||||
display: inline-block;
|
||||
}
|
||||
.terminal .cmd span {
|
||||
display: inline-block;
|
||||
}
|
||||
.terminal .cmd span.inverted {
|
||||
background-color: #aaa;
|
||||
color: #000;
|
||||
}
|
||||
.terminal .terminal-output div div::-moz-selection, .terminal .terminal-output div span::-moz-selection {
|
||||
background-color: #aaa;
|
||||
color: #000;
|
||||
}
|
||||
.terminal .terminal-output div div::selection, .terminal .terminal-output div span::selection,
|
||||
.terminal .cmd > span::selection, .terminal .prompt span::selection {
|
||||
background-color: #aaa;
|
||||
color: #000;
|
||||
}
|
||||
.terminal .terminal-output div.error, .terminal .terminal-output div.error div {
|
||||
color: red;
|
||||
}
|
||||
.tilda {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 1100;
|
||||
}
|
||||
.clear {
|
||||
clear: both;
|
||||
}
|
||||
.terminal a {
|
||||
color: #0F60FF;
|
||||
}
|
||||
.terminal a:hover {
|
||||
color: red;
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue