remove cli

This commit is contained in:
Fabian Jakobs 2011-08-16 12:16:39 +02:00
commit 8ee1ffab20
4 changed files with 3 additions and 57 deletions

View file

@ -44,10 +44,9 @@ require("pilot/environment");
require("demo/demo");
require("pilot/index");
require("cockpit/index");
require("ace/defaults");
var plugins = [ "pilot/index", "cockpit/index", "ace/defaults" ];
var plugins = [ "pilot/index", "ace/defaults" ];
var catalog = require("pilot/plugin_manager").catalog;
catalog.registerPlugins(plugins).then(function() {
var env = require("pilot/environment").create();

View file

@ -477,8 +477,7 @@ exports.launch = function(env) {
function onResize() {
var width = (document.documentElement.clientWidth - 280);
container.style.width = width + "px";
cockpitInput.style.width = width + "px";
container.style.height = (document.documentElement.clientHeight - 22) + "px";
container.style.height = document.documentElement.clientHeight + "px";
env.split.resize();
// env.editor.resize();
};
@ -486,9 +485,6 @@ exports.launch = function(env) {
window.onresize = onResize;
onResize();
// Call resize on the cli explizit. This is necessary for Firefox.
env.cli.cliView.resizer()
event.addListener(container, "dragover", function(e) {
return event.preventDefault(e);
});
@ -560,32 +556,6 @@ exports.launch = function(env) {
* This demonstrates how you can define commands and bind shortcuts to them.
*/
// Command to focus the command line from the editor.
canon.addCommand({
name: "focuscli",
bindKey: {
win: "Ctrl-J",
mac: "Command-J",
sender: "editor"
},
exec: function() {
env.cli.cliView.element.focus();
}
});
// Command to focus the editor line from the command line.
canon.addCommand({
name: "focuseditor",
bindKey: {
win: "Ctrl-J",
mac: "Command-J",
sender: "cli"
},
exec: function() {
env.editor.focus();
}
});
// Fake-Save, works from the editor and the command line.
canon.addCommand({
name: "save",

View file

@ -40,25 +40,4 @@ body {
#controls td + td {
text-align: left;
}
#cockpitInput {
position: absolute;
left: 280px;
right: 0px;
bottom: 0;
border: none; outline: none;
font-family: consolas, courier, monospace;
font-size: 120%;
}
#cockpitOutput {
padding: 10px;
margin: 0 15px;
border: 1px solid #AAA;
-moz-border-radius-topleft: 10px;
-moz-border-radius-topright: 10px;
border-top-left-radius: 4px; border-top-right-radius: 4px;
background: #DDD; color: #000;
}

View file

@ -683,8 +683,6 @@ object implicits extends Application {
val x = Array(2, 3, 1, 4)
println("x = "+ x.sort((x: Int, y: Int) => x < y))
}</script>
<input id="cockpitInput" type="text"/>
<!-- DEVEL-->
<script type="text/javascript">
var require = {
@ -700,7 +698,7 @@ object implicits extends Application {
<!--DEVEL -->
<!--PACKAGE
<script src="demo/kitchen-sink.js" data-ace-base="src" type="text/javascript" charset="utf-8"></script>
<script src="demo/kitchen-sink-uncompressed.js" data-ace-base="src" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
require("demo/boot");
</script>