Commit Graph

76 Commits

Author SHA1 Message Date
Oleg Utkin
ae112d05f3 script: replace JSON.stringify with json-stable-stringify
resolves issue #3133
2019-10-06 00:34:43 +03:00
Filip Barl
478e325755 Resolved dependency cycle between actions and web utils 2019-08-02 20:02:30 +02:00
Daniel Holbach
a494f00964 run 'eslint app server.js --fix' 2019-08-01 08:39:42 +02:00
guyfedwards
272b9a5d6a add eslint sort-keys rule and run codemod 2019-01-09 13:59:15 +00:00
Simon Howe
8a6cc7ed4d Switch over to <i> from <span> for icons
- to select in styles, as fa5 has other prefix classnames (far, fab,
  fas)
2018-11-13 12:51:47 +01:00
Simon Howe
d3a36cf873 Load up fa5 instead of 4
- Switch to fa5 icons and tweak font-sizes a bit
2018-11-13 12:51:31 +01:00
Simon
e78f8a8de4 Revert "Upgrade to Font Awesome 5" 2018-11-12 11:22:19 +01:00
Simon Howe
2cc58f5b00 Switch to fa5 icons and tweak font-sizes a bit 2018-11-09 14:59:53 +01:00
Simon Howe
7a04740d7c Fixes monospace font overlapping in terminal+linux
- Also fixes actually using Roboto-Mono, xterm.js now only accepts
  fontFamily customization via the JS api. (uses `<canvas`).
- There is an issue (https://github.com/xtermjs/xterm.js/issues/1170)
  if linux has to fall back to 'monospace' where things fail to render
  correctly, so provide a couple of common options so this rarely
  happens.
- If we distribute robo-mono in the webpack bundle that might also work.
2018-07-02 17:59:13 +02:00
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 Barl
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 Pellizzari
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 Pellizzari
f65f39b128 Refactored API URL generation to function calls and added tests 2017-02-03 12:32:35 -08:00
Simon Howe
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 Pellizzari
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
David
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
fbarl
e47c3e0973 Applied a couple of simpler rules 2016-12-12 10:56:56 +01:00
fbarl
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
David
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
Simon
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