Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated to latest version of ace!

  • Loading branch information...
commit 6178b182a1b9548b9bc42b44edf345bf00cb88d9 1 parent d0fa8ec
@akumpf akumpf authored root committed
Showing with 15,142 additions and 45,381 deletions.
  1. +69 −40 app.js
  2. +4 −4 public/index.css
  3. +3 −1 public/index.html
  4. +19 −153 public/index.js
  5. +0 −1  public/js/ace/ace-compat-noconflict.js
  6. +0 −490 public/js/ace/ace-compat-uncompressed-noconflict.js
  7. +0 −490 public/js/ace/ace-compat-uncompressed.js
  8. +0 −1  public/js/ace/ace-compat.js
  9. +0 −1  public/js/ace/ace-noconflict.js
  10. +0 −14,194 public/js/ace/ace-uncompressed-noconflict.js
  11. +0 −14,194 public/js/ace/ace-uncompressed.js
  12. +15,037 −1 public/js/ace/ace.js
  13. +0 −1  public/js/ace/keybinding-emacs-noconflict.js
  14. +0 −415 public/js/ace/keybinding-emacs-uncompressed-noconflict.js
  15. +0 −415 public/js/ace/keybinding-emacs-uncompressed.js
  16. +1 −1  public/js/ace/keybinding-emacs.js
  17. +0 −1  public/js/ace/keybinding-vim-noconflict.js
  18. +0 −403 public/js/ace/keybinding-vim-uncompressed-noconflict.js
  19. +0 −403 public/js/ace/keybinding-vim-uncompressed.js
  20. +1 −1  public/js/ace/keybinding-vim.js
  21. +1 −0  public/js/ace/mode-c9search.js
  22. +0 −1  public/js/ace/mode-c_cpp-noconflict.js
  23. +0 −928 public/js/ace/mode-c_cpp-uncompressed-noconflict.js
  24. +0 −928 public/js/ace/mode-c_cpp-uncompressed.js
  25. +1 −1  public/js/ace/mode-c_cpp.js
  26. +0 −1  public/js/ace/mode-clojure-noconflict.js
  27. +0 −432 public/js/ace/mode-clojure-uncompressed-noconflict.js
  28. +0 −432 public/js/ace/mode-clojure-uncompressed.js
  29. +1 −1  public/js/ace/mode-clojure.js
  30. +0 −1  public/js/ace/mode-coffee-noconflict.js
  31. +0 −804 public/js/ace/mode-coffee-uncompressed-noconflict.js
  32. +0 −804 public/js/ace/mode-coffee-uncompressed.js
  33. +1 −1  public/js/ace/mode-coffee.js
  34. +0 −1  public/js/ace/mode-coldfusion-noconflict.js
  35. +0 −2,543 public/js/ace/mode-coldfusion-uncompressed-noconflict.js
  36. +0 −2,543 public/js/ace/mode-coldfusion-uncompressed.js
  37. +1 −1  public/js/ace/mode-coldfusion.js
  38. +0 −1  public/js/ace/mode-csharp-noconflict.js
  39. +0 −778 public/js/ace/mode-csharp-uncompressed-noconflict.js
  40. +0 −778 public/js/ace/mode-csharp-uncompressed.js
  41. +1 −1  public/js/ace/mode-csharp.js
  42. +0 −1  public/js/ace/mode-css-noconflict.js
  43. +0 −863 public/js/ace/mode-css-uncompressed-noconflict.js
  44. +0 −863 public/js/ace/mode-css-uncompressed.js
  45. +1 −1  public/js/ace/mode-css.js
  46. +1 −0  public/js/ace/mode-golang.js
  47. +0 −1  public/js/ace/mode-groovy-noconflict.js
  48. +0 −1,462 public/js/ace/mode-groovy-uncompressed-noconflict.js
Sorry, we could not display the entire diff because it was too big.
View
109 app.js
@@ -5,7 +5,6 @@
//
//var profiler = require("v8-profiler");
console.log("\n** Starting Node service **");
-var livelog = require("../CHAOS/livelog");
var express = require("express"); //"-unstable");
var util = require("util");
var fs = require('fs');
@@ -13,21 +12,31 @@ var crypto = require('crypto');
var walk = require('walk');
var spawn = require('child_process').spawn;
var exec = require('child_process').exec;
-var gzippo = require('gzippo');
-function authorizeSimple(username, password) {
- return username === 'chaos' & password === 'bettert0gether';
-}
-var app = express.createServer(express.basicAuth(authorizeSimple));
-
-// setup livelog
-app.get("/livelog", livelog.livelog);
-app.get("/livelogdata", express.basicAuth(livelog.basicauth), livelog.livelogdata);
-
-//app.use(express.static(__dirname + '/public'));
-//var staticProvider = gzippo.staticGzip(__dirname + '/public'); // use GZIP compression for static files (cache ~1 day)!
+// ------------------------------------------------
+// AUTH w/ EXPRESS
+// ------------------------------------------------
+var Auth = require("../CHAOS/auth");
+var app = express.createServer();
+app.use(express.bodyParser());
+app.use(express.cookieParser());
+app.use(express.session({
+ secret: "f0p8heW2n7j2ji",
+ store: new express.session.MemoryStore,
+ cookie: {
+ path : '/',
+ httpOnly : true,
+ maxAge : 1000*60*60*24*30*2 //60 days
+ }
+}));
+app.use(Auth.checkLoggedIn);
+app.use(Auth.ensureAuthenticated);
+app.get("/whoami", Auth.whoami); // handy to query basic user info.
var staticProvider = express.static(__dirname + '/public');
-app.use(staticProvider);
+app.use(staticProvider); // this is where static files will be served (html, css, js, media, etc.)
+// ------------------------------------------------
+// ------------------------------------------------
+
app.get('/',function(req,res,next){
// res.send("unauthenticated");
//});
@@ -36,8 +45,6 @@ app.get('/',function(req,res,next){
req.url = "index.html";
staticProvider(req, res, next);
});
-//app.use(stylus.middleware({src: __dirname + '/public', dest: __dirname + '/public', debug: true}));
-//app.use(express.methodOverride());
var port = process.env.PORT || 3141;
app.listen(port);
@@ -53,18 +60,22 @@ var nowjs = require("now");
var everyone = nowjs.initialize(app);
nowjs.on('connect', function () {
console.log("CONNECT > " + this.user.clientId);
- //console.log(this.user); // just clientId and cookies.
- //console.log(this.socket);
- //console.log(this.now.name);
this.user.teamID = teamID;
if(this.now.teamID != ''){
this.user.teamID = this.now.teamID;
}
console.log(" >> PROJECT="+this.user.teamID);
- this.user.grouplist = []; // file groups starts out empty.
+ // hack to get out best guess at the user (since now.js doesn't give us the request object or session!);
+ var u = Auth.getUserFromCache(decodeURIComponent(this.user.cookie['_chaos.auth'])) || {};
+ // now populate it..
this.user.about = {};
- this.user.about.name = "Default Username";
- this.user.about.email = "default@chaos.org";
+ this.user.about._id = u._id || 0;
+ this.user.about.name = u.nameGiven || u.displayName || "???";
+ this.user.about.email = u.emailPrimary || "anon@chaoscollective.org";
+ // -----
+ this.now.name = this.user.about.name;
+ // -----
+ this.user.grouplist = []; // file groups starts out empty.
addUserToFileGroup(this.user, ""); // the blank file group is the the team group.
this.now.c_confirmProject(this.user.teamID);
});
@@ -89,19 +100,20 @@ nowjs.on('disconnect', function () {
//
everyone.now.s_sendCursorUpdate = function(fname, range, changedByUser){
var userObj = this.user;
- var filegroup = nowjs.getGroup(userObj.teamID+fname);
+ var filegroup = nowjs.getGroup(userObj.teamID+"/"+fname);
filegroup.now.c_updateCollabCursor(this.user.clientId, this.now.name, range, changedByUser);
};
everyone.now.s_sendDiffPatchesToCollaborators = function(fname, patches, crc32){
var userObj = this.user;
- localFileIsMostRecent[userObj.teamID+fname] = false; // mark file as changed.
- var filegroup = nowjs.getGroup(userObj.teamID+fname);
+ localFileIsMostRecent[userObj.teamID+"/"+fname] = false; // mark file as changed.
+ var filegroup = nowjs.getGroup(userObj.teamID+"/"+fname);
filegroup.now.c_updateWithDiffPatches(this.user.clientId, patches, crc32);
};
+
everyone.now.s_requestFullFileFromUserID = function(fname, id, fileRequesterCallback){
var callerID = this.user.clientId;
var userObj = this.user;
- var filegroup = nowjs.getGroup(userObj.teamID+fname);
+ var filegroup = nowjs.getGroup(userObj.teamID+"/"+fname);
filegroup.hasClient(id, function (bool) {
if (bool) {
console.log("requesting full file. valid filegroup. :)");
@@ -115,6 +127,7 @@ everyone.now.s_requestFullFileFromUserID = function(fname, id, fileRequesterCall
}
});
};
+
everyone.now.s_teamMessageBroadcast = function(type, message){
var teamgroup = nowjs.getGroup(this.user.teamID);
var scope = "team";
@@ -141,12 +154,12 @@ everyone.now.s_getLatestFileContentsAndJoinFileGroup = function(fname, fileReque
var userObj = this.user;
addUserToFileGroup(userObj, fname);
//removeUserFromAllFileGroupsAndAddToThis(origUser, fname);
- if(localFileIsMostRecent[userObj.teamID+fname] === true || localFileIsMostRecent[userObj.teamID+fname] === undefined){
+ if(localFileIsMostRecent[userObj.teamID+"/"+fname] === true || localFileIsMostRecent[userObj.teamID+"/"+fname] === undefined){
localFileFetch(userObj, fname, fileRequesterCallback);
console.log("FILE FETCH: " + userObj.teamID + " >> " + fname + ", by user: " + callerID);
}else{
console.log("FILE FETCH (passed to user): " + userObj.teamID + " >> " + fname + ", by user: " + callerID);
- var filegroup = nowjs.getGroup(userObj.teamID+fname);
+ var filegroup = nowjs.getGroup(userObj.teamID+"/"+fname);
var users = filegroup.getUsers(function (users) {
var foundUser = false;
for (var i = 0; i < users.length; i++){
@@ -262,11 +275,20 @@ everyone.now.s_fetchProjectCommits = function(fetcherCallback){
var team = this.user.teamID;
console.log("fetching project commits... >> " + team);
var teamProjGitPath = '/NETFS/'+team;
- localRepoFetchGitLog(this.user, teamProjGitPath, "", function(err){
+ localRepoFetchGitLog(this.user, teamProjGitPath, "", function(err, gitlog){
if(err) {
console.log(err);
+ if(err && err[0] && err[0].indexOf("Not a git repository") > 0){
+ localRepoInitBare(teamProjGitPath, function(err){
+ if(err){
+ console.log("ERROR INITITIALIZING GIT REPO.");
+ }else{
+ console.log("Returned from git repo init.");
+ }
+ });
+ }
}
- fetcherCallback(err);
+ fetcherCallback(gitlog);
});
};
everyone.now.s_deployProject = function(txt, deployerCallback){
@@ -287,8 +309,8 @@ function localRepoInitBare(gitRepoPath, callback){
env: null
}, function (error, stdout, stderr) {
if (error !== null) {
- console.log('exec error: ' + error);
- }
+ console.log('git init exec error: ' + error);
+ }
console.log("GIT: Init >> " + gitRepoPath);
callback(error);
});
@@ -326,9 +348,9 @@ function localRepoFetchGitLog(userObj, gitRepoPath, fname, fetcherCallback) {
var maxResults = 5;
var saveThisEntry = false;
var filter = null;
- console.log("GIT: Commit to >> "+gitRepoPath+" by: "+safeAuthString);
+ console.log("GIT: Fetch commit logs from >> "+gitRepoPath+" by: "+safeAuthString);
var cmd = "git log -n"+maxInitialFetch+" --numstat --pretty=format:\"commit %H%naname %an%namail %ae%nrdate %ar%nutime %at%ncnote %s\" -- "+fname;
- console.log(cmd);
+ //console.log(cmd);
var child = exec(cmd, {
encoding: 'utf8',
timeout: 30000,
@@ -340,7 +362,9 @@ function localRepoFetchGitLog(userObj, gitRepoPath, fname, fetcherCallback) {
function (error, stdout, stderr) {
if (error !== null) {
console.log('exec error: ' + error);
- callback(error, null);
+ if(fetcherCallback){
+ fetcherCallback(error, null);
+ }
}else{
// success! notify team members.
var teamgroup = nowjs.getGroup(userObj.teamID);
@@ -395,7 +419,7 @@ function localRepoFetchGitLog(userObj, gitRepoPath, fname, fetcherCallback) {
}
}
//console.log(out);
- fetcherCallback(out);
+ fetcherCallback(null, out);
}
});
}
@@ -404,7 +428,10 @@ function localRepoFetchGitLog(userObj, gitRepoPath, fname, fetcherCallback) {
//
var usersInGroup = [];
function addUserToFileGroup(userObj, fname){
- var groupname = userObj.teamID + fname;
+ var groupname = userObj.teamID;
+ if(fname && fname !== ""){
+ groupname += "/" + fname;
+ }
//console.log("ADD TO GROUP: " + groupname);
//console.log(" team: " + userObj.teamID);
//console.log(" fname: " + fname);
@@ -428,7 +455,10 @@ function addUserToFileGroup(userObj, fname){
}
}
function removeUserFromFileGroup(userObj, fname){
- var groupname = userObj.teamID + fname;
+ var groupname = userObj.teamID;
+ if(fname && fname !== ""){
+ groupname += "/" + fname;
+ }
var g = nowjs.getGroup(groupname);
if(g.users[userObj.clientId]){
// user was in group.
@@ -486,7 +516,7 @@ function localFileSave(userObj, fname, fcontents, fileSaverCallback){
console.log(err);
} else {
localFileIsMostRecent[team+fname] = true; // mark file as saved with no pending changes.
- console.log("FILE SAVED: " + fname);
+ console.log("FILE SAVED: " + team+"/"+fname);
var filegroup = nowjs.getGroup(team+fname);
filegroup.now.c_fileStatusChanged(fname, "saved");
fileSizeCache[team+fname] = fcontents.length;
@@ -751,7 +781,6 @@ var Utf8 = {
}
}
-
//
//
//
View
8 public/index.css
@@ -45,11 +45,11 @@ body {
right: 0px;
top: 0px;
height: 14px;
- background: #222;
- border-bottom: 1px solid #282a2e;
+ background: #080808;
+ border-bottom: 1px solid #000;
}
#notifications {
- display: none;
+ /*display: none;*/
position: absolute;
right: 15px;
top: 45px;
@@ -108,7 +108,7 @@ body {
text-align: left;
line-height: 16px;
vertical-align: top;
- padding-left: 60px;
+ padding-left: 46px;
color: #888;
}
#topFileName{
View
4 public/index.html
@@ -48,7 +48,7 @@
<div id='shiftshiftInputDiv'><input type='text' onkeydown='return shiftshiftKeydown(event);'/></div>
</div>
<div id='logWindow'><div id='logWindowCaret'></div><div id='logWindowContent'></div></div>
-<div id='hud'><div id='hudTitle'>HUD</div><div id='hudClose' onclick='toggleHUD();'>&times;</div><div id='hudData'></div></div>
+<!--<div id='hud'><div id='hudTitle'>HUD</div><div id='hudClose' onclick='toggleHUD();'>&times;</div><div id='hudData'></div></div>-->
<pre id="editor"></pre>
@@ -71,7 +71,9 @@
<script src="js/theme-chaos.js" type="text/javascript" charset="utf-8"></script>
<script src="js/ace/mode-javascript.js" type="text/javascript" charset="utf-8"></script>
<script src="js/ace/mode-css.js" type="text/javascript" charset="utf-8"></script>
+<script src="js/ace/mode-less.js" type="text/javascript" charset="utf-8"></script>
<script src="js/ace/mode-html.js" type="text/javascript" charset="utf-8"></script>
+
<script type="text/javascript" src="./nowjs/now.js"></script>
<script src="js/diffmatchpatch/diff_match_patch.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="./js/jquery.min.js"></script>
View
172 public/index.js
@@ -472,7 +472,6 @@ now.c_processUserFileEvent = function(fname, event, fromUserId, usersInFile, se
var userColor = userColorMap[fromUserId%userColorMap.length];
notifyAndAddMessageToLog(userColor, uName, "<div class='itemType_projectAction'>Launched the project!</div>");
}
- updateHUD();
}
now.c_processUserEvent = function(event, fromUserId, fromUserName){
if(fromUserId == now.core.clientId){
@@ -561,6 +560,7 @@ function openFileFromServer(fname, forceOpen){
initialFileloadTimeout = setTimeout(function(){
initialStateIsWelcome = false;
}, 3000);
+ editor.setFadeFoldWidgets(false);
if(infile != ""){
// we're leaving the file we're in. let collaborators know.
now.s_leaveFile(infile);
@@ -612,8 +612,13 @@ function openFileFromServer(fname, forceOpen){
editor.getSession().setMode(new JavaScriptMode());
}else{
if(fileHasExtention(f, ".css") || fileHasExtention(f, ".less") || fileHasExtention(f, ".styl") ){
- console.log("setting mode to: CSS");
- editor.getSession().setMode(new CSSMode());
+ if(fileHasExtention(f, ".less")){
+ console.log("setting mode to: Less");
+ editor.getSession().setMode(new LessMode());
+ }else{
+ console.log("setting mode to: CSS");
+ editor.getSession().setMode(new CSSMode());
+ }
}else{
if(fileHasExtention(f, ".html")){
console.log("setting mode to: HTML");
@@ -732,6 +737,7 @@ function setFileStatusIndicator(status){
var Range = require("ace/range").Range;
var JavaScriptMode = require("ace/mode/javascript").Mode;
var CSSMode = require("ace/mode/css").Mode;
+var LessMode = require("ace/mode/less").Mode;
var HTMLMode = require("ace/mode/html").Mode;
var TextMode = require("ace/mode/text").Mode;
// ---------------------------------------------------------
@@ -837,7 +843,6 @@ function updateFileBrowserFromFileList(filesAndInfo){
}
}]
});
- updateHUD();
}
function fileSorter_Name(a, b){
if(a[0].toLowerCase() == b[0].toLowerCase()){
@@ -1018,13 +1023,13 @@ function shiftshiftBroadcastKeydown(event){
usedAsCommand = true;
break;
}
- case "h":{
- toggleHUD();
+ case "l":{
+ toggleLog();
usedAsCommand = true;
break;
}
- case "l":{
- toggleLog();
+ case "o":{
+ toggleLogOutput();
usedAsCommand = true;
break;
}
@@ -1180,92 +1185,6 @@ function toggleLog(){
}
}
// ---------------------------------------------------------
-// HUD
-// ---------------------------------------------------------
-function toggleHUD(){
- if($("#hud").is(":visible")){
- // close it.
- $("#hud").hide();
- $("#topMenu_HUD").removeClass("topMenuItemOpen");
- }else{
- // open it.
- updateHUD();
- $("#hud").show();
- $("#topMenu_HUD").addClass("topMenuItemOpen");
- }
-}
-function updateHUD(){
- //console.log("updating HUD");
- var totalProjectBytes = 0;
- for(var i=0; i<mostRecentFilesAndInfo.length; i++){
- var fInfo = mostRecentFilesAndInfo[i];
- //if(fInfo[1] > 0){ // only show files that have users in them...
- totalProjectBytes += fInfo[2];
- //}
- }
- mostRecentFilesAndInfo.sort(fileSorter_Size);
- var remainingW = 196.0;
- var remainingH = 146.0;
- var offsetX = 0.0
- var offsetY = 0.0;
- var projectBytesLeft = totalProjectBytes;
- var typeIsVertical = true;
- var html = "<div id='hudData_TreeMap'>";
- for(var i=0; i<mostRecentFilesAndInfo.length; i++){
- var fInfo = mostRecentFilesAndInfo[i];
- var sz = fInfo[2];
- if(sz > 0){
- var percentSz = 1.0*sz/projectBytesLeft;
- var maxPercentToEat = 0.4;
- var minPercentToEat = 0.02;
- //if(projectBytesLeft == sz){
- // maxPercentToEat = 1.0;
- //}
- var pxAreaToEat = Math.max(minPercentToEat, Math.min(maxPercentToEat, percentSz)) * remainingH*remainingW;
- var blockH = 1;
- var blockW = 1;
- if(typeIsVertical){
- blockH = remainingH;
- blockW = Math.ceil(pxAreaToEat / blockH);
- //blockH = blockW; // for funky square test.
- }else{
- blockW = remainingW;
- blockH = Math.ceil(pxAreaToEat / blockW);
- //blockW = blockH; // for funky square test.
- }
- var userFlag = Math.max(0, Math.min(5, fInfo[1]));
- var plural = "";
- if(fInfo[1] != 1){
- plural = "s";
- }
- html += "<div class='treemapBlock treemapBlock_"+userFlag+"' title='"+fInfo[0]+" ("+fInfo[1]+" player"+plural+", "+(Math.floor(sz/102.4)/10.0)+"k)' style='top: "+offsetY+"px; left: "+offsetX+"px; width: "+blockW+"px; height: "+blockH+"px; line-height: "+blockH+"px; border-radius: 100px;' fname='"+fInfo[0]+"' onclick='safelyOpenFileFromEntry(this);'>"+fInfo[0]+"</div>";
- if(typeIsVertical){
- offsetX += blockW+1;
- remainingW -= blockW+1;
- }else{
- offsetY += blockH+1;
- remainingH -= blockH+1;
- }
- // switch type if needed.
- if(remainingW > remainingH){
- typeIsVertical = true;
- }else{
- typeIsVertical = false;
- }
- projectBytesLeft -= sz;
- }
- }
- html += "</div>";
- var plural = "";
- if(mostRecentTotalUserCount != 1){
- plural = "s";
- }
- html += "<div id='hudData_UserCount'>"+mostRecentTotalUserCount+" player"+plural+"</div>";
- html += "<div id='hudData_ByteCount'>"+Math.floor(totalProjectBytes/1024)+"k bytes</div>";
- $("#hudData").html(html);
-
-}
-// ---------------------------------------------------------
// LOG OUTPUT / CONSOLE
// ---------------------------------------------------------
function toggleLogOutput(){
@@ -1297,17 +1216,6 @@ function launchProject(){
// ---------------------------------------------------------
// URL manipulation.
// ---------------------------------------------------------
-function renameMyself(){
- setName(prompt("What shall we call thee?"));
- now.s_sendUserEvent("join"); // let everyone know who I am!
-}
-function setName(newName){
- now.name = newName;
- $("#whoIAm").html("// Hello, <b style='cursor: pointer;' onclick='renameMyself();'>"+now.name+"</b>.");
-}
-// ---------------------------------------------------------
-// URL manipulation.
-// ---------------------------------------------------------
function getURLGetVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
@@ -1397,9 +1305,8 @@ now.ready(function(){
setFileStatusIndicator("default");
});
console.log(now);
- setName(now.name);
setTimeout(function(){
- $("#logOutputIFrame").attr("src", "http://"+now.teamID+".chaoscollective.org/livelog"); //+now.teamID);
+ $("#logOutputIFrame").attr("src", "http://logs.chaoscollective.org/live?log="+now.teamID); //+now.teamID);
document.title = now.teamID;
}, 1000);
console.log("fetching git commits...");
@@ -1420,17 +1327,9 @@ now.ready(function(){
notifyAndAddMessageToLog("#CCCCCC", "CHAOS", "Most recent commits "+cHTML);
console.log(" ------------------------------------");
});
- //toggleHUD();
});
$(window).ready(function() {
-
- //now.name = prompt("What's your name?").replace(/\&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
- var getName = getURLGetVariable("name");
- if(!getName){
- getName = "#"+Math.floor(Math.random()*10000);
- }
- now.name = getName;
-
+
var getProject = getURLGetVariable("project");
if(getProject){
now.teamID = getProject;
@@ -1440,10 +1339,12 @@ $(window).ready(function() {
$("#whoIAm").html("Authenticating...");
- editor = ace.edit("editor");
- editor.setTheme("ace/theme/chaos");
+ console.log("startin editor...");
+ editor = ace.edit("editor");
console.log("EDITOR");
console.log(editor);
+
+ editor.setTheme("ace/theme/chaos");
editor.getSession().setTabSize(2);
editor.getSession().setUseSoftTabs(true);
@@ -1454,10 +1355,6 @@ $(window).ready(function() {
editor.getSession().setWrapLimitRange(null, null);
editor.setScrollSpeed(8);
- /*
- console.log(editor.commands);
- var canon = require('pilot/canon');
- */
editor.commands.addCommand({
name: 'saveToServer',
bindKey: {
@@ -1483,24 +1380,6 @@ $(window).ready(function() {
autoFoldCodeProgressive();
}
});
- /*
- editor.commands.addCommand({
- name: 'removeBlankLines_TightenUp',
- bindKey: {
- win: 'Alt-t',
- mac: 'Alt-t',
- sender: 'editor'
- },
- exec: function(env, args, request) {
- if(!nowIsOnline){
- return;
- }
- var txt = editor.getSession().getValue();
- txt = txt.replace(/\n\n/g, "\n");
- editor.getSession().setValue(txt);
- }
- });
- */
editor.getSession().on('change', function(a, b, c){
if(!ignoreAceChange){
@@ -1558,19 +1437,6 @@ $(window).ready(function() {
//$("body")[0].webkitRequestFullScreen(true);
//document.documentElement.webkitRequestFullScreen(true);
- /*
- setTimeout(function(){
- console.log("setting theme to tiny.");
- $("#editor").css({"line-height": "1px"});
- editor.setTheme("ace/theme/chaostiny");
- setTimeout(function(){
- console.log("setting theme to normal.");
- $("#editor").css({"line-height": "12px"});
- editor.setTheme("ace/theme/chaos");
- }, 3000);
- }, 8000);
- */
-
setTimeout(function(){
console.log("editor theme hack to ensure painting...");
editor.setTheme("ace/theme/chaos");
View
1  public/js/ace/ace-compat-noconflict.js
@@ -1 +0,0 @@
-ace.define("pilot/index",["require","exports","module","pilot/browser_focus","pilot/dom","pilot/event","pilot/event_emitter","pilot/fixoldbrowsers","pilot/keys","pilot/lang","pilot/oop","pilot/useragent","pilot/canon"],function(a,b,c){a("pilot/browser_focus"),a("pilot/dom"),a("pilot/event"),a("pilot/event_emitter"),a("pilot/fixoldbrowsers"),a("pilot/keys"),a("pilot/lang"),a("pilot/oop"),a("pilot/useragent"),a("pilot/canon")}),ace.define("pilot/browser_focus",["require","exports","module","ace/lib/browser_focus"],function(a,b,c){console.warn("DEPRECATED: 'pilot/browser_focus' is deprecated. Use 'ace/lib/browser_focus' instead"),c.exports=a("ace/lib/browser_focus")}),ace.define("pilot/dom",["require","exports","module","ace/lib/dom"],function(a,b,c){console.warn("DEPRECATED: 'pilot/dom' is deprecated. Use 'ace/lib/dom' instead"),c.exports=a("ace/lib/dom")}),ace.define("pilot/event",["require","exports","module","ace/lib/event"],function(a,b,c){console.warn("DEPRECATED: 'pilot/event' is deprecated. Use 'ace/lib/event' instead"),c.exports=a("ace/lib/event")}),ace.define("pilot/event_emitter",["require","exports","module","ace/lib/event_emitter"],function(a,b,c){console.warn("DEPRECATED: 'pilot/event_emitter' is deprecated. Use 'ace/lib/event_emitter' instead"),c.exports=a("ace/lib/event_emitter")}),ace.define("pilot/fixoldbrowsers",["require","exports","module","ace/lib/fixoldbrowsers"],function(a,b,c){console.warn("DEPRECATED: 'pilot/fixoldbrowsers' is deprecated. Use 'ace/lib/fixoldbrowsers' instead"),c.exports=a("ace/lib/fixoldbrowsers")}),ace.define("pilot/keys",["require","exports","module","ace/lib/keys"],function(a,b,c){console.warn("DEPRECATED: 'pilot/keys' is deprecated. Use 'ace/lib/keys' instead"),c.exports=a("ace/lib/keys")}),ace.define("pilot/lang",["require","exports","module","ace/lib/lang"],function(a,b,c){console.warn("DEPRECATED: 'pilot/lang' is deprecated. Use 'ace/lib/lang' instead"),c.exports=a("ace/lib/lang")}),ace.define("pilot/oop",["require","exports","module","ace/lib/oop"],function(a,b,c){console.warn("DEPRECATED: 'pilot/oop' is deprecated. Use 'ace/lib/oop' instead"),c.exports=a("ace/lib/oop")}),ace.define("pilot/useragent",["require","exports","module","ace/lib/useragent"],function(a,b,c){console.warn("DEPRECATED: 'pilot/useragent' is deprecated. Use 'ace/lib/useragent' instead"),c.exports=a("ace/lib/useragent")}),ace.define("pilot/canon",["require","exports","module"],function(a,b,c){console.warn("DEPRECATED: 'pilot/canon' is deprecated."),b.addCommand=function(){console.warn("DEPRECATED: 'canon.addCommand()' is deprecated. Use 'editor.commands.addCommand(command)' instead."),console.trace()},b.removeCommand=function(){console.warn("DEPRECATED: 'canon.removeCommand()' is deprecated. Use 'editor.commands.removeCommand(command)' instead."),console.trace()}}),function(){ace.require(["ace/ace"],function(a){window.ace||(window.ace={});for(var b in a)a.hasOwnProperty(b)&&(ace[b]=a[b])})}()
View
490 public/js/ace/ace-compat-uncompressed-noconflict.js
@@ -1,490 +0,0 @@
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('pilot/index', ['require', 'exports', 'module' , 'pilot/browser_focus', 'pilot/dom', 'pilot/event', 'pilot/event_emitter', 'pilot/fixoldbrowsers', 'pilot/keys', 'pilot/lang', 'pilot/oop', 'pilot/useragent', 'pilot/canon'], function(require, exports, module) {
- require("pilot/browser_focus");
- require("pilot/dom");
- require("pilot/event");
- require("pilot/event_emitter");
- require("pilot/fixoldbrowsers");
- require("pilot/keys");
- require("pilot/lang");
- require("pilot/oop");
- require("pilot/useragent");
- require("pilot/canon");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('pilot/browser_focus', ['require', 'exports', 'module' , 'ace/lib/browser_focus'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/browser_focus' is deprecated. Use 'ace/lib/browser_focus' instead");
- module.exports = require("ace/lib/browser_focus");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('pilot/dom', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/dom' is deprecated. Use 'ace/lib/dom' instead");
- module.exports = require("ace/lib/dom");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('pilot/event', ['require', 'exports', 'module' , 'ace/lib/event'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/event' is deprecated. Use 'ace/lib/event' instead");
- module.exports = require("ace/lib/event");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('pilot/event_emitter', ['require', 'exports', 'module' , 'ace/lib/event_emitter'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/event_emitter' is deprecated. Use 'ace/lib/event_emitter' instead");
- module.exports = require("ace/lib/event_emitter");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('pilot/fixoldbrowsers', ['require', 'exports', 'module' , 'ace/lib/fixoldbrowsers'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/fixoldbrowsers' is deprecated. Use 'ace/lib/fixoldbrowsers' instead");
- module.exports = require("ace/lib/fixoldbrowsers");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('pilot/keys', ['require', 'exports', 'module' , 'ace/lib/keys'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/keys' is deprecated. Use 'ace/lib/keys' instead");
- module.exports = require("ace/lib/keys");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('pilot/lang', ['require', 'exports', 'module' , 'ace/lib/lang'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/lang' is deprecated. Use 'ace/lib/lang' instead");
- module.exports = require("ace/lib/lang");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('pilot/oop', ['require', 'exports', 'module' , 'ace/lib/oop'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/oop' is deprecated. Use 'ace/lib/oop' instead");
- module.exports = require("ace/lib/oop");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('pilot/useragent', ['require', 'exports', 'module' , 'ace/lib/useragent'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/useragent' is deprecated. Use 'ace/lib/useragent' instead");
- module.exports = require("ace/lib/useragent");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('pilot/canon', ['require', 'exports', 'module' ], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/canon' is deprecated.");
- //return require("ace/lib/dom");
-
- exports.addCommand = function() {
- console.warn("DEPRECATED: 'canon.addCommand()' is deprecated. Use 'editor.commands.addCommand(command)' instead.");
- console.trace();
- }
-
- exports.removeCommand = function() {
- console.warn("DEPRECATED: 'canon.removeCommand()' is deprecated. Use 'editor.commands.removeCommand(command)' instead.");
- console.trace();
- }
-});
-;
- (function() {
- ace.require(["ace/ace"], function(a) {
- if (!window.ace)
- window.ace = {};
- for (var key in a) if (a.hasOwnProperty(key))
- ace[key] = a[key];
- });
- })();
-
View
490 public/js/ace/ace-compat-uncompressed.js
@@ -1,490 +0,0 @@
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-define('pilot/index', ['require', 'exports', 'module' , 'pilot/browser_focus', 'pilot/dom', 'pilot/event', 'pilot/event_emitter', 'pilot/fixoldbrowsers', 'pilot/keys', 'pilot/lang', 'pilot/oop', 'pilot/useragent', 'pilot/canon'], function(require, exports, module) {
- require("pilot/browser_focus");
- require("pilot/dom");
- require("pilot/event");
- require("pilot/event_emitter");
- require("pilot/fixoldbrowsers");
- require("pilot/keys");
- require("pilot/lang");
- require("pilot/oop");
- require("pilot/useragent");
- require("pilot/canon");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-define('pilot/browser_focus', ['require', 'exports', 'module' , 'ace/lib/browser_focus'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/browser_focus' is deprecated. Use 'ace/lib/browser_focus' instead");
- module.exports = require("ace/lib/browser_focus");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-define('pilot/dom', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/dom' is deprecated. Use 'ace/lib/dom' instead");
- module.exports = require("ace/lib/dom");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-define('pilot/event', ['require', 'exports', 'module' , 'ace/lib/event'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/event' is deprecated. Use 'ace/lib/event' instead");
- module.exports = require("ace/lib/event");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-define('pilot/event_emitter', ['require', 'exports', 'module' , 'ace/lib/event_emitter'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/event_emitter' is deprecated. Use 'ace/lib/event_emitter' instead");
- module.exports = require("ace/lib/event_emitter");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-define('pilot/fixoldbrowsers', ['require', 'exports', 'module' , 'ace/lib/fixoldbrowsers'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/fixoldbrowsers' is deprecated. Use 'ace/lib/fixoldbrowsers' instead");
- module.exports = require("ace/lib/fixoldbrowsers");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-define('pilot/keys', ['require', 'exports', 'module' , 'ace/lib/keys'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/keys' is deprecated. Use 'ace/lib/keys' instead");
- module.exports = require("ace/lib/keys");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-define('pilot/lang', ['require', 'exports', 'module' , 'ace/lib/lang'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/lang' is deprecated. Use 'ace/lib/lang' instead");
- module.exports = require("ace/lib/lang");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-define('pilot/oop', ['require', 'exports', 'module' , 'ace/lib/oop'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/oop' is deprecated. Use 'ace/lib/oop' instead");
- module.exports = require("ace/lib/oop");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-define('pilot/useragent', ['require', 'exports', 'module' , 'ace/lib/useragent'], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/useragent' is deprecated. Use 'ace/lib/useragent' instead");
- module.exports = require("ace/lib/useragent");
-});
-/* vim:ts=4:sts=4:sw=4:
- * ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Ajax.org Code Editor (ACE).
- *
- * The Initial Developer of the Original Code is
- * Ajax.org B.V.
- * Portions created by the Initial Developer are Copyright (C) 2010
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Fabian Jakobs <fabian AT ajax DOT org>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-define('pilot/canon', ['require', 'exports', 'module' ], function(require, exports, module) {
- console.warn("DEPRECATED: 'pilot/canon' is deprecated.");
- //return require("ace/lib/dom");
-
- exports.addCommand = function() {
- console.warn("DEPRECATED: 'canon.addCommand()' is deprecated. Use 'editor.commands.addCommand(command)' instead.");
- console.trace();
- }
-
- exports.removeCommand = function() {
- console.warn("DEPRECATED: 'canon.removeCommand()' is deprecated. Use 'editor.commands.removeCommand(command)' instead.");
- console.trace();
- }
-});
-;
- (function() {
- window.require(["ace/ace"], function(a) {
- if (!window.ace)
- window.ace = {};
- for (var key in a) if (a.hasOwnProperty(key))
- ace[key] = a[key];
- });
- })();
-
View
1  public/js/ace/ace-compat.js
@@ -1 +0,0 @@
-define("pilot/index",["require","exports","module","pilot/browser_focus","pilot/dom","pilot/event","pilot/event_emitter","pilot/fixoldbrowsers","pilot/keys","pilot/lang","pilot/oop","pilot/useragent","pilot/canon"],function(a,b,c){a("pilot/browser_focus"),a("pilot/dom"),a("pilot/event"),a("pilot/event_emitter"),a("pilot/fixoldbrowsers"),a("pilot/keys"),a("pilot/lang"),a("pilot/oop"),a("pilot/useragent"),a("pilot/canon")}),define("pilot/browser_focus",["require","exports","module","ace/lib/browser_focus"],function(a,b,c){console.warn("DEPRECATED: 'pilot/browser_focus' is deprecated. Use 'ace/lib/browser_focus' instead"),c.exports=a("ace/lib/browser_focus")}),define("pilot/dom",["require","exports","module","ace/lib/dom"],function(a,b,c){console.warn("DEPRECATED: 'pilot/dom' is deprecated. Use 'ace/lib/dom' instead"),c.exports=a("ace/lib/dom")}),define("pilot/event",["require","exports","module","ace/lib/event"],function(a,b,c){console.warn("DEPRECATED: 'pilot/event' is deprecated. Use 'ace/lib/event' instead"),c.exports=a("ace/lib/event")}),define("pilot/event_emitter",["require","exports","module","ace/lib/event_emitter"],function(a,b,c){console.warn("DEPRECATED: 'pilot/event_emitter' is deprecated. Use 'ace/lib/event_emitter' instead"),c.exports=a("ace/lib/event_emitter")}),define("pilot/fixoldbrowsers",["require","exports","module","ace/lib/fixoldbrowsers"],function(a,b,c){console.warn("DEPRECATED: 'pilot/fixoldbrowsers' is deprecated. Use 'ace/lib/fixoldbrowsers' instead"),c.exports=a("ace/lib/fixoldbrowsers")}),define("pilot/keys",["require","exports","module","ace/lib/keys"],function(a,b,c){console.warn("DEPRECATED: 'pilot/keys' is deprecated. Use 'ace/lib/keys' instead"),c.exports=a("ace/lib/keys")}),define("pilot/lang",["require","exports","module","ace/lib/lang"],function(a,b,c){console.warn("DEPRECATED: 'pilot/lang' is deprecated. Use 'ace/lib/lang' instead"),c.exports=a("ace/lib/lang")}),define("pilot/oop",["require","exports","module","ace/lib/oop"],function(a,b,c){console.warn("DEPRECATED: 'pilot/oop' is deprecated. Use 'ace/lib/oop' instead"),c.exports=a("ace/lib/oop")}),define("pilot/useragent",["require","exports","module","ace/lib/useragent"],function(a,b,c){console.warn("DEPRECATED: 'pilot/useragent' is deprecated. Use 'ace/lib/useragent' instead"),c.exports=a("ace/lib/useragent")}),define("pilot/canon",["require","exports","module"],function(a,b,c){console.warn("DEPRECATED: 'pilot/canon' is deprecated."),b.addCommand=function(){console.warn("DEPRECATED: 'canon.addCommand()' is deprecated. Use 'editor.commands.addCommand(command)' instead."),console.trace()},b.removeCommand=function(){console.warn("DEPRECATED: 'canon.removeCommand()' is deprecated. Use 'editor.commands.removeCommand(command)' instead."),console.trace()}}),function(){window.require(["ace/ace"],function(a){window.ace||(window.ace={});for(var b in a)a.hasOwnProperty(b)&&(ace[b]=a[b])})}()
View
1  public/js/ace/ace-noconflict.js
0 additions, 1 deletion not shown
View
14,194 public/js/ace/ace-uncompressed-noconflict.js
0 additions, 14,194 deletions not shown
View
14,194 public/js/ace/ace-uncompressed.js
0 additions, 14,194 deletions not shown
View
15,038 public/js/ace/ace.js
15,037 additions, 1 deletion not shown
View
1  public/js/ace/keybinding-emacs-noconflict.js
@@ -1 +0,0 @@
-ace.define("ace/keyboard/keybinding/emacs",["require","exports","module","ace/keyboard/state_handler"],function(a,b,c){"use strict";var d=a("../state_handler").StateHandler,e=a("../state_handler").matchCharacterOnly,f={start:[{key:"ctrl-x",then:"c-x"},{regex:["(?:command-([0-9]*))*","(down|ctrl-n)"],exec:"golinedown",params:[{name:"times",match:1,type:"number",defaultValue:1}]},{regex:["(?:command-([0-9]*))*","(right|ctrl-f)"],exec:"gotoright",params:[{name:"times",match:1,type:"number",defaultValue:1}]},{regex:["(?:command-([0-9]*))*","(up|ctrl-p)"],exec:"golineup",params:[{name:"times",match:1,type:"number",defaultValue:1}]},{regex:["(?:command-([0-9]*))*","(left|ctrl-b)"],exec:"gotoleft",params:[{name:"times",match:1,type:"number",defaultValue:1}]},{comment:"This binding matches all printable characters except numbers as long as they are no numbers and print them n times.",regex:["(?:command-([0-9]*))","([^0-9]+)*"],match:e,exec:"inserttext",params:[{name:"times",match:1,type:"number",defaultValue:"1"},{name:"text",match:2}]},{comment:"This binding matches numbers as long as there is no meta_number in the buffer.",regex:["(command-[0-9]*)*","([0-9]+)"],match:e,disallowMatches:[1],exec:"inserttext",params:[{name:"text",match:2,type:"text"}]},{regex:["command-([0-9]*)","(command-[0-9]|[0-9])"],comment:"Stops execution if the regex /meta_[0-9]+/ matches to avoid resetting the buffer."}],"c-x":[{key:"ctrl-g",then:"start"},{key:"ctrl-s",exec:"save",then:"start"}]};b.Emacs=new d(f)}),ace.define("ace/keyboard/state_handler",["require","exports","module"],function(a,b,c){function e(a){this.keymapping=this.$buildKeymappingRegex(a)}"use strict";var d=!1;e.prototype={$buildKeymappingRegex:function(a){for(var b in a)this.$buildBindingsRegex(a[b]);return a},$buildBindingsRegex:function(a){a.forEach(function(a){a.key?a.key=new RegExp("^"+a.key+"$"):Array.isArray(a.regex)?("key"in a||(a.key=new RegExp("^"+a.regex[1]+"$")),a.regex=new RegExp(a.regex.join("")+"$")):a.regex&&(a.regex=new RegExp(a.regex+"$"))})},$composeBuffer:function(a,b,c,d){if(a.state==null||a.buffer==null)a.state="start",a.buffer="";var e=[];b&1&&e.push("ctrl"),b&8&&e.push("command"),b&2&&e.push("option"),b&4&&e.push("shift"),c&&e.push(c);var f=e.join("-"),g=a.buffer+f;b!=2&&(a.buffer=g);var h={bufferToUse:g,symbolicName:f};return d&&(h.keyIdentifier=d.keyIdentifier),h},$find:function(a,b,c,e,f,g){var h={};return this.keymapping[a.state].some(function(i){var j;if(i.key&&!i.key.test(c))return!1;if(i.regex&&!(j=i.regex.exec(b)))return!1;if(i.match&&!i.match(b,e,f,c,g))return!1;if(i.disallowMatches)for(var k=0;k<i.disallowMatches.length;k++)if(!!j[i.disallowMatches[k]])return!1;if(i.exec){h.command=i.exec;if(i.params){var l;h.args={},i.params.forEach(function(a){a.match!=null&&j!=null?l=j[a.match]||a.defaultValue:l=a.defaultValue,a.type==="number"&&(l=parseInt(l)),h.args[a.name]=l})}a.buffer=""}return i.then&&(a.state=i.then,a.buffer=""),h.command==null&&(h.command="null"),d&&console.log("KeyboardStateMapper#find",i),!0}),h.command?h:(a.buffer="",!1)},handleKeyboard:function(a,b,c,e,f){if(b==0||c!=""&&c!=String.fromCharCode(0)){var g=this.$composeBuffer(a,b,c,f),h=g.bufferToUse,i=g.symbolicName,j=g.keyIdentifier;return g=this.$find(a,h,i,b,c,j),d&&console.log("KeyboardStateMapper#match",h,i,g),g}return null}},b.matchCharacterOnly=function(a,b,c,d){return b==0?!0:b==4&&c.length==1?!0:!1},b.StateHandler=e}),function(){ace.require(["ace/ace"],function(a){window.ace||(window.ace={});for(var b in a)a.hasOwnProperty(b)&&(ace[b]=a[b])})}()
View
415 public/js/ace/keybinding-emacs-uncompressed-noconflict.js
@@ -1,415 +0,0 @@
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Mozilla Skywriter.
- *
- * The Initial Developer of the Original Code is
- * Mozilla.
- * Portions created by the Initial Developer are Copyright (C) 2009
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Julian Viereck (julian.viereck@gmail.com)
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('ace/keyboard/keybinding/emacs', ['require', 'exports', 'module' , 'ace/keyboard/state_handler'], function(require, exports, module) {
-"use strict";
-
-var StateHandler = require("../state_handler").StateHandler;
-var matchCharacterOnly = require("../state_handler").matchCharacterOnly;
-
-var emacsState = {
- start: [
- {
- key: "ctrl-x",
- then: "c-x"
- },
- {
- regex: [ "(?:command-([0-9]*))*", "(down|ctrl-n)" ],
- exec: "golinedown",
- params: [
- {
- name: "times",
- match: 1,
- type: "number",
- defaultValue: 1
- }
- ]
- },
- {
- regex: [ "(?:command-([0-9]*))*", "(right|ctrl-f)" ],
- exec: "gotoright",
- params: [
- {
- name: "times",
- match: 1,
- type: "number",
- defaultValue: 1
- }
- ]
- },
- {
- regex: [ "(?:command-([0-9]*))*", "(up|ctrl-p)" ],
- exec: "golineup",
- params: [
- {
- name: "times",
- match: 1,
- type: "number",
- defaultValue: 1
- }
- ]
- },
- {
- regex: [ "(?:command-([0-9]*))*", "(left|ctrl-b)" ],
- exec: "gotoleft",
- params: [
- {
- name: "times",
- match: 1,
- type: "number",
- defaultValue: 1
- }
- ]
- },
- {
- comment: "This binding matches all printable characters except numbers as long as they are no numbers and print them n times.",
- regex: [ "(?:command-([0-9]*))", "([^0-9]+)*" ],
- match: matchCharacterOnly,
- exec: "inserttext",
- params: [
- {
- name: "times",
- match: 1,
- type: "number",
- defaultValue: "1"
- },
- {
- name: "text",
- match: 2
- }
- ]
- },
- {
- comment: "This binding matches numbers as long as there is no meta_number in the buffer.",
- regex: [ "(command-[0-9]*)*", "([0-9]+)" ],
- match: matchCharacterOnly,
- disallowMatches: [ 1 ],
- exec: "inserttext",
- params: [
- {
- name: "text",
- match: 2,
- type: "text"
- }
- ]
- },
- {
- regex: [ "command-([0-9]*)", "(command-[0-9]|[0-9])" ],
- comment: "Stops execution if the regex /meta_[0-9]+/ matches to avoid resetting the buffer."
- }
- ],
- "c-x": [
- {
- key: "ctrl-g",
- then: "start"
- },
- {
- key: "ctrl-s",
- exec: "save",
- then: "start"
- }
- ]
-};
-
-exports.Emacs = new StateHandler(emacsState);
-
-});
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Mozilla Skywriter.
- *
- * The Initial Developer of the Original Code is
- * Mozilla.
- * Portions created by the Initial Developer are Copyright (C) 2009
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Julian Viereck (julian.viereck@gmail.com)
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-ace.define('ace/keyboard/state_handler', ['require', 'exports', 'module' ], function(require, exports, module) {
-"use strict";
-
-// If you're developing a new keymapping and want to get an idea what's going
-// on, then enable debugging.
-var DEBUG = false;
-
-function StateHandler(keymapping) {
- this.keymapping = this.$buildKeymappingRegex(keymapping);
-}
-
-StateHandler.prototype = {
- /**
- * Build the RegExp from the keymapping as RegExp can't stored directly
- * in the metadata JSON and as the RegExp used to match the keys/buffer
- * need to be adapted.
- */
- $buildKeymappingRegex: function(keymapping) {
- for (var state in keymapping) {
- this.$buildBindingsRegex(keymapping[state]);
- }
- return keymapping;
- },
-
- $buildBindingsRegex: function(bindings) {
- // Escape a given Regex string.
- bindings.forEach(function(binding) {
- if (binding.key) {
- binding.key = new RegExp('^' + binding.key + '$');
- } else if (Array.isArray(binding.regex)) {
- if (!('key' in binding))
- binding.key = new RegExp('^' + binding.regex[1] + '$');
- binding.regex = new RegExp(binding.regex.join('') + '$');
- } else if (binding.regex) {
- binding.regex = new RegExp(binding.regex + '$');
- }
- });
- },
-
- $composeBuffer: function(data, hashId, key, e) {
- // Initialize the data object.
- if (data.state == null || data.buffer == null) {
- data.state = "start";
- data.buffer = "";
- }
-
- var keyArray = [];
- if (hashId & 1) keyArray.push("ctrl");
- if (hashId & 8) keyArray.push("command");
- if (hashId & 2) keyArray.push("option");
- if (hashId & 4) keyArray.push("shift");
- if (key) keyArray.push(key);
-
- var symbolicName = keyArray.join("-");
- var bufferToUse = data.buffer + symbolicName;
-
- // Don't add the symbolic name to the key buffer if the alt_ key is
- // part of the symbolic name. If it starts with alt_, this means
- // that the user hit an alt keycombo and there will be a single,
- // new character detected after this event, which then will be
- // added to the buffer (e.g. alt_j will result in ∆).
- //
- // We test for 2 and not for & 2 as we only want to exclude the case where
- // the option key is pressed alone.
- if (hashId != 2) {
- data.buffer = bufferToUse;
- }
-
- var bufferObj = {
- bufferToUse: bufferToUse,
- symbolicName: symbolicName,
- };
-
- if (e) {
- bufferObj.keyIdentifier = e.keyIdentifier
- }
-
- return bufferObj;
- },
-
- $find: function(data, buffer, symbolicName, hashId, key, keyIdentifier) {
- // Holds the command to execute and the args if a command matched.
- var result = {};
-
- // Loop over all the bindings of the keymap until a match is found.
- this.keymapping[data.state].some(function(binding) {
- var match;
-
- // Check if the key matches.
- if (binding.key && !binding.key.test(symbolicName)) {
- return false;
- }
-
- // Check if the regex matches.
- if (binding.regex && !(match = binding.regex.exec(buffer))) {
- return false;
- }
-
- // Check if the match function matches.
- if (binding.match && !binding.match(buffer, hashId, key, symbolicName, keyIdentifier)) {
- return false;
- }
-
- // Check for disallowed matches.
- if (binding.disallowMatches) {
- for (var i = 0; i < binding.disallowMatches.length; i++) {
- if (!!match[binding.disallowMatches[i]]) {
- return false;
- }
- }
- }
-
- // If there is a command to execute, then figure out the
- // command and the arguments.
- if (binding.exec) {
- result.command = binding.exec;
-
- // Build the arguments.
- if (binding.params) {
- var value;
- result.args = {};
- binding.params.forEach(function(param) {
- if (param.match != null && match != null) {
- value = match[param.match] || param.defaultValue;
- } else {
- value = param.defaultValue;
- }
-
- if (param.type === 'number') {
- value = parseInt(value);
- }
-
- result.args[param.name] = value;
- });
- }
- data.buffer = "";
- }
-
- // Handle the 'then' property.
- if (binding.then) {
- data.state = binding.then;
- data.buffer = "";
- }
-
- // If no command is set, then execute the "null" fake command.
- if (result.command == null) {
- result.command = "null";
- }
-
- if (DEBUG) {
- console.log("KeyboardStateMapper#find", binding);
- }
- return true;
- });
-
- if (result.command) {
- return result;
- } else {
- data.buffer = "";
- return false;
- }
- },
-
- /**
- * This function is called by keyBinding.
- */
- handleKeyboard: function(data, hashId, key, keyCode, e) {
- // If we pressed any command key but no other key, then ignore the input.
- // Otherwise "shift-" is added to the buffer, and later on "shift-g"
- // which results in "shift-shift-g" which doesn't make sense.
- if (hashId != 0 && (key == "" || key == String.fromCharCode(0))) {
- return null;
- }
-
- // Compute the current value of the keyboard input buffer.
- var r = this.$composeBuffer(data, hashId, key, e);
- var buffer = r.bufferToUse;
- var symbolicName = r.symbolicName;
- var keyId = r.keyIdentifier;
-
- r = this.$find(data, buffer, symbolicName, hashId, key, keyId);
- if (DEBUG) {
- console.log("KeyboardStateMapper#match", buffer, symbolicName, r);
- }
-
- return r;
- }
-}
-
-/**
- * This is a useful matching function and therefore is defined here so that
- * users of KeyboardStateMapper can use it.
- *
- * @return boolean
- * If no command key (Command|Option|Shift|Ctrl) is pressed, it
- * returns true. If the only the Shift key is pressed + a character
- * true is returned as well. Otherwise, false is returned.
- * Summing up, the function returns true whenever the user typed
- * a normal character on the keyboard and no shortcut.
- */
-exports.matchCharacterOnly = function(buffer, hashId, key, symbolicName) {
- // If no command keys are pressed, then catch the input.
- if (hashId == 0) {
- return true;
- }
- // If only the shift key is pressed and a character key, then
- // catch that input as well.
- else if ((hashId == 4) && key.length == 1) {
- return true;
- }
- // Otherwise, we let the input got through.
- else {
- return false;
- }
-};
-
-exports.StateHandler = StateHandler;
-});
-;
- (function() {
- ace.require(["ace/ace"], function(a) {
- if (!window.ace)
- window.ace = {};
- for (var key in a) if (a.hasOwnProperty(key))
- ace[key] = a[key];
- });
- })();
-
View
415 public/js/ace/keybinding-emacs-uncompressed.js
@@ -1,415 +0,0 @@
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Mozilla Skywriter.
- *
- * The Initial Developer of the Original Code is
- * Mozilla.
- * Portions created by the Initial Developer are Copyright (C) 2009
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Julian Viereck (julian.viereck@gmail.com)
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-define('ace/keyboard/keybinding/emacs', ['require', 'exports', 'module' , 'ace/keyboard/state_handler'], function(require, exports, module) {
-"use strict";
-
-var StateHandler = require("../state_handler").StateHandler;
-var matchCharacterOnly = require("../state_handler").matchCharacterOnly;
-
-var emacsState = {
- start: [
- {
- key: "ctrl-x",
- then: "c-x"
- },
- {
- regex: [ "(?:command-([0-9]*))*", "(down|ctrl-n)" ],
- exec: "golinedown",
- params: [
- {
- name: "times",
- match: 1,
- type: "number",
- defaultValue: 1
- }
- ]
- },
- {
- regex: [ "(?:command-([0-9]*))*", "(right|ctrl-f)" ],
- exec: "gotoright",
- params: [
- {
- name: "times",
- match: 1,
- type: "number",
- defaultValue: 1
- }
- ]
- },
- {
- regex: [ "(?:command-([0-9]*))*", "(up|ctrl-p)" ],
- exec: "golineup",
- params: [
- {
- name: "times",
- match: 1,
- type: "number",
- defaultValue: 1
- }
- ]
- },
- {
- regex: [ "(?:command-([0-9]*))*", "(left|ctrl-b)" ],
- exec: "gotoleft",
- params: [
- {
- name: "times",
- match: 1,
- type: "number",
- defaultValue: 1
- }
- ]
- },
- {
- comment: "This binding matches all printable characters except numbers as long as they are no numbers and print them n times.",
- regex: [ "(?:command-([0-9]*))", "([^0-9]+)*" ],
- match: matchCharacterOnly,
- exec: "inserttext",
- params: [
- {
- name: "times",
- match: 1,
- type: "number",
- defaultValue: "1"
- },
- {
- name: "text",
- match: 2
- }
- ]
- },
- {
- comment: "This binding matches numbers as long as there is no meta_number in the buffer.",
- regex: [ "(command-[0-9]*)*", "([0-9]+)" ],
- match: matchCharacterOnly,
- disallowMatches: [ 1 ],
- exec: "inserttext",
- params: [
- {
- name: "text",
- match: 2,
- type: "text"
- }
- ]
- },
- {
- regex: [ "command-([0-9]*)", "(command-[0-9]|[0-9])" ],
- comment: "Stops execution if the regex /meta_[0-9]+/ matches to avoid resetting the buffer."
- }
- ],
- "c-x": [
- {
- key: "ctrl-g",
- then: "start"
- },
- {
- key: "ctrl-s",
- exec: "save",
- then: "start"
- }
- ]
-};
-
-exports.Emacs = new StateHandler(emacsState);
-
-});
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is Mozilla Skywriter.
- *
- * The Initial Developer of the Original Code is
- * Mozilla.
- * Portions created by the Initial Developer are Copyright (C) 2009
- * the Initial Developer. All Rights Reserved.