diff --git a/web/.prettierignore b/web/.prettierignore index 9ae83d3a3b4..0ef331b085e 100644 --- a/web/.prettierignore +++ b/web/.prettierignore @@ -1,2 +1,7 @@ # assets contains pre-generated files like iconmoon, fonts, svgs. packages/design/src/assets/* + +# Ignore file types: +packages/**/*.css +packages/**/*.json +packages/**/*.yaml diff --git a/web/packages/build/jest/config.js b/web/packages/build/jest/config.js index aa0ac1c3eb0..f248db6ad43 100644 --- a/web/packages/build/jest/config.js +++ b/web/packages/build/jest/config.js @@ -17,7 +17,7 @@ limitations under the License. const path = require('path'); module.exports = { - testEnvironment: "jsdom", + testEnvironment: 'jsdom', moduleNameMapper: { // mock all imports to asset files '\\.(css|scss|stylesheet)$': path.join(__dirname, 'mockStyles.js'), diff --git a/web/packages/build/webpack/webpack.base.js b/web/packages/build/webpack/webpack.base.js index 67a10e48633..315d2565514 100644 --- a/web/packages/build/webpack/webpack.base.js +++ b/web/packages/build/webpack/webpack.base.js @@ -152,5 +152,4 @@ function createDefaultConfig() { }; } - -module.exports = configFactory; \ No newline at end of file +module.exports = configFactory; diff --git a/web/packages/build/webpack/webpack.dev.config.js b/web/packages/build/webpack/webpack.dev.config.js index 004a8380641..292f3e7dca2 100644 --- a/web/packages/build/webpack/webpack.dev.config.js +++ b/web/packages/build/webpack/webpack.dev.config.js @@ -31,9 +31,7 @@ module.exports = { }, devtool: false, mode: 'development', - plugins: [ - configFactory.plugins.reactRefresh(), - ], + plugins: [configFactory.plugins.reactRefresh()], module: { strictExportPresence: true, rules: [ diff --git a/web/packages/shared/README.md b/web/packages/shared/README.md index b8edbf98fbf..5e07c7b2802 100644 --- a/web/packages/shared/README.md +++ b/web/packages/shared/README.md @@ -10,4 +10,4 @@ Add `@gravitational/shared` to your package.json file. "devDependencies": { "@gravitational/shared": "^1.0.0", }, -``` \ No newline at end of file +``` diff --git a/web/packages/shared/components/BpfViewer/BpfViewer.jsx b/web/packages/shared/components/BpfViewer/BpfViewer.jsx index ac541a18b46..acf6b1fca41 100644 --- a/web/packages/shared/components/BpfViewer/BpfViewer.jsx +++ b/web/packages/shared/components/BpfViewer/BpfViewer.jsx @@ -96,7 +96,7 @@ const StyledTextEditor = styled.div` .ace-monokai .ace_marker-layer .ace_active-line { //background: #928787; - } + } //.ace-monokai .ace_gutter, //.ace-monokai .ace_gutter-cell { diff --git a/web/packages/shared/components/BpfViewer/ace-mode-bpf.js b/web/packages/shared/components/BpfViewer/ace-mode-bpf.js index b3702b142d4..78e96ad5dd2 100644 --- a/web/packages/shared/components/BpfViewer/ace-mode-bpf.js +++ b/web/packages/shared/components/BpfViewer/ace-mode-bpf.js @@ -31,14 +31,15 @@ ace.define( const oop = acequire('../lib/oop'); const TextMode = acequire('./text').Mode; const FoldMode = acequire('./folding/coffee').FoldMode; - const MatchingBraceOutdent = acequire('./matching_brace_outdent') - .MatchingBraceOutdent; + const MatchingBraceOutdent = acequire( + './matching_brace_outdent' + ).MatchingBraceOutdent; const GravitationalHighlightRules = acequire( 'ace/mode/grv_bpf_highlight_rules' ).GravitationalHighlightRules; - const Mode = function() { + const Mode = function () { this.$outdent = new MatchingBraceOutdent(); this.foldingRules = new FoldMode(); this.HighlightRules = GravitationalHighlightRules; @@ -55,8 +56,9 @@ ace.define( ['require', 'exports', 'ace/lib/oop', 'ace/mode/text_highlight_rules'], (acequire, exports) => { const oop = acequire('ace/lib/oop'); - const TextHighlightRules = acequire('ace/mode/text_highlight_rules') - .TextHighlightRules; + const TextHighlightRules = acequire( + 'ace/mode/text_highlight_rules' + ).TextHighlightRules; function GravitationalHighlightRules() { this.$rules = new TextHighlightRules().getRules(); // Use Text's rules as a base @@ -88,7 +90,7 @@ ace.define( { token: 'string', // multi line string start regex: /[|>][-+\d]*(?:$|\s+(?:$|#))/, - onMatch: function(val, state, stack, line) { + onMatch: function (val, state, stack, line) { line = line.replace(/ #.*/, ''); var indent = /^ *((:\s*)?-(\s*[^|>])?)?/ .exec(line)[0] @@ -122,7 +124,7 @@ ace.define( { token: 'indent', regex: /^ */, - onMatch: function(val, state, stack) { + onMatch: function (val, state, stack) { var curIndent = stack[1]; if (curIndent >= val.length) { @@ -150,7 +152,7 @@ ace.define( { token: 'indent', regex: /^ */, - onMatch: function(val, state, stack) { + onMatch: function (val, state, stack) { var curIndent = stack[1]; if (curIndent >= val.length) { diff --git a/web/packages/shared/components/SplitPane/SplitPane.jsx b/web/packages/shared/components/SplitPane/SplitPane.jsx index 6147230cc14..41f8f1fa69a 100644 --- a/web/packages/shared/components/SplitPane/SplitPane.jsx +++ b/web/packages/shared/components/SplitPane/SplitPane.jsx @@ -60,14 +60,8 @@ const Pane = styled(Flex)` `; export function PaneSide(props) { - const { - children, - position, - isDragging, - split, - defaultSize, - hasTwoSides, - } = props; + const { children, position, isDragging, split, defaultSize, hasTwoSides } = + props; const compRef = React.useRef(); diff --git a/web/packages/shared/hooks/useClickOutside.ts b/web/packages/shared/hooks/useClickOutside.ts index 82e19db0d53..c46fe403a92 100644 --- a/web/packages/shared/hooks/useClickOutside.ts +++ b/web/packages/shared/hooks/useClickOutside.ts @@ -14,27 +14,23 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {useEffect} from "react"; +import { useEffect } from 'react'; function useClickOutside(ref, handler) { - - useEffect( - () => { - const listener = (e: MouseEvent) => { - if (!ref.current || ref.current.contains(e.target)) { - return; - } - handler(e); - }; - document.addEventListener("mousedown", listener); - document.addEventListener("touchstart", listener); - return () => { - document.removeEventListener("mousedown", listener); - document.removeEventListener("touchstart", listener); - }; - }, - [ref, handler] - ); + useEffect(() => { + const listener = (e: MouseEvent) => { + if (!ref.current || ref.current.contains(e.target)) { + return; + } + handler(e); + }; + document.addEventListener('mousedown', listener); + document.addEventListener('touchstart', listener); + return () => { + document.removeEventListener('mousedown', listener); + document.removeEventListener('touchstart', listener); + }; + }, [ref, handler]); } -export {useClickOutside}; \ No newline at end of file +export { useClickOutside }; diff --git a/web/packages/shared/hooks/useEscape.ts b/web/packages/shared/hooks/useEscape.ts index d3472eeedea..fa00f6ee919 100644 --- a/web/packages/shared/hooks/useEscape.ts +++ b/web/packages/shared/hooks/useEscape.ts @@ -19,7 +19,7 @@ import { useEffect } from 'react'; function useEscape(handler) { useEffect(() => { const listener = (e: KeyboardEvent) => { - if (e.key === "Escape") { + if (e.key === 'Escape') { handler(e); } }; diff --git a/web/packages/shared/libs/polyfillFinally.js b/web/packages/shared/libs/polyfillFinally.js index 2235d48c534..5227612b88f 100644 --- a/web/packages/shared/libs/polyfillFinally.js +++ b/web/packages/shared/libs/polyfillFinally.js @@ -25,7 +25,7 @@ if (typeof Promise !== 'function') { } if (typeof Promise.prototype.finally !== 'function') { - var speciesConstructor = function(O, defaultConstructor) { + var speciesConstructor = function (O, defaultConstructor) { if (!O || (typeof O !== 'object' && typeof O !== 'function')) { throw new TypeError('Assertion failed: Type(O) is not Object'); } diff --git a/web/packages/shared/utils/base64/base64url-arraybuffer.ts b/web/packages/shared/utils/base64/base64url-arraybuffer.ts index 37aa5cd5914..cd5d0533a54 100644 --- a/web/packages/shared/utils/base64/base64url-arraybuffer.ts +++ b/web/packages/shared/utils/base64/base64url-arraybuffer.ts @@ -29,8 +29,5 @@ export function bufferToBase64url(buffer: ArrayBuffer): string { const base64str = arrayBufferToBase64(buffer); // Assuming the base64str is a well-formed url. - return base64str - .replace(/\+/g, '-') - .replace(/\//g, '_') - .replace(/=/g, ''); + return base64str.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, ''); } diff --git a/web/packages/teleport/README.md b/web/packages/teleport/README.md index 7323944e26c..67d18582bf6 100644 --- a/web/packages/teleport/README.md +++ b/web/packages/teleport/README.md @@ -9,4 +9,4 @@ then you can start your local development server: ``` $ yarn run start --target=https://example.com:3080/web -``` \ No newline at end of file +``` diff --git a/web/packages/teleport/babel.config.js b/web/packages/teleport/babel.config.js index e709437f0a2..7ae725ec5ca 100644 --- a/web/packages/teleport/babel.config.js +++ b/web/packages/teleport/babel.config.js @@ -1,5 +1,5 @@ const baseCfg = require('@gravitational/build/.babelrc'); module.exports = function (api) { api.cache(true); - return baseCfg -} \ No newline at end of file + return baseCfg; +}; diff --git a/web/packages/teleport/src/Audit/EventDialog/index.ts b/web/packages/teleport/src/Audit/EventDialog/index.ts index 409679e7109..0e533d14e7b 100644 --- a/web/packages/teleport/src/Audit/EventDialog/index.ts +++ b/web/packages/teleport/src/Audit/EventDialog/index.ts @@ -15,4 +15,4 @@ limitations under the License. */ import EventDialog from './EventDialog'; -export default EventDialog; \ No newline at end of file +export default EventDialog; diff --git a/web/packages/teleport/src/Console/Console.story.tsx b/web/packages/teleport/src/Console/Console.story.tsx index 0fa47a8f870..4f34285bf15 100644 --- a/web/packages/teleport/src/Console/Console.story.tsx +++ b/web/packages/teleport/src/Console/Console.story.tsx @@ -34,11 +34,9 @@ storiesOf('Teleport/Console', module).add('Console', () => { }); export function TestLayout(props: PropType) { - const [context] = React.useState( - (): ConsoleContext => { - return props.ctx || new ConsoleContext(); - } - ); + const [context] = React.useState((): ConsoleContext => { + return props.ctx || new ConsoleContext(); + }); const [history] = React.useState((): any => { const history = diff --git a/web/packages/teleport/src/Console/DocumentSsh/Terminal/index.ts b/web/packages/teleport/src/Console/DocumentSsh/Terminal/index.ts index f8da8f0ff3c..fc620f54061 100644 --- a/web/packages/teleport/src/Console/DocumentSsh/Terminal/index.ts +++ b/web/packages/teleport/src/Console/DocumentSsh/Terminal/index.ts @@ -16,4 +16,4 @@ limitations under the License. import Terminal from './Terminal'; -export default Terminal; \ No newline at end of file +export default Terminal; diff --git a/web/packages/teleport/src/Console/FileTransfer/DownloadForm/index.ts b/web/packages/teleport/src/Console/FileTransfer/DownloadForm/index.ts index 60b6bbe35ba..231c8ee1a93 100644 --- a/web/packages/teleport/src/Console/FileTransfer/DownloadForm/index.ts +++ b/web/packages/teleport/src/Console/FileTransfer/DownloadForm/index.ts @@ -15,4 +15,4 @@ limitations under the License. */ import DownloadForm from './DownloadForm'; -export default DownloadForm; \ No newline at end of file +export default DownloadForm; diff --git a/web/packages/teleport/src/Console/FileTransfer/FileList/index.ts b/web/packages/teleport/src/Console/FileTransfer/FileList/index.ts index a04d336cb43..aece99a77a7 100644 --- a/web/packages/teleport/src/Console/FileTransfer/FileList/index.ts +++ b/web/packages/teleport/src/Console/FileTransfer/FileList/index.ts @@ -15,4 +15,4 @@ limitations under the License. */ import FileList from './FileList'; -export default FileList; \ No newline at end of file +export default FileList; diff --git a/web/packages/teleport/src/Console/FileTransfer/FileTransfer.story.tsx b/web/packages/teleport/src/Console/FileTransfer/FileTransfer.story.tsx index 885c4e6fd94..22d6c26e7f4 100644 --- a/web/packages/teleport/src/Console/FileTransfer/FileTransfer.story.tsx +++ b/web/packages/teleport/src/Console/FileTransfer/FileTransfer.story.tsx @@ -105,7 +105,6 @@ const defaultFile = { location: '~test', id: '1547581437406~/test', url: '/v1/webapi/sites/one/nodes/', - name: - '~/test~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf', + name: '~/test~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf~/mamaffsdfsdfdssdf', blob: [], }; diff --git a/web/packages/teleport/src/Console/FileTransfer/UploadForm/index.ts b/web/packages/teleport/src/Console/FileTransfer/UploadForm/index.ts index e395ad185e9..6327efd4b7a 100644 --- a/web/packages/teleport/src/Console/FileTransfer/UploadForm/index.ts +++ b/web/packages/teleport/src/Console/FileTransfer/UploadForm/index.ts @@ -15,4 +15,4 @@ limitations under the License. */ import UploadForm from './UploadForm'; -export default UploadForm; \ No newline at end of file +export default UploadForm; diff --git a/web/packages/teleport/src/Console/StyledXterm/index.ts b/web/packages/teleport/src/Console/StyledXterm/index.ts index a8414fd8def..4e403429701 100644 --- a/web/packages/teleport/src/Console/StyledXterm/index.ts +++ b/web/packages/teleport/src/Console/StyledXterm/index.ts @@ -15,4 +15,4 @@ limitations under the License. */ import StyledXterm from './StyledXterm'; -export default StyledXterm; \ No newline at end of file +export default StyledXterm; diff --git a/web/packages/teleport/src/Console/Tabs/JoinedUsers/JoinedUsers.jsx b/web/packages/teleport/src/Console/Tabs/JoinedUsers/JoinedUsers.jsx index 3521c035c21..1cc21407752 100644 --- a/web/packages/teleport/src/Console/Tabs/JoinedUsers/JoinedUsers.jsx +++ b/web/packages/teleport/src/Console/Tabs/JoinedUsers/JoinedUsers.jsx @@ -46,10 +46,7 @@ export default function JoinedUsers(props) { const $users = users.map((u, index) => { const name = u.user || ''; - const initial = name - .trim() - .charAt(0) - .toUpperCase(); + const initial = name.trim().charAt(0).toUpperCase(); return ( {initial} diff --git a/web/packages/teleport/src/Databases/ConnectDialog/ConnectDialog.tsx b/web/packages/teleport/src/Databases/ConnectDialog/ConnectDialog.tsx index 7e0cca71a91..8977041b122 100644 --- a/web/packages/teleport/src/Databases/ConnectDialog/ConnectDialog.tsx +++ b/web/packages/teleport/src/Databases/ConnectDialog/ConnectDialog.tsx @@ -66,7 +66,10 @@ export default function ConnectDialog({ Step 2 {' - Retrieve credentials for the database'} - ] [--db-name=] ${dbName}`} /> + ] [--db-name=] ${dbName}`} + /> diff --git a/web/packages/teleport/src/Login/index.ts b/web/packages/teleport/src/Login/index.ts index 0f0a4a85671..22162d5b968 100644 --- a/web/packages/teleport/src/Login/index.ts +++ b/web/packages/teleport/src/Login/index.ts @@ -19,7 +19,4 @@ import LoginFailed from './LoginFailed'; import LoginSuccess from './LoginSuccess'; export default Login; -export { - LoginFailed, - LoginSuccess -} \ No newline at end of file +export { LoginFailed, LoginSuccess }; diff --git a/web/packages/teleport/src/Nodes/index.ts b/web/packages/teleport/src/Nodes/index.ts index 2c298da6e69..d61db96379b 100644 --- a/web/packages/teleport/src/Nodes/index.ts +++ b/web/packages/teleport/src/Nodes/index.ts @@ -15,4 +15,4 @@ limitations under the License. */ import Nodes from './Nodes'; -export default Nodes; \ No newline at end of file +export default Nodes; diff --git a/web/packages/teleport/src/Player/ProgressBar/Slider/Slider.jsx b/web/packages/teleport/src/Player/ProgressBar/Slider/Slider.jsx index 5d065f305aa..6e1db5d3639 100644 --- a/web/packages/teleport/src/Player/ProgressBar/Slider/Slider.jsx +++ b/web/packages/teleport/src/Player/ProgressBar/Slider/Slider.jsx @@ -43,14 +43,21 @@ THE SOFTWARE. (function (root, factory) { if (typeof define === 'function' && define.amd) { - define(['react','prop-types','create-react-class'], factory); + define(['react', 'prop-types', 'create-react-class'], factory); } else if (typeof exports === 'object') { - module.exports = factory(require('react'),require('prop-types'),require('create-react-class')); + module.exports = factory( + require('react'), + require('prop-types'), + require('create-react-class') + ); } else { - root.ReactSlider = factory(root.React,root.PropTypes,root.createReactClass); + root.ReactSlider = factory( + root.React, + root.PropTypes, + root.createReactClass + ); } -}(this, function (React, PropTypes, createReactClass) { - +})(this, function (React, PropTypes, createReactClass) { /** * To prevent text selection while dragging. * http://stackoverflow.com/questions/5429827/how-can-i-prevent-text-element-selection-with-cursor-drag @@ -85,9 +92,11 @@ THE SOFTWARE. return x != null && x.length === 1 ? x[0] : x; } - var isArray = Array.isArray || function(x) { - return Object.prototype.toString.call(x) === '[object Array]'; - }; + var isArray = + Array.isArray || + function (x) { + return Object.prototype.toString.call(x) === '[object Array]'; + }; // undoEnsureArray(ensureArray(x)) === x @@ -95,7 +104,6 @@ THE SOFTWARE. displayName: 'ReactSlider', propTypes: { - /** * The minimum value of the slider. */ @@ -129,7 +137,7 @@ THE SOFTWARE. */ defaultValue: PropTypes.oneOfType([ PropTypes.number, - PropTypes.arrayOf(PropTypes.number) + PropTypes.arrayOf(PropTypes.number), ]), /** @@ -137,7 +145,7 @@ THE SOFTWARE. */ value: PropTypes.oneOfType([ PropTypes.number, - PropTypes.arrayOf(PropTypes.number) + PropTypes.arrayOf(PropTypes.number), ]), /** @@ -215,7 +223,7 @@ THE SOFTWARE. * Callback called when the the slider is clicked (handle or bars). * Receives the value at the clicked position as argument. */ - onSliderClick: PropTypes.func + onSliderClick: PropTypes.func, }, getDefaultProps: function () { @@ -234,12 +242,15 @@ THE SOFTWARE. pearling: false, disabled: false, snapDragDisabled: false, - invert: false + invert: false, }; }, getInitialState: function () { - var value = this._or(ensureArray(this.props.value), ensureArray(this.props.defaultValue)); + var value = this._or( + ensureArray(this.props.value), + ensureArray(this.props.defaultValue) + ); // reused throughout the component to store results of iterations over `value` this.tempArray = value.slice(); @@ -258,7 +269,7 @@ THE SOFTWARE. upperBound: 0, sliderLength: 0, value: value, - zIndices: zIndices + zIndices: zIndices, }; }, @@ -299,7 +310,10 @@ THE SOFTWARE. return defaultValue; default: if (value.length !== count || defaultValue.length !== count) { - window.console.warn(this.constructor.displayName + ": Number of values does not match number of children."); + window.console.warn( + this.constructor.displayName + + ': Number of values does not match number of children.' + ); } return linspace(this.props.min, this.props.max, count); } @@ -333,23 +347,26 @@ THE SOFTWARE. upperBound: slider[size] - handle[size], sliderLength: Math.abs(sliderMax - sliderMin), handleSize: handle[size], - sliderStart: this.props.invert ? sliderMax : sliderMin + sliderStart: this.props.invert ? sliderMax : sliderMin, }); }, _handleResize: function () { // setTimeout of 0 gives element enough time to have assumed its new size if it is being resized - var resizeTimeout = window.setTimeout(function() { - // drop this timeout from pendingResizeTimeouts to reduce memory usage - this.pendingResizeTimeouts.shift(); - this._resize(); - }.bind(this), 0); + var resizeTimeout = window.setTimeout( + function () { + // drop this timeout from pendingResizeTimeouts to reduce memory usage + this.pendingResizeTimeouts.shift(); + this._resize(); + }.bind(this), + 0 + ); this.pendingResizeTimeouts.push(resizeTimeout); }, // clear all pending timeouts to avoid error messages after unmounting - _clearPendingResizeTimeouts: function() { + _clearPendingResizeTimeouts: function () { do { var nextTimeout = this.pendingResizeTimeouts.shift(); @@ -377,7 +394,7 @@ THE SOFTWARE. var style = { position: 'absolute', willChange: this.state.index >= 0 ? this._posMinKey() : '', - zIndex: this.state.zIndices.indexOf(i) + 1 + zIndex: this.state.zIndices.indexOf(i) + 1, }; style[this._posMinKey()] = offset + 'px'; return style; @@ -386,7 +403,10 @@ THE SOFTWARE. _buildBarStyle: function (min, max) { var obj = { position: 'absolute', - willChange: this.state.index >= 0 ? this._posMinKey() + ',' + this._posMaxKey() : '' + willChange: + this.state.index >= 0 + ? this._posMinKey() + ',' + this._posMaxKey() + : '', }; obj[this._posMinKey()] = min; obj[this._posMaxKey()] = max; @@ -414,8 +434,9 @@ THE SOFTWARE. _calcOffsetFromPosition: function (position) { var pixelOffset = position - this.state.sliderStart; - if (this.props.invert) pixelOffset = this.state.sliderLength - pixelOffset; - pixelOffset -= (this.state.handleSize / 2); + if (this.props.invert) + pixelOffset = this.state.sliderLength - pixelOffset; + pixelOffset -= this.state.handleSize / 2; return pixelOffset; }, @@ -433,13 +454,13 @@ THE SOFTWARE. if (value[i + 1] - value[i] < this.props.minDistance) return; } - this.setState({value: value}, callback.bind(this, closestIndex)); + this.setState({ value: value }, callback.bind(this, closestIndex)); }, _getMousePosition: function (e) { return [ e['page' + this._axisKey()], - e['page' + this._orthogonalAxisKey()] + e['page' + this._orthogonalAxisKey()], ]; }, @@ -447,29 +468,29 @@ THE SOFTWARE. var touch = e.touches[0]; return [ touch['page' + this._axisKey()], - touch['page' + this._orthogonalAxisKey()] + touch['page' + this._orthogonalAxisKey()], ]; }, _getKeyDownEventMap: function () { return { - 'keydown': this._onKeyDown, - 'focusout': this._onBlur - } + keydown: this._onKeyDown, + focusout: this._onBlur, + }; }, _getMouseEventMap: function () { return { - 'mousemove': this._onMouseMove, - 'mouseup': this._onMouseUp - } + mousemove: this._onMouseMove, + mouseup: this._onMouseUp, + }; }, _getTouchEventMap: function () { return { - 'touchmove': this._onTouchMove, - 'touchend': this._onTouchEnd - } + touchmove: this._onTouchMove, + touchend: this._onTouchEnd, + }; }, // create the `keydown` handler for the i-th handle @@ -537,9 +558,10 @@ THE SOFTWARE. this.setState(function (prevState) { return { startValue: this.state.value[i], - startPosition: position !== undefined ? position : prevState.startPosition, + startPosition: + position !== undefined ? position : prevState.startPosition, index: i, - zIndices: zIndices + zIndices: zIndices, }; }); }, @@ -558,7 +580,10 @@ THE SOFTWARE. _onEnd: function (eventMap) { this._removeHandlers(eventMap); - this.setState({index: -1}, this._fireChangeEvent.bind(this, 'onAfterChange')); + this.setState( + { index: -1 }, + this._fireChangeEvent.bind(this, 'onAfterChange') + ); }, _onMouseMove: function (e) { @@ -580,7 +605,7 @@ THE SOFTWARE. } if (this.isScrolling) { - this.setState({index: -1}); + this.setState({ index: -1 }); return; } @@ -595,17 +620,17 @@ THE SOFTWARE. _onKeyDown: function (e) { if (e.ctrlKey || e.shiftKey || e.altKey) return; switch (e.key) { - case "ArrowLeft": - case "ArrowUp": + case 'ArrowLeft': + case 'ArrowUp': e.preventDefault(); return this._moveDownOneStep(); - case "ArrowRight": - case "ArrowDown": + case 'ArrowRight': + case 'ArrowDown': e.preventDefault(); return this._moveUpOneStep(); - case "Home": + case 'Home': return this._move(this.props.min); - case "End": + case 'End': return this._move(this.props.max); default: return; @@ -625,7 +650,9 @@ THE SOFTWARE. }, _getValueFromPosition: function (position) { - var diffValue = position / (this.state.sliderLength - this.state.handleSize) * (this.props.max - this.props.min); + var diffValue = + (position / (this.state.sliderLength - this.state.handleSize)) * + (this.props.max - this.props.min); return this._trimAlignValue(this.state.startValue + diffValue); }, @@ -673,8 +700,7 @@ THE SOFTWARE. if (newValue > oldValue) { this._pushSucceeding(value, minDistance, index); this._trimSucceeding(length, value, minDistance, props.max); - } - else if (newValue < oldValue) { + } else if (newValue < oldValue) { this._pushPreceding(value, minDistance, index); this._trimPreceding(length, value, minDistance, props.min); } @@ -683,15 +709,20 @@ THE SOFTWARE. // Normally you would use `shouldComponentUpdate`, but since the slider is a low-level component, // the extra complexity might be worth the extra performance. if (newValue !== oldValue) { - this.setState({value: value}, this._fireChangeEvent.bind(this, 'onChange')); + this.setState( + { value: value }, + this._fireChangeEvent.bind(this, 'onChange') + ); } }, _pushSucceeding: function (value, minDistance, index) { var i, padding; - for (i = index, padding = value[i] + minDistance; - value[i + 1] != null && padding > value[i + 1]; - i++, padding = value[i] + minDistance) { + for ( + i = index, padding = value[i] + minDistance; + value[i + 1] != null && padding > value[i + 1]; + i++, padding = value[i] + minDistance + ) { value[i + 1] = this._alignValue(padding); } }, @@ -707,9 +738,11 @@ THE SOFTWARE. _pushPreceding: function (value, minDistance, index) { var i, padding; - for (i = index, padding = value[i] - minDistance; - value[i - 1] != null && padding < value[i - 1]; - i--, padding = value[i] - minDistance) { + for ( + i = index, padding = value[i] - minDistance; + value[i - 1] != null && padding < value[i - 1]; + i--, padding = value[i] - minDistance + ) { value[i - 1] = this._alignValue(padding); } }, @@ -737,14 +770,18 @@ THE SOFTWARE. _posMinKey: function () { var orientation = this.props.orientation; - if (orientation === 'horizontal') return this.props.invert ? 'right' : 'left'; - if (orientation === 'vertical') return this.props.invert ? 'bottom' : 'top'; + if (orientation === 'horizontal') + return this.props.invert ? 'right' : 'left'; + if (orientation === 'vertical') + return this.props.invert ? 'bottom' : 'top'; }, _posMaxKey: function () { var orientation = this.props.orientation; - if (orientation === 'horizontal') return this.props.invert ? 'left' : 'right'; - if (orientation === 'vertical') return this.props.invert ? 'top' : 'bottom'; + if (orientation === 'horizontal') + return this.props.invert ? 'left' : 'right'; + if (orientation === 'vertical') + return this.props.invert ? 'top' : 'bottom'; }, _sizeKey: function () { @@ -773,7 +810,7 @@ THE SOFTWARE. var alignValue = val - valModStep; if (Math.abs(valModStep) * 2 >= props.step) { - alignValue += (valModStep > 0) ? props.step : (-props.step); + alignValue += valModStep > 0 ? props.step : -props.step; } return parseFloat(alignValue.toFixed(5)); @@ -781,31 +818,36 @@ THE SOFTWARE. _renderHandle: function (style, child, i) { var self = this; - var className = this.props.handleClassName + ' ' + - (this.props.handleClassName + '-' + i) + ' ' + + var className = + this.props.handleClassName + + ' ' + + (this.props.handleClassName + '-' + i) + + ' ' + (this.state.index === i ? this.props.handleActiveClassName : ''); - return ( - React.createElement('div', { - ref: function (r) { - self['handle' + i] = r; - }, - key: 'handle' + i, - className: className, - style: style, - onMouseDown: this._createOnMouseDown(i), - onTouchStart: this._createOnTouchStart(i), - onFocus: this._createOnKeyDown(i), - tabIndex: 0, - role: "slider", - "aria-valuenow": this.state.value[i], - "aria-valuemin": this.props.min, - "aria-valuemax": this.props.max, - "aria-label": isArray(this.props.ariaLabel) ? this.props.ariaLabel[i] : this.props.ariaLabel, - "aria-valuetext": this.props.ariaValuetext, + return React.createElement( + 'div', + { + ref: function (r) { + self['handle' + i] = r; }, - child - ) + key: 'handle' + i, + className: className, + style: style, + onMouseDown: this._createOnMouseDown(i), + onTouchStart: this._createOnTouchStart(i), + onFocus: this._createOnKeyDown(i), + tabIndex: 0, + role: 'slider', + 'aria-valuenow': this.state.value[i], + 'aria-valuemin': this.props.min, + 'aria-valuemax': this.props.max, + 'aria-label': isArray(this.props.ariaLabel) + ? this.props.ariaLabel[i] + : this.props.ariaLabel, + 'aria-valuetext': this.props.ariaValuetext, + }, + child ); }, @@ -833,16 +875,18 @@ THE SOFTWARE. _renderBar: function (i, offsetFrom, offsetTo) { var self = this; - return ( - React.createElement('div', { - key: 'bar' + i, - ref: function (r) { - self['bar' + i] = r; - }, - className: this.props.barClassName + ' ' + this.props.barClassName + '-' + i, - style: this._buildBarStyle(offsetFrom, this.state.upperBound - offsetTo) - }) - ); + return React.createElement('div', { + key: 'bar' + i, + ref: function (r) { + self['bar' + i] = r; + }, + className: + this.props.barClassName + ' ' + this.props.barClassName + '-' + i, + style: this._buildBarStyle( + offsetFrom, + this.state.upperBound - offsetTo + ), + }); }, _renderBars: function (offset) { @@ -855,7 +899,9 @@ THE SOFTWARE. bars.push(this._renderBar(i + 1, offset[i], offset[i + 1])); } - bars.push(this._renderBar(lastIndex + 1, offset[lastIndex], this.state.upperBound)); + bars.push( + this._renderBar(lastIndex + 1, offset[lastIndex], this.state.upperBound) + ); return bars; }, @@ -865,11 +911,14 @@ THE SOFTWARE. this.hasMoved = false; if (!this.props.snapDragDisabled) { var position = this._getMousePosition(e); - this._forceValueFromPosition(position[0], function (i) { - this._start(i, position[0]); - this._fireChangeEvent('onChange'); - this._addHandlers(this._getMouseEventMap()); - }.bind(this)); + this._forceValueFromPosition( + position[0], + function (i) { + this._start(i, position[0]); + this._fireChangeEvent('onChange'); + this._addHandlers(this._getMouseEventMap()); + }.bind(this) + ); } pauseEvent(e); @@ -880,7 +929,9 @@ THE SOFTWARE. if (this.props.onSliderClick && !this.hasMoved) { var position = this._getMousePosition(e); - var valueAtPos = this._trimAlignValue(this._calcValue(this._calcOffsetFromPosition(position[0]))); + var valueAtPos = this._trimAlignValue( + this._calcValue(this._calcOffsetFromPosition(position[0])) + ); this.props.onSliderClick(valueAtPos); } }, @@ -906,22 +957,22 @@ THE SOFTWARE. var bars = props.withBars ? this._renderBars(offset) : null; var handles = this._renderHandles(offset); - return ( - React.createElement('div', { - ref: function (r) { - self.slider = r; - }, - style: {position: 'relative'}, - className: props.className + (props.disabled ? ' disabled' : ''), - onMouseDown: this._onSliderMouseDown, - onClick: this._onSliderClick + return React.createElement( + 'div', + { + ref: function (r) { + self.slider = r; }, - bars, - handles - ) + style: { position: 'relative' }, + className: props.className + (props.disabled ? ' disabled' : ''), + onMouseDown: this._onSliderMouseDown, + onClick: this._onSliderClick, + }, + bars, + handles ); - } + }, }); return ReactSlider; -})); +}); diff --git a/web/packages/teleport/src/Player/ProgressBar/Slider/index.js b/web/packages/teleport/src/Player/ProgressBar/Slider/index.js index c60863c3e62..b6d8e4c17dd 100644 --- a/web/packages/teleport/src/Player/ProgressBar/Slider/index.js +++ b/web/packages/teleport/src/Player/ProgressBar/Slider/index.js @@ -15,4 +15,4 @@ limitations under the License. */ import Slider from './Slider'; -export default Slider; \ No newline at end of file +export default Slider; diff --git a/web/packages/teleport/src/Player/Xterm/index.ts b/web/packages/teleport/src/Player/Xterm/index.ts index 91ca80485f6..04bbb847710 100644 --- a/web/packages/teleport/src/Player/Xterm/index.ts +++ b/web/packages/teleport/src/Player/Xterm/index.ts @@ -16,4 +16,4 @@ limitations under the License. import Xterm from './Xterm'; -export default Xterm; \ No newline at end of file +export default Xterm; diff --git a/web/packages/teleport/src/PlayerNext/fixtures/streamData.js b/web/packages/teleport/src/PlayerNext/fixtures/streamData.js index d7c116c86ee..f2b73a542db 100644 --- a/web/packages/teleport/src/PlayerNext/fixtures/streamData.js +++ b/web/packages/teleport/src/PlayerNext/fixtures/streamData.js @@ -17,947 +17,1069 @@ limitations under the License. /*eslint no-useless-escape: "off"*/ module.exports = { - "events": [ - { - "addr.local": "127.0.0.1:3022", - "addr.remote": "127.0.0.1:51942", - "event": "session.start", - "id": 0, - "login": "akontsevoy", - "ms": -64, - "offset": 0, - "server_id": "d1d92452-06b8-4828-abad-c1fb7ef947b3", - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "0:0", - "time": "2016-05-09T14:57:05.936Z", - "user": "akontsevoy" - }, { - "event": "resize", - "id": 1, - "login": "akontsevoy", - "ms": -59, - "offset": 0, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "147:20", - "time": "2016-05-09T14:57:05.941Z", - "user": "akontsevoy" - }, { - "bytes": 42, - "event": "print", - "id": 2, - "ms": 87, - "offset": 0, - "time": "2016-05-09T14:57:06.087Z" - }, { - "bytes": 1, - "event": "print", - "id": 3, - "ms": 1332, - "offset": 42, - "time": "2016-05-09T14:57:07.332Z" - }, { - "bytes": 1, - "event": "print", - "id": 4, - "ms": 1409, - "offset": 43, - "time": "2016-05-09T14:57:07.409Z" - }, { - "bytes": 2, - "event": "print", - "id": 5, - "ms": 1670, - "offset": 44, - "time": "2016-05-09T14:57:07.67Z" - }, { - "bytes": 69, - "event": "print", - "id": 6, - "ms": 1675, - "offset": 46, - "time": "2016-05-09T14:57:07.675Z" - }, { - "bytes": 8, - "event": "print", - "id": 7, - "ms": 1676, - "offset": 115, - "time": "2016-05-09T14:57:07.676Z" - }, { - "bytes": 32, - "event": "print", - "id": 8, - "ms": 1769, - "offset": 123, - "time": "2016-05-09T14:57:07.769Z" - }, { - "bytes": 86, - "event": "print", - "id": 9, - "ms": 1770, - "offset": 155, - "time": "2016-05-09T14:57:07.77Z" - }, { - "bytes": 104, - "event": "print", - "id": 10, - "ms": 1770, - "offset": 241, - "time": "2016-05-09T14:57:07.77Z" - }, { - "bytes": 99, - "event": "print", - "id": 11, - "ms": 1771, - "offset": 345, - "time": "2016-05-09T14:57:07.771Z" - }, { - "bytes": 88, - "event": "print", - "id": 12, - "ms": 1772, - "offset": 444, - "time": "2016-05-09T14:57:07.772Z" - }, { - "bytes": 87, - "event": "print", - "id": 13, - "ms": 1773, - "offset": 532, - "time": "2016-05-09T14:57:07.773Z" - }, { - "bytes": 4095, - "event": "print", - "id": 14, - "ms": 1774, - "offset": 619, - "time": "2016-05-09T14:57:07.774Z" - }, { - "bytes": 1906, - "event": "print", - "id": 15, - "ms": 1775, - "offset": 4714, - "time": "2016-05-09T14:57:07.775Z" - }, { - "bytes": 8, - "event": "print", - "id": 16, - "ms": 1942, - "offset": 6620, - "time": "2016-05-09T14:57:07.942Z" - }, { - "bytes": 96, - "event": "print", - "id": 17, - "ms": 1943, - "offset": 6628, - "time": "2016-05-09T14:57:07.943Z" - }, { - "bytes": 4095, - "event": "print", - "id": 18, - "ms": 1944, - "offset": 6724, - "time": "2016-05-09T14:57:07.944Z" - }, { - "bytes": 2080, - "event": "print", - "id": 19, - "ms": 1945, - "offset": 10819, - "time": "2016-05-09T14:57:07.945Z" - }, { - "event": "resize", - "id": 20, - "login": "akontsevoy", - "ms": 4013, - "offset": 12899, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "146:29", - "time": "2016-05-09T14:57:10.013Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 21, - "ms": 4014, - "offset": 12899, - "time": "2016-05-09T14:57:10.014Z" - }, { - "bytes": 2227, - "event": "print", - "id": 22, - "ms": 4017, - "offset": 12907, - "time": "2016-05-09T14:57:10.017Z" - }, { - "bytes": 2048, - "event": "print", - "id": 23, - "ms": 4019, - "offset": 15134, - "time": "2016-05-09T14:57:10.019Z" - }, { - "bytes": 4095, - "event": "print", - "id": 24, - "ms": 4023, - "offset": 17182, - "time": "2016-05-09T14:57:10.023Z" - }, { - "bytes": 1037, - "event": "print", - "id": 25, - "ms": 4025, - "offset": 21277, - "time": "2016-05-09T14:57:10.025Z" - }, { - "event": "resize", - "id": 26, - "login": "akontsevoy", - "ms": 6586, - "offset": 22314, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "146:31", - "time": "2016-05-09T14:57:12.586Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 27, - "ms": 6587, - "offset": 22314, - "time": "2016-05-09T14:57:12.587Z" - }, { - "bytes": 179, - "event": "print", - "id": 28, - "ms": 6588, - "offset": 22322, - "time": "2016-05-09T14:57:12.588Z" - }, { - "bytes": 2048, - "event": "print", - "id": 29, - "ms": 6589, - "offset": 22501, - "time": "2016-05-09T14:57:12.589Z" - }, { - "bytes": 4095, - "event": "print", - "id": 30, - "ms": 6590, - "offset": 24549, - "time": "2016-05-09T14:57:12.59Z" - }, { - "bytes": 3783, - "event": "print", - "id": 31, - "ms": 6591, - "offset": 28644, - "time": "2016-05-09T14:57:12.591Z" - }, { - "event": "resize", - "id": 32, - "login": "akontsevoy", - "ms": 8129, - "offset": 32427, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "146:25", - "time": "2016-05-09T14:57:14.129Z", - "user": "akontsevoy" - }, { - "bytes": 37, - "event": "print", - "id": 33, - "ms": 8130, - "offset": 32427, - "time": "2016-05-09T14:57:14.13Z" - }, { - "bytes": 149, - "event": "print", - "id": 34, - "ms": 8131, - "offset": 32464, - "time": "2016-05-09T14:57:14.131Z" - }, { - "bytes": 4095, - "event": "print", - "id": 35, - "ms": 8132, - "offset": 32613, - "time": "2016-05-09T14:57:14.132Z" - }, { - "bytes": 3737, - "event": "print", - "id": 36, - "ms": 8133, - "offset": 36708, - "time": "2016-05-09T14:57:14.133Z" - }, { - "event": "resize", - "id": 37, - "login": "akontsevoy", - "ms": 15669, - "offset": 40445, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "106:25", - "time": "2016-05-09T14:57:21.669Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 38, - "ms": 15669, - "offset": 40445, - "time": "2016-05-09T14:57:21.669Z" - }, { - "bytes": 171, - "event": "print", - "id": 39, - "ms": 15670, - "offset": 40453, - "time": "2016-05-09T14:57:21.67Z" - }, { - "bytes": 2048, - "event": "print", - "id": 40, - "ms": 15671, - "offset": 40624, - "time": "2016-05-09T14:57:21.671Z" - }, { - "bytes": 4095, - "event": "print", - "id": 41, - "ms": 15672, - "offset": 42672, - "time": "2016-05-09T14:57:21.672Z" - }, { - "bytes": 572, - "event": "print", - "id": 42, - "ms": 15673, - "offset": 46767, - "time": "2016-05-09T14:57:21.673Z" - }, { - "event": "resize", - "id": 43, - "login": "akontsevoy", - "ms": 17085, - "offset": 47339, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "76:25", - "time": "2016-05-09T14:57:23.085Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 44, - "ms": 17086, - "offset": 47339, - "time": "2016-05-09T14:57:23.086Z" - }, { - "bytes": 176, - "event": "print", - "id": 45, - "ms": 17087, - "offset": 47347, - "time": "2016-05-09T14:57:23.087Z" - }, { - "bytes": 4095, - "event": "print", - "id": 46, - "ms": 17088, - "offset": 47523, - "time": "2016-05-09T14:57:23.088Z" - }, { - "bytes": 1783, - "event": "print", - "id": 47, - "ms": 17093, - "offset": 51618, - "time": "2016-05-09T14:57:23.093Z" - }, { - "event": "resize", - "id": 48, - "login": "akontsevoy", - "ms": 18051, - "offset": 53401, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "76:25", - "time": "2016-05-09T14:57:24.051Z", - "user": "akontsevoy" - }, { - "event": "resize", - "id": 49, - "login": "akontsevoy", - "ms": 18532, - "offset": 53401, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "150:25", - "time": "2016-05-09T14:57:24.532Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 50, - "ms": 18535, - "offset": 53401, - "time": "2016-05-09T14:57:24.535Z" - }, { - "bytes": 4095, - "event": "print", - "id": 51, - "ms": 18536, - "offset": 53409, - "time": "2016-05-09T14:57:24.536Z" - }, { - "bytes": 4021, - "event": "print", - "id": 52, - "ms": 18537, - "offset": 57504, - "time": "2016-05-09T14:57:24.537Z" - }, { - "bytes": 292, - "event": "print", - "id": 53, - "ms": 20280, - "offset": 61525, - "time": "2016-05-09T14:57:26.28Z" - }, { - "bytes": 25, - "event": "print", - "id": 54, - "ms": 20484, - "offset": 61817, - "time": "2016-05-09T14:57:26.484Z" - }, { - "bytes": 15, - "event": "print", - "id": 55, - "ms": 20929, - "offset": 61842, - "time": "2016-05-09T14:57:26.929Z" - }, { - "bytes": 15, - "event": "print", - "id": 56, - "ms": 21001, - "offset": 61857, - "time": "2016-05-09T14:57:27.001Z" - }, { - "bytes": 15, - "event": "print", - "id": 57, - "ms": 21118, - "offset": 61872, - "time": "2016-05-09T14:57:27.118Z" - }, { - "event": "resize", - "id": 58, - "login": "akontsevoy", - "ms": 27097, - "offset": 61887, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "150:33", - "time": "2016-05-09T14:57:33.097Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 59, - "ms": 27098, - "offset": 61887, - "time": "2016-05-09T14:57:33.098Z" - }, { - "bytes": 181, - "event": "print", - "id": 60, - "ms": 27099, - "offset": 61895, - "time": "2016-05-09T14:57:33.099Z" - }, { - "bytes": 2048, - "event": "print", - "id": 61, - "ms": 27101, - "offset": 62076, - "time": "2016-05-09T14:57:33.101Z" - }, { - "bytes": 2048, - "event": "print", - "id": 62, - "ms": 27101, - "offset": 64124, - "time": "2016-05-09T14:57:33.101Z" - }, { - "bytes": 4095, - "event": "print", - "id": 63, - "ms": 27103, - "offset": 66172, - "time": "2016-05-09T14:57:33.103Z" - }, { - "bytes": 2572, - "event": "print", - "id": 64, - "ms": 27104, - "offset": 70267, - "time": "2016-05-09T14:57:33.104Z" - }, { - "event": "resize", - "id": 65, - "login": "akontsevoy", - "ms": 28237, - "offset": 72839, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "150:24", - "time": "2016-05-09T14:57:34.237Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 66, - "ms": 28238, - "offset": 72839, - "time": "2016-05-09T14:57:34.238Z" - }, { - "bytes": 187, - "event": "print", - "id": 67, - "ms": 28239, - "offset": 72847, - "time": "2016-05-09T14:57:34.239Z" - }, { - "bytes": 2048, - "event": "print", - "id": 68, - "ms": 28240, - "offset": 73034, - "time": "2016-05-09T14:57:34.24Z" - }, { - "bytes": 4095, - "event": "print", - "id": 69, - "ms": 28241, - "offset": 75082, - "time": "2016-05-09T14:57:34.241Z" - }, { - "bytes": 1443, - "event": "print", - "id": 70, - "ms": 28242, - "offset": 79177, - "time": "2016-05-09T14:57:34.242Z" - }, { - "event": "resize", - "id": 71, - "login": "akontsevoy", - "ms": 34805, - "offset": 80620, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "86:24", - "time": "2016-05-09T14:57:40.805Z", - "user": "akontsevoy" - }, { - "bytes": 37, - "event": "print", - "id": 72, - "ms": 34806, - "offset": 80620, - "time": "2016-05-09T14:57:40.806Z" - }, { - "bytes": 147, - "event": "print", - "id": 73, - "ms": 34807, - "offset": 80657, - "time": "2016-05-09T14:57:40.807Z" - }, { - "bytes": 2048, - "event": "print", - "id": 74, - "ms": 34810, - "offset": 80804, - "time": "2016-05-09T14:57:40.81Z" - }, { - "bytes": 3816, - "event": "print", - "id": 75, - "ms": 34811, - "offset": 82852, - "time": "2016-05-09T14:57:40.811Z" - }, { - "event": "resize", - "id": 76, - "login": "akontsevoy", - "ms": 35761, - "offset": 86668, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "46:24", - "time": "2016-05-09T14:57:41.761Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 77, - "ms": 35762, - "offset": 86668, - "time": "2016-05-09T14:57:41.762Z" - }, { - "bytes": 4095, - "event": "print", - "id": 78, - "ms": 35763, - "offset": 86676, - "time": "2016-05-09T14:57:41.763Z" - }, { - "bytes": 713, - "event": "print", - "id": 79, - "ms": 35764, - "offset": 90771, - "time": "2016-05-09T14:57:41.764Z" - }, { - "event": "resize", - "id": 80, - "login": "akontsevoy", - "ms": 36260, - "offset": 91484, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "46:24", - "time": "2016-05-09T14:57:42.26Z", - "user": "akontsevoy" - }, { - "event": "resize", - "id": 81, - "login": "akontsevoy", - "ms": 36408, - "offset": 91484, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "60:24", - "time": "2016-05-09T14:57:42.408Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 82, - "ms": 36409, - "offset": 91484, - "time": "2016-05-09T14:57:42.409Z" - }, { - "bytes": 170, - "event": "print", - "id": 83, - "ms": 36410, - "offset": 91492, - "time": "2016-05-09T14:57:42.41Z" - }, { - "bytes": 4095, - "event": "print", - "id": 84, - "ms": 36412, - "offset": 91662, - "time": "2016-05-09T14:57:42.412Z" - }, { - "bytes": 1003, - "event": "print", - "id": 85, - "ms": 36414, - "offset": 95757, - "time": "2016-05-09T14:57:42.414Z" - }, { - "event": "resize", - "id": 86, - "login": "akontsevoy", - "ms": 36760, - "offset": 96760, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "139:24", - "time": "2016-05-09T14:57:42.76Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 87, - "ms": 36761, - "offset": 96760, - "time": "2016-05-09T14:57:42.761Z" - }, { - "bytes": 105, - "event": "print", - "id": 88, - "ms": 36762, - "offset": 96768, - "time": "2016-05-09T14:57:42.762Z" - }, { - "bytes": 2048, - "event": "print", - "id": 89, - "ms": 36763, - "offset": 96873, - "time": "2016-05-09T14:57:42.763Z" - }, { - "bytes": 4095, - "event": "print", - "id": 90, - "ms": 36764, - "offset": 98921, - "time": "2016-05-09T14:57:42.764Z" - }, { - "bytes": 1217, - "event": "print", - "id": 91, - "ms": 36764, - "offset": 103016, - "time": "2016-05-09T14:57:42.764Z" - }, { - "event": "resize", - "id": 92, - "login": "akontsevoy", - "ms": 37417, - "offset": 104233, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "147:24", - "time": "2016-05-09T14:57:43.417Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 93, - "ms": 37426, - "offset": 104233, - "time": "2016-05-09T14:57:43.426Z" - }, { - "bytes": 4095, - "event": "print", - "id": 94, - "ms": 37428, - "offset": 104241, - "time": "2016-05-09T14:57:43.428Z" - }, { - "bytes": 3585, - "event": "print", - "id": 95, - "ms": 37430, - "offset": 108336, - "time": "2016-05-09T14:57:43.43Z" - }, { - "event": "resize", - "id": 96, - "login": "akontsevoy", - "ms": 37670, - "offset": 111921, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "157:24", - "time": "2016-05-09T14:57:43.67Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 97, - "ms": 37671, - "offset": 111921, - "time": "2016-05-09T14:57:43.671Z" - }, { - "bytes": 105, - "event": "print", - "id": 98, - "ms": 37671, - "offset": 111929, - "time": "2016-05-09T14:57:43.671Z" - }, { - "bytes": 4095, - "event": "print", - "id": 99, - "ms": 37673, - "offset": 112034, - "time": "2016-05-09T14:57:43.673Z" - }, { - "bytes": 3749, - "event": "print", - "id": 100, - "ms": 37674, - "offset": 116129, - "time": "2016-05-09T14:57:43.674Z" - }, { - "event": "resize", - "id": 101, - "login": "akontsevoy", - "ms": 38509, - "offset": 119878, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "115:24", - "time": "2016-05-09T14:57:44.509Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 102, - "ms": 38511, - "offset": 119878, - "time": "2016-05-09T14:57:44.511Z" - }, { - "bytes": 4095, - "event": "print", - "id": 103, - "ms": 38512, - "offset": 119886, - "time": "2016-05-09T14:57:44.512Z" - }, { - "bytes": 2729, - "event": "print", - "id": 104, - "ms": 38513, - "offset": 123981, - "time": "2016-05-09T14:57:44.513Z" - }, { - "bytes": 245, - "event": "print", - "id": 105, - "ms": 42326, - "offset": 126710, - "time": "2016-05-09T14:57:48.326Z" - }, { - "bytes": 254, - "event": "print", - "id": 106, - "ms": 42421, - "offset": 126955, - "time": "2016-05-09T14:57:48.421Z" - }, { - "bytes": 254, - "event": "print", - "id": 107, - "ms": 42433, - "offset": 127209, - "time": "2016-05-09T14:57:48.433Z" - }, { - "bytes": 250, - "event": "print", - "id": 108, - "ms": 42451, - "offset": 127463, - "time": "2016-05-09T14:57:48.451Z" - }, { - "event": "resize", - "id": 109, - "login": "akontsevoy", - "ms": 44256, - "offset": 127713, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "115:34", - "time": "2016-05-09T14:57:50.256Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 110, - "ms": 44258, - "offset": 127713, - "time": "2016-05-09T14:57:50.258Z" - }, { - "bytes": 29, - "event": "print", - "id": 111, - "ms": 44259, - "offset": 127721, - "time": "2016-05-09T14:57:50.259Z" - }, { - "bytes": 149, - "event": "print", - "id": 112, - "ms": 44259, - "offset": 127750, - "time": "2016-05-09T14:57:50.259Z" - }, { - "bytes": 2048, - "event": "print", - "id": 113, - "ms": 44260, - "offset": 127899, - "time": "2016-05-09T14:57:50.26Z" - }, { - "bytes": 4095, - "event": "print", - "id": 114, - "ms": 44261, - "offset": 129947, - "time": "2016-05-09T14:57:50.261Z" - }, { - "bytes": 3681, - "event": "print", - "id": 115, - "ms": 44262, - "offset": 134042, - "time": "2016-05-09T14:57:50.262Z" - }, { - "event": "resize", - "id": 116, - "login": "akontsevoy", - "ms": 45237, - "offset": 137723, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "115:23", - "time": "2016-05-09T14:57:51.237Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 117, - "ms": 45238, - "offset": 137723, - "time": "2016-05-09T14:57:51.238Z" - }, { - "bytes": 182, - "event": "print", - "id": 118, - "ms": 45239, - "offset": 137731, - "time": "2016-05-09T14:57:51.239Z" - }, { - "bytes": 2048, - "event": "print", - "id": 119, - "ms": 45240, - "offset": 137913, - "time": "2016-05-09T14:57:51.24Z" - }, { - "bytes": 4095, - "event": "print", - "id": 120, - "ms": 45242, - "offset": 139961, - "time": "2016-05-09T14:57:51.242Z" - }, { - "bytes": 183, - "event": "print", - "id": 121, - "ms": 45243, - "offset": 144056, - "time": "2016-05-09T14:57:51.243Z" - }, { - "event": "session.leave", - "id": 122, - "ms": 46403, - "offset": 144239, - "server_id": "d1d92452-06b8-4828-abad-c1fb7ef947b3", - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "time": "2016-05-09T14:57:52.403Z", - "user": "akontsevoy" - }, { - "event": "session.end", - "id": 123, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "time": "2016-05-09T15:00:52.403Z", - "user": "akontsevoy" - } - ], + events: [ + { + 'addr.local': '127.0.0.1:3022', + 'addr.remote': '127.0.0.1:51942', + event: 'session.start', + id: 0, + login: 'akontsevoy', + ms: -64, + offset: 0, + server_id: 'd1d92452-06b8-4828-abad-c1fb7ef947b3', + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '0:0', + time: '2016-05-09T14:57:05.936Z', + user: 'akontsevoy', + }, + { + event: 'resize', + id: 1, + login: 'akontsevoy', + ms: -59, + offset: 0, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '147:20', + time: '2016-05-09T14:57:05.941Z', + user: 'akontsevoy', + }, + { + bytes: 42, + event: 'print', + id: 2, + ms: 87, + offset: 0, + time: '2016-05-09T14:57:06.087Z', + }, + { + bytes: 1, + event: 'print', + id: 3, + ms: 1332, + offset: 42, + time: '2016-05-09T14:57:07.332Z', + }, + { + bytes: 1, + event: 'print', + id: 4, + ms: 1409, + offset: 43, + time: '2016-05-09T14:57:07.409Z', + }, + { + bytes: 2, + event: 'print', + id: 5, + ms: 1670, + offset: 44, + time: '2016-05-09T14:57:07.67Z', + }, + { + bytes: 69, + event: 'print', + id: 6, + ms: 1675, + offset: 46, + time: '2016-05-09T14:57:07.675Z', + }, + { + bytes: 8, + event: 'print', + id: 7, + ms: 1676, + offset: 115, + time: '2016-05-09T14:57:07.676Z', + }, + { + bytes: 32, + event: 'print', + id: 8, + ms: 1769, + offset: 123, + time: '2016-05-09T14:57:07.769Z', + }, + { + bytes: 86, + event: 'print', + id: 9, + ms: 1770, + offset: 155, + time: '2016-05-09T14:57:07.77Z', + }, + { + bytes: 104, + event: 'print', + id: 10, + ms: 1770, + offset: 241, + time: '2016-05-09T14:57:07.77Z', + }, + { + bytes: 99, + event: 'print', + id: 11, + ms: 1771, + offset: 345, + time: '2016-05-09T14:57:07.771Z', + }, + { + bytes: 88, + event: 'print', + id: 12, + ms: 1772, + offset: 444, + time: '2016-05-09T14:57:07.772Z', + }, + { + bytes: 87, + event: 'print', + id: 13, + ms: 1773, + offset: 532, + time: '2016-05-09T14:57:07.773Z', + }, + { + bytes: 4095, + event: 'print', + id: 14, + ms: 1774, + offset: 619, + time: '2016-05-09T14:57:07.774Z', + }, + { + bytes: 1906, + event: 'print', + id: 15, + ms: 1775, + offset: 4714, + time: '2016-05-09T14:57:07.775Z', + }, + { + bytes: 8, + event: 'print', + id: 16, + ms: 1942, + offset: 6620, + time: '2016-05-09T14:57:07.942Z', + }, + { + bytes: 96, + event: 'print', + id: 17, + ms: 1943, + offset: 6628, + time: '2016-05-09T14:57:07.943Z', + }, + { + bytes: 4095, + event: 'print', + id: 18, + ms: 1944, + offset: 6724, + time: '2016-05-09T14:57:07.944Z', + }, + { + bytes: 2080, + event: 'print', + id: 19, + ms: 1945, + offset: 10819, + time: '2016-05-09T14:57:07.945Z', + }, + { + event: 'resize', + id: 20, + login: 'akontsevoy', + ms: 4013, + offset: 12899, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '146:29', + time: '2016-05-09T14:57:10.013Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 21, + ms: 4014, + offset: 12899, + time: '2016-05-09T14:57:10.014Z', + }, + { + bytes: 2227, + event: 'print', + id: 22, + ms: 4017, + offset: 12907, + time: '2016-05-09T14:57:10.017Z', + }, + { + bytes: 2048, + event: 'print', + id: 23, + ms: 4019, + offset: 15134, + time: '2016-05-09T14:57:10.019Z', + }, + { + bytes: 4095, + event: 'print', + id: 24, + ms: 4023, + offset: 17182, + time: '2016-05-09T14:57:10.023Z', + }, + { + bytes: 1037, + event: 'print', + id: 25, + ms: 4025, + offset: 21277, + time: '2016-05-09T14:57:10.025Z', + }, + { + event: 'resize', + id: 26, + login: 'akontsevoy', + ms: 6586, + offset: 22314, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '146:31', + time: '2016-05-09T14:57:12.586Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 27, + ms: 6587, + offset: 22314, + time: '2016-05-09T14:57:12.587Z', + }, + { + bytes: 179, + event: 'print', + id: 28, + ms: 6588, + offset: 22322, + time: '2016-05-09T14:57:12.588Z', + }, + { + bytes: 2048, + event: 'print', + id: 29, + ms: 6589, + offset: 22501, + time: '2016-05-09T14:57:12.589Z', + }, + { + bytes: 4095, + event: 'print', + id: 30, + ms: 6590, + offset: 24549, + time: '2016-05-09T14:57:12.59Z', + }, + { + bytes: 3783, + event: 'print', + id: 31, + ms: 6591, + offset: 28644, + time: '2016-05-09T14:57:12.591Z', + }, + { + event: 'resize', + id: 32, + login: 'akontsevoy', + ms: 8129, + offset: 32427, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '146:25', + time: '2016-05-09T14:57:14.129Z', + user: 'akontsevoy', + }, + { + bytes: 37, + event: 'print', + id: 33, + ms: 8130, + offset: 32427, + time: '2016-05-09T14:57:14.13Z', + }, + { + bytes: 149, + event: 'print', + id: 34, + ms: 8131, + offset: 32464, + time: '2016-05-09T14:57:14.131Z', + }, + { + bytes: 4095, + event: 'print', + id: 35, + ms: 8132, + offset: 32613, + time: '2016-05-09T14:57:14.132Z', + }, + { + bytes: 3737, + event: 'print', + id: 36, + ms: 8133, + offset: 36708, + time: '2016-05-09T14:57:14.133Z', + }, + { + event: 'resize', + id: 37, + login: 'akontsevoy', + ms: 15669, + offset: 40445, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '106:25', + time: '2016-05-09T14:57:21.669Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 38, + ms: 15669, + offset: 40445, + time: '2016-05-09T14:57:21.669Z', + }, + { + bytes: 171, + event: 'print', + id: 39, + ms: 15670, + offset: 40453, + time: '2016-05-09T14:57:21.67Z', + }, + { + bytes: 2048, + event: 'print', + id: 40, + ms: 15671, + offset: 40624, + time: '2016-05-09T14:57:21.671Z', + }, + { + bytes: 4095, + event: 'print', + id: 41, + ms: 15672, + offset: 42672, + time: '2016-05-09T14:57:21.672Z', + }, + { + bytes: 572, + event: 'print', + id: 42, + ms: 15673, + offset: 46767, + time: '2016-05-09T14:57:21.673Z', + }, + { + event: 'resize', + id: 43, + login: 'akontsevoy', + ms: 17085, + offset: 47339, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '76:25', + time: '2016-05-09T14:57:23.085Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 44, + ms: 17086, + offset: 47339, + time: '2016-05-09T14:57:23.086Z', + }, + { + bytes: 176, + event: 'print', + id: 45, + ms: 17087, + offset: 47347, + time: '2016-05-09T14:57:23.087Z', + }, + { + bytes: 4095, + event: 'print', + id: 46, + ms: 17088, + offset: 47523, + time: '2016-05-09T14:57:23.088Z', + }, + { + bytes: 1783, + event: 'print', + id: 47, + ms: 17093, + offset: 51618, + time: '2016-05-09T14:57:23.093Z', + }, + { + event: 'resize', + id: 48, + login: 'akontsevoy', + ms: 18051, + offset: 53401, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '76:25', + time: '2016-05-09T14:57:24.051Z', + user: 'akontsevoy', + }, + { + event: 'resize', + id: 49, + login: 'akontsevoy', + ms: 18532, + offset: 53401, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '150:25', + time: '2016-05-09T14:57:24.532Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 50, + ms: 18535, + offset: 53401, + time: '2016-05-09T14:57:24.535Z', + }, + { + bytes: 4095, + event: 'print', + id: 51, + ms: 18536, + offset: 53409, + time: '2016-05-09T14:57:24.536Z', + }, + { + bytes: 4021, + event: 'print', + id: 52, + ms: 18537, + offset: 57504, + time: '2016-05-09T14:57:24.537Z', + }, + { + bytes: 292, + event: 'print', + id: 53, + ms: 20280, + offset: 61525, + time: '2016-05-09T14:57:26.28Z', + }, + { + bytes: 25, + event: 'print', + id: 54, + ms: 20484, + offset: 61817, + time: '2016-05-09T14:57:26.484Z', + }, + { + bytes: 15, + event: 'print', + id: 55, + ms: 20929, + offset: 61842, + time: '2016-05-09T14:57:26.929Z', + }, + { + bytes: 15, + event: 'print', + id: 56, + ms: 21001, + offset: 61857, + time: '2016-05-09T14:57:27.001Z', + }, + { + bytes: 15, + event: 'print', + id: 57, + ms: 21118, + offset: 61872, + time: '2016-05-09T14:57:27.118Z', + }, + { + event: 'resize', + id: 58, + login: 'akontsevoy', + ms: 27097, + offset: 61887, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '150:33', + time: '2016-05-09T14:57:33.097Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 59, + ms: 27098, + offset: 61887, + time: '2016-05-09T14:57:33.098Z', + }, + { + bytes: 181, + event: 'print', + id: 60, + ms: 27099, + offset: 61895, + time: '2016-05-09T14:57:33.099Z', + }, + { + bytes: 2048, + event: 'print', + id: 61, + ms: 27101, + offset: 62076, + time: '2016-05-09T14:57:33.101Z', + }, + { + bytes: 2048, + event: 'print', + id: 62, + ms: 27101, + offset: 64124, + time: '2016-05-09T14:57:33.101Z', + }, + { + bytes: 4095, + event: 'print', + id: 63, + ms: 27103, + offset: 66172, + time: '2016-05-09T14:57:33.103Z', + }, + { + bytes: 2572, + event: 'print', + id: 64, + ms: 27104, + offset: 70267, + time: '2016-05-09T14:57:33.104Z', + }, + { + event: 'resize', + id: 65, + login: 'akontsevoy', + ms: 28237, + offset: 72839, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '150:24', + time: '2016-05-09T14:57:34.237Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 66, + ms: 28238, + offset: 72839, + time: '2016-05-09T14:57:34.238Z', + }, + { + bytes: 187, + event: 'print', + id: 67, + ms: 28239, + offset: 72847, + time: '2016-05-09T14:57:34.239Z', + }, + { + bytes: 2048, + event: 'print', + id: 68, + ms: 28240, + offset: 73034, + time: '2016-05-09T14:57:34.24Z', + }, + { + bytes: 4095, + event: 'print', + id: 69, + ms: 28241, + offset: 75082, + time: '2016-05-09T14:57:34.241Z', + }, + { + bytes: 1443, + event: 'print', + id: 70, + ms: 28242, + offset: 79177, + time: '2016-05-09T14:57:34.242Z', + }, + { + event: 'resize', + id: 71, + login: 'akontsevoy', + ms: 34805, + offset: 80620, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '86:24', + time: '2016-05-09T14:57:40.805Z', + user: 'akontsevoy', + }, + { + bytes: 37, + event: 'print', + id: 72, + ms: 34806, + offset: 80620, + time: '2016-05-09T14:57:40.806Z', + }, + { + bytes: 147, + event: 'print', + id: 73, + ms: 34807, + offset: 80657, + time: '2016-05-09T14:57:40.807Z', + }, + { + bytes: 2048, + event: 'print', + id: 74, + ms: 34810, + offset: 80804, + time: '2016-05-09T14:57:40.81Z', + }, + { + bytes: 3816, + event: 'print', + id: 75, + ms: 34811, + offset: 82852, + time: '2016-05-09T14:57:40.811Z', + }, + { + event: 'resize', + id: 76, + login: 'akontsevoy', + ms: 35761, + offset: 86668, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '46:24', + time: '2016-05-09T14:57:41.761Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 77, + ms: 35762, + offset: 86668, + time: '2016-05-09T14:57:41.762Z', + }, + { + bytes: 4095, + event: 'print', + id: 78, + ms: 35763, + offset: 86676, + time: '2016-05-09T14:57:41.763Z', + }, + { + bytes: 713, + event: 'print', + id: 79, + ms: 35764, + offset: 90771, + time: '2016-05-09T14:57:41.764Z', + }, + { + event: 'resize', + id: 80, + login: 'akontsevoy', + ms: 36260, + offset: 91484, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '46:24', + time: '2016-05-09T14:57:42.26Z', + user: 'akontsevoy', + }, + { + event: 'resize', + id: 81, + login: 'akontsevoy', + ms: 36408, + offset: 91484, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '60:24', + time: '2016-05-09T14:57:42.408Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 82, + ms: 36409, + offset: 91484, + time: '2016-05-09T14:57:42.409Z', + }, + { + bytes: 170, + event: 'print', + id: 83, + ms: 36410, + offset: 91492, + time: '2016-05-09T14:57:42.41Z', + }, + { + bytes: 4095, + event: 'print', + id: 84, + ms: 36412, + offset: 91662, + time: '2016-05-09T14:57:42.412Z', + }, + { + bytes: 1003, + event: 'print', + id: 85, + ms: 36414, + offset: 95757, + time: '2016-05-09T14:57:42.414Z', + }, + { + event: 'resize', + id: 86, + login: 'akontsevoy', + ms: 36760, + offset: 96760, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '139:24', + time: '2016-05-09T14:57:42.76Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 87, + ms: 36761, + offset: 96760, + time: '2016-05-09T14:57:42.761Z', + }, + { + bytes: 105, + event: 'print', + id: 88, + ms: 36762, + offset: 96768, + time: '2016-05-09T14:57:42.762Z', + }, + { + bytes: 2048, + event: 'print', + id: 89, + ms: 36763, + offset: 96873, + time: '2016-05-09T14:57:42.763Z', + }, + { + bytes: 4095, + event: 'print', + id: 90, + ms: 36764, + offset: 98921, + time: '2016-05-09T14:57:42.764Z', + }, + { + bytes: 1217, + event: 'print', + id: 91, + ms: 36764, + offset: 103016, + time: '2016-05-09T14:57:42.764Z', + }, + { + event: 'resize', + id: 92, + login: 'akontsevoy', + ms: 37417, + offset: 104233, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '147:24', + time: '2016-05-09T14:57:43.417Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 93, + ms: 37426, + offset: 104233, + time: '2016-05-09T14:57:43.426Z', + }, + { + bytes: 4095, + event: 'print', + id: 94, + ms: 37428, + offset: 104241, + time: '2016-05-09T14:57:43.428Z', + }, + { + bytes: 3585, + event: 'print', + id: 95, + ms: 37430, + offset: 108336, + time: '2016-05-09T14:57:43.43Z', + }, + { + event: 'resize', + id: 96, + login: 'akontsevoy', + ms: 37670, + offset: 111921, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '157:24', + time: '2016-05-09T14:57:43.67Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 97, + ms: 37671, + offset: 111921, + time: '2016-05-09T14:57:43.671Z', + }, + { + bytes: 105, + event: 'print', + id: 98, + ms: 37671, + offset: 111929, + time: '2016-05-09T14:57:43.671Z', + }, + { + bytes: 4095, + event: 'print', + id: 99, + ms: 37673, + offset: 112034, + time: '2016-05-09T14:57:43.673Z', + }, + { + bytes: 3749, + event: 'print', + id: 100, + ms: 37674, + offset: 116129, + time: '2016-05-09T14:57:43.674Z', + }, + { + event: 'resize', + id: 101, + login: 'akontsevoy', + ms: 38509, + offset: 119878, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '115:24', + time: '2016-05-09T14:57:44.509Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 102, + ms: 38511, + offset: 119878, + time: '2016-05-09T14:57:44.511Z', + }, + { + bytes: 4095, + event: 'print', + id: 103, + ms: 38512, + offset: 119886, + time: '2016-05-09T14:57:44.512Z', + }, + { + bytes: 2729, + event: 'print', + id: 104, + ms: 38513, + offset: 123981, + time: '2016-05-09T14:57:44.513Z', + }, + { + bytes: 245, + event: 'print', + id: 105, + ms: 42326, + offset: 126710, + time: '2016-05-09T14:57:48.326Z', + }, + { + bytes: 254, + event: 'print', + id: 106, + ms: 42421, + offset: 126955, + time: '2016-05-09T14:57:48.421Z', + }, + { + bytes: 254, + event: 'print', + id: 107, + ms: 42433, + offset: 127209, + time: '2016-05-09T14:57:48.433Z', + }, + { + bytes: 250, + event: 'print', + id: 108, + ms: 42451, + offset: 127463, + time: '2016-05-09T14:57:48.451Z', + }, + { + event: 'resize', + id: 109, + login: 'akontsevoy', + ms: 44256, + offset: 127713, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '115:34', + time: '2016-05-09T14:57:50.256Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 110, + ms: 44258, + offset: 127713, + time: '2016-05-09T14:57:50.258Z', + }, + { + bytes: 29, + event: 'print', + id: 111, + ms: 44259, + offset: 127721, + time: '2016-05-09T14:57:50.259Z', + }, + { + bytes: 149, + event: 'print', + id: 112, + ms: 44259, + offset: 127750, + time: '2016-05-09T14:57:50.259Z', + }, + { + bytes: 2048, + event: 'print', + id: 113, + ms: 44260, + offset: 127899, + time: '2016-05-09T14:57:50.26Z', + }, + { + bytes: 4095, + event: 'print', + id: 114, + ms: 44261, + offset: 129947, + time: '2016-05-09T14:57:50.261Z', + }, + { + bytes: 3681, + event: 'print', + id: 115, + ms: 44262, + offset: 134042, + time: '2016-05-09T14:57:50.262Z', + }, + { + event: 'resize', + id: 116, + login: 'akontsevoy', + ms: 45237, + offset: 137723, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '115:23', + time: '2016-05-09T14:57:51.237Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 117, + ms: 45238, + offset: 137723, + time: '2016-05-09T14:57:51.238Z', + }, + { + bytes: 182, + event: 'print', + id: 118, + ms: 45239, + offset: 137731, + time: '2016-05-09T14:57:51.239Z', + }, + { + bytes: 2048, + event: 'print', + id: 119, + ms: 45240, + offset: 137913, + time: '2016-05-09T14:57:51.24Z', + }, + { + bytes: 4095, + event: 'print', + id: 120, + ms: 45242, + offset: 139961, + time: '2016-05-09T14:57:51.242Z', + }, + { + bytes: 183, + event: 'print', + id: 121, + ms: 45243, + offset: 144056, + time: '2016-05-09T14:57:51.243Z', + }, + { + event: 'session.leave', + id: 122, + ms: 46403, + offset: 144239, + server_id: 'd1d92452-06b8-4828-abad-c1fb7ef947b3', + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + time: '2016-05-09T14:57:52.403Z', + user: 'akontsevoy', + }, + { + event: 'session.end', + id: 123, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + time: '2016-05-09T15:00:52.403Z', + user: 'akontsevoy', + }, + ], - data: -`]0;akontsevoy@x220: ~akontsevoy@x220:~$ mc + data: `]0;akontsevoy@x220: ~akontsevoy@x220:~$ mc [?1049h(B(B  [?1049l7[?47h[?1001s[?1002h[?1006h[?2004h[?1049h[?1h=(B | / ┐ - \ ┐]0;mc [akontsevoy@x220]:~>Hint: To look at the output of a command in the viewer, use M-!]0;mc [akontsevoy@x220]:~>]0;mc [akontsevoy@x220]:~>]0;mc [akontsevoy@x220]:~> Left File Command Options Right @@ -1002,5 +1124,5 @@ akontsevoy@x220:~$ ┌<─ ~ ─────────────────────────────────────────────.[^]>┐┌<─ ~ ──────────────────────────────────────────────.[^]>┐│.n Name (B│ Size (B│Modify time (B││.n Name (B│ Size (B│Modify time (B││/.. (B│UP--DIR(B│Oct 2 2015(B││/.. (B│UP--DIR(B│Oct 2 2015(B││/.Skype (B│ 4096(B│May 9 10:51(B││/.Skype (B│ 4096(B│May 9 10:51(B││/.adobe (B│ 4096(B│Oct 2 2015(B││/.adobe (B│ 4096(B│Oct 2 2015(B││/.ansible (B│ 4096(B│Mar 24 20:35(B││/.ansible (B│ 4096(B│Mar 24 20:35(B││/.aptitude (B│ 4096(B│Apr 28 14:51(B││/.aptitude (B│ 4096(B│Apr 28 14:51(B││/.atom (B│ 4096(B│Nov 4 2015(B││/.atom (B│ 4096(B│Nov 4 2015(B││/.aws (B│ 4096(B│Apr 8 16:09(B││/.aws (B│ 4096(B│Apr 8 16:09(B││/.cache (B│ 4096(B│May 7 15:56(B││/.cache (B│ 4096(B│May 7 15:56(B││/.config (B│ 4096(B│May 7 22:22(B││/.config (B│ 4096(B│May 7 22:22(B││/.dbus │ 4096│Nov 2 2015││/.dbus (B│ 4096(B│Nov 2 2015(B││/.dlv (B│ 4096(B│Jan 10 14:15(B││/.dlv (B│ 4096(B│Jan 10 14:15(B││/.emacs.d (B│ 4096(B│Jan 20 09:29(B││/.emacs.d (B│ 4096(B│Jan 20 09:29(B││/.forever (B│ 4096(B│Jan 20 15:29(B││/.forever (B│ 4096(B│Jan 20 15:29(B││/.gconf (B│ 4096(B│May 7 22:22(B││/.gconf (B│ 4096(B│May 7 22:22(B││/.gimp-2.8 (B│ 4096(B│Apr 25 22:55(B││/.gimp-2.8 (B│ 4096(B│Apr 25 22:55(B││/.git-credential-cache (B│ 4096(B│Mar 19 16:18(B││/.git-credential-cache (B│ 4096(B│Mar 19 16:18(B││/.gnome (B│ 4096(B│Apr 7 22:06(B││/.gnome (B│ 4096(B│Apr 7 22:06(B││/.gnupg (B│ 4096(B│Dec 14 14:23(B││/.gnupg (B│ 4096(B│Dec 14 14:23(B││/.gvfs (B│ 4096(B│Nov 2 2015(B││/.gvfs (B│ 4096(B│Nov 2 2015(B││/.gvm (B│ 4096(B│Nov 28 16:48(B││/.gvm (B│ 4096(B│Nov 28 16:48(B││/.hplip (B│ 4096(B│Mar 7 21:38(B││/.hplip (B│ 4096(B│Mar 7 21:38(B││/.lastpass (B│ 4096(B│Dec 14 16:01(B││/.lastpass (B│ 4096(B│Dec 14 16:01(B││/.local (B│ 4096(B│Apr 8 15:25(B││/.local (B│ 4096(B│Apr 8 15:25(B││/.macromedia (B│ 4096(B│Oct 2 2015(B││/.macromedia (B│ 4096(B│Oct 2 2015(B││/.mozilla (B│ 4096(B│Oct 2 2015(B││/.mozilla (B│ 4096(B│Oct 2 2015(B│├───────────────────────────────────────────────────────┤├────────────────────────────────────────────────────────┤│/.dbus ││UP--DIR │└───────────────────────────────────── 116G/219G (52%) ─┘└────────────────────────────────────── 116G/219G (52%) ─┘akontsevoy@x220:~$  1(BHelp  2(BMenu  3(BView  4(BEdit  5(BCopy  6(BRenMov  7(BMkdir  8(BDelete  9(BPullDn 10(BQuit7[?47h]0;mc [akontsevoy@x220]:~>[?1h=Hint: You may specify the editor for F4 with the shell variable EDITOR. gdfg[^] Left File Command Options Right ┌<─ ~ ─────────────────────────────────────────────.[^]>┐┌<─ ~ ──────────────────────────────────────────────.[^]>┐│.n Name (B│ Size (B│Modify time (B││.n Name (B│ Size (B│Modify time (B││/.. (B│UP--DIR(B│Oct 2 2015(B││/.. (B│UP--DIR(B│Oct 2 2015(B││/.Skype (B│ 4096(B│May 9 10:51(B││/.Skype (B│ 4096(B│May 9 10:51(B││/.adobe (B│ 4096(B│Oct 2 2015(B││/.adobe (B│ 4096(B│Oct 2 2015(B││/.ansible (B│ 4096(B│Mar 24 20:35(B││/.ansible (B│ 4096(B│Mar 24 20:35(B││/.aptitude (B│ 4096(B│Apr 28 14:51(B││/.aptitude (B│ 4096(B│Apr 28 14:51(B││/.atom (B│ 4096(B│Nov 4 2015(B││/.atom (B│ 4096(B│Nov 4 2015(B││/.aws (B│ 4096(B│Apr 8 16:09(B││/.aws (B│ 4096(B│Apr 8 16:09(B││/.cache (B│ 4096(B│May 7 15:56(B││/.cache (B│ 4096(B│May 7 15:56(B││/.config (B│ 4096(B│May 7 22:22(B││/.config (B│ 4096(B│May 7 22:22(B││/.dbus │ 4096│Nov 2 2015││/.dbus (B│ 4096(B│Nov 2 2015(B││/.dlv (B│ 4096(B│Jan 10 14:15(B││/.dlv (B│ 4096(B│Jan 10 14:15(B││/.emacs.d (B│ 4096(B│Jan 20 09:29(B││/.emacs.d (B│ 4096(B│Jan 20 09:29(B││/.forever (B│ 4096(B│Jan 20 15:29(B││/.forever (B│ 4096(B│Jan 20 15:29(B││/.gconf (B│ 4096(B│May 7 22:22(B││/.gconf (B│ 4096(B│May 7 22:22(B│├───────────────────────────────────────────────────────┤├────────────────────────────────────────────────────────┤│/.dbus ││UP--DIR │└───────────────────────────────────── 116G/219G (52%) ─┘└────────────────────────────────────── 116G/219G (52%) ─┘akontsevoy@x220:~$ - 1(BHelp  2(BMenu  3(BView  4(BEdit  5(BCopy  6(BRenMov  7(BMkdir  8(BDelete  9(BPullDn 10(BQuit` -} + 1(BHelp  2(BMenu  3(BView  4(BEdit  5(BCopy  6(BRenMov  7(BMkdir  8(BDelete  9(BPullDn 10(BQuit`, +}; diff --git a/web/packages/teleport/src/SideNav/index.ts b/web/packages/teleport/src/SideNav/index.ts index b91e614ea8e..2dfcf3e9891 100644 --- a/web/packages/teleport/src/SideNav/index.ts +++ b/web/packages/teleport/src/SideNav/index.ts @@ -16,4 +16,3 @@ limitations under the License. import SideNav from './SideNav'; export default SideNav; - diff --git a/web/packages/teleport/src/components/CatchError/index.js b/web/packages/teleport/src/components/CatchError/index.js index b2aec518a18..992778fc76f 100644 --- a/web/packages/teleport/src/components/CatchError/index.js +++ b/web/packages/teleport/src/components/CatchError/index.js @@ -15,4 +15,4 @@ limitations under the License. */ import CatchError from './CatchError'; -export default CatchError; \ No newline at end of file +export default CatchError; diff --git a/web/packages/teleport/src/components/EventRangePicker/Custom/index.js b/web/packages/teleport/src/components/EventRangePicker/Custom/index.js index 87a440c5928..14798fd809b 100644 --- a/web/packages/teleport/src/components/EventRangePicker/Custom/index.js +++ b/web/packages/teleport/src/components/EventRangePicker/Custom/index.js @@ -15,4 +15,4 @@ limitations under the License. */ import CustomRange from './Custom'; -export default CustomRange; \ No newline at end of file +export default CustomRange; diff --git a/web/packages/teleport/src/components/InputSearch/index.js b/web/packages/teleport/src/components/InputSearch/index.js index a610292ee12..c8c4d13bbb8 100644 --- a/web/packages/teleport/src/components/InputSearch/index.js +++ b/web/packages/teleport/src/components/InputSearch/index.js @@ -15,4 +15,4 @@ limitations under the License. */ import InputSearch from './InputSearch'; -export default InputSearch; \ No newline at end of file +export default InputSearch; diff --git a/web/packages/teleport/src/components/LogoHero/LogoHero.jsx b/web/packages/teleport/src/components/LogoHero/LogoHero.jsx index 4dab8f7561c..017f17f06de 100644 --- a/web/packages/teleport/src/components/LogoHero/LogoHero.jsx +++ b/web/packages/teleport/src/components/LogoHero/LogoHero.jsx @@ -18,16 +18,16 @@ import React from 'react'; import Image from 'design/Image'; import defaultLogoSvg from 'design/assets/images/teleport-medallion.svg'; -const LogoHero = ({...rest}) => { - return -} +const LogoHero = ({ ...rest }) => { + return ; +}; LogoHero.defaultProps = { src: defaultLogoSvg, - maxHeight: "120px", - maxWidth: "200px", + maxHeight: '120px', + maxWidth: '200px', my: 6, - mx: "auto" -} + mx: 'auto', +}; -export default LogoHero; \ No newline at end of file +export default LogoHero; diff --git a/web/packages/teleport/src/components/LogoHero/index.js b/web/packages/teleport/src/components/LogoHero/index.js index 530e93e3a0b..87fc0211303 100644 --- a/web/packages/teleport/src/components/LogoHero/index.js +++ b/web/packages/teleport/src/components/LogoHero/index.js @@ -15,4 +15,4 @@ limitations under the License. */ import LogoHero from './LogoHero'; -export default LogoHero; \ No newline at end of file +export default LogoHero; diff --git a/web/packages/teleport/src/components/ResourceEditor/ResourceEditor.jsx b/web/packages/teleport/src/components/ResourceEditor/ResourceEditor.jsx index 1c53b55ac32..c92c77015f1 100644 --- a/web/packages/teleport/src/components/ResourceEditor/ResourceEditor.jsx +++ b/web/packages/teleport/src/components/ResourceEditor/ResourceEditor.jsx @@ -41,9 +41,8 @@ export default function ResourceEditor(props) { isNew, } = props; - const { attempt, attemptActions, content, isDirty, setContent } = useEditor( - text - ); + const { attempt, attemptActions, content, isDirty, setContent } = + useEditor(text); const onSave = () => { attemptActions.do(() => props.onSave(content)).then(() => onClose()); diff --git a/web/packages/teleport/src/lib/term/fixtures/streamData.js b/web/packages/teleport/src/lib/term/fixtures/streamData.js index d7c116c86ee..f2b73a542db 100644 --- a/web/packages/teleport/src/lib/term/fixtures/streamData.js +++ b/web/packages/teleport/src/lib/term/fixtures/streamData.js @@ -17,947 +17,1069 @@ limitations under the License. /*eslint no-useless-escape: "off"*/ module.exports = { - "events": [ - { - "addr.local": "127.0.0.1:3022", - "addr.remote": "127.0.0.1:51942", - "event": "session.start", - "id": 0, - "login": "akontsevoy", - "ms": -64, - "offset": 0, - "server_id": "d1d92452-06b8-4828-abad-c1fb7ef947b3", - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "0:0", - "time": "2016-05-09T14:57:05.936Z", - "user": "akontsevoy" - }, { - "event": "resize", - "id": 1, - "login": "akontsevoy", - "ms": -59, - "offset": 0, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "147:20", - "time": "2016-05-09T14:57:05.941Z", - "user": "akontsevoy" - }, { - "bytes": 42, - "event": "print", - "id": 2, - "ms": 87, - "offset": 0, - "time": "2016-05-09T14:57:06.087Z" - }, { - "bytes": 1, - "event": "print", - "id": 3, - "ms": 1332, - "offset": 42, - "time": "2016-05-09T14:57:07.332Z" - }, { - "bytes": 1, - "event": "print", - "id": 4, - "ms": 1409, - "offset": 43, - "time": "2016-05-09T14:57:07.409Z" - }, { - "bytes": 2, - "event": "print", - "id": 5, - "ms": 1670, - "offset": 44, - "time": "2016-05-09T14:57:07.67Z" - }, { - "bytes": 69, - "event": "print", - "id": 6, - "ms": 1675, - "offset": 46, - "time": "2016-05-09T14:57:07.675Z" - }, { - "bytes": 8, - "event": "print", - "id": 7, - "ms": 1676, - "offset": 115, - "time": "2016-05-09T14:57:07.676Z" - }, { - "bytes": 32, - "event": "print", - "id": 8, - "ms": 1769, - "offset": 123, - "time": "2016-05-09T14:57:07.769Z" - }, { - "bytes": 86, - "event": "print", - "id": 9, - "ms": 1770, - "offset": 155, - "time": "2016-05-09T14:57:07.77Z" - }, { - "bytes": 104, - "event": "print", - "id": 10, - "ms": 1770, - "offset": 241, - "time": "2016-05-09T14:57:07.77Z" - }, { - "bytes": 99, - "event": "print", - "id": 11, - "ms": 1771, - "offset": 345, - "time": "2016-05-09T14:57:07.771Z" - }, { - "bytes": 88, - "event": "print", - "id": 12, - "ms": 1772, - "offset": 444, - "time": "2016-05-09T14:57:07.772Z" - }, { - "bytes": 87, - "event": "print", - "id": 13, - "ms": 1773, - "offset": 532, - "time": "2016-05-09T14:57:07.773Z" - }, { - "bytes": 4095, - "event": "print", - "id": 14, - "ms": 1774, - "offset": 619, - "time": "2016-05-09T14:57:07.774Z" - }, { - "bytes": 1906, - "event": "print", - "id": 15, - "ms": 1775, - "offset": 4714, - "time": "2016-05-09T14:57:07.775Z" - }, { - "bytes": 8, - "event": "print", - "id": 16, - "ms": 1942, - "offset": 6620, - "time": "2016-05-09T14:57:07.942Z" - }, { - "bytes": 96, - "event": "print", - "id": 17, - "ms": 1943, - "offset": 6628, - "time": "2016-05-09T14:57:07.943Z" - }, { - "bytes": 4095, - "event": "print", - "id": 18, - "ms": 1944, - "offset": 6724, - "time": "2016-05-09T14:57:07.944Z" - }, { - "bytes": 2080, - "event": "print", - "id": 19, - "ms": 1945, - "offset": 10819, - "time": "2016-05-09T14:57:07.945Z" - }, { - "event": "resize", - "id": 20, - "login": "akontsevoy", - "ms": 4013, - "offset": 12899, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "146:29", - "time": "2016-05-09T14:57:10.013Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 21, - "ms": 4014, - "offset": 12899, - "time": "2016-05-09T14:57:10.014Z" - }, { - "bytes": 2227, - "event": "print", - "id": 22, - "ms": 4017, - "offset": 12907, - "time": "2016-05-09T14:57:10.017Z" - }, { - "bytes": 2048, - "event": "print", - "id": 23, - "ms": 4019, - "offset": 15134, - "time": "2016-05-09T14:57:10.019Z" - }, { - "bytes": 4095, - "event": "print", - "id": 24, - "ms": 4023, - "offset": 17182, - "time": "2016-05-09T14:57:10.023Z" - }, { - "bytes": 1037, - "event": "print", - "id": 25, - "ms": 4025, - "offset": 21277, - "time": "2016-05-09T14:57:10.025Z" - }, { - "event": "resize", - "id": 26, - "login": "akontsevoy", - "ms": 6586, - "offset": 22314, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "146:31", - "time": "2016-05-09T14:57:12.586Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 27, - "ms": 6587, - "offset": 22314, - "time": "2016-05-09T14:57:12.587Z" - }, { - "bytes": 179, - "event": "print", - "id": 28, - "ms": 6588, - "offset": 22322, - "time": "2016-05-09T14:57:12.588Z" - }, { - "bytes": 2048, - "event": "print", - "id": 29, - "ms": 6589, - "offset": 22501, - "time": "2016-05-09T14:57:12.589Z" - }, { - "bytes": 4095, - "event": "print", - "id": 30, - "ms": 6590, - "offset": 24549, - "time": "2016-05-09T14:57:12.59Z" - }, { - "bytes": 3783, - "event": "print", - "id": 31, - "ms": 6591, - "offset": 28644, - "time": "2016-05-09T14:57:12.591Z" - }, { - "event": "resize", - "id": 32, - "login": "akontsevoy", - "ms": 8129, - "offset": 32427, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "146:25", - "time": "2016-05-09T14:57:14.129Z", - "user": "akontsevoy" - }, { - "bytes": 37, - "event": "print", - "id": 33, - "ms": 8130, - "offset": 32427, - "time": "2016-05-09T14:57:14.13Z" - }, { - "bytes": 149, - "event": "print", - "id": 34, - "ms": 8131, - "offset": 32464, - "time": "2016-05-09T14:57:14.131Z" - }, { - "bytes": 4095, - "event": "print", - "id": 35, - "ms": 8132, - "offset": 32613, - "time": "2016-05-09T14:57:14.132Z" - }, { - "bytes": 3737, - "event": "print", - "id": 36, - "ms": 8133, - "offset": 36708, - "time": "2016-05-09T14:57:14.133Z" - }, { - "event": "resize", - "id": 37, - "login": "akontsevoy", - "ms": 15669, - "offset": 40445, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "106:25", - "time": "2016-05-09T14:57:21.669Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 38, - "ms": 15669, - "offset": 40445, - "time": "2016-05-09T14:57:21.669Z" - }, { - "bytes": 171, - "event": "print", - "id": 39, - "ms": 15670, - "offset": 40453, - "time": "2016-05-09T14:57:21.67Z" - }, { - "bytes": 2048, - "event": "print", - "id": 40, - "ms": 15671, - "offset": 40624, - "time": "2016-05-09T14:57:21.671Z" - }, { - "bytes": 4095, - "event": "print", - "id": 41, - "ms": 15672, - "offset": 42672, - "time": "2016-05-09T14:57:21.672Z" - }, { - "bytes": 572, - "event": "print", - "id": 42, - "ms": 15673, - "offset": 46767, - "time": "2016-05-09T14:57:21.673Z" - }, { - "event": "resize", - "id": 43, - "login": "akontsevoy", - "ms": 17085, - "offset": 47339, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "76:25", - "time": "2016-05-09T14:57:23.085Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 44, - "ms": 17086, - "offset": 47339, - "time": "2016-05-09T14:57:23.086Z" - }, { - "bytes": 176, - "event": "print", - "id": 45, - "ms": 17087, - "offset": 47347, - "time": "2016-05-09T14:57:23.087Z" - }, { - "bytes": 4095, - "event": "print", - "id": 46, - "ms": 17088, - "offset": 47523, - "time": "2016-05-09T14:57:23.088Z" - }, { - "bytes": 1783, - "event": "print", - "id": 47, - "ms": 17093, - "offset": 51618, - "time": "2016-05-09T14:57:23.093Z" - }, { - "event": "resize", - "id": 48, - "login": "akontsevoy", - "ms": 18051, - "offset": 53401, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "76:25", - "time": "2016-05-09T14:57:24.051Z", - "user": "akontsevoy" - }, { - "event": "resize", - "id": 49, - "login": "akontsevoy", - "ms": 18532, - "offset": 53401, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "150:25", - "time": "2016-05-09T14:57:24.532Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 50, - "ms": 18535, - "offset": 53401, - "time": "2016-05-09T14:57:24.535Z" - }, { - "bytes": 4095, - "event": "print", - "id": 51, - "ms": 18536, - "offset": 53409, - "time": "2016-05-09T14:57:24.536Z" - }, { - "bytes": 4021, - "event": "print", - "id": 52, - "ms": 18537, - "offset": 57504, - "time": "2016-05-09T14:57:24.537Z" - }, { - "bytes": 292, - "event": "print", - "id": 53, - "ms": 20280, - "offset": 61525, - "time": "2016-05-09T14:57:26.28Z" - }, { - "bytes": 25, - "event": "print", - "id": 54, - "ms": 20484, - "offset": 61817, - "time": "2016-05-09T14:57:26.484Z" - }, { - "bytes": 15, - "event": "print", - "id": 55, - "ms": 20929, - "offset": 61842, - "time": "2016-05-09T14:57:26.929Z" - }, { - "bytes": 15, - "event": "print", - "id": 56, - "ms": 21001, - "offset": 61857, - "time": "2016-05-09T14:57:27.001Z" - }, { - "bytes": 15, - "event": "print", - "id": 57, - "ms": 21118, - "offset": 61872, - "time": "2016-05-09T14:57:27.118Z" - }, { - "event": "resize", - "id": 58, - "login": "akontsevoy", - "ms": 27097, - "offset": 61887, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "150:33", - "time": "2016-05-09T14:57:33.097Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 59, - "ms": 27098, - "offset": 61887, - "time": "2016-05-09T14:57:33.098Z" - }, { - "bytes": 181, - "event": "print", - "id": 60, - "ms": 27099, - "offset": 61895, - "time": "2016-05-09T14:57:33.099Z" - }, { - "bytes": 2048, - "event": "print", - "id": 61, - "ms": 27101, - "offset": 62076, - "time": "2016-05-09T14:57:33.101Z" - }, { - "bytes": 2048, - "event": "print", - "id": 62, - "ms": 27101, - "offset": 64124, - "time": "2016-05-09T14:57:33.101Z" - }, { - "bytes": 4095, - "event": "print", - "id": 63, - "ms": 27103, - "offset": 66172, - "time": "2016-05-09T14:57:33.103Z" - }, { - "bytes": 2572, - "event": "print", - "id": 64, - "ms": 27104, - "offset": 70267, - "time": "2016-05-09T14:57:33.104Z" - }, { - "event": "resize", - "id": 65, - "login": "akontsevoy", - "ms": 28237, - "offset": 72839, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "150:24", - "time": "2016-05-09T14:57:34.237Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 66, - "ms": 28238, - "offset": 72839, - "time": "2016-05-09T14:57:34.238Z" - }, { - "bytes": 187, - "event": "print", - "id": 67, - "ms": 28239, - "offset": 72847, - "time": "2016-05-09T14:57:34.239Z" - }, { - "bytes": 2048, - "event": "print", - "id": 68, - "ms": 28240, - "offset": 73034, - "time": "2016-05-09T14:57:34.24Z" - }, { - "bytes": 4095, - "event": "print", - "id": 69, - "ms": 28241, - "offset": 75082, - "time": "2016-05-09T14:57:34.241Z" - }, { - "bytes": 1443, - "event": "print", - "id": 70, - "ms": 28242, - "offset": 79177, - "time": "2016-05-09T14:57:34.242Z" - }, { - "event": "resize", - "id": 71, - "login": "akontsevoy", - "ms": 34805, - "offset": 80620, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "86:24", - "time": "2016-05-09T14:57:40.805Z", - "user": "akontsevoy" - }, { - "bytes": 37, - "event": "print", - "id": 72, - "ms": 34806, - "offset": 80620, - "time": "2016-05-09T14:57:40.806Z" - }, { - "bytes": 147, - "event": "print", - "id": 73, - "ms": 34807, - "offset": 80657, - "time": "2016-05-09T14:57:40.807Z" - }, { - "bytes": 2048, - "event": "print", - "id": 74, - "ms": 34810, - "offset": 80804, - "time": "2016-05-09T14:57:40.81Z" - }, { - "bytes": 3816, - "event": "print", - "id": 75, - "ms": 34811, - "offset": 82852, - "time": "2016-05-09T14:57:40.811Z" - }, { - "event": "resize", - "id": 76, - "login": "akontsevoy", - "ms": 35761, - "offset": 86668, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "46:24", - "time": "2016-05-09T14:57:41.761Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 77, - "ms": 35762, - "offset": 86668, - "time": "2016-05-09T14:57:41.762Z" - }, { - "bytes": 4095, - "event": "print", - "id": 78, - "ms": 35763, - "offset": 86676, - "time": "2016-05-09T14:57:41.763Z" - }, { - "bytes": 713, - "event": "print", - "id": 79, - "ms": 35764, - "offset": 90771, - "time": "2016-05-09T14:57:41.764Z" - }, { - "event": "resize", - "id": 80, - "login": "akontsevoy", - "ms": 36260, - "offset": 91484, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "46:24", - "time": "2016-05-09T14:57:42.26Z", - "user": "akontsevoy" - }, { - "event": "resize", - "id": 81, - "login": "akontsevoy", - "ms": 36408, - "offset": 91484, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "60:24", - "time": "2016-05-09T14:57:42.408Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 82, - "ms": 36409, - "offset": 91484, - "time": "2016-05-09T14:57:42.409Z" - }, { - "bytes": 170, - "event": "print", - "id": 83, - "ms": 36410, - "offset": 91492, - "time": "2016-05-09T14:57:42.41Z" - }, { - "bytes": 4095, - "event": "print", - "id": 84, - "ms": 36412, - "offset": 91662, - "time": "2016-05-09T14:57:42.412Z" - }, { - "bytes": 1003, - "event": "print", - "id": 85, - "ms": 36414, - "offset": 95757, - "time": "2016-05-09T14:57:42.414Z" - }, { - "event": "resize", - "id": 86, - "login": "akontsevoy", - "ms": 36760, - "offset": 96760, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "139:24", - "time": "2016-05-09T14:57:42.76Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 87, - "ms": 36761, - "offset": 96760, - "time": "2016-05-09T14:57:42.761Z" - }, { - "bytes": 105, - "event": "print", - "id": 88, - "ms": 36762, - "offset": 96768, - "time": "2016-05-09T14:57:42.762Z" - }, { - "bytes": 2048, - "event": "print", - "id": 89, - "ms": 36763, - "offset": 96873, - "time": "2016-05-09T14:57:42.763Z" - }, { - "bytes": 4095, - "event": "print", - "id": 90, - "ms": 36764, - "offset": 98921, - "time": "2016-05-09T14:57:42.764Z" - }, { - "bytes": 1217, - "event": "print", - "id": 91, - "ms": 36764, - "offset": 103016, - "time": "2016-05-09T14:57:42.764Z" - }, { - "event": "resize", - "id": 92, - "login": "akontsevoy", - "ms": 37417, - "offset": 104233, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "147:24", - "time": "2016-05-09T14:57:43.417Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 93, - "ms": 37426, - "offset": 104233, - "time": "2016-05-09T14:57:43.426Z" - }, { - "bytes": 4095, - "event": "print", - "id": 94, - "ms": 37428, - "offset": 104241, - "time": "2016-05-09T14:57:43.428Z" - }, { - "bytes": 3585, - "event": "print", - "id": 95, - "ms": 37430, - "offset": 108336, - "time": "2016-05-09T14:57:43.43Z" - }, { - "event": "resize", - "id": 96, - "login": "akontsevoy", - "ms": 37670, - "offset": 111921, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "157:24", - "time": "2016-05-09T14:57:43.67Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 97, - "ms": 37671, - "offset": 111921, - "time": "2016-05-09T14:57:43.671Z" - }, { - "bytes": 105, - "event": "print", - "id": 98, - "ms": 37671, - "offset": 111929, - "time": "2016-05-09T14:57:43.671Z" - }, { - "bytes": 4095, - "event": "print", - "id": 99, - "ms": 37673, - "offset": 112034, - "time": "2016-05-09T14:57:43.673Z" - }, { - "bytes": 3749, - "event": "print", - "id": 100, - "ms": 37674, - "offset": 116129, - "time": "2016-05-09T14:57:43.674Z" - }, { - "event": "resize", - "id": 101, - "login": "akontsevoy", - "ms": 38509, - "offset": 119878, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "115:24", - "time": "2016-05-09T14:57:44.509Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 102, - "ms": 38511, - "offset": 119878, - "time": "2016-05-09T14:57:44.511Z" - }, { - "bytes": 4095, - "event": "print", - "id": 103, - "ms": 38512, - "offset": 119886, - "time": "2016-05-09T14:57:44.512Z" - }, { - "bytes": 2729, - "event": "print", - "id": 104, - "ms": 38513, - "offset": 123981, - "time": "2016-05-09T14:57:44.513Z" - }, { - "bytes": 245, - "event": "print", - "id": 105, - "ms": 42326, - "offset": 126710, - "time": "2016-05-09T14:57:48.326Z" - }, { - "bytes": 254, - "event": "print", - "id": 106, - "ms": 42421, - "offset": 126955, - "time": "2016-05-09T14:57:48.421Z" - }, { - "bytes": 254, - "event": "print", - "id": 107, - "ms": 42433, - "offset": 127209, - "time": "2016-05-09T14:57:48.433Z" - }, { - "bytes": 250, - "event": "print", - "id": 108, - "ms": 42451, - "offset": 127463, - "time": "2016-05-09T14:57:48.451Z" - }, { - "event": "resize", - "id": 109, - "login": "akontsevoy", - "ms": 44256, - "offset": 127713, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "115:34", - "time": "2016-05-09T14:57:50.256Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 110, - "ms": 44258, - "offset": 127713, - "time": "2016-05-09T14:57:50.258Z" - }, { - "bytes": 29, - "event": "print", - "id": 111, - "ms": 44259, - "offset": 127721, - "time": "2016-05-09T14:57:50.259Z" - }, { - "bytes": 149, - "event": "print", - "id": 112, - "ms": 44259, - "offset": 127750, - "time": "2016-05-09T14:57:50.259Z" - }, { - "bytes": 2048, - "event": "print", - "id": 113, - "ms": 44260, - "offset": 127899, - "time": "2016-05-09T14:57:50.26Z" - }, { - "bytes": 4095, - "event": "print", - "id": 114, - "ms": 44261, - "offset": 129947, - "time": "2016-05-09T14:57:50.261Z" - }, { - "bytes": 3681, - "event": "print", - "id": 115, - "ms": 44262, - "offset": 134042, - "time": "2016-05-09T14:57:50.262Z" - }, { - "event": "resize", - "id": 116, - "login": "akontsevoy", - "ms": 45237, - "offset": 137723, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "size": "115:23", - "time": "2016-05-09T14:57:51.237Z", - "user": "akontsevoy" - }, { - "bytes": 8, - "event": "print", - "id": 117, - "ms": 45238, - "offset": 137723, - "time": "2016-05-09T14:57:51.238Z" - }, { - "bytes": 182, - "event": "print", - "id": 118, - "ms": 45239, - "offset": 137731, - "time": "2016-05-09T14:57:51.239Z" - }, { - "bytes": 2048, - "event": "print", - "id": 119, - "ms": 45240, - "offset": 137913, - "time": "2016-05-09T14:57:51.24Z" - }, { - "bytes": 4095, - "event": "print", - "id": 120, - "ms": 45242, - "offset": 139961, - "time": "2016-05-09T14:57:51.242Z" - }, { - "bytes": 183, - "event": "print", - "id": 121, - "ms": 45243, - "offset": 144056, - "time": "2016-05-09T14:57:51.243Z" - }, { - "event": "session.leave", - "id": 122, - "ms": 46403, - "offset": 144239, - "server_id": "d1d92452-06b8-4828-abad-c1fb7ef947b3", - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "time": "2016-05-09T14:57:52.403Z", - "user": "akontsevoy" - }, { - "event": "session.end", - "id": 123, - "sid": "4bac8c61-15f6-11e6-a2e6-f0def19340e2", - "time": "2016-05-09T15:00:52.403Z", - "user": "akontsevoy" - } - ], + events: [ + { + 'addr.local': '127.0.0.1:3022', + 'addr.remote': '127.0.0.1:51942', + event: 'session.start', + id: 0, + login: 'akontsevoy', + ms: -64, + offset: 0, + server_id: 'd1d92452-06b8-4828-abad-c1fb7ef947b3', + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '0:0', + time: '2016-05-09T14:57:05.936Z', + user: 'akontsevoy', + }, + { + event: 'resize', + id: 1, + login: 'akontsevoy', + ms: -59, + offset: 0, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '147:20', + time: '2016-05-09T14:57:05.941Z', + user: 'akontsevoy', + }, + { + bytes: 42, + event: 'print', + id: 2, + ms: 87, + offset: 0, + time: '2016-05-09T14:57:06.087Z', + }, + { + bytes: 1, + event: 'print', + id: 3, + ms: 1332, + offset: 42, + time: '2016-05-09T14:57:07.332Z', + }, + { + bytes: 1, + event: 'print', + id: 4, + ms: 1409, + offset: 43, + time: '2016-05-09T14:57:07.409Z', + }, + { + bytes: 2, + event: 'print', + id: 5, + ms: 1670, + offset: 44, + time: '2016-05-09T14:57:07.67Z', + }, + { + bytes: 69, + event: 'print', + id: 6, + ms: 1675, + offset: 46, + time: '2016-05-09T14:57:07.675Z', + }, + { + bytes: 8, + event: 'print', + id: 7, + ms: 1676, + offset: 115, + time: '2016-05-09T14:57:07.676Z', + }, + { + bytes: 32, + event: 'print', + id: 8, + ms: 1769, + offset: 123, + time: '2016-05-09T14:57:07.769Z', + }, + { + bytes: 86, + event: 'print', + id: 9, + ms: 1770, + offset: 155, + time: '2016-05-09T14:57:07.77Z', + }, + { + bytes: 104, + event: 'print', + id: 10, + ms: 1770, + offset: 241, + time: '2016-05-09T14:57:07.77Z', + }, + { + bytes: 99, + event: 'print', + id: 11, + ms: 1771, + offset: 345, + time: '2016-05-09T14:57:07.771Z', + }, + { + bytes: 88, + event: 'print', + id: 12, + ms: 1772, + offset: 444, + time: '2016-05-09T14:57:07.772Z', + }, + { + bytes: 87, + event: 'print', + id: 13, + ms: 1773, + offset: 532, + time: '2016-05-09T14:57:07.773Z', + }, + { + bytes: 4095, + event: 'print', + id: 14, + ms: 1774, + offset: 619, + time: '2016-05-09T14:57:07.774Z', + }, + { + bytes: 1906, + event: 'print', + id: 15, + ms: 1775, + offset: 4714, + time: '2016-05-09T14:57:07.775Z', + }, + { + bytes: 8, + event: 'print', + id: 16, + ms: 1942, + offset: 6620, + time: '2016-05-09T14:57:07.942Z', + }, + { + bytes: 96, + event: 'print', + id: 17, + ms: 1943, + offset: 6628, + time: '2016-05-09T14:57:07.943Z', + }, + { + bytes: 4095, + event: 'print', + id: 18, + ms: 1944, + offset: 6724, + time: '2016-05-09T14:57:07.944Z', + }, + { + bytes: 2080, + event: 'print', + id: 19, + ms: 1945, + offset: 10819, + time: '2016-05-09T14:57:07.945Z', + }, + { + event: 'resize', + id: 20, + login: 'akontsevoy', + ms: 4013, + offset: 12899, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '146:29', + time: '2016-05-09T14:57:10.013Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 21, + ms: 4014, + offset: 12899, + time: '2016-05-09T14:57:10.014Z', + }, + { + bytes: 2227, + event: 'print', + id: 22, + ms: 4017, + offset: 12907, + time: '2016-05-09T14:57:10.017Z', + }, + { + bytes: 2048, + event: 'print', + id: 23, + ms: 4019, + offset: 15134, + time: '2016-05-09T14:57:10.019Z', + }, + { + bytes: 4095, + event: 'print', + id: 24, + ms: 4023, + offset: 17182, + time: '2016-05-09T14:57:10.023Z', + }, + { + bytes: 1037, + event: 'print', + id: 25, + ms: 4025, + offset: 21277, + time: '2016-05-09T14:57:10.025Z', + }, + { + event: 'resize', + id: 26, + login: 'akontsevoy', + ms: 6586, + offset: 22314, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '146:31', + time: '2016-05-09T14:57:12.586Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 27, + ms: 6587, + offset: 22314, + time: '2016-05-09T14:57:12.587Z', + }, + { + bytes: 179, + event: 'print', + id: 28, + ms: 6588, + offset: 22322, + time: '2016-05-09T14:57:12.588Z', + }, + { + bytes: 2048, + event: 'print', + id: 29, + ms: 6589, + offset: 22501, + time: '2016-05-09T14:57:12.589Z', + }, + { + bytes: 4095, + event: 'print', + id: 30, + ms: 6590, + offset: 24549, + time: '2016-05-09T14:57:12.59Z', + }, + { + bytes: 3783, + event: 'print', + id: 31, + ms: 6591, + offset: 28644, + time: '2016-05-09T14:57:12.591Z', + }, + { + event: 'resize', + id: 32, + login: 'akontsevoy', + ms: 8129, + offset: 32427, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '146:25', + time: '2016-05-09T14:57:14.129Z', + user: 'akontsevoy', + }, + { + bytes: 37, + event: 'print', + id: 33, + ms: 8130, + offset: 32427, + time: '2016-05-09T14:57:14.13Z', + }, + { + bytes: 149, + event: 'print', + id: 34, + ms: 8131, + offset: 32464, + time: '2016-05-09T14:57:14.131Z', + }, + { + bytes: 4095, + event: 'print', + id: 35, + ms: 8132, + offset: 32613, + time: '2016-05-09T14:57:14.132Z', + }, + { + bytes: 3737, + event: 'print', + id: 36, + ms: 8133, + offset: 36708, + time: '2016-05-09T14:57:14.133Z', + }, + { + event: 'resize', + id: 37, + login: 'akontsevoy', + ms: 15669, + offset: 40445, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '106:25', + time: '2016-05-09T14:57:21.669Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 38, + ms: 15669, + offset: 40445, + time: '2016-05-09T14:57:21.669Z', + }, + { + bytes: 171, + event: 'print', + id: 39, + ms: 15670, + offset: 40453, + time: '2016-05-09T14:57:21.67Z', + }, + { + bytes: 2048, + event: 'print', + id: 40, + ms: 15671, + offset: 40624, + time: '2016-05-09T14:57:21.671Z', + }, + { + bytes: 4095, + event: 'print', + id: 41, + ms: 15672, + offset: 42672, + time: '2016-05-09T14:57:21.672Z', + }, + { + bytes: 572, + event: 'print', + id: 42, + ms: 15673, + offset: 46767, + time: '2016-05-09T14:57:21.673Z', + }, + { + event: 'resize', + id: 43, + login: 'akontsevoy', + ms: 17085, + offset: 47339, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '76:25', + time: '2016-05-09T14:57:23.085Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 44, + ms: 17086, + offset: 47339, + time: '2016-05-09T14:57:23.086Z', + }, + { + bytes: 176, + event: 'print', + id: 45, + ms: 17087, + offset: 47347, + time: '2016-05-09T14:57:23.087Z', + }, + { + bytes: 4095, + event: 'print', + id: 46, + ms: 17088, + offset: 47523, + time: '2016-05-09T14:57:23.088Z', + }, + { + bytes: 1783, + event: 'print', + id: 47, + ms: 17093, + offset: 51618, + time: '2016-05-09T14:57:23.093Z', + }, + { + event: 'resize', + id: 48, + login: 'akontsevoy', + ms: 18051, + offset: 53401, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '76:25', + time: '2016-05-09T14:57:24.051Z', + user: 'akontsevoy', + }, + { + event: 'resize', + id: 49, + login: 'akontsevoy', + ms: 18532, + offset: 53401, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '150:25', + time: '2016-05-09T14:57:24.532Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 50, + ms: 18535, + offset: 53401, + time: '2016-05-09T14:57:24.535Z', + }, + { + bytes: 4095, + event: 'print', + id: 51, + ms: 18536, + offset: 53409, + time: '2016-05-09T14:57:24.536Z', + }, + { + bytes: 4021, + event: 'print', + id: 52, + ms: 18537, + offset: 57504, + time: '2016-05-09T14:57:24.537Z', + }, + { + bytes: 292, + event: 'print', + id: 53, + ms: 20280, + offset: 61525, + time: '2016-05-09T14:57:26.28Z', + }, + { + bytes: 25, + event: 'print', + id: 54, + ms: 20484, + offset: 61817, + time: '2016-05-09T14:57:26.484Z', + }, + { + bytes: 15, + event: 'print', + id: 55, + ms: 20929, + offset: 61842, + time: '2016-05-09T14:57:26.929Z', + }, + { + bytes: 15, + event: 'print', + id: 56, + ms: 21001, + offset: 61857, + time: '2016-05-09T14:57:27.001Z', + }, + { + bytes: 15, + event: 'print', + id: 57, + ms: 21118, + offset: 61872, + time: '2016-05-09T14:57:27.118Z', + }, + { + event: 'resize', + id: 58, + login: 'akontsevoy', + ms: 27097, + offset: 61887, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '150:33', + time: '2016-05-09T14:57:33.097Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 59, + ms: 27098, + offset: 61887, + time: '2016-05-09T14:57:33.098Z', + }, + { + bytes: 181, + event: 'print', + id: 60, + ms: 27099, + offset: 61895, + time: '2016-05-09T14:57:33.099Z', + }, + { + bytes: 2048, + event: 'print', + id: 61, + ms: 27101, + offset: 62076, + time: '2016-05-09T14:57:33.101Z', + }, + { + bytes: 2048, + event: 'print', + id: 62, + ms: 27101, + offset: 64124, + time: '2016-05-09T14:57:33.101Z', + }, + { + bytes: 4095, + event: 'print', + id: 63, + ms: 27103, + offset: 66172, + time: '2016-05-09T14:57:33.103Z', + }, + { + bytes: 2572, + event: 'print', + id: 64, + ms: 27104, + offset: 70267, + time: '2016-05-09T14:57:33.104Z', + }, + { + event: 'resize', + id: 65, + login: 'akontsevoy', + ms: 28237, + offset: 72839, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '150:24', + time: '2016-05-09T14:57:34.237Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 66, + ms: 28238, + offset: 72839, + time: '2016-05-09T14:57:34.238Z', + }, + { + bytes: 187, + event: 'print', + id: 67, + ms: 28239, + offset: 72847, + time: '2016-05-09T14:57:34.239Z', + }, + { + bytes: 2048, + event: 'print', + id: 68, + ms: 28240, + offset: 73034, + time: '2016-05-09T14:57:34.24Z', + }, + { + bytes: 4095, + event: 'print', + id: 69, + ms: 28241, + offset: 75082, + time: '2016-05-09T14:57:34.241Z', + }, + { + bytes: 1443, + event: 'print', + id: 70, + ms: 28242, + offset: 79177, + time: '2016-05-09T14:57:34.242Z', + }, + { + event: 'resize', + id: 71, + login: 'akontsevoy', + ms: 34805, + offset: 80620, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '86:24', + time: '2016-05-09T14:57:40.805Z', + user: 'akontsevoy', + }, + { + bytes: 37, + event: 'print', + id: 72, + ms: 34806, + offset: 80620, + time: '2016-05-09T14:57:40.806Z', + }, + { + bytes: 147, + event: 'print', + id: 73, + ms: 34807, + offset: 80657, + time: '2016-05-09T14:57:40.807Z', + }, + { + bytes: 2048, + event: 'print', + id: 74, + ms: 34810, + offset: 80804, + time: '2016-05-09T14:57:40.81Z', + }, + { + bytes: 3816, + event: 'print', + id: 75, + ms: 34811, + offset: 82852, + time: '2016-05-09T14:57:40.811Z', + }, + { + event: 'resize', + id: 76, + login: 'akontsevoy', + ms: 35761, + offset: 86668, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '46:24', + time: '2016-05-09T14:57:41.761Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 77, + ms: 35762, + offset: 86668, + time: '2016-05-09T14:57:41.762Z', + }, + { + bytes: 4095, + event: 'print', + id: 78, + ms: 35763, + offset: 86676, + time: '2016-05-09T14:57:41.763Z', + }, + { + bytes: 713, + event: 'print', + id: 79, + ms: 35764, + offset: 90771, + time: '2016-05-09T14:57:41.764Z', + }, + { + event: 'resize', + id: 80, + login: 'akontsevoy', + ms: 36260, + offset: 91484, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '46:24', + time: '2016-05-09T14:57:42.26Z', + user: 'akontsevoy', + }, + { + event: 'resize', + id: 81, + login: 'akontsevoy', + ms: 36408, + offset: 91484, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '60:24', + time: '2016-05-09T14:57:42.408Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 82, + ms: 36409, + offset: 91484, + time: '2016-05-09T14:57:42.409Z', + }, + { + bytes: 170, + event: 'print', + id: 83, + ms: 36410, + offset: 91492, + time: '2016-05-09T14:57:42.41Z', + }, + { + bytes: 4095, + event: 'print', + id: 84, + ms: 36412, + offset: 91662, + time: '2016-05-09T14:57:42.412Z', + }, + { + bytes: 1003, + event: 'print', + id: 85, + ms: 36414, + offset: 95757, + time: '2016-05-09T14:57:42.414Z', + }, + { + event: 'resize', + id: 86, + login: 'akontsevoy', + ms: 36760, + offset: 96760, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '139:24', + time: '2016-05-09T14:57:42.76Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 87, + ms: 36761, + offset: 96760, + time: '2016-05-09T14:57:42.761Z', + }, + { + bytes: 105, + event: 'print', + id: 88, + ms: 36762, + offset: 96768, + time: '2016-05-09T14:57:42.762Z', + }, + { + bytes: 2048, + event: 'print', + id: 89, + ms: 36763, + offset: 96873, + time: '2016-05-09T14:57:42.763Z', + }, + { + bytes: 4095, + event: 'print', + id: 90, + ms: 36764, + offset: 98921, + time: '2016-05-09T14:57:42.764Z', + }, + { + bytes: 1217, + event: 'print', + id: 91, + ms: 36764, + offset: 103016, + time: '2016-05-09T14:57:42.764Z', + }, + { + event: 'resize', + id: 92, + login: 'akontsevoy', + ms: 37417, + offset: 104233, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '147:24', + time: '2016-05-09T14:57:43.417Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 93, + ms: 37426, + offset: 104233, + time: '2016-05-09T14:57:43.426Z', + }, + { + bytes: 4095, + event: 'print', + id: 94, + ms: 37428, + offset: 104241, + time: '2016-05-09T14:57:43.428Z', + }, + { + bytes: 3585, + event: 'print', + id: 95, + ms: 37430, + offset: 108336, + time: '2016-05-09T14:57:43.43Z', + }, + { + event: 'resize', + id: 96, + login: 'akontsevoy', + ms: 37670, + offset: 111921, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '157:24', + time: '2016-05-09T14:57:43.67Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 97, + ms: 37671, + offset: 111921, + time: '2016-05-09T14:57:43.671Z', + }, + { + bytes: 105, + event: 'print', + id: 98, + ms: 37671, + offset: 111929, + time: '2016-05-09T14:57:43.671Z', + }, + { + bytes: 4095, + event: 'print', + id: 99, + ms: 37673, + offset: 112034, + time: '2016-05-09T14:57:43.673Z', + }, + { + bytes: 3749, + event: 'print', + id: 100, + ms: 37674, + offset: 116129, + time: '2016-05-09T14:57:43.674Z', + }, + { + event: 'resize', + id: 101, + login: 'akontsevoy', + ms: 38509, + offset: 119878, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '115:24', + time: '2016-05-09T14:57:44.509Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 102, + ms: 38511, + offset: 119878, + time: '2016-05-09T14:57:44.511Z', + }, + { + bytes: 4095, + event: 'print', + id: 103, + ms: 38512, + offset: 119886, + time: '2016-05-09T14:57:44.512Z', + }, + { + bytes: 2729, + event: 'print', + id: 104, + ms: 38513, + offset: 123981, + time: '2016-05-09T14:57:44.513Z', + }, + { + bytes: 245, + event: 'print', + id: 105, + ms: 42326, + offset: 126710, + time: '2016-05-09T14:57:48.326Z', + }, + { + bytes: 254, + event: 'print', + id: 106, + ms: 42421, + offset: 126955, + time: '2016-05-09T14:57:48.421Z', + }, + { + bytes: 254, + event: 'print', + id: 107, + ms: 42433, + offset: 127209, + time: '2016-05-09T14:57:48.433Z', + }, + { + bytes: 250, + event: 'print', + id: 108, + ms: 42451, + offset: 127463, + time: '2016-05-09T14:57:48.451Z', + }, + { + event: 'resize', + id: 109, + login: 'akontsevoy', + ms: 44256, + offset: 127713, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '115:34', + time: '2016-05-09T14:57:50.256Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 110, + ms: 44258, + offset: 127713, + time: '2016-05-09T14:57:50.258Z', + }, + { + bytes: 29, + event: 'print', + id: 111, + ms: 44259, + offset: 127721, + time: '2016-05-09T14:57:50.259Z', + }, + { + bytes: 149, + event: 'print', + id: 112, + ms: 44259, + offset: 127750, + time: '2016-05-09T14:57:50.259Z', + }, + { + bytes: 2048, + event: 'print', + id: 113, + ms: 44260, + offset: 127899, + time: '2016-05-09T14:57:50.26Z', + }, + { + bytes: 4095, + event: 'print', + id: 114, + ms: 44261, + offset: 129947, + time: '2016-05-09T14:57:50.261Z', + }, + { + bytes: 3681, + event: 'print', + id: 115, + ms: 44262, + offset: 134042, + time: '2016-05-09T14:57:50.262Z', + }, + { + event: 'resize', + id: 116, + login: 'akontsevoy', + ms: 45237, + offset: 137723, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + size: '115:23', + time: '2016-05-09T14:57:51.237Z', + user: 'akontsevoy', + }, + { + bytes: 8, + event: 'print', + id: 117, + ms: 45238, + offset: 137723, + time: '2016-05-09T14:57:51.238Z', + }, + { + bytes: 182, + event: 'print', + id: 118, + ms: 45239, + offset: 137731, + time: '2016-05-09T14:57:51.239Z', + }, + { + bytes: 2048, + event: 'print', + id: 119, + ms: 45240, + offset: 137913, + time: '2016-05-09T14:57:51.24Z', + }, + { + bytes: 4095, + event: 'print', + id: 120, + ms: 45242, + offset: 139961, + time: '2016-05-09T14:57:51.242Z', + }, + { + bytes: 183, + event: 'print', + id: 121, + ms: 45243, + offset: 144056, + time: '2016-05-09T14:57:51.243Z', + }, + { + event: 'session.leave', + id: 122, + ms: 46403, + offset: 144239, + server_id: 'd1d92452-06b8-4828-abad-c1fb7ef947b3', + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + time: '2016-05-09T14:57:52.403Z', + user: 'akontsevoy', + }, + { + event: 'session.end', + id: 123, + sid: '4bac8c61-15f6-11e6-a2e6-f0def19340e2', + time: '2016-05-09T15:00:52.403Z', + user: 'akontsevoy', + }, + ], - data: -`]0;akontsevoy@x220: ~akontsevoy@x220:~$ mc + data: `]0;akontsevoy@x220: ~akontsevoy@x220:~$ mc [?1049h(B(B  [?1049l7[?47h[?1001s[?1002h[?1006h[?2004h[?1049h[?1h=(B | / ┐ - \ ┐]0;mc [akontsevoy@x220]:~>Hint: To look at the output of a command in the viewer, use M-!]0;mc [akontsevoy@x220]:~>]0;mc [akontsevoy@x220]:~>]0;mc [akontsevoy@x220]:~> Left File Command Options Right @@ -1002,5 +1124,5 @@ akontsevoy@x220:~$ ┌<─ ~ ─────────────────────────────────────────────.[^]>┐┌<─ ~ ──────────────────────────────────────────────.[^]>┐│.n Name (B│ Size (B│Modify time (B││.n Name (B│ Size (B│Modify time (B││/.. (B│UP--DIR(B│Oct 2 2015(B││/.. (B│UP--DIR(B│Oct 2 2015(B││/.Skype (B│ 4096(B│May 9 10:51(B││/.Skype (B│ 4096(B│May 9 10:51(B││/.adobe (B│ 4096(B│Oct 2 2015(B││/.adobe (B│ 4096(B│Oct 2 2015(B││/.ansible (B│ 4096(B│Mar 24 20:35(B││/.ansible (B│ 4096(B│Mar 24 20:35(B││/.aptitude (B│ 4096(B│Apr 28 14:51(B││/.aptitude (B│ 4096(B│Apr 28 14:51(B││/.atom (B│ 4096(B│Nov 4 2015(B││/.atom (B│ 4096(B│Nov 4 2015(B││/.aws (B│ 4096(B│Apr 8 16:09(B││/.aws (B│ 4096(B│Apr 8 16:09(B││/.cache (B│ 4096(B│May 7 15:56(B││/.cache (B│ 4096(B│May 7 15:56(B││/.config (B│ 4096(B│May 7 22:22(B││/.config (B│ 4096(B│May 7 22:22(B││/.dbus │ 4096│Nov 2 2015││/.dbus (B│ 4096(B│Nov 2 2015(B││/.dlv (B│ 4096(B│Jan 10 14:15(B││/.dlv (B│ 4096(B│Jan 10 14:15(B││/.emacs.d (B│ 4096(B│Jan 20 09:29(B││/.emacs.d (B│ 4096(B│Jan 20 09:29(B││/.forever (B│ 4096(B│Jan 20 15:29(B││/.forever (B│ 4096(B│Jan 20 15:29(B││/.gconf (B│ 4096(B│May 7 22:22(B││/.gconf (B│ 4096(B│May 7 22:22(B││/.gimp-2.8 (B│ 4096(B│Apr 25 22:55(B││/.gimp-2.8 (B│ 4096(B│Apr 25 22:55(B││/.git-credential-cache (B│ 4096(B│Mar 19 16:18(B││/.git-credential-cache (B│ 4096(B│Mar 19 16:18(B││/.gnome (B│ 4096(B│Apr 7 22:06(B││/.gnome (B│ 4096(B│Apr 7 22:06(B││/.gnupg (B│ 4096(B│Dec 14 14:23(B││/.gnupg (B│ 4096(B│Dec 14 14:23(B││/.gvfs (B│ 4096(B│Nov 2 2015(B││/.gvfs (B│ 4096(B│Nov 2 2015(B││/.gvm (B│ 4096(B│Nov 28 16:48(B││/.gvm (B│ 4096(B│Nov 28 16:48(B││/.hplip (B│ 4096(B│Mar 7 21:38(B││/.hplip (B│ 4096(B│Mar 7 21:38(B││/.lastpass (B│ 4096(B│Dec 14 16:01(B││/.lastpass (B│ 4096(B│Dec 14 16:01(B││/.local (B│ 4096(B│Apr 8 15:25(B││/.local (B│ 4096(B│Apr 8 15:25(B││/.macromedia (B│ 4096(B│Oct 2 2015(B││/.macromedia (B│ 4096(B│Oct 2 2015(B││/.mozilla (B│ 4096(B│Oct 2 2015(B││/.mozilla (B│ 4096(B│Oct 2 2015(B│├───────────────────────────────────────────────────────┤├────────────────────────────────────────────────────────┤│/.dbus ││UP--DIR │└───────────────────────────────────── 116G/219G (52%) ─┘└────────────────────────────────────── 116G/219G (52%) ─┘akontsevoy@x220:~$  1(BHelp  2(BMenu  3(BView  4(BEdit  5(BCopy  6(BRenMov  7(BMkdir  8(BDelete  9(BPullDn 10(BQuit7[?47h]0;mc [akontsevoy@x220]:~>[?1h=Hint: You may specify the editor for F4 with the shell variable EDITOR. gdfg[^] Left File Command Options Right ┌<─ ~ ─────────────────────────────────────────────.[^]>┐┌<─ ~ ──────────────────────────────────────────────.[^]>┐│.n Name (B│ Size (B│Modify time (B││.n Name (B│ Size (B│Modify time (B││/.. (B│UP--DIR(B│Oct 2 2015(B││/.. (B│UP--DIR(B│Oct 2 2015(B││/.Skype (B│ 4096(B│May 9 10:51(B││/.Skype (B│ 4096(B│May 9 10:51(B││/.adobe (B│ 4096(B│Oct 2 2015(B││/.adobe (B│ 4096(B│Oct 2 2015(B││/.ansible (B│ 4096(B│Mar 24 20:35(B││/.ansible (B│ 4096(B│Mar 24 20:35(B││/.aptitude (B│ 4096(B│Apr 28 14:51(B││/.aptitude (B│ 4096(B│Apr 28 14:51(B││/.atom (B│ 4096(B│Nov 4 2015(B││/.atom (B│ 4096(B│Nov 4 2015(B││/.aws (B│ 4096(B│Apr 8 16:09(B││/.aws (B│ 4096(B│Apr 8 16:09(B││/.cache (B│ 4096(B│May 7 15:56(B││/.cache (B│ 4096(B│May 7 15:56(B││/.config (B│ 4096(B│May 7 22:22(B││/.config (B│ 4096(B│May 7 22:22(B││/.dbus │ 4096│Nov 2 2015││/.dbus (B│ 4096(B│Nov 2 2015(B││/.dlv (B│ 4096(B│Jan 10 14:15(B││/.dlv (B│ 4096(B│Jan 10 14:15(B││/.emacs.d (B│ 4096(B│Jan 20 09:29(B││/.emacs.d (B│ 4096(B│Jan 20 09:29(B││/.forever (B│ 4096(B│Jan 20 15:29(B││/.forever (B│ 4096(B│Jan 20 15:29(B││/.gconf (B│ 4096(B│May 7 22:22(B││/.gconf (B│ 4096(B│May 7 22:22(B│├───────────────────────────────────────────────────────┤├────────────────────────────────────────────────────────┤│/.dbus ││UP--DIR │└───────────────────────────────────── 116G/219G (52%) ─┘└────────────────────────────────────── 116G/219G (52%) ─┘akontsevoy@x220:~$ - 1(BHelp  2(BMenu  3(BView  4(BEdit  5(BCopy  6(BRenMov  7(BMkdir  8(BDelete  9(BPullDn 10(BQuit` -} + 1(BHelp  2(BMenu  3(BView  4(BEdit  5(BCopy  6(BRenMov  7(BMkdir  8(BDelete  9(BPullDn 10(BQuit`, +}; diff --git a/web/packages/teleport/src/lib/term/ttyAddressResolver.js b/web/packages/teleport/src/lib/term/ttyAddressResolver.js index 692079299a8..6fdf94f4b0d 100644 --- a/web/packages/teleport/src/lib/term/ttyAddressResolver.js +++ b/web/packages/teleport/src/lib/term/ttyAddressResolver.js @@ -17,23 +17,23 @@ limitations under the License. export default class AddressResolver { _cfg = { ttyUrl: null, - ttyParams: {} - } + ttyParams: {}, + }; - constructor(cfg){ + constructor(cfg) { this._cfg = { ...cfg, - } + }; } - getConnStr(w, h){ + getConnStr(w, h) { const { ttyParams, ttyUrl } = this._cfg; const params = JSON.stringify({ ...ttyParams, - term: { h, w } + term: { h, w }, }); const encoded = window.encodeURI(params); return ttyUrl.replace(':params', encoded); } -} \ No newline at end of file +} diff --git a/web/packages/teleport/src/services/history/index.ts b/web/packages/teleport/src/services/history/index.ts index 527f5d7c24e..41d72babc54 100644 --- a/web/packages/teleport/src/services/history/index.ts +++ b/web/packages/teleport/src/services/history/index.ts @@ -14,8 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -import service, { getUrlParameter } from './history'; +import service, { getUrlParameter } from './history'; export default service; -export { - getUrlParameter -} +export { getUrlParameter };