Commit Graph
67 Commits
Author SHA1 Message Date
Filip Barl 45486f44c0 Use xterm/fit addon. 2018-05-18 17:48:54 +02:00
Filip Barl 6e139c9408 Remove outdated terminalCellSize estimation code. 2018-05-18 16:52:38 +02:00
Filip Barl 43c23d2bc0 Adjusted character width/height estimation. 2018-05-18 16:52:38 +02:00
Filip Barl 07c851178c Fix spelling. 2018-05-14 17:58:11 +02:00
Filip Barl e9cafc634a Close xterm on exit. 2018-05-14 16:39:58 +02:00
Roberto Bruggemann 520ca3a570 Close terminal pipe, when closing the pod panel
Moving `deletePipe()` in `componentWillUnmount()` ensures the pipe is deleted when:
1. the terminal is closed
2. the terminal is closed when closing the pod panel

The pipe still does not get deleted when popping out the terminal.
2018-01-31 15:07:55 +00:00
Filip BarlandGitHub 6cc98fdea2 Merge pull request #2896 from weaveworks/2895-update-eslint-deps
Update eslint dependencies
2017-10-18 13:42:56 +02:00
Filip Barl 230aea32cf Autofix jsx-max-props-per-line. 2017-10-17 19:08:43 +02:00
Filip Barl 58922730f5 Fixed function-paren-newline. 2017-10-17 19:04:41 +02:00
Damien Lespiau b767de8e58 terminal: Fix Caculated typo 2017-10-17 16:54:57 +01:00
Simon Howe b990473636 Use a context sensitive route for the popped out terminal.html
- Service-ui has learned a new route which corresponds to the existing
  scope terminal.html route. Both standalone and service-ui scope can now
  respond to terminal.html:
  - If using standalone scope path/to/scope/ -> path/to/scope/terminal.html will be used.
  - If using service-ui app/instanceid -> app/instanceId/terminal.html
2017-10-09 12:12:51 +02:00
Jordan PellizzariandGitHub 7e0ccb4f7d Merge pull request #2202 from weaveworks/2154-api-url
Re-factor API URL generation code
2017-02-13 09:52:38 -08:00
Jordan Pellizzari d91fc5c310 Added API prefix to terminal window 2017-02-07 09:24:39 -08:00
Jordan Pellizzariandjpellizzari f65f39b128 Refactored API URL generation to function calls and added tests 2017-02-03 12:32:35 -08:00
Simon Howeandjpellizzari 9e333d4f4d Remove scroll-lock, this is now a feature of xterm.js 2017-02-01 08:29:30 -08:00
jpellizzari 0bf7fa49dd Exported wsUrl constant from web-api-utils for the terminal component 2017-01-24 11:25:03 -08:00
jpellizzari b7002610ea Fixed linting error 2016-12-20 08:12:06 -08:00
Jordan PellizzariandGitHub 32bb7c37aa Merge pull request #2087 from weaveworks/1982-control-indicator
Add control status icon to Terminal header
2016-12-20 07:39:30 -08:00
Filip Barl 26b3e9efc9 Reapplied all the eslint upgrade changes 2016-12-15 15:04:53 +01:00
jpellizzari 2b83ebd74c Added control status icon to Terminal header 2016-12-13 10:04:05 -08:00
DavidandGitHub 99bfab89b7 Revert "Upgraded eslint & eslint-config-airbnb" 2016-12-12 16:06:13 +01:00
Filip Barl 71f44e8b70 Got rid of findDOMNode helper 2016-12-12 11:04:49 +01:00
Filip Barl 86d61cf0d6 Extracted 'static' methods outside of classes for the 'class-methods-use-this' lint rule 2016-12-12 11:04:15 +01:00
Filip Barl 776b4d72eb Applied no-mixed-operators linting rule 2016-12-12 11:03:16 +01:00
Filip Barl b9241b377a Applied no-underscore-dangle linting rule 2016-12-12 11:03:16 +01:00
Filip Barl 3fdcd9b5e7 Applied arrow-parens linting rule 2016-12-12 11:02:18 +01:00
fbarlandFilip Barl e47c3e0973 Applied a couple of simpler rules 2016-12-12 10:56:56 +01:00
fbarlandFilip Barl 524e2e2e9a Importing lodash util functions explicitly. 2016-12-09 14:03:31 +01:00
Simon Howe 127ab41944 Correctly remove resize event listener on terminal unmount
Fixes console errors
2016-11-07 10:36:46 +01:00
DavidandGitHub 5cb3a00316 Merge pull request #1976 from weaveworks/1974-debounce-terminal-resizing
Fixes the terminal spamming POST requests on resize
2016-11-04 13:36:27 +01:00
Simon Howe 4004b21fa2 Allow resizing on attached pipes too. 2016-11-04 10:03:51 +01:00
Simon Howe 6c31f2ad60 Fixes the terminal spamming POST requests on resize
Forgot to debounce the initial implementation
2016-11-03 22:16:29 +01:00
SimonandGitHub 7e5166e45e Merge pull request #1966 from weaveworks/746-resize-ttys
Resize TTYs
2016-11-03 11:06:16 +01:00
Simon Howe d3878cc8df Don't resize terminal if we don't receive a resize control (e.g. onAttach)
- Fix text selection in terminal (was our force focus stuff, introduced
  if you clicked on the black border that was not actually the terminal
2016-11-03 10:24:38 +01:00
Simon Howe a381e3c06b Fixes scroll locking on xterm.js 2016-11-01 15:46:22 +01:00
Simon Howe 0fcd7d3a2c Increase terminal scrollback to hold onto more logs 2016-11-01 11:44:54 +01:00
Simon Howe 1b78427fb9 Keep scroll position if we scroll away from the bottom of the term
aka, scroll locking. Allows you to scroll back through logs without new
log data dragging the scroll back down to the next entries as they come
in.
2016-11-01 11:44:29 +01:00
Simon Howe 487635cb62 Adds terminal resizing on hosts.
Adds terminal resizing on popped out windows
2016-10-31 18:11:10 +01:00
Simon Howe 305bf7680a Resizing working w/ containers! 2016-10-31 15:29:53 +01:00
Jordan Pellizzari ca49cfdfe6 Changed term.js lib to xterm.js 2016-10-27 15:23:02 -07:00
Simon Howe c56fcaccee Change terminal aesthetic so it appears to float below details panel 2016-10-24 16:45:17 +02:00
Simon Howe 83d4fad5b4 Animate terminal appearance, slide in from details panel.
- Terminal shadow has been lost.
2016-10-05 10:05:39 +02:00
Simon Howe 288dff86bc Working nicely w/ flexbox etc. 2016-10-05 10:05:39 +02:00
Simon Howe 7e0a44efc2 Kinda nice 2016-10-05 10:05:38 +02:00
Simon Howe 024b526ef0 Try out a label rather than icon for open-term-in-new-browser
We call it, POP OUT. And we think you're going to love it.
2016-09-01 18:13:35 +02:00
Simon Howe cbd8c7aba2 Adds tooltip to terminal-popout button
- Fixes react warning p > div.
- Adds esc to close popped out terminal.
2016-09-01 18:13:34 +02:00
Simon Howe 4b41c8bb23 Fixes terminal wrapping by syncing docker/term.js terminal widths.
Impl. by locking the term.js width to 80 which is what the docker one
is. We need to implement resizing on both the BE and FE to avoid weird
wrapping issues.
2016-07-06 15:06:02 +02:00
David Kaltschmidt 96aae9bc99 Migrate from Flux to Redux
* better state visibility
* pure state changes
* state debug panel (show: crtl-h, move: ctrl-w)
2016-04-27 17:21:46 +02:00
Simon Howe a90b8f6e71 Adds '?' to shortcuts
- Fixes '?' after using the terminal
- Fixes <kbd> styling, border-radius was behaving strangley w/ transform
  to center the overlay, so opted for more old school methods.
2016-04-11 09:54:26 +02:00
David Kaltschmidt d8761aada1 Fix terminals (broken since f34146d)
`controlPipe` is now an immutable map, but was not treated that way by
all components.
2016-04-06 17:17:06 +02:00