├── packages ├── ace-editor │ ├── modules │ │ ├── assert.js │ │ └── ace │ │ │ └── worker │ │ │ └── worker_client.js │ ├── package.json │ ├── main.js │ └── demo.js ├── extjs-ace │ ├── lib │ │ ├── component.css │ │ └── component.js │ └── package.json ├── extjs3-ace │ ├── README.md │ ├── lib │ │ └── component.js │ └── package.json ├── extjs4-ace │ ├── README.md │ ├── lib │ │ └── component.js │ └── package.json └── ace-worker │ ├── package.json │ └── worker.js ├── .gitignore ├── www ├── ace │ ├── logo.png │ ├── icons │ │ ├── error_obj.gif │ │ ├── warning_obj.gif │ │ ├── Readme.txt │ │ └── epl.html │ ├── styles.css │ └── index.html ├── extjs3-ace │ ├── logo.png │ ├── styles.css │ └── index.html ├── extjs4-ace │ ├── logo.png │ ├── styles.css │ └── index.html └── index.html ├── docs └── images │ ├── screenshot_1.png │ └── screenshot_1_original.png ├── programs ├── extjs3-ace │ └── program.json ├── extjs4-ace │ └── program.json └── ace │ └── program.json ├── package.json ├── lib ├── build.js └── project.js ├── program.json ├── program.packages.json └── README.md /packages/ace-editor/modules/assert.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .tmp*~ 3 | .pinf-* 4 | *.local.* 5 | -------------------------------------------------------------------------------- /www/ace/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadorn/ace-extjs/HEAD/www/ace/logo.png -------------------------------------------------------------------------------- /www/extjs3-ace/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadorn/ace-extjs/HEAD/www/extjs3-ace/logo.png -------------------------------------------------------------------------------- /www/extjs4-ace/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadorn/ace-extjs/HEAD/www/extjs4-ace/logo.png -------------------------------------------------------------------------------- /docs/images/screenshot_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadorn/ace-extjs/HEAD/docs/images/screenshot_1.png -------------------------------------------------------------------------------- /www/ace/icons/error_obj.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadorn/ace-extjs/HEAD/www/ace/icons/error_obj.gif -------------------------------------------------------------------------------- /www/ace/icons/warning_obj.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadorn/ace-extjs/HEAD/www/ace/icons/warning_obj.gif -------------------------------------------------------------------------------- /docs/images/screenshot_1_original.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cadorn/ace-extjs/HEAD/docs/images/screenshot_1_original.png -------------------------------------------------------------------------------- /www/ace/icons/Readme.txt: -------------------------------------------------------------------------------- 1 | The icons in this folder are from the Eclipse project and licensed under the Eclipse public license version 1.0 (EPL). -------------------------------------------------------------------------------- /packages/extjs-ace/lib/component.css: -------------------------------------------------------------------------------- 1 | 2 | .x-ux-ace-editor-panel { 3 | border-style: solid; 4 | border-width: 0; 5 | border-color: #99bbe8; 6 | background-color: #ffffff; 7 | } 8 | -------------------------------------------------------------------------------- /packages/extjs3-ace/README.md: -------------------------------------------------------------------------------- 1 | ExtJS 3 ACE Editor Component 2 | ============================ 3 | 4 | A component to wrap the ACE Editor for ExtJS 3. 5 | 6 | Notes 7 | ===== 8 | 9 | * The `ace`, `cockpit` and `pilot` mappings are needed in `./package.json` because the ACE plugin manager resolves 10 | plugin IDs against the program boot package (typically this package). 11 | -------------------------------------------------------------------------------- /packages/extjs4-ace/README.md: -------------------------------------------------------------------------------- 1 | ExtJS 4 ACE Editor Component 2 | ============================ 3 | 4 | A component to wrap the ACE Editor for ExtJS 4. 5 | 6 | Notes 7 | ===== 8 | 9 | * The `ace`, `cockpit` and `pilot` mappings are needed in `./package.json` because the ACE plugin manager resolves 10 | plugin IDs against the program boot package (typically this package). 11 | -------------------------------------------------------------------------------- /packages/extjs3-ace/lib/component.js: -------------------------------------------------------------------------------- 1 | 2 | module.declare(["extjs-ace/component"], function(require, exports, module) 3 | { 4 | var COMPONENT = require("extjs-ace/component"); 5 | 6 | exports.main = function() 7 | { 8 | COMPONENT.init(); 9 | 10 | var component = COMPONENT.getComponent(); 11 | 12 | Ext.ux.AceEditor = Ext.extend(Ext.BoxComponent, component); 13 | } 14 | }); 15 | -------------------------------------------------------------------------------- /programs/extjs3-ace/program.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": { 3 | "location": "../../program.packages.json" 4 | }, 5 | "boot": "github.com/cadorn/ace-extjs/packages/extjs3-ace/", 6 | "contexts": { 7 | "top": { 8 | "github.com/cadorn/ace-extjs/packages/extjs3-ace/": { 9 | }, 10 | "github.com/cadorn/ace-extjs/packages/ace-worker/@/worker": { 11 | } 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /programs/extjs4-ace/program.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": { 3 | "location": "../../program.packages.json" 4 | }, 5 | "boot": "github.com/cadorn/ace-extjs/packages/extjs4-ace/", 6 | "contexts": { 7 | "top": { 8 | "github.com/cadorn/ace-extjs/packages/extjs4-ace/": { 9 | }, 10 | "github.com/cadorn/ace-extjs/packages/ace-worker/@/worker": { 11 | } 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /packages/extjs4-ace/lib/component.js: -------------------------------------------------------------------------------- 1 | 2 | module.declare(["extjs-ace/component"], function(require, exports, module) 3 | { 4 | var COMPONENT = require("extjs-ace/component"); 5 | 6 | exports.main = function() 7 | { 8 | COMPONENT.init(); 9 | 10 | var component = COMPONENT.getComponent(); 11 | 12 | component.extend = "Ext.panel.Panel"; 13 | 14 | Ext.define("Ext.ux.AceEditor", component); 15 | } 16 | }); 17 | -------------------------------------------------------------------------------- /packages/ace-worker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "uid": "http://github.com/cadorn/ace-extjs/packages/ace-worker/", 3 | "main": "worker.js", 4 | "directories": { 5 | "lib": "" 6 | }, 7 | "mappings": { 8 | "ace": { 9 | "id": "github.com/ajaxorg/ace/" 10 | }, 11 | "cockpit": { 12 | "id": "github.com/ajaxorg/cockpit/" 13 | }, 14 | "pilot": { 15 | "id": "github.com/ajaxorg/pilot/" 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /packages/extjs-ace/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "uid": "http://github.com/cadorn/ace-extjs/packages/extjs-ace/", 3 | "name": "extjs-ace", 4 | "main": "", 5 | "contexts": { 6 | "top": { 7 | "/": { 8 | "load": { 9 | "github.com/cadorn/ace-extjs/packages/ace-editor/": {} 10 | } 11 | } 12 | } 13 | }, 14 | "mappings": { 15 | "editor": { 16 | "id": "github.com/cadorn/ace-extjs/packages/ace-editor/" 17 | }, 18 | "ace": { 19 | "id": "github.com/ajaxorg/ace/" 20 | }, 21 | "cockpit": { 22 | "id": "github.com/ajaxorg/cockpit/" 23 | }, 24 | "pilot": { 25 | "id": "github.com/ajaxorg/pilot/" 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /www/extjs3-ace/styles.css: -------------------------------------------------------------------------------- 1 | 2 | #ace-editor-tests { 3 | font-family: Arial, Helvetica, sans-serif, Tahoma, Verdana, sans-serif; 4 | font-size: 12px; 5 | background: rgb(14, 98, 165); 6 | color: white; 7 | } 8 | 9 | #ace-editor-tests TD { 10 | padding: 3px; 11 | } 12 | 13 | #cockpitInput { 14 | position: absolute; 15 | width: 100%; 16 | bottom: 0; 17 | 18 | border: none; outline: none; 19 | font-family: consolas, courier, monospace; 20 | font-size: 120%; 21 | } 22 | 23 | #cockpitOutput { 24 | padding: 10px; 25 | margin: 0 15px; 26 | border: 1px solid #AAA; 27 | -moz-border-radius-topleft: 10px; 28 | -moz-border-radius-topright: 10px; 29 | border-top-left-radius: 4px; border-top-right-radius: 4px; 30 | background: #DDD; color: #000; 31 | } 32 | -------------------------------------------------------------------------------- /www/extjs4-ace/styles.css: -------------------------------------------------------------------------------- 1 | 2 | #ace-editor-tests { 3 | font-family: Arial, Helvetica, sans-serif, Tahoma, Verdana, sans-serif; 4 | font-size: 12px; 5 | background: rgb(14, 98, 165); 6 | color: white; 7 | } 8 | 9 | #ace-editor-tests TD { 10 | padding: 3px; 11 | } 12 | 13 | #cockpitInput { 14 | position: absolute; 15 | width: 100%; 16 | bottom: 0; 17 | 18 | border: none; outline: none; 19 | font-family: consolas, courier, monospace; 20 | font-size: 120%; 21 | } 22 | 23 | #cockpitOutput { 24 | padding: 10px; 25 | margin: 0 15px; 26 | border: 1px solid #AAA; 27 | -moz-border-radius-topleft: 10px; 28 | -moz-border-radius-topright: 10px; 29 | border-top-left-radius: 4px; border-top-right-radius: 4px; 30 | background: #DDD; color: #000; 31 | } 32 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ace-extjs", 3 | "engine": [ 4 | "node" 5 | ], 6 | "main": "lib/project.js", 7 | "scripts": { 8 | "build": { 9 | "location": "./", 10 | "module": "/lib/build.js" 11 | } 12 | }, 13 | "mappings": { 14 | "nodejs": { 15 | "id": "nodejs.org/" 16 | }, 17 | "pinf": { 18 | "id": "pinf.org/loader/" 19 | }, 20 | "jsgi": { 21 | "id": "github.com/kriszyp/jsgi-node/" 22 | }, 23 | "connect": { 24 | "id": "github.com/senchalabs/connect/" 25 | }, 26 | "extjs3": { 27 | "id": "sencha.com/products/extjs3" 28 | }, 29 | "extjs4": { 30 | "id": "sencha.com/products/extjs4" 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /packages/extjs3-ace/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "uid": "http://github.com/cadorn/ace-extjs/packages/extjs3-ace/", 3 | "name": "extjs3-ace", 4 | "main": "lib/component.js", 5 | "contexts": { 6 | "top": { 7 | "/lib/component": { 8 | "include": { 9 | "github.com/cadorn/ace-extjs/packages/extjs-ace/": {} 10 | } 11 | } 12 | } 13 | }, 14 | "mappings": { 15 | "extjs-ace": { 16 | "id": "github.com/cadorn/ace-extjs/packages/extjs-ace/" 17 | }, 18 | "ace": { 19 | "id": "github.com/ajaxorg/ace/" 20 | }, 21 | "cockpit": { 22 | "id": "github.com/ajaxorg/cockpit/" 23 | }, 24 | "pilot": { 25 | "id": "github.com/ajaxorg/pilot/" 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /packages/extjs4-ace/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "uid": "http://github.com/cadorn/ace-extjs/packages/extjs4-ace/", 3 | "name": "extjs4-ace", 4 | "main": "lib/component.js", 5 | "contexts": { 6 | "top": { 7 | "/lib/component": { 8 | "include": { 9 | "github.com/cadorn/ace-extjs/packages/extjs-ace/": {} 10 | } 11 | } 12 | } 13 | }, 14 | "mappings": { 15 | "extjs-ace": { 16 | "id": "github.com/cadorn/ace-extjs/packages/extjs-ace/" 17 | }, 18 | "ace": { 19 | "id": "github.com/ajaxorg/ace/" 20 | }, 21 | "cockpit": { 22 | "id": "github.com/ajaxorg/cockpit/" 23 | }, 24 | "pilot": { 25 | "id": "github.com/ajaxorg/pilot/" 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /programs/ace/program.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": { 3 | "location": "../../program.packages.json" 4 | }, 5 | "boot": "github.com/cadorn/ace-extjs/packages/ace-editor/", 6 | "contexts": { 7 | "top": { 8 | "github.com/cadorn/ace-extjs/packages/ace-editor/": {}, 9 | "github.com/cadorn/ace-extjs/packages/ace-worker/@/worker": {} 10 | } 11 | }, 12 | "packages": { 13 | "github.com/cadorn/ace-extjs/packages/ace-editor/": { 14 | "descriptor": { 15 | "contexts": { 16 | "top": { 17 | "/main": { 18 | "include": { 19 | "github.com/cadorn/ace-extjs/packages/ace-editor/@/demo": {} 20 | } 21 | } 22 | } 23 | } 24 | } 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /packages/ace-editor/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "uid": "http://github.com/cadorn/ace-extjs/packages/ace-editor/", 3 | "main": "main.js", 4 | "directories": { 5 | "lib": "" 6 | }, 7 | "contexts": { 8 | "top": { 9 | "/main": { 10 | "include": { 11 | "github.com/ajaxorg/pilot/@/lib/pilot/index": {}, 12 | "github.com/ajaxorg/ace/@/lib/ace/defaults": {}, 13 | "github.com/ajaxorg/cockpit/@/lib/cockpit/index": {}, 14 | "github.com/ajaxorg/ace/": {} 15 | } 16 | } 17 | } 18 | }, 19 | "mappings": { 20 | "worker": { 21 | "id": "github.com/cadorn/ace-extjs/packages/ace-worker/" 22 | }, 23 | "ace": { 24 | "id": "github.com/ajaxorg/ace/" 25 | }, 26 | "cockpit": { 27 | "id": "github.com/ajaxorg/cockpit/" 28 | }, 29 | "pilot": { 30 | "id": "github.com/ajaxorg/pilot/" 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /www/ace/styles.css: -------------------------------------------------------------------------------- 1 | html { 2 | height: 100%; 3 | overflow: hidden; 4 | } 5 | 6 | body { 7 | overflow: hidden; 8 | margin: 0; 9 | padding: 0; 10 | height: 100%; 11 | width: 100%; 12 | font-family: Arial, Helvetica, sans-serif, Tahoma, Verdana, sans-serif; 13 | font-size: 12px; 14 | background: rgb(14, 98, 165); 15 | color: white; 16 | } 17 | 18 | #editor { 19 | position: absolute; 20 | top: 60px; 21 | left: 0px; 22 | background: white; 23 | } 24 | 25 | #controls { 26 | width: 100%; 27 | } 28 | 29 | #cockpitInput { 30 | position: absolute; 31 | width: 100%; 32 | bottom: 0; 33 | 34 | border: none; outline: none; 35 | font-family: consolas, courier, monospace; 36 | font-size: 120%; 37 | } 38 | 39 | #cockpitOutput { 40 | padding: 10px; 41 | margin: 0 15px; 42 | border: 1px solid #AAA; 43 | -moz-border-radius-topleft: 10px; 44 | -moz-border-radius-topright: 10px; 45 | border-top-left-radius: 4px; border-top-right-radius: 4px; 46 | background: #DDD; color: #000; 47 | } -------------------------------------------------------------------------------- /lib/build.js: -------------------------------------------------------------------------------- 1 | 2 | var PATH = require("nodejs/path"), 3 | PROMISE = require("jsgi/promise"), 4 | PROGRAM_SERVER = require("pinf/program-server"); 5 | 6 | exports.main = function(env) 7 | { 8 | var server = new PROGRAM_SERVER.JSGI({ 9 | api: { 10 | PROMISE: PROMISE 11 | }, 12 | map: { 13 | "/ace/AceEditor.js": { 14 | programPath: PATH.dirname(PATH.dirname(module.id)) + "/programs/ace/program.json" 15 | }, 16 | "/extjs3-ace/Component.js": { 17 | programPath: PATH.dirname(PATH.dirname(module.id)) + "/programs/extjs3-ace/program.json" 18 | }, 19 | "/extjs4-ace/Component.js": { 20 | programPath: PATH.dirname(PATH.dirname(module.id)) + "/programs/extjs4-ace/program.json" 21 | } 22 | } 23 | }); 24 | 25 | server.spider("/ace/AceEditor.js", PATH.dirname(PATH.dirname(module.id)) + "/build"); 26 | server.spider("/extjs3-ace/Component.js", PATH.dirname(PATH.dirname(module.id)) + "/build"); 27 | server.spider("/extjs4-ace/Component.js", PATH.dirname(PATH.dirname(module.id)) + "/build"); 28 | } 29 | -------------------------------------------------------------------------------- /program.json: -------------------------------------------------------------------------------- 1 | { 2 | "boot": "project", 3 | "engine": [ 4 | "node" 5 | ], 6 | "packages": { 7 | "project": { 8 | "locator": { 9 | "location": "./" 10 | } 11 | }, 12 | "sencha.com/products/extjs3": { 13 | "locator": { 14 | "archive": "http://extjs.cachefly.net/ext-3.3.1.zip", 15 | "resource": true 16 | } 17 | }, 18 | "sencha.com/products/extjs4": { 19 | "locator": { 20 | "archive": "http://extjs.cachefly.net/ext-4.0.0-com.zip", 21 | "resource": true 22 | } 23 | }, 24 | "nodejs.org/": { 25 | "provider": "nodejs.org/" 26 | }, 27 | "pinf.org/loader/": { 28 | "provider": "pinf.org/loader/" 29 | }, 30 | "github.com/kriszyp/jsgi-node/": { 31 | "locator": { 32 | "archive": "https://github.com/kriszyp/jsgi-node/zipball/v0.2.4", 33 | "descriptor": { 34 | "uid": "https://github.com/kriszyp/jsgi-node/", 35 | "native": true 36 | } 37 | } 38 | }, 39 | "github.com/senchalabs/connect/": { 40 | "locator": { 41 | "name": "connect", 42 | "version": "1.6.2", 43 | "pm": "npm" 44 | } 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /www/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 9 | 10 | 11 || 14 | ExtJS 3 Examples | 15 | ExtJS 4 Examples 16 | 17 | DEV: 18 | ACE Standalone | 19 | ACE on ExtJS 3 | 20 | ACE on ExtJS 4 21 | 22 | BUILD: 23 | ACE Standalone | 24 | ACE on ExtJS 3 | 25 | ACE on ExtJS 4 26 | 27 | Docs 28 | | 29 |
| 32 | 33 | | 34 |
| 37 | Project by Christoph Dorn facilitated by PINF. Copyright various parties. Various licenses in effect. 38 | | 39 |
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE 31 | PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR 32 | DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS 33 | AGREEMENT.
34 | 35 |1. DEFINITIONS
36 | 37 |"Contribution" means:
38 | 39 |a) in the case of the initial Contributor, the initial 40 | code and documentation distributed under this Agreement, and
41 |b) in the case of each subsequent Contributor:
42 |i) changes to the Program, and
43 |ii) additions to the Program;
44 |where such changes and/or additions to the Program 45 | originate from and are distributed by that particular Contributor. A 46 | Contribution 'originates' from a Contributor if it was added to the 47 | Program by such Contributor itself or anyone acting on such 48 | Contributor's behalf. Contributions do not include additions to the 49 | Program which: (i) are separate modules of software distributed in 50 | conjunction with the Program under their own license agreement, and (ii) 51 | are not derivative works of the Program.
52 | 53 |"Contributor" means any person or entity that distributes 54 | the Program.
55 | 56 |"Licensed Patents" mean patent claims licensable by a 57 | Contributor which are necessarily infringed by the use or sale of its 58 | Contribution alone or when combined with the Program.
59 | 60 |"Program" means the Contributions distributed in accordance 61 | with this Agreement.
62 | 63 |"Recipient" means anyone who receives the Program under 64 | this Agreement, including all Contributors.
65 | 66 |2. GRANT OF RIGHTS
67 | 68 |a) Subject to the terms of this Agreement, each 69 | Contributor hereby grants Recipient a non-exclusive, worldwide, 70 | royalty-free copyright license to reproduce, prepare derivative works 71 | of, publicly display, publicly perform, distribute and sublicense the 72 | Contribution of such Contributor, if any, and such derivative works, in 73 | source code and object code form.
74 | 75 |b) Subject to the terms of this Agreement, each 76 | Contributor hereby grants Recipient a non-exclusive, worldwide, 77 | royalty-free patent license under Licensed Patents to make, use, sell, 78 | offer to sell, import and otherwise transfer the Contribution of such 79 | Contributor, if any, in source code and object code form. This patent 80 | license shall apply to the combination of the Contribution and the 81 | Program if, at the time the Contribution is added by the Contributor, 82 | such addition of the Contribution causes such combination to be covered 83 | by the Licensed Patents. The patent license shall not apply to any other 84 | combinations which include the Contribution. No hardware per se is 85 | licensed hereunder.
86 | 87 |c) Recipient understands that although each Contributor 88 | grants the licenses to its Contributions set forth herein, no assurances 89 | are provided by any Contributor that the Program does not infringe the 90 | patent or other intellectual property rights of any other entity. Each 91 | Contributor disclaims any liability to Recipient for claims brought by 92 | any other entity based on infringement of intellectual property rights 93 | or otherwise. As a condition to exercising the rights and licenses 94 | granted hereunder, each Recipient hereby assumes sole responsibility to 95 | secure any other intellectual property rights needed, if any. For 96 | example, if a third party patent license is required to allow Recipient 97 | to distribute the Program, it is Recipient's responsibility to acquire 98 | that license before distributing the Program.
99 | 100 |d) Each Contributor represents that to its knowledge it 101 | has sufficient copyright rights in its Contribution, if any, to grant 102 | the copyright license set forth in this Agreement.
103 | 104 |3. REQUIREMENTS
105 | 106 |A Contributor may choose to distribute the Program in object code 107 | form under its own license agreement, provided that:
108 | 109 |a) it complies with the terms and conditions of this 110 | Agreement; and
111 | 112 |b) its license agreement:
113 | 114 |i) effectively disclaims on behalf of all Contributors 115 | all warranties and conditions, express and implied, including warranties 116 | or conditions of title and non-infringement, and implied warranties or 117 | conditions of merchantability and fitness for a particular purpose;
118 | 119 |ii) effectively excludes on behalf of all Contributors 120 | all liability for damages, including direct, indirect, special, 121 | incidental and consequential damages, such as lost profits;
122 | 123 |iii) states that any provisions which differ from this 124 | Agreement are offered by that Contributor alone and not by any other 125 | party; and
126 | 127 |iv) states that source code for the Program is available 128 | from such Contributor, and informs licensees how to obtain it in a 129 | reasonable manner on or through a medium customarily used for software 130 | exchange.
131 | 132 |When the Program is made available in source code form:
133 | 134 |a) it must be made available under this Agreement; and
135 | 136 |b) a copy of this Agreement must be included with each 137 | copy of the Program.
138 | 139 |Contributors may not remove or alter any copyright notices contained 140 | within the Program.
141 | 142 |Each Contributor must identify itself as the originator of its 143 | Contribution, if any, in a manner that reasonably allows subsequent 144 | Recipients to identify the originator of the Contribution.
145 | 146 |4. COMMERCIAL DISTRIBUTION
147 | 148 |Commercial distributors of software may accept certain 149 | responsibilities with respect to end users, business partners and the 150 | like. While this license is intended to facilitate the commercial use of 151 | the Program, the Contributor who includes the Program in a commercial 152 | product offering should do so in a manner which does not create 153 | potential liability for other Contributors. Therefore, if a Contributor 154 | includes the Program in a commercial product offering, such Contributor 155 | ("Commercial Contributor") hereby agrees to defend and 156 | indemnify every other Contributor ("Indemnified Contributor") 157 | against any losses, damages and costs (collectively "Losses") 158 | arising from claims, lawsuits and other legal actions brought by a third 159 | party against the Indemnified Contributor to the extent caused by the 160 | acts or omissions of such Commercial Contributor in connection with its 161 | distribution of the Program in a commercial product offering. The 162 | obligations in this section do not apply to any claims or Losses 163 | relating to any actual or alleged intellectual property infringement. In 164 | order to qualify, an Indemnified Contributor must: a) promptly notify 165 | the Commercial Contributor in writing of such claim, and b) allow the 166 | Commercial Contributor to control, and cooperate with the Commercial 167 | Contributor in, the defense and any related settlement negotiations. The 168 | Indemnified Contributor may participate in any such claim at its own 169 | expense.
170 | 171 |For example, a Contributor might include the Program in a commercial 172 | product offering, Product X. That Contributor is then a Commercial 173 | Contributor. If that Commercial Contributor then makes performance 174 | claims, or offers warranties related to Product X, those performance 175 | claims and warranties are such Commercial Contributor's responsibility 176 | alone. Under this section, the Commercial Contributor would have to 177 | defend claims against the other Contributors related to those 178 | performance claims and warranties, and if a court requires any other 179 | Contributor to pay any damages as a result, the Commercial Contributor 180 | must pay those damages.
181 | 182 |5. NO WARRANTY
183 | 184 |EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS 185 | PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 186 | OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, 187 | ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY 188 | OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely 189 | responsible for determining the appropriateness of using and 190 | distributing the Program and assumes all risks associated with its 191 | exercise of rights under this Agreement , including but not limited to 192 | the risks and costs of program errors, compliance with applicable laws, 193 | damage to or loss of data, programs or equipment, and unavailability or 194 | interruption of operations.
195 | 196 |6. DISCLAIMER OF LIABILITY
197 | 198 |EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT 199 | NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, 200 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING 201 | WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF 202 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 203 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR 204 | DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED 205 | HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
206 | 207 |7. GENERAL
208 | 209 |If any provision of this Agreement is invalid or unenforceable under 210 | applicable law, it shall not affect the validity or enforceability of 211 | the remainder of the terms of this Agreement, and without further action 212 | by the parties hereto, such provision shall be reformed to the minimum 213 | extent necessary to make such provision valid and enforceable.
214 | 215 |If Recipient institutes patent litigation against any entity 216 | (including a cross-claim or counterclaim in a lawsuit) alleging that the 217 | Program itself (excluding combinations of the Program with other 218 | software or hardware) infringes such Recipient's patent(s), then such 219 | Recipient's rights granted under Section 2(b) shall terminate as of the 220 | date such litigation is filed.
221 | 222 |All Recipient's rights under this Agreement shall terminate if it 223 | fails to comply with any of the material terms or conditions of this 224 | Agreement and does not cure such failure in a reasonable period of time 225 | after becoming aware of such noncompliance. If all Recipient's rights 226 | under this Agreement terminate, Recipient agrees to cease use and 227 | distribution of the Program as soon as reasonably practicable. However, 228 | Recipient's obligations under this Agreement and any licenses granted by 229 | Recipient relating to the Program shall continue and survive.
230 | 231 |Everyone is permitted to copy and distribute copies of this 232 | Agreement, but in order to avoid inconsistency the Agreement is 233 | copyrighted and may only be modified in the following manner. The 234 | Agreement Steward reserves the right to publish new versions (including 235 | revisions) of this Agreement from time to time. No one other than the 236 | Agreement Steward has the right to modify this Agreement. The Eclipse 237 | Foundation is the initial Agreement Steward. The Eclipse Foundation may 238 | assign the responsibility to serve as the Agreement Steward to a 239 | suitable separate entity. Each new version of the Agreement will be 240 | given a distinguishing version number. The Program (including 241 | Contributions) may always be distributed subject to the version of the 242 | Agreement under which it was received. In addition, after a new version 243 | of the Agreement is published, Contributor may elect to distribute the 244 | Program (including its Contributions) under the new version. Except as 245 | expressly stated in Sections 2(a) and 2(b) above, Recipient receives no 246 | rights or licenses to the intellectual property of any Contributor under 247 | this Agreement, whether expressly, by implication, estoppel or 248 | otherwise. All rights in the Program not expressly granted under this 249 | Agreement are reserved.
250 | 251 |This Agreement is governed by the laws of the State of New York and 252 | the intellectual property laws of the United States of America. No party 253 | to this Agreement will bring a legal action under this Agreement more 254 | than one year after the cause of action arose. Each party waives its 255 | rights to a jury trial in any resulting litigation.
256 | 257 | 258 | 259 | 260 | -------------------------------------------------------------------------------- /packages/ace-editor/demo.js: -------------------------------------------------------------------------------- 1 | /* ***** BEGIN LICENSE BLOCK ***** 2 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 | * 4 | * The contents of this file are subject to the Mozilla Public License Version 5 | * 1.1 (the "License"); you may not use this file except in compliance with 6 | * the License. You may obtain a copy of the License at 7 | * http://www.mozilla.org/MPL/ 8 | * 9 | * Software distributed under the License is distributed on an "AS IS" basis, 10 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 11 | * for the specific language governing rights and limitations under the 12 | * License. 13 | * 14 | * The Original Code is Mozilla Skywriter. 15 | * 16 | * The Initial Developer of the Original Code is 17 | * Mozilla. 18 | * Portions created by the Initial Developer are Copyright (C) 2009 19 | * the Initial Developer. All Rights Reserved. 20 | * 21 | * Contributor(s): 22 | * Fabian Jakobs| 26 | 27 | 43 | | 44 |45 | 46 | 62 | | 63 |64 | 65 | 74 | | 75 |76 | 77 | 78 | | 79 |80 | 81 | 82 | | 83 |84 | 85 | 86 | | 87 |88 | 89 | 90 | | 91 |
92 |
93 | |
94 |
| 97 | 98 | 115 | | 116 |117 | 118 | 124 | | 125 |126 | 127 | 133 | | 134 |135 | 136 | 137 | | 138 |139 | 140 | 141 | | 142 |143 | 144 | 145 | | 146 |
| 202 | 203 | 219 | | 220 |221 | 222 | 238 | | 239 |240 | 241 | 250 | | 251 |252 | |
253 |
254 | |
255 |
| 258 | 259 | 276 | | 277 |278 | 279 | 285 | | 286 |287 | 288 | 294 | | 295 |296 | | |
| 299 | 300 | 301 | | 302 |303 | 304 | 305 | | 306 |307 | 308 | 309 | | 310 |311 | 312 | 313 | | 314 ||
| 317 | 318 | 319 | | 320 |321 | 322 | 323 | | 324 |325 | 326 | 327 | | 328 |329 | |
| 207 | 208 | 224 | | 225 |226 | 227 | 243 | | 244 |245 | 246 | 255 | | 256 |257 | |
258 |
259 | |
260 |
| 263 | 264 | 281 | | 282 |283 | 284 | 290 | | 291 |292 | 293 | 299 | | 300 |301 | | |
| 304 | 305 | 306 | | 307 |308 | 309 | 310 | | 311 |312 | 313 | 314 | | 315 |316 | 317 | 318 | | 319 ||
| 322 | 323 | 324 | | 325 |326 | 327 | 328 | | 329 |330 | 331 | 332 | | 333 |334 | |