Update documentation with cleaner license declaration

Fix #366
This commit is contained in:
Paris Kasidiaris 2016-12-01 15:35:23 +02:00
parent 64f80f8623
commit 1d30091188
15 changed files with 51 additions and 113 deletions

View File

@ -1,13 +1,12 @@
{ {
"source": { "source": {
"include": [ "include": [
"src/xterm.js", "src/"
"src/handlers/Clipboard.js", ],
"addons/attach/attach.js", "exclude": [
"addons/fit/fit.js", "src/test/"
"addons/fullscreen/fullscreen.js", ],
"addons/linkify/linkify.js" "excludePattern": "src/.+\\.test\\.(js|ts)$"
]
}, },
"opts": { "opts": {
"readme": "README.md", "readme": "README.md",

View File

@ -20,7 +20,7 @@
"express": "4.13.4", "express": "4.13.4",
"express-ws": "2.0.0-rc.1", "express-ws": "2.0.0-rc.1",
"glob": "^7.0.5", "glob": "^7.0.5",
"jsdoc": "3.4.0", "jsdoc": "3.4.3",
"mocha": "2.5.3", "mocha": "2.5.3",
"nodemon": "1.10.2", "nodemon": "1.10.2",
"pty.js": "0.3.1", "pty.js": "0.3.1",

View File

@ -1,6 +1,5 @@
/** /**
* xterm.js: xterm, in the browser * @license MIT
* Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
*/ */
import { ITerminal } from './Interfaces'; import { ITerminal } from './Interfaces';

View File

@ -1,6 +1,5 @@
/** /**
* xterm.js: xterm, in the browser * @license MIT
* Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
*/ */
function EventEmitter() { function EventEmitter() {

View File

@ -1,6 +1,5 @@
/** /**
* xterm.js: xterm, in the browser * @license MIT
* Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
*/ */
export interface ITerminal { export interface ITerminal {

View File

@ -1,6 +1,5 @@
/** /**
* xterm.js: xterm, in the browser * @license MIT
* Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
*/ */
import { ITerminal } from './Interfaces'; import { ITerminal } from './Interfaces';

View File

@ -1,9 +1,7 @@
/* /**
* Implements the attach method, that * Implements the attach method, that attaches the terminal to a WebSocket stream.
* attaches the terminal to a WebSocket stream. * @module xterm/addons/attach/attach
* * @license MIT
* The bidirectional argument indicates, whether the terminal should
* send data to the socket as well and is true, by default.
*/ */
(function (attach) { (function (attach) {
@ -26,12 +24,6 @@
})(function (Xterm) { })(function (Xterm) {
'use strict'; 'use strict';
/**
* This module provides methods for attaching a terminal to a WebSocket
* stream.
*
* @module xterm/addons/attach/attach
*/
var exports = {}; var exports = {};
/** /**

View File

@ -1,16 +1,16 @@
/* /**
* Fit terminal columns and rows to the dimensions of its * Fit terminal columns and rows to the dimensions of its DOM element.
* DOM element.
* *
* Approach: * ## Approach
* - Rows: Truncate the division of the terminal parent element height * - Rows: Truncate the division of the terminal parent element height by the terminal row height.
* by the terminal row height
* *
* - Columns: Truncate the division of the terminal parent element width by * - Columns: Truncate the division of the terminal parent element width by the terminal character
* the terminal character width (apply display: inline at the * width (apply display: inline at the terminal row and truncate its width with the current
* terminal row and truncate its width with the current number * number of columns).
* of columns) * @module xterm/addons/fit/fit
* @license MIT
*/ */
(function (fit) { (function (fit) {
if (typeof exports === 'object' && typeof module === 'object') { if (typeof exports === 'object' && typeof module === 'object') {
/* /*
@ -29,11 +29,6 @@
fit(window.Terminal); fit(window.Terminal);
} }
})(function (Xterm) { })(function (Xterm) {
/**
* This module provides methods for fitting a terminal's size to a parent container.
*
* @module xterm/addons/fit/fit
*/
var exports = {}; var exports = {};
exports.proposeGeometry = function (term) { exports.proposeGeometry = function (term) {

View File

@ -1,14 +1,7 @@
/* /**
* Fullscreen addon for xterm.js * Fullscreen addon for xterm.js
* * @module xterm/addons/fullscreen/fullscreen
* Implements the toggleFullscreen function. * @license MIT
*
* If the `fullscreen` argument has been supplied, then
* if it is true, the fullscreen mode gets turned on,
* if it is false or null, the fullscreen mode gets turned off.
*
* If the `fullscreen` argument has not been supplied, the
* fullscreen mode is being toggled.
*/ */
(function (fullscreen) { (function (fullscreen) {
if (typeof exports === 'object' && typeof module === 'object') { if (typeof exports === 'object' && typeof module === 'object') {
@ -30,6 +23,11 @@
})(function (Xterm) { })(function (Xterm) {
var exports = {}; var exports = {};
/**
* Toggle the given terminal's fullscreen mode.
* @param {Xterm} term - The terminal to toggle full screen mode
* @param {boolean} fullscreen - Toggle fullscreen on (true) or off (false)
*/
exports.toggleFullScreen = function (term, fullscreen) { exports.toggleFullScreen = function (term, fullscreen) {
var fn; var fn;

View File

@ -1,3 +1,9 @@
/**
* Methods for turning URL subscrings in the terminal's content into links (`a` DOM elements).
* @module xterm/addons/linkify/linkify
* @license MIT
*/
(function (linkify) { (function (linkify) {
if (typeof exports === 'object' && typeof module === 'object') { if (typeof exports === 'object' && typeof module === 'object') {
/* /*
@ -18,12 +24,6 @@
})(function (Xterm) { })(function (Xterm) {
'use strict'; 'use strict';
/**
* This module provides methods for convertings valid URL substrings
* into HTML anchor elements (links), inside a terminal view.
*
* @module xterm/addons/linkify/linkify
*/
var exports = {}, var exports = {},
protocolClause = '(https?:\\/\\/)', protocolClause = '(https?:\\/\\/)',
domainCharacterSet = '[\\da-z\\.-]+', domainCharacterSet = '[\\da-z\\.-]+',

View File

@ -1,9 +1,8 @@
/* /**
* Implements the attach method that * This module provides methods for attaching a terminal to a terminado WebSocket stream.
* attaches the terminal to a Terminado WebSocket stream.
* *
* The bidirectional argument indicates, whether the terminal should * @module xterm/addons/terminado/terminado
* send data to the socket as well and is true, by default. * @license MIT
*/ */
(function (attach) { (function (attach) {
@ -26,12 +25,6 @@
})(function (Xterm) { })(function (Xterm) {
'use strict'; 'use strict';
/**
* This module provides methods for attaching a terminal to a WebSocket
* stream.
*
* @module xterm/addons/attach/attach
*/
var exports = {}; var exports = {};
/** /**

View File

@ -1,12 +1,8 @@
/** /**
* xterm.js: xterm, in the browser * Clipboard handler module: exports methods for handling all clipboard-related events in the
* Copyright (c) 2016, SourceLair Private Company <www.sourcelair.com> (MIT License) * terminal.
*/
/**
* Clipboard handler module. This module contains methods for handling all
* clipboard-related events appropriately in the terminal.
* @module xterm/handlers/Clipboard * @module xterm/handlers/Clipboard
* @license MIT
*/ */
/** /**

View File

@ -1,12 +1,7 @@
/** /**
* xterm.js: xterm, in the browser * Attributes and methods to help with identifying the current browser and platform.
* Copyright (c) 2016, SourceLair Private Company <www.sourcelair.com> (MIT License)
*/
/**
* Browser utilities module. This module contains attributes and methods to help with
* identifying the current browser and platform.
* @module xterm/utils/Browser * @module xterm/utils/Browser
* @license MIT
*/ */
import { contains } from './Generic.js'; import { contains } from './Generic.js';

View File

@ -1,12 +1,7 @@
/** /**
* xterm.js: xterm, in the browser * Generic utilities module with methods that can be helpful at different parts of the code base.
* Copyright (c) 2016, SourceLair Private Company <www.sourcelair.com> (MIT License)
*/
/**
* Generic utilities module. This module contains generic methods that can be helpful at
* different parts of the code base.
* @module xterm/utils/Generic * @module xterm/utils/Generic
* @license MIT
*/ */
/** /**

View File

@ -1,27 +1,5 @@
/** /**
* xterm.js: xterm, in the browser * xterm.js: xterm, in the browser
* Copyright (c) 2014-2014, SourceLair Private Company <www.sourcelair.com> (MIT License)
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
* https://github.com/chjj/term.js
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* Originally forked from (with the author's permission): * Originally forked from (with the author's permission):
* Fabrice Bellard's javascript vt100 for jslinux: * Fabrice Bellard's javascript vt100 for jslinux:
* http://bellard.org/jslinux/ * http://bellard.org/jslinux/
@ -29,6 +7,7 @@
* The original design remains. The terminal itself * The original design remains. The terminal itself
* has been extended to include xterm CSI codes, among * has been extended to include xterm CSI codes, among
* other features. * other features.
* @license MIT
*/ */
import { CompositionHelper } from './CompositionHelper.js'; import { CompositionHelper } from './CompositionHelper.js';