From 565d2d63a9c6f7ecb9acbbd63232efe673934e63 Mon Sep 17 00:00:00 2001 From: Ryan Clark Date: Tue, 23 Aug 2022 18:39:10 +0100 Subject: [PATCH] [v10] Add prettier commands to `package.json`, run prettier (#1137) --- web/.prettierignore | 6 + web/.prettierrc | 4 +- web/package.json | 2 + web/packages/build/jest/config.js | 2 +- web/packages/build/webpack/webpack.base.js | 3 +- .../build/webpack/webpack.dev.config.js | 4 +- web/packages/design/README.md | 2 +- .../design/src/ButtonIcon/ButtonIcon.jsx | 4 +- .../src/ButtonOutlined/ButtonOutlined.jsx | 10 +- .../__snapshots__/CardSuccess.test.js.snap | 2 +- web/packages/design/src/Icon/Icon.jsx | 2 +- web/packages/design/src/Input/Input.jsx | 2 +- .../src/Pill/__snapshots__/Pill.test.tsx.snap | 4 +- web/packages/design/src/Pill/index.ts | 4 +- web/packages/design/src/SlideTabs/index.ts | 4 +- web/packages/design/src/TopNav/TopNavItem.jsx | 11 +- .../TopNav/TopNavUserMenu/TopNavUserMenu.jsx | 7 +- .../__snapshots__/Topnav.story.test.js.snap | 4 +- web/packages/design/src/theme/theme.js | 10 +- web/packages/design/src/utils/testing.tsx | 2 +- web/packages/shared/README.md | 2 +- .../shared/components/BpfViewer/BpfViewer.jsx | 2 +- .../components/BpfViewer/ace-mode-bpf.js | 18 +- .../__snapshots__/FieldInput.test.tsx.snap | 4 +- .../__snapshots__/FormPassword.test.tsx.snap | 4 +- .../shared/components/SplitPane/SplitPane.jsx | 10 +- web/packages/shared/hooks/useClickOutside.ts | 36 +- web/packages/shared/hooks/useEscape.ts | 2 +- web/packages/shared/libs/polyfillFinally.js | 2 +- .../utils/base64/base64url-arraybuffer.ts | 5 +- web/packages/teleport/README.md | 2 +- web/packages/teleport/babel.config.js | 4 +- .../AddDevice.story.test.tsx.snap | 6 +- .../ManageDevices.story.test.tsx.snap | 4 +- .../__snapshots__/AddApp.story.test.tsx.snap | 6 +- .../__snapshots__/Apps.story.test.tsx.snap | 22 +- .../teleport/src/Audit/EventDialog/index.ts | 2 +- .../__snapshots__/Audit.story.test.tsx.snap | 12 +- .../Clusters.story.test.tsx.snap | 6 +- .../teleport/src/Console/Console.story.tsx | 8 +- .../DocumentBlank.story.test.tsx.snap | 2 +- .../DocumentNodes.story.test.tsx.snap | 6 +- .../src/Console/DocumentSsh/Terminal/index.ts | 2 +- .../FileTransfer/DownloadForm/index.ts | 2 +- .../Console/FileTransfer/FileList/index.ts | 2 +- .../FileTransfer/FileTransfer.story.tsx | 3 +- .../Console/FileTransfer/UploadForm/index.ts | 2 +- .../teleport/src/Console/StyledXterm/index.ts | 2 +- .../Console/Tabs/JoinedUsers/JoinedUsers.jsx | 5 +- .../__snapshots__/Tabs.story.test.tsx.snap | 6 +- .../Databases/ConnectDialog/ConnectDialog.tsx | 5 +- .../Databases.story.test.tsx.snap | 14 +- .../DesktopSession.story.test.tsx.snap | 48 +- .../__snapshots__/AddKube.story.test.tsx.snap | 8 +- .../__snapshots__/Kubes.story.test.tsx.snap | 14 +- .../__snapshots__/LoginSuccess.test.tsx.snap | 2 +- web/packages/teleport/src/Login/index.ts | 5 +- .../__snapshots__/AddNode.story.test.tsx.snap | 26 +- .../__snapshots__/Nodes.story.test.tsx.snap | 18 +- web/packages/teleport/src/Nodes/index.ts | 2 +- .../src/Player/ProgressBar/Slider/Slider.jsx | 285 ++- .../src/Player/ProgressBar/Slider/index.js | 2 +- .../teleport/src/Player/Xterm/index.ts | 2 +- .../src/PlayerNext/fixtures/streamData.js | 2006 +++++++++-------- .../Recordings.story.test.tsx.snap | 6 +- .../Sessions.story.test.tsx.snap | 6 +- .../__snapshots__/SideNav.story.test.tsx.snap | 10 +- web/packages/teleport/src/SideNav/index.ts | 1 - .../__snapshots__/Support.story.test.tsx.snap | 6 +- .../__snapshots__/Users.story.test.tsx.snap | 6 +- .../NewCredentials.story.test.tsx.snap | 20 +- .../src/components/CatchError/index.js | 2 +- .../EventRangePicker/Custom/index.js | 2 +- .../FormLogin.story.test.tsx.snap | 16 +- .../src/components/InputSearch/index.js | 2 +- .../src/components/LogoHero/LogoHero.jsx | 16 +- .../teleport/src/components/LogoHero/index.js | 2 +- .../ResourceEditor/ResourceEditor.jsx | 5 +- .../src/lib/term/fixtures/streamData.js | 2006 +++++++++-------- .../src/lib/term/ttyAddressResolver.js | 14 +- .../teleport/src/services/history/index.ts | 6 +- web/packages/teleterm/README.md | 18 +- web/packages/teleterm/babel.config.js | 2 +- .../src/services/config/configService.ts | 5 +- .../teleterm/src/services/config/index.ts | 2 +- .../src/services/fileStorage/index.ts | 2 +- .../teleterm/src/services/pty/types.ts | 4 +- .../teleterm/src/ui/ClusterConnect/index.ts | 2 +- .../teleterm/src/ui/ClusterLogout/index.ts | 2 +- .../teleterm/src/ui/Documents/index.ts | 2 +- .../teleterm/src/ui/DocumentsReopen/index.ts | 2 +- .../Identity/IdentitySelector/UserIcon.tsx | 6 +- .../teleterm/src/ui/TopBar/Identity/index.ts | 1 - web/packages/teleterm/src/ui/TopBar/index.ts | 2 +- .../src/ui/components/CatchError/index.js | 2 +- .../FilterableList/FilterableList.tsx | 4 +- .../src/ui/components/FilterableList/index.ts | 2 +- .../teleterm/src/ui/components/ListItem.tsx | 3 +- .../src/ui/components/Notifcations/types.ts | 2 +- .../VirtualScroll/VirtualScroll.tsx | 2 +- .../src/ui/components/VirtualScroll/index.ts | 2 +- .../ui/services/connectionTracker/index.ts | 2 +- .../src/ui/services/immutableStore/index.ts | 2 +- .../keyboardShortcutsService.test.ts | 4 +- .../ui/services/keyboardShortcuts/types.ts | 2 +- .../src/ui/services/notifications/index.ts | 2 +- web/packages/teleterm/webpack.main.config.js | 2 +- web/packages/webapps.e | 2 +- 108 files changed, 2602 insertions(+), 2322 deletions(-) create mode 100644 web/.prettierignore diff --git a/web/.prettierignore b/web/.prettierignore new file mode 100644 index 0000000000000..87fc112ffba96 --- /dev/null +++ b/web/.prettierignore @@ -0,0 +1,6 @@ +# Ignore directories: +packages/design/src/assets/** +packages/**/dist/** + +# Ignore protobuf files: +**/*_pb.* diff --git a/web/.prettierrc b/web/.prettierrc index c25c722a97393..29b33f3b2b84d 100644 --- a/web/.prettierrc +++ b/web/.prettierrc @@ -2,9 +2,9 @@ "arrowParens": "avoid", "printWidth": 80, "bracketSpacing": true, - "jsxBracketSameLine": false, + "bracketSameLine": false, "semi": true, "singleQuote": true, "tabWidth": 2, "trailingComma": "es5" -} \ No newline at end of file +} diff --git a/web/package.json b/web/package.json index e464c5ce57692..9b220760d7a45 100644 --- a/web/package.json +++ b/web/package.json @@ -25,6 +25,8 @@ "type-check-and-lint": "yarn type-check && yarn lint", "lint": "eslint --ext .js,.jsx,.ts,.tsx packages/", "type-check": "tsc --noEmit", + "prettier-check": "yarn prettier --check 'packages/**/*.{ts,tsx,js,jsx,md}'", + "prettier-write": "yarn prettier --write 'packages/**/*.{ts,tsx,js,jsx,md}'", "nop": "exit 0" }, "private": true, diff --git a/web/packages/build/jest/config.js b/web/packages/build/jest/config.js index aa0ac1c3eb062..f248db6ad430c 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 67a10e486332d..315d256551492 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 004a8380641fc..292f3e7dca262 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/design/README.md b/web/packages/design/README.md index 9b06bdf92d20e..a0236663418db 100644 --- a/web/packages/design/README.md +++ b/web/packages/design/README.md @@ -23,4 +23,4 @@ concept and principles on which this design system is built. [Build Better Component Libraries with Styled System](https://medium.com/styled-components/build-better-component-libraries-with-styled-system-4951653d54ee) -[Component Based Design System With Styled-System](https://varun.ca/styled-system/) \ No newline at end of file +[Component Based Design System With Styled-System](https://varun.ca/styled-system/) diff --git a/web/packages/design/src/ButtonIcon/ButtonIcon.jsx b/web/packages/design/src/ButtonIcon/ButtonIcon.jsx index e6a2bd05913c7..5928345bfbc12 100644 --- a/web/packages/design/src/ButtonIcon/ButtonIcon.jsx +++ b/web/packages/design/src/ButtonIcon/ButtonIcon.jsx @@ -77,10 +77,10 @@ const StyledButtonIcon = styled.button` flex: 0 0 auto; background: transparent; color: inherit; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; - ${Icon}{ + ${Icon} { color: inherit; } diff --git a/web/packages/design/src/ButtonOutlined/ButtonOutlined.jsx b/web/packages/design/src/ButtonOutlined/ButtonOutlined.jsx index 75e6b7444441e..3a755d88b2fc2 100644 --- a/web/packages/design/src/ButtonOutlined/ButtonOutlined.jsx +++ b/web/packages/design/src/ButtonOutlined/ButtonOutlined.jsx @@ -19,7 +19,9 @@ import styled from 'styled-components'; import { space, width } from 'design/system'; import defaultTheme from 'design/theme'; -const ButtonOutlined = ({ children, setRef, ...props } = {setRef: undefined}) => { +const ButtonOutlined = ( + { children, setRef, ...props } = { setRef: undefined } +) => { return ( {children} @@ -117,12 +119,12 @@ const StyledButton = styled.button` font-family: inherit; font-weight: bold; outline: none; - opacity: .56; + opacity: 0.56; position: relative; text-align: center; text-decoration: none; text-transform: uppercase; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; &:hover { @@ -130,7 +132,7 @@ const StyledButton = styled.button` } &:active { - opacity: .24; + opacity: 0.24; } > span { diff --git a/web/packages/design/src/CardSuccess/__snapshots__/CardSuccess.test.js.snap b/web/packages/design/src/CardSuccess/__snapshots__/CardSuccess.test.js.snap index 810955e3b2930..3089e98b372fb 100644 --- a/web/packages/design/src/CardSuccess/__snapshots__/CardSuccess.test.js.snap +++ b/web/packages/design/src/CardSuccess/__snapshots__/CardSuccess.test.js.snap @@ -3,7 +3,7 @@ exports[`rendering of CardSuccess components 1`] = ` .c1 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-bottom: 16px; color: #00bfa5; font-size: 56px; diff --git a/web/packages/design/src/Icon/Icon.jsx b/web/packages/design/src/Icon/Icon.jsx index d255feb877881..42fefbb10abcc 100644 --- a/web/packages/design/src/Icon/Icon.jsx +++ b/web/packages/design/src/Icon/Icon.jsx @@ -21,7 +21,7 @@ import '../assets/icomoon/style.css'; const Icon = styled.span` display: inline-block; - transition: color .3s; + transition: color 0.3s; ${space} ${width} ${color} ${fontSize} `; diff --git a/web/packages/design/src/Input/Input.jsx b/web/packages/design/src/Input/Input.jsx index b0b6822a4f3ec..d006b05d6a74f 100644 --- a/web/packages/design/src/Input/Input.jsx +++ b/web/packages/design/src/Input/Input.jsx @@ -33,7 +33,7 @@ const Input = styled.input` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0, 0, 0, .24); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.24); box-sizing: border-box; display: block; height: 40px; diff --git a/web/packages/design/src/Pill/__snapshots__/Pill.test.tsx.snap b/web/packages/design/src/Pill/__snapshots__/Pill.test.tsx.snap index 4ae1eb3677b22..a31ac627573a0 100644 --- a/web/packages/design/src/Pill/__snapshots__/Pill.test.tsx.snap +++ b/web/packages/design/src/Pill/__snapshots__/Pill.test.tsx.snap @@ -4,7 +4,7 @@ exports[`design/Pill render the label with dismissable 1`] = ` HTMLCollection [ .c1 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -30,7 +30,7 @@ exports[`design/Pill renders the label without dismissable 1`] = ` HTMLCollection [ .c1 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } diff --git a/web/packages/design/src/Pill/index.ts b/web/packages/design/src/Pill/index.ts index 00fb6ddc91f91..a3dbf6bc5c8b2 100644 --- a/web/packages/design/src/Pill/index.ts +++ b/web/packages/design/src/Pill/index.ts @@ -14,6 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {Pill} from "./Pill"; +import { Pill } from './Pill'; -export {Pill} \ No newline at end of file +export { Pill }; diff --git a/web/packages/design/src/SlideTabs/index.ts b/web/packages/design/src/SlideTabs/index.ts index b45da4fb7586a..ab67f6b26b65a 100644 --- a/web/packages/design/src/SlideTabs/index.ts +++ b/web/packages/design/src/SlideTabs/index.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import SlideTabs from "./SlideTabs"; +import SlideTabs from './SlideTabs'; -export default SlideTabs; \ No newline at end of file +export default SlideTabs; diff --git a/web/packages/design/src/TopNav/TopNavItem.jsx b/web/packages/design/src/TopNav/TopNavItem.jsx index d87fe27ac9dc6..dbe2dc7423b43 100644 --- a/web/packages/design/src/TopNav/TopNavItem.jsx +++ b/web/packages/design/src/TopNav/TopNavItem.jsx @@ -37,21 +37,22 @@ const TopNavItem = styled.button` position: relative; text-decoration: none; - &:hover, &:focus { - background: ${props => + &:hover, + &:focus { + background: ${props => props.active ? props.theme.colors.primary.light : 'rgba(255, 255, 255, .06)'}; } - &.active{ - background: ${props => props.theme.colors.primary.light}; + &.active { + background: ${props => props.theme.colors.primary.light}; color: ${props => props.theme.colors.light}; } &.active:after { background-color: ${props => props.theme.colors.accent}; - content: ""; + content: ''; position: absolute; bottom: 0; left: 0; diff --git a/web/packages/design/src/TopNav/TopNavUserMenu/TopNavUserMenu.jsx b/web/packages/design/src/TopNav/TopNavUserMenu/TopNavUserMenu.jsx index 49b97c64ac693..3a8c811fde16a 100644 --- a/web/packages/design/src/TopNav/TopNavUserMenu/TopNavUserMenu.jsx +++ b/web/packages/design/src/TopNav/TopNavUserMenu/TopNavUserMenu.jsx @@ -54,12 +54,7 @@ class TopNavUserMenu extends React.Component { menuListCss, } = this.props; const initial = - user && user.length - ? user - .trim() - .charAt(0) - .toUpperCase() - : ''; + user && user.length ? user.trim().charAt(0).toUpperCase() : ''; const anchorEl = open ? this.btnRef : null; return ( <> diff --git a/web/packages/design/src/TopNav/__snapshots__/Topnav.story.test.js.snap b/web/packages/design/src/TopNav/__snapshots__/Topnav.story.test.js.snap index f3062a27c6eac..0816611a0c1b8 100644 --- a/web/packages/design/src/TopNav/__snapshots__/Topnav.story.test.js.snap +++ b/web/packages/design/src/TopNav/__snapshots__/Topnav.story.test.js.snap @@ -40,7 +40,7 @@ exports[`rendering of TopNav and TopNavItem 1`] = ` .c1.active:after { background-color: #651FFF; - content: ""; + content: ''; position: absolute; bottom: 0; left: 0; @@ -79,7 +79,7 @@ exports[`rendering of TopNav and TopNavItem 1`] = ` .c2.active:after { background-color: #651FFF; - content: ""; + content: ''; position: absolute; bottom: 0; left: 0; diff --git a/web/packages/design/src/theme/theme.js b/web/packages/design/src/theme/theme.js index c3beaac555a0f..4d409e6a0a9a7 100644 --- a/web/packages/design/src/theme/theme.js +++ b/web/packages/design/src/theme/theme.js @@ -16,7 +16,15 @@ limitations under the License. import { fonts } from './fonts'; import { getContrastRatio } from './utils/colorManipulator'; -import { lightBlue, red, teal, orange, pink, blueGrey, yellow } from './palette'; +import { + lightBlue, + red, + teal, + orange, + pink, + blueGrey, + yellow, +} from './palette'; import typography, { fontSizes, fontWeights } from './typography'; const space = [0, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80]; diff --git a/web/packages/design/src/utils/testing.tsx b/web/packages/design/src/utils/testing.tsx index 1e161d6506ddd..3b88052d9918c 100644 --- a/web/packages/design/src/utils/testing.tsx +++ b/web/packages/design/src/utils/testing.tsx @@ -22,7 +22,7 @@ import { waitFor, screen, prettyDOM, - getByTestId + getByTestId, } from '@testing-library/react'; import { MemoryRouter as Router } from 'react-router-dom'; import ThemeProvider from 'design/ThemeProvider'; diff --git a/web/packages/shared/README.md b/web/packages/shared/README.md index b8edbf98fbffd..5e07c7b280289 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 ac541a18b4637..acf6b1fca4110 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 b3702b142d438..78e96ad5dd21c 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/FieldInput/__snapshots__/FieldInput.test.tsx.snap b/web/packages/shared/components/FieldInput/__snapshots__/FieldInput.test.tsx.snap index 3bbcda549289d..6c896b3622f6e 100644 --- a/web/packages/shared/components/FieldInput/__snapshots__/FieldInput.test.tsx.snap +++ b/web/packages/shared/components/FieldInput/__snapshots__/FieldInput.test.tsx.snap @@ -12,7 +12,7 @@ Object { appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -126,7 +126,7 @@ Object { appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; diff --git a/web/packages/shared/components/FormPassword/__snapshots__/FormPassword.test.tsx.snap b/web/packages/shared/components/FormPassword/__snapshots__/FormPassword.test.tsx.snap index ab52091bcf813..34bb0ace1c3ce 100644 --- a/web/packages/shared/components/FormPassword/__snapshots__/FormPassword.test.tsx.snap +++ b/web/packages/shared/components/FormPassword/__snapshots__/FormPassword.test.tsx.snap @@ -76,7 +76,7 @@ exports[`auth2faType "on" should render form with hardware key as first option i appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -424,7 +424,7 @@ exports[`auth2faType "optional" should render form with hardware key as first op appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; diff --git a/web/packages/shared/components/SplitPane/SplitPane.jsx b/web/packages/shared/components/SplitPane/SplitPane.jsx index 6147230cc14f9..41f8f1fa69a38 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 82e19db0d53ae..c46fe403a9269 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 d3472eeedea92..fa00f6ee9190e 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 2235d48c534da..5227612b88fe6 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 37aa5cd591476..cd5d0533a544c 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 7323944e26c02..67d18582bf682 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 e709437f0a2df..7ae725ec5ca2f 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/Account/ManageDevices/AddDevice/__snapshots__/AddDevice.story.test.tsx.snap b/web/packages/teleport/src/Account/ManageDevices/AddDevice/__snapshots__/AddDevice.story.test.tsx.snap index cb63920d36485..bf3f5d53c5be8 100644 --- a/web/packages/teleport/src/Account/ManageDevices/AddDevice/__snapshots__/AddDevice.story.test.tsx.snap +++ b/web/packages/teleport/src/Account/ManageDevices/AddDevice/__snapshots__/AddDevice.story.test.tsx.snap @@ -112,7 +112,7 @@ exports[`render dialog to add a new mfa device with webauthn as preferred type 1 appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -697,7 +697,7 @@ exports[`render failed state for dialog to add a new mfa device 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -1289,7 +1289,7 @@ exports[`render failed state for fetching QR Code for dialog to add a new mfa de appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; diff --git a/web/packages/teleport/src/Account/ManageDevices/__snapshots__/ManageDevices.story.test.tsx.snap b/web/packages/teleport/src/Account/ManageDevices/__snapshots__/ManageDevices.story.test.tsx.snap index 4cbdabd6186aa..7d0a02f7efa0b 100644 --- a/web/packages/teleport/src/Account/ManageDevices/__snapshots__/ManageDevices.story.test.tsx.snap +++ b/web/packages/teleport/src/Account/ManageDevices/__snapshots__/ManageDevices.story.test.tsx.snap @@ -95,7 +95,7 @@ exports[`render device dashboard 1`] = ` .c11 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -614,7 +614,7 @@ exports[`render failed state for creating restricted privilege token 1`] = ` .c12 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } diff --git a/web/packages/teleport/src/Apps/AddApp/__snapshots__/AddApp.story.test.tsx.snap b/web/packages/teleport/src/Apps/AddApp/__snapshots__/AddApp.story.test.tsx.snap index f0a99a71be3b7..827e477c2adbf 100644 --- a/web/packages/teleport/src/Apps/AddApp/__snapshots__/AddApp.story.test.tsx.snap +++ b/web/packages/teleport/src/Apps/AddApp/__snapshots__/AddApp.story.test.tsx.snap @@ -103,7 +103,7 @@ exports[`render automatic tab 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -463,7 +463,7 @@ exports[`render automatic tab on created state 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -844,7 +844,7 @@ exports[`render failed automatic tab 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; diff --git a/web/packages/teleport/src/Apps/__snapshots__/Apps.story.test.tsx.snap b/web/packages/teleport/src/Apps/__snapshots__/Apps.story.test.tsx.snap index e499facf0cf4a..87be91e8eed14 100644 --- a/web/packages/teleport/src/Apps/__snapshots__/Apps.story.test.tsx.snap +++ b/web/packages/teleport/src/Apps/__snapshots__/Apps.story.test.tsx.snap @@ -75,12 +75,12 @@ exports[`empty state for enterprise, can create 1`] = ` font-family: inherit; font-weight: bold; outline: none; - opacity: .56; + opacity: 0.56; position: relative; text-align: center; text-decoration: none; text-transform: uppercase; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; border-color: rgba(255,255,255,0.87); color: #FFFFFF; @@ -98,7 +98,7 @@ exports[`empty state for enterprise, can create 1`] = ` } .c12:active { - opacity: .24; + opacity: 0.24; } .c12 > span { @@ -371,20 +371,20 @@ exports[`failed state 1`] = ` .c18 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c30 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 22px; } .c31 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-left: 4px; color: rgba(255,255,255,0.56); font-size: 14px; @@ -392,7 +392,7 @@ exports[`failed state 1`] = ` .c36 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } @@ -1324,20 +1324,20 @@ exports[`loaded state 1`] = ` .c18 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c30 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 22px; } .c31 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-left: 4px; color: rgba(255,255,255,0.56); font-size: 14px; @@ -1345,7 +1345,7 @@ exports[`loaded state 1`] = ` .c36 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } diff --git a/web/packages/teleport/src/Audit/EventDialog/index.ts b/web/packages/teleport/src/Audit/EventDialog/index.ts index 409679e71099d..0e533d14e7b39 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/Audit/__snapshots__/Audit.story.test.tsx.snap b/web/packages/teleport/src/Audit/__snapshots__/Audit.story.test.tsx.snap index 564aa4a2a66ac..df7532a7a6e63 100644 --- a/web/packages/teleport/src/Audit/__snapshots__/Audit.story.test.tsx.snap +++ b/web/packages/teleport/src/Audit/__snapshots__/Audit.story.test.tsx.snap @@ -52,20 +52,20 @@ exports[`list of all events 1`] = ` .c11 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } .c13 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c15 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 16px; padding: 4px; color: #FFFFFF; @@ -3791,20 +3791,20 @@ exports[`loaded audit log screen 1`] = ` .c15 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } .c17 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c19 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 16px; padding: 4px; color: #FFFFFF; diff --git a/web/packages/teleport/src/Clusters/__snapshots__/Clusters.story.test.tsx.snap b/web/packages/teleport/src/Clusters/__snapshots__/Clusters.story.test.tsx.snap index f9587dd799bcd..9e133f4f844bf 100644 --- a/web/packages/teleport/src/Clusters/__snapshots__/Clusters.story.test.tsx.snap +++ b/web/packages/teleport/src/Clusters/__snapshots__/Clusters.story.test.tsx.snap @@ -52,20 +52,20 @@ exports[`render clusters 1`] = ` .c13 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } .c16 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c19 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-left: 8px; margin-right: -8px; color: rgba(255,255,255,0.56); diff --git a/web/packages/teleport/src/Console/Console.story.tsx b/web/packages/teleport/src/Console/Console.story.tsx index 0fa47a8f8707a..4f34285bf151b 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/DocumentBlank/__snapshots__/DocumentBlank.story.test.tsx.snap b/web/packages/teleport/src/Console/DocumentBlank/__snapshots__/DocumentBlank.story.test.tsx.snap index 58d02bcd76187..e61f18981a22e 100644 --- a/web/packages/teleport/src/Console/DocumentBlank/__snapshots__/DocumentBlank.story.test.tsx.snap +++ b/web/packages/teleport/src/Console/DocumentBlank/__snapshots__/DocumentBlank.story.test.tsx.snap @@ -47,7 +47,7 @@ exports[`render DocumentBlank 1`] = ` .c3 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-bottom: 40px; margin-top: 72px; color: #01172C; diff --git a/web/packages/teleport/src/Console/DocumentNodes/__snapshots__/DocumentNodes.story.test.tsx.snap b/web/packages/teleport/src/Console/DocumentNodes/__snapshots__/DocumentNodes.story.test.tsx.snap index 6c66921de727a..9e5f818ad8016 100644 --- a/web/packages/teleport/src/Console/DocumentNodes/__snapshots__/DocumentNodes.story.test.tsx.snap +++ b/web/packages/teleport/src/Console/DocumentNodes/__snapshots__/DocumentNodes.story.test.tsx.snap @@ -64,13 +64,13 @@ exports[`render DocumentNodes 1`] = ` .c25 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c31 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-left: 8px; margin-right: -8px; color: rgba(255,255,255,0.56); @@ -79,7 +79,7 @@ exports[`render DocumentNodes 1`] = ` .c36 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } diff --git a/web/packages/teleport/src/Console/DocumentSsh/Terminal/index.ts b/web/packages/teleport/src/Console/DocumentSsh/Terminal/index.ts index f8da8f0ff3c55..fc620f54061e9 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 60b6bbe35ba4d..231c8ee1a9341 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 a04d336cb4393..aece99a77a73a 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 885c4e6fd94b2..22d6c26e7f407 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 e395ad185e939..6327efd4b7ab0 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 a8414fd8deff4..4e4034297010b 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 3521c035c2121..1cc2140775231 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/Console/Tabs/__snapshots__/Tabs.story.test.tsx.snap b/web/packages/teleport/src/Console/Tabs/__snapshots__/Tabs.story.test.tsx.snap index 901f4a83a4eee..6f4dd04b6685c 100644 --- a/web/packages/teleport/src/Console/Tabs/__snapshots__/Tabs.story.test.tsx.snap +++ b/web/packages/teleport/src/Console/Tabs/__snapshots__/Tabs.story.test.tsx.snap @@ -3,13 +3,13 @@ exports[`render ConsoleTabs 1`] = ` .c7 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c10 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } @@ -27,7 +27,7 @@ exports[`render ConsoleTabs 1`] = ` flex: 0 0 auto; background: transparent; color: inherit; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; font-size: 12px; height: 24px; diff --git a/web/packages/teleport/src/Databases/ConnectDialog/ConnectDialog.tsx b/web/packages/teleport/src/Databases/ConnectDialog/ConnectDialog.tsx index 7e0cca71a9147..8977041b1229d 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/Databases/__snapshots__/Databases.story.test.tsx.snap b/web/packages/teleport/src/Databases/__snapshots__/Databases.story.test.tsx.snap index b343f7b813eb2..07a0fea664209 100644 --- a/web/packages/teleport/src/Databases/__snapshots__/Databases.story.test.tsx.snap +++ b/web/packages/teleport/src/Databases/__snapshots__/Databases.story.test.tsx.snap @@ -75,12 +75,12 @@ exports[`empty state for enterprise, can create 1`] = ` font-family: inherit; font-weight: bold; outline: none; - opacity: .56; + opacity: 0.56; position: relative; text-align: center; text-decoration: none; text-transform: uppercase; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; border-color: rgba(255,255,255,0.87); color: #FFFFFF; @@ -98,7 +98,7 @@ exports[`empty state for enterprise, can create 1`] = ` } .c12:active { - opacity: .24; + opacity: 0.24; } .c12 > span { @@ -370,13 +370,13 @@ exports[`failed 1`] = ` .c18 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c28 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } @@ -1123,13 +1123,13 @@ exports[`open source loaded 1`] = ` .c18 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c28 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } diff --git a/web/packages/teleport/src/DesktopSession/__snapshots__/DesktopSession.story.test.tsx.snap b/web/packages/teleport/src/DesktopSession/__snapshots__/DesktopSession.story.test.tsx.snap index 9ee52eb904940..c6191c76c8621 100644 --- a/web/packages/teleport/src/DesktopSession/__snapshots__/DesktopSession.story.test.tsx.snap +++ b/web/packages/teleport/src/DesktopSession/__snapshots__/DesktopSession.story.test.tsx.snap @@ -3,14 +3,14 @@ exports[`clipboard error 1`] = ` .c6 { display: inline-block; - transition: color .3s; + transition: color 0.3s; padding-right: 16px; color: #FFFFFF; } .c10 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -27,7 +27,7 @@ exports[`clipboard error 1`] = ` flex: 0 0 auto; background: transparent; color: inherit; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; font-size: 12px; height: 24px; @@ -196,14 +196,14 @@ exports[`clipboard error 1`] = ` exports[`connected settings false 1`] = ` .c6 { display: inline-block; - transition: color .3s; + transition: color 0.3s; padding-right: 16px; color: #FFFFFF; } .c10 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -220,7 +220,7 @@ exports[`connected settings false 1`] = ` flex: 0 0 auto; background: transparent; color: inherit; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; font-size: 12px; height: 24px; @@ -356,14 +356,14 @@ exports[`connected settings false 1`] = ` exports[`connected settings true 1`] = ` .c6 { display: inline-block; - transition: color .3s; + transition: color 0.3s; padding-right: 16px; color: #FFFFFF; } .c10 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -380,7 +380,7 @@ exports[`connected settings true 1`] = ` flex: 0 0 auto; background: transparent; color: inherit; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; font-size: 12px; height: 24px; @@ -516,14 +516,14 @@ exports[`connected settings true 1`] = ` exports[`connection error 1`] = ` .c6 { display: inline-block; - transition: color .3s; + transition: color 0.3s; padding-right: 16px; color: #FFFFFF; } .c10 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -540,7 +540,7 @@ exports[`connection error 1`] = ` flex: 0 0 auto; background: transparent; color: inherit; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; font-size: 12px; height: 24px; @@ -715,14 +715,14 @@ exports[`disconnected 1`] = ` .c6 { display: inline-block; - transition: color .3s; + transition: color 0.3s; padding-right: 16px; color: #FFFFFF; } .c10 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -739,7 +739,7 @@ exports[`disconnected 1`] = ` flex: 0 0 auto; background: transparent; color: inherit; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; font-size: 12px; height: 24px; @@ -890,14 +890,14 @@ exports[`disconnected 1`] = ` exports[`fetch error 1`] = ` .c6 { display: inline-block; - transition: color .3s; + transition: color 0.3s; padding-right: 16px; color: #FFFFFF; } .c10 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -914,7 +914,7 @@ exports[`fetch error 1`] = ` flex: 0 0 auto; background: transparent; color: inherit; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; font-size: 12px; height: 24px; @@ -1083,14 +1083,14 @@ exports[`fetch error 1`] = ` exports[`unintended disconnect 1`] = ` .c6 { display: inline-block; - transition: color .3s; + transition: color 0.3s; padding-right: 16px; color: #FFFFFF; } .c10 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -1107,7 +1107,7 @@ exports[`unintended disconnect 1`] = ` flex: 0 0 auto; background: transparent; color: inherit; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; font-size: 12px; height: 24px; @@ -1282,14 +1282,14 @@ exports[`webauthn prompt 1`] = ` .c6 { display: inline-block; - transition: color .3s; + transition: color 0.3s; padding-right: 16px; color: #FFFFFF; } .c10 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -1306,7 +1306,7 @@ exports[`webauthn prompt 1`] = ` flex: 0 0 auto; background: transparent; color: inherit; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; font-size: 12px; height: 24px; diff --git a/web/packages/teleport/src/Kubes/AddKube/__snapshots__/AddKube.story.test.tsx.snap b/web/packages/teleport/src/Kubes/AddKube/__snapshots__/AddKube.story.test.tsx.snap index a3c41d37becd7..92704374a4288 100644 --- a/web/packages/teleport/src/Kubes/AddKube/__snapshots__/AddKube.story.test.tsx.snap +++ b/web/packages/teleport/src/Kubes/AddKube/__snapshots__/AddKube.story.test.tsx.snap @@ -173,7 +173,7 @@ exports[`render failed 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -663,7 +663,7 @@ exports[`render loaded 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -1147,7 +1147,7 @@ exports[`render processing 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -1636,7 +1636,7 @@ exports[`render with token generated 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; diff --git a/web/packages/teleport/src/Kubes/__snapshots__/Kubes.story.test.tsx.snap b/web/packages/teleport/src/Kubes/__snapshots__/Kubes.story.test.tsx.snap index 318d553af6d52..2d8b7c10ed051 100644 --- a/web/packages/teleport/src/Kubes/__snapshots__/Kubes.story.test.tsx.snap +++ b/web/packages/teleport/src/Kubes/__snapshots__/Kubes.story.test.tsx.snap @@ -75,12 +75,12 @@ exports[`empty state 1`] = ` font-family: inherit; font-weight: bold; outline: none; - opacity: .56; + opacity: 0.56; position: relative; text-align: center; text-decoration: none; text-transform: uppercase; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; border-color: rgba(255,255,255,0.87); color: #FFFFFF; @@ -98,7 +98,7 @@ exports[`empty state 1`] = ` } .c12:active { - opacity: .24; + opacity: 0.24; } .c12 > span { @@ -370,13 +370,13 @@ exports[`failed 1`] = ` .c18 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c28 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } @@ -1082,13 +1082,13 @@ exports[`loaded 1`] = ` .c18 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c28 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } diff --git a/web/packages/teleport/src/Login/__snapshots__/LoginSuccess.test.tsx.snap b/web/packages/teleport/src/Login/__snapshots__/LoginSuccess.test.tsx.snap index 9956da191e48c..e6a0b899c596c 100644 --- a/web/packages/teleport/src/Login/__snapshots__/LoginSuccess.test.tsx.snap +++ b/web/packages/teleport/src/Login/__snapshots__/LoginSuccess.test.tsx.snap @@ -3,7 +3,7 @@ exports[`renders 1`] = ` .c2 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-bottom: 16px; color: #00bfa5; font-size: 56px; diff --git a/web/packages/teleport/src/Login/index.ts b/web/packages/teleport/src/Login/index.ts index 0f0a4a8567162..22162d5b9684d 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/AddNode/__snapshots__/AddNode.story.test.tsx.snap b/web/packages/teleport/src/Nodes/AddNode/__snapshots__/AddNode.story.test.tsx.snap index 5b97da7122113..29c6dde69f680 100644 --- a/web/packages/teleport/src/Nodes/AddNode/__snapshots__/AddNode.story.test.tsx.snap +++ b/web/packages/teleport/src/Nodes/AddNode/__snapshots__/AddNode.story.test.tsx.snap @@ -96,7 +96,7 @@ exports[`render automatic tab 1`] = ` .c8 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 8px; color: #FFFFFF; } @@ -424,7 +424,7 @@ exports[`render failed automatic tab 1`] = ` .c8 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 8px; color: #FFFFFF; } @@ -763,7 +763,7 @@ exports[`render iam method after token generation 1`] = ` .c8 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 8px; color: #FFFFFF; } @@ -772,7 +772,7 @@ exports[`render iam method after token generation 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -1348,7 +1348,7 @@ exports[`render iam method when failed 1`] = ` .c8 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 8px; color: #FFFFFF; } @@ -1357,7 +1357,7 @@ exports[`render iam method when failed 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -1868,7 +1868,7 @@ exports[`render iam method while processing 1`] = ` .c8 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 8px; color: #FFFFFF; } @@ -1877,7 +1877,7 @@ exports[`render iam method while processing 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -2383,7 +2383,7 @@ exports[`render iam method without a token generated yet 1`] = ` .c8 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 8px; color: #FFFFFF; } @@ -2392,7 +2392,7 @@ exports[`render iam method without a token generated yet 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -2890,7 +2890,7 @@ exports[`render manual tab with join token 1`] = ` .c8 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 8px; color: #FFFFFF; } @@ -3384,7 +3384,7 @@ exports[`render manual tab with local user 1`] = ` .c8 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 8px; color: #FFFFFF; } @@ -3903,7 +3903,7 @@ exports[`render manual tab with sso user 1`] = ` .c8 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 8px; color: #FFFFFF; } diff --git a/web/packages/teleport/src/Nodes/__snapshots__/Nodes.story.test.tsx.snap b/web/packages/teleport/src/Nodes/__snapshots__/Nodes.story.test.tsx.snap index 54606a8392947..bca0d3074cbc8 100644 --- a/web/packages/teleport/src/Nodes/__snapshots__/Nodes.story.test.tsx.snap +++ b/web/packages/teleport/src/Nodes/__snapshots__/Nodes.story.test.tsx.snap @@ -75,12 +75,12 @@ exports[`empty state 1`] = ` font-family: inherit; font-weight: bold; outline: none; - opacity: .56; + opacity: 0.56; position: relative; text-align: center; text-decoration: none; text-transform: uppercase; - transition: all .3s; + transition: all 0.3s; -webkit-font-smoothing: antialiased; border-color: rgba(255,255,255,0.87); color: #FFFFFF; @@ -98,7 +98,7 @@ exports[`empty state 1`] = ` } .c12:active { - opacity: .24; + opacity: 0.24; } .c12 > span { @@ -371,13 +371,13 @@ exports[`failed 1`] = ` .c18 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c24 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-left: 8px; margin-right: -8px; color: rgba(255,255,255,0.56); @@ -386,7 +386,7 @@ exports[`failed 1`] = ` .c29 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } @@ -1292,13 +1292,13 @@ exports[`loaded 1`] = ` .c21 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c27 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-left: 8px; margin-right: -8px; color: rgba(255,255,255,0.56); @@ -1307,7 +1307,7 @@ exports[`loaded 1`] = ` .c32 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } diff --git a/web/packages/teleport/src/Nodes/index.ts b/web/packages/teleport/src/Nodes/index.ts index 2c298da6e691b..d61db96379b97 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 5d065f305aa91..6e1db5d3639cb 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 c60863c3e6268..b6d8e4c17dd22 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 91ca80485f624..04bbb84771021 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 d7c116c86eee4..f2b73a542db0b 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/Recordings/__snapshots__/Recordings.story.test.tsx.snap b/web/packages/teleport/src/Recordings/__snapshots__/Recordings.story.test.tsx.snap index e745f4bbfb60c..a971024a9b389 100644 --- a/web/packages/teleport/src/Recordings/__snapshots__/Recordings.story.test.tsx.snap +++ b/web/packages/teleport/src/Recordings/__snapshots__/Recordings.story.test.tsx.snap @@ -48,20 +48,20 @@ exports[`rendering of Session Recordings 1`] = ` .c15 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } .c17 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c18 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 16px; padding: 4px; color: #FFFFFF; diff --git a/web/packages/teleport/src/Sessions/__snapshots__/Sessions.story.test.tsx.snap b/web/packages/teleport/src/Sessions/__snapshots__/Sessions.story.test.tsx.snap index 703969394e724..f4ac1f7cc6e34 100644 --- a/web/packages/teleport/src/Sessions/__snapshots__/Sessions.story.test.tsx.snap +++ b/web/packages/teleport/src/Sessions/__snapshots__/Sessions.story.test.tsx.snap @@ -48,20 +48,20 @@ exports[`loaded 1`] = ` .c13 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } .c16 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c17 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 16px; padding: 4px; color: #FFFFFF; diff --git a/web/packages/teleport/src/SideNav/__snapshots__/SideNav.story.test.tsx.snap b/web/packages/teleport/src/SideNav/__snapshots__/SideNav.story.test.tsx.snap index 1007940c03aa4..0dc9dd0a3a854 100644 --- a/web/packages/teleport/src/SideNav/__snapshots__/SideNav.story.test.tsx.snap +++ b/web/packages/teleport/src/SideNav/__snapshots__/SideNav.story.test.tsx.snap @@ -3,7 +3,7 @@ exports[`rendering of SideNav 1`] = ` .c5 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-left: -40px; margin-right: 16px; color: inherit; @@ -12,7 +12,7 @@ exports[`rendering of SideNav 1`] = ` .c8 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-left: auto; margin-right: -8px; color: inherit; @@ -20,7 +20,7 @@ exports[`rendering of SideNav 1`] = ` .c12 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-left: -40px; margin-right: 8px; color: inherit; @@ -46,7 +46,7 @@ exports[`rendering of SideNav 1`] = ` .c6 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-left: -40px; margin-right: 16px; color: inherit; @@ -55,7 +55,7 @@ exports[`rendering of SideNav 1`] = ` .c13 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-left: -40px; margin-right: 8px; color: inherit; diff --git a/web/packages/teleport/src/SideNav/index.ts b/web/packages/teleport/src/SideNav/index.ts index b91e614ea8e84..2dfcf3e989147 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/Support/__snapshots__/Support.story.test.tsx.snap b/web/packages/teleport/src/Support/__snapshots__/Support.story.test.tsx.snap index e6ae40df26cad..e8ba10bbfdeb8 100644 --- a/web/packages/teleport/src/Support/__snapshots__/Support.story.test.tsx.snap +++ b/web/packages/teleport/src/Support/__snapshots__/Support.story.test.tsx.snap @@ -19,7 +19,7 @@ exports[`support Cloud 1`] = ` .c6 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -396,7 +396,7 @@ exports[`support Enterprise 1`] = ` .c6 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -780,7 +780,7 @@ exports[`support OSS 1`] = ` .c6 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } diff --git a/web/packages/teleport/src/Users/__snapshots__/Users.story.test.tsx.snap b/web/packages/teleport/src/Users/__snapshots__/Users.story.test.tsx.snap index d165ed84691b5..9537daf75e564 100644 --- a/web/packages/teleport/src/Users/__snapshots__/Users.story.test.tsx.snap +++ b/web/packages/teleport/src/Users/__snapshots__/Users.story.test.tsx.snap @@ -98,20 +98,20 @@ exports[`success state 1`] = ` .c14 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; font-size: 16px; } .c16 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } .c19 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-left: 8px; margin-right: -8px; color: rgba(255,255,255,0.56); diff --git a/web/packages/teleport/src/Welcome/NewCredentials/__snapshots__/NewCredentials.story.test.tsx.snap b/web/packages/teleport/src/Welcome/NewCredentials/__snapshots__/NewCredentials.story.test.tsx.snap index f4026da83aeb0..46d8aef2b972a 100644 --- a/web/packages/teleport/src/Welcome/NewCredentials/__snapshots__/NewCredentials.story.test.tsx.snap +++ b/web/packages/teleport/src/Welcome/NewCredentials/__snapshots__/NewCredentials.story.test.tsx.snap @@ -97,7 +97,7 @@ exports[`story.MfaDeviceError 1`] = ` .c3 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 16px; color: #FFFFFF; font-size: 30px; @@ -119,7 +119,7 @@ exports[`story.MfaDeviceError 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -469,7 +469,7 @@ exports[`story.MfaDeviceOn 1`] = ` .c3 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 16px; color: #FFFFFF; font-size: 30px; @@ -491,7 +491,7 @@ exports[`story.MfaDeviceOn 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -808,7 +808,7 @@ exports[`story.MfaDeviceOtp 1`] = ` .c3 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 16px; color: #FFFFFF; font-size: 30px; @@ -830,7 +830,7 @@ exports[`story.MfaDeviceOtp 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -1174,7 +1174,7 @@ exports[`story.MfaDeviceWebauthn 1`] = ` .c3 { display: inline-block; - transition: color .3s; + transition: color 0.3s; margin-right: 16px; color: #FFFFFF; font-size: 30px; @@ -1196,7 +1196,7 @@ exports[`story.MfaDeviceWebauthn 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -1525,7 +1525,7 @@ exports[`story.PasswordOnlyError 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -1862,7 +1862,7 @@ exports[`story.PrimaryPasswordlessError 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; diff --git a/web/packages/teleport/src/components/CatchError/index.js b/web/packages/teleport/src/components/CatchError/index.js index b2aec518a181a..992778fc76f95 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 87a440c5928ef..14798fd809b10 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/FormLogin/__snapshots__/FormLogin.story.test.tsx.snap b/web/packages/teleport/src/components/FormLogin/__snapshots__/FormLogin.story.test.tsx.snap index b7a62669752be..2cb5099409415 100644 --- a/web/packages/teleport/src/components/FormLogin/__snapshots__/FormLogin.story.test.tsx.snap +++ b/web/packages/teleport/src/components/FormLogin/__snapshots__/FormLogin.story.test.tsx.snap @@ -80,7 +80,7 @@ exports[`auth2faType: off 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -353,7 +353,7 @@ exports[`auth2faType: optional rendering 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -792,7 +792,7 @@ exports[`auth2faType: otp rendering 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -1245,7 +1245,7 @@ exports[`auth2faType: webauthn rendering 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -1751,7 +1751,7 @@ exports[`cloud auth2faType: on rendering 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -2303,7 +2303,7 @@ exports[`server error rendering 1`] = ` appearance: none; border: none; border-radius: 4px; - box-shadow: inset 0 2px 4px rgba(0,0,0,.24); + box-shadow: inset 0 2px 4px rgba(0,0,0,0.24); box-sizing: border-box; display: block; height: 40px; @@ -2551,7 +2551,7 @@ exports[`sso list still renders when local auth is disabled 1`] = ` .c7 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } @@ -2792,7 +2792,7 @@ exports[`sso providers rendering 1`] = ` .c9 { display: inline-block; - transition: color .3s; + transition: color 0.3s; color: #FFFFFF; } diff --git a/web/packages/teleport/src/components/InputSearch/index.js b/web/packages/teleport/src/components/InputSearch/index.js index a610292ee12b5..c8c4d13bbb8a4 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 4dab8f7561c22..017f17f06de13 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 530e93e3a0bfa..87fc0211303a4 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 1c53b55ac3263..c92c77015f16c 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 d7c116c86eee4..f2b73a542db0b 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 692079299a86e..6fdf94f4b0dc0 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 527f5d7c24e53..41d72babc5497 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 }; diff --git a/web/packages/teleterm/README.md b/web/packages/teleterm/README.md index bca8436587eb2..8fd6cc554b3d3 100644 --- a/web/packages/teleterm/README.md +++ b/web/packages/teleterm/README.md @@ -9,7 +9,6 @@ scripts assume that the `webapps` repo and the `teleport` repo are in the same f To get started, first we need to build `tsh` that resides in the `teleport` repo. - Prepare Teleport repo: ```bash @@ -24,8 +23,10 @@ The build output can be found in the `/teleport/build` directory. The tsh binary together with the Electron app. Prepare Webapps repo + 1. Make sure that your node version is v16 (current tls) https://nodejs.org/en/about/releases/ 2. Clone and build `webapps` repository + ```bash $ git clone https://github.com/gravitational/webapps.git $ cd webapps @@ -98,11 +99,13 @@ $ rm -rf ./../webapps/packages/teleterm/src/services/tshd/v1/ && cp -R lib/telet ``` #### Generating shared process gRPC protobuf files + Run `generate-grpc-shared` script from `teleterm/package.json`. It generates protobuf files from `*.proto` files in `sharedProcess/api/proto`. Resulting files can be found in `sharedProcess/api/protogen`. ### Architecture diagram + ```pro +------------+ | | @@ -138,13 +141,13 @@ Resulting files can be found in `sharedProcess/api/protogen`. +-------------+--------------+ +-------------------------------+ +--------+-----------------+ ^ ^ | Terminal | | | - | Electron Main Process | | GRPC API | GRPC API + | Electron Main Process | | GRPC API | GRPC API +-----------+--------------+ | (domain socket) | (domain socket) ^ | | - | | | - IPC | | +------------------------------+ - named pipes | | | - v Terminal UI (Electron Renderer Process) | | + | | | + IPC | | +------------------------------+ + named pipes | | | + v Terminal UI (Electron Renderer Process) | | +-----------+------------+---------------------------------------------+ | -gateways | root@node1 × | k8s_c × | rdp_win2 × | | | https://localhost:22 +---------------------------------------------+ @@ -162,6 +165,7 @@ Resulting files can be found in `sharedProcess/api/protogen`. | +cluster3 | | +------------------------+---------------------------------------------+ ``` + ### PTY communication overview (Renderer Process <=> Shared Process) -![PTY communication](docs/ptyCommunication.png) +![PTY communication](docs/ptyCommunication.png) diff --git a/web/packages/teleterm/babel.config.js b/web/packages/teleterm/babel.config.js index 219a888a0640e..cea7b27df4e1a 100644 --- a/web/packages/teleterm/babel.config.js +++ b/web/packages/teleterm/babel.config.js @@ -6,7 +6,7 @@ baseCfg.presets = [ '@babel/preset-typescript', ]; -module.exports = function(api) { +module.exports = function (api) { api.cache(true); return baseCfg; }; diff --git a/web/packages/teleterm/src/services/config/configService.ts b/web/packages/teleterm/src/services/config/configService.ts index fbd8c49e53158..73c6678a470e9 100644 --- a/web/packages/teleterm/src/services/config/configService.ts +++ b/web/packages/teleterm/src/services/config/configService.ts @@ -29,10 +29,7 @@ export class ConfigServiceImpl implements ConfigService { private createDefaultConfig(): void { this.config = Object.entries(this.configProviders).reduce>( (partialConfig, [name, provider]) => { - partialConfig[name] = merge( - {}, - provider.getDefaults(process.platform), - ); + partialConfig[name] = merge({}, provider.getDefaults(process.platform)); return partialConfig; }, {} diff --git a/web/packages/teleterm/src/services/config/index.ts b/web/packages/teleterm/src/services/config/index.ts index b436ab95a8900..70329dd99ed73 100644 --- a/web/packages/teleterm/src/services/config/index.ts +++ b/web/packages/teleterm/src/services/config/index.ts @@ -2,4 +2,4 @@ export * from './configService'; export * from './configServiceClient'; export * from './types'; export * from './providers/keyboardShortcutsConfigProvider'; -export * from './providers/appearanceConfigProvider'; \ No newline at end of file +export * from './providers/appearanceConfigProvider'; diff --git a/web/packages/teleterm/src/services/fileStorage/index.ts b/web/packages/teleterm/src/services/fileStorage/index.ts index 76f22d6da2504..67dbe8f33ba63 100644 --- a/web/packages/teleterm/src/services/fileStorage/index.ts +++ b/web/packages/teleterm/src/services/fileStorage/index.ts @@ -1,2 +1,2 @@ export * from './fileStorage'; -export * from './fileStorageClient'; \ No newline at end of file +export * from './fileStorageClient'; diff --git a/web/packages/teleterm/src/services/pty/types.ts b/web/packages/teleterm/src/services/pty/types.ts index e153880bdd8ba..f802533d50a82 100644 --- a/web/packages/teleterm/src/services/pty/types.ts +++ b/web/packages/teleterm/src/services/pty/types.ts @@ -15,9 +15,7 @@ export interface PtyHostClient { } export type PtyServiceClient = { - createPtyProcess: ( - cmd: PtyCommand - ) => Promise<{ + createPtyProcess: (cmd: PtyCommand) => Promise<{ process: IPtyProcess; creationStatus: PtyProcessCreationStatus; }>; diff --git a/web/packages/teleterm/src/ui/ClusterConnect/index.ts b/web/packages/teleterm/src/ui/ClusterConnect/index.ts index fe74b38201c0a..696e8876754ac 100644 --- a/web/packages/teleterm/src/ui/ClusterConnect/index.ts +++ b/web/packages/teleterm/src/ui/ClusterConnect/index.ts @@ -1 +1 @@ -export * from './ClusterConnect'; \ No newline at end of file +export * from './ClusterConnect'; diff --git a/web/packages/teleterm/src/ui/ClusterLogout/index.ts b/web/packages/teleterm/src/ui/ClusterLogout/index.ts index 08670575bc1ba..87cd474abe017 100644 --- a/web/packages/teleterm/src/ui/ClusterLogout/index.ts +++ b/web/packages/teleterm/src/ui/ClusterLogout/index.ts @@ -1 +1 @@ -export * from './ClusterLogout'; \ No newline at end of file +export * from './ClusterLogout'; diff --git a/web/packages/teleterm/src/ui/Documents/index.ts b/web/packages/teleterm/src/ui/Documents/index.ts index 1009310482e16..91eba4825787c 100644 --- a/web/packages/teleterm/src/ui/Documents/index.ts +++ b/web/packages/teleterm/src/ui/Documents/index.ts @@ -1,2 +1,2 @@ export * from './DocumentsRenderer'; -export * from './workspaceDocumentsServiceContext'; \ No newline at end of file +export * from './workspaceDocumentsServiceContext'; diff --git a/web/packages/teleterm/src/ui/DocumentsReopen/index.ts b/web/packages/teleterm/src/ui/DocumentsReopen/index.ts index 7d68c4b5c58ac..7261c962897c0 100644 --- a/web/packages/teleterm/src/ui/DocumentsReopen/index.ts +++ b/web/packages/teleterm/src/ui/DocumentsReopen/index.ts @@ -1 +1 @@ -export * from './DocumentsReopen'; \ No newline at end of file +export * from './DocumentsReopen'; diff --git a/web/packages/teleterm/src/ui/TopBar/Identity/IdentitySelector/UserIcon.tsx b/web/packages/teleterm/src/ui/TopBar/Identity/IdentitySelector/UserIcon.tsx index c9abee0909ad8..c4f0527f0bcc8 100644 --- a/web/packages/teleterm/src/ui/TopBar/Identity/IdentitySelector/UserIcon.tsx +++ b/web/packages/teleterm/src/ui/TopBar/Identity/IdentitySelector/UserIcon.tsx @@ -6,11 +6,11 @@ interface UserIconProps { } export function UserIcon(props: UserIconProps) { - return {props.letter.toLocaleUpperCase()} + return {props.letter.toLocaleUpperCase()}; } const Circle = styled.span` - border-radius: 50%; + border-radius: 50%; color: ${props => props.theme.colors.light}; background: ${props => props.theme.colors.secondary.main}; height: 24px; @@ -20,4 +20,4 @@ const Circle = styled.span` justify-content: center; align-items: center; overflow: hidden; -` \ No newline at end of file +`; diff --git a/web/packages/teleterm/src/ui/TopBar/Identity/index.ts b/web/packages/teleterm/src/ui/TopBar/Identity/index.ts index 5cf107fae4c19..f2aec739ea046 100644 --- a/web/packages/teleterm/src/ui/TopBar/Identity/index.ts +++ b/web/packages/teleterm/src/ui/TopBar/Identity/index.ts @@ -1,2 +1 @@ export { IdentityContainer as Identity } from './Identity'; - diff --git a/web/packages/teleterm/src/ui/TopBar/index.ts b/web/packages/teleterm/src/ui/TopBar/index.ts index a8904fed3b716..d19b2d5084074 100644 --- a/web/packages/teleterm/src/ui/TopBar/index.ts +++ b/web/packages/teleterm/src/ui/TopBar/index.ts @@ -1 +1 @@ -export * from './TopBar'; \ No newline at end of file +export * from './TopBar'; diff --git a/web/packages/teleterm/src/ui/components/CatchError/index.js b/web/packages/teleterm/src/ui/components/CatchError/index.js index b2aec518a181a..992778fc76f95 100644 --- a/web/packages/teleterm/src/ui/components/CatchError/index.js +++ b/web/packages/teleterm/src/ui/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/teleterm/src/ui/components/FilterableList/FilterableList.tsx b/web/packages/teleterm/src/ui/components/FilterableList/FilterableList.tsx index 84c879636e38f..898e4c6109f64 100644 --- a/web/packages/teleterm/src/ui/components/FilterableList/FilterableList.tsx +++ b/web/packages/teleterm/src/ui/components/FilterableList/FilterableList.tsx @@ -70,7 +70,7 @@ const DarkInput = styled(Input)` margin-bottom: 10px; font-size: 14px; height: 34px; - transition : border 300ms ease-out; + transition: border 300ms ease-out; ::placeholder { opacity: 1; @@ -80,7 +80,7 @@ const DarkInput = styled(Input)` &:hover { border-color: ${props => props.theme.colors.text.secondary}; } - + &:focus { border-color: ${props => props.theme.colors.secondary.main}; } diff --git a/web/packages/teleterm/src/ui/components/FilterableList/index.ts b/web/packages/teleterm/src/ui/components/FilterableList/index.ts index 3bb6eedf16b72..daa245af322e5 100644 --- a/web/packages/teleterm/src/ui/components/FilterableList/index.ts +++ b/web/packages/teleterm/src/ui/components/FilterableList/index.ts @@ -1 +1 @@ -export * from './FilterableList'; \ No newline at end of file +export * from './FilterableList'; diff --git a/web/packages/teleterm/src/ui/components/ListItem.tsx b/web/packages/teleterm/src/ui/components/ListItem.tsx index ba4b5ce709292..affdcecea11c3 100644 --- a/web/packages/teleterm/src/ui/components/ListItem.tsx +++ b/web/packages/teleterm/src/ui/components/ListItem.tsx @@ -19,8 +19,7 @@ export const ListItem = styled.li` border: none; border-radius: 4px; - background: ${props => - props.isActive ? 'rgba(255, 255, 255, 0.05)' : null}; + background: ${props => (props.isActive ? 'rgba(255, 255, 255, 0.05)' : null)}; &:focus, &:hover { diff --git a/web/packages/teleterm/src/ui/components/Notifcations/types.ts b/web/packages/teleterm/src/ui/components/Notifcations/types.ts index ea0c6c444b520..bd87e7c09e4b4 100644 --- a/web/packages/teleterm/src/ui/components/Notifcations/types.ts +++ b/web/packages/teleterm/src/ui/components/Notifcations/types.ts @@ -6,4 +6,4 @@ export interface NotificationItem { export type NotificationItemContent = | string - | { title: string; description: string } \ No newline at end of file + | { title: string; description: string }; diff --git a/web/packages/teleterm/src/ui/components/VirtualScroll/VirtualScroll.tsx b/web/packages/teleterm/src/ui/components/VirtualScroll/VirtualScroll.tsx index 99cf737ab153e..fd24603b21580 100644 --- a/web/packages/teleterm/src/ui/components/VirtualScroll/VirtualScroll.tsx +++ b/web/packages/teleterm/src/ui/components/VirtualScroll/VirtualScroll.tsx @@ -54,4 +54,4 @@ const Offset = styled.div.attrs(props => ({ const Scrollable = styled.div` height: 100%; overflow-y: auto; -`; \ No newline at end of file +`; diff --git a/web/packages/teleterm/src/ui/components/VirtualScroll/index.ts b/web/packages/teleterm/src/ui/components/VirtualScroll/index.ts index 7ee65afaa75d1..ec640f5472087 100644 --- a/web/packages/teleterm/src/ui/components/VirtualScroll/index.ts +++ b/web/packages/teleterm/src/ui/components/VirtualScroll/index.ts @@ -1,2 +1,2 @@ export * from './VirtualScroll'; -export * from './types'; \ No newline at end of file +export * from './types'; diff --git a/web/packages/teleterm/src/ui/services/connectionTracker/index.ts b/web/packages/teleterm/src/ui/services/connectionTracker/index.ts index 94e5b130a3166..1740f89448c2a 100644 --- a/web/packages/teleterm/src/ui/services/connectionTracker/index.ts +++ b/web/packages/teleterm/src/ui/services/connectionTracker/index.ts @@ -15,4 +15,4 @@ limitations under the License. */ export * from './connectionTrackerService'; -export * from './types'; \ No newline at end of file +export * from './types'; diff --git a/web/packages/teleterm/src/ui/services/immutableStore/index.ts b/web/packages/teleterm/src/ui/services/immutableStore/index.ts index de09d833e9da5..ee06e4f6bf19d 100644 --- a/web/packages/teleterm/src/ui/services/immutableStore/index.ts +++ b/web/packages/teleterm/src/ui/services/immutableStore/index.ts @@ -1 +1 @@ -export * from './immutableStore'; \ No newline at end of file +export * from './immutableStore'; diff --git a/web/packages/teleterm/src/ui/services/keyboardShortcuts/keyboardShortcutsService.test.ts b/web/packages/teleterm/src/ui/services/keyboardShortcuts/keyboardShortcutsService.test.ts index b1985b8c02a62..e0a8967032e8e 100644 --- a/web/packages/teleterm/src/ui/services/keyboardShortcuts/keyboardShortcutsService.test.ts +++ b/web/packages/teleterm/src/ui/services/keyboardShortcuts/keyboardShortcutsService.test.ts @@ -1,7 +1,5 @@ import { KeyboardShortcutsService } from './keyboardShortcutsService'; -import { - ConfigService, -} from 'teleterm/services/config'; +import { ConfigService } from 'teleterm/services/config'; test('call subscriber on event', () => { const { subscriber } = getTestSetup(); diff --git a/web/packages/teleterm/src/ui/services/keyboardShortcuts/types.ts b/web/packages/teleterm/src/ui/services/keyboardShortcuts/types.ts index d733215bde5fc..150b211cab8bf 100644 --- a/web/packages/teleterm/src/ui/services/keyboardShortcuts/types.ts +++ b/web/packages/teleterm/src/ui/services/keyboardShortcuts/types.ts @@ -10,4 +10,4 @@ export type KeyboardShortcutEventSubscriber = ( export type KeyboardShortcutHandlers = Partial< Record void> ->; \ No newline at end of file +>; diff --git a/web/packages/teleterm/src/ui/services/notifications/index.ts b/web/packages/teleterm/src/ui/services/notifications/index.ts index c05aa3e532ab4..6e662d81fcfad 100644 --- a/web/packages/teleterm/src/ui/services/notifications/index.ts +++ b/web/packages/teleterm/src/ui/services/notifications/index.ts @@ -1 +1 @@ -export * from './notificationsService'; \ No newline at end of file +export * from './notificationsService'; diff --git a/web/packages/teleterm/webpack.main.config.js b/web/packages/teleterm/webpack.main.config.js index 37965ce501b7a..a9f4b85686a9e 100644 --- a/web/packages/teleterm/webpack.main.config.js +++ b/web/packages/teleterm/webpack.main.config.js @@ -31,7 +31,7 @@ const cfg = { entry: { main: './src/main.ts', preload: './src/preload.ts', - sharedProcess: './src/sharedProcess/sharedProcess.ts' + sharedProcess: './src/sharedProcess/sharedProcess.ts', }, output: { diff --git a/web/packages/webapps.e b/web/packages/webapps.e index d6b702b6cc740..a00fb6c1ad534 160000 --- a/web/packages/webapps.e +++ b/web/packages/webapps.e @@ -1 +1 @@ -Subproject commit d6b702b6cc7403bb5d60f8b47ea69ae9963723d5 +Subproject commit a00fb6c1ad5345fadee67170769da1072fb603f1