]> git.proxmox.com Git - pve-xtermjs.git/log
pve-xtermjs.git
3 years agofix console window title for rust template
Aaron Lauterer [Wed, 11 Nov 2020 10:08:46 +0000 (11:08 +0100)]
fix console window title for rust template

The nodename was missing from the title because the variable name is
capitalized.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
4 years agobump version to 4.7.0-2
Thomas Lamprecht [Fri, 28 Aug 2020 11:51:48 +0000 (13:51 +0200)]
bump version to 4.7.0-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump proxmox crate dependency to 0.3.4
Thomas Lamprecht [Fri, 28 Aug 2020 11:50:40 +0000 (13:50 +0200)]
bump proxmox crate dependency to 0.3.4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofix cmd-opt guard
Thomas Lamprecht [Fri, 28 Aug 2020 11:43:31 +0000 (13:43 +0200)]
fix cmd-opt guard

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 4.7.0-1
Thomas Lamprecht [Thu, 23 Jul 2020 10:23:50 +0000 (12:23 +0200)]
bump version to 4.7.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agod/copyright: update to upstream
Thomas Lamprecht [Thu, 23 Jul 2020 10:24:04 +0000 (12:24 +0200)]
d/copyright: update to upstream

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoui: prevent accidental closing of terminal window
Dominik Csapak [Tue, 21 Jul 2020 09:00:48 +0000 (11:00 +0200)]
ui: prevent accidental closing of terminal window

this prevents closing the window e.g. when pressing ctrl+w

most browsers have a function to block a website from doing that,
so users that do not want that, simply have to click that option

also, the message will (at least in chrome) not be displayed,
instead a fixed message will appear

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoui: improve error message handling
Dominik Csapak [Tue, 21 Jul 2020 09:00:47 +0000 (11:00 +0200)]
ui: improve error message handling

by splitting the msg and code, and only showing the existing parts
also actually read the msg/code from the event by giving it from
tryReconnect to stopTerminal

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoadd handlebars template
Dominik Csapak [Tue, 21 Jul 2020 09:00:46 +0000 (11:00 +0200)]
add handlebars template

for rust projects, we do not use Perl::Template, but handlebars,
so provide a separate template for that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agotermproxy: rewrite in rust
Dominik Csapak [Tue, 21 Jul 2020 09:00:45 +0000 (11:00 +0200)]
termproxy: rewrite in rust

termproxy is now completely written in rust (instead of perl) but
it is a drop-in replacement

this contains all other necessary changes to the build-system
for it to successfully build

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoupgrade xterm.js to version 4.7.0
Dominik Csapak [Mon, 6 Jul 2020 10:20:48 +0000 (12:20 +0200)]
upgrade xterm.js to version 4.7.0

and xterm-addon-fit to 0.4.0
no breaking changes, so no adaptions are necessary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoallow to pass cmd-opts to command
Thomas Lamprecht [Fri, 3 Jul 2020 04:58:31 +0000 (06:58 +0200)]
allow to pass cmd-opts to command

Preparatory steps for the 'command with params' api feature.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoupgrade: use cmd not depreacated upgrade param
Thomas Lamprecht [Fri, 5 Jun 2020 12:03:23 +0000 (14:03 +0200)]
upgrade: use cmd not depreacated upgrade param

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 4.3.0-1
Thomas Lamprecht [Wed, 22 Jan 2020 11:18:49 +0000 (12:18 +0100)]
bump version to 4.3.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agouse new Uint8Array interface of xterm.js
Dominik Csapak [Tue, 21 Jan 2020 14:38:29 +0000 (15:38 +0100)]
use new Uint8Array interface of xterm.js

which means we can drop our utf8-decoder

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoadapt main.js to upstream xterm.js changes
Dominik Csapak [Tue, 21 Jan 2020 14:38:28 +0000 (15:38 +0100)]
adapt main.js to upstream xterm.js changes

Addon loading/usage changed
event listener interface changed ('on' to 'onResize', 'onData', etc.)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agoupgrade xterm.js to version 4.3.0
Dominik Csapak [Tue, 21 Jan 2020 14:38:27 +0000 (15:38 +0100)]
upgrade xterm.js to version 4.3.0

adapt version of xterm.js
also download and unpack xterm-addon-fit
replace addon/fit/fit.js[.map] with xterm-addon-fit.js[.map]

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobuildsys: fix GITVERSION
Thomas Lamprecht [Mon, 24 Jun 2019 06:53:30 +0000 (08:53 +0200)]
buildsys: fix GITVERSION

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobuildsys: switch upload dist over to buster
Thomas Lamprecht [Wed, 22 May 2019 18:52:45 +0000 (20:52 +0200)]
buildsys: switch upload dist over to buster

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agodsc: override lintian errors triggered by minified JS files
Thomas Lamprecht [Wed, 22 May 2019 18:45:19 +0000 (20:45 +0200)]
dsc: override lintian errors triggered by minified JS files

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoset debian source format to 1.0
Thomas Lamprecht [Wed, 22 May 2019 18:43:42 +0000 (20:43 +0200)]
set debian source format to 1.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd DSC source package and fix its reported lintian errors
Thomas Lamprecht [Wed, 22 May 2019 18:32:51 +0000 (20:32 +0200)]
add DSC source package and fix its reported lintian errors

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 3.13.2-1
Thomas Lamprecht [Wed, 22 May 2019 18:04:50 +0000 (20:04 +0200)]
bump version to 3.13.2-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoupdate xterm.js sources to 3.13.2 and move away from tarballs
Thomas Lamprecht [Wed, 22 May 2019 18:02:06 +0000 (20:02 +0200)]
update xterm.js sources to 3.13.2 and move away from tarballs

instead just extract the build parts where we want them too

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobuildsys: use dpkg-dev makefile helpers for pkg info
Thomas Lamprecht [Wed, 22 May 2019 17:54:56 +0000 (19:54 +0200)]
buildsys: use dpkg-dev makefile helpers for pkg info

and build this ass arch independent all package, makes no sense else,
it has no binaries included...

This allows more easily to do away with that defines.mk

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 3.12.0-1
Thomas Lamprecht [Tue, 26 Mar 2019 06:55:54 +0000 (07:55 +0100)]
bump version to 3.12.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd gitignore file
Thomas Lamprecht [Tue, 26 Mar 2019 06:56:15 +0000 (07:56 +0100)]
add gitignore file

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoupdate compat level to 10
Thomas Lamprecht [Tue, 26 Mar 2019 06:52:59 +0000 (07:52 +0100)]
update compat level to 10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agod/control: pass defined ${perl:Depends} as Depends
Thomas Lamprecht [Tue, 26 Mar 2019 06:52:08 +0000 (07:52 +0100)]
d/control: pass defined ${perl:Depends} as Depends

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agorfakeroot is implied
Thomas Lamprecht [Tue, 26 Mar 2019 06:50:18 +0000 (07:50 +0100)]
rfakeroot is implied

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix source tar make target dependency
Thomas Lamprecht [Tue, 26 Mar 2019 06:49:03 +0000 (07:49 +0100)]
fix source tar make target dependency

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoupdate to upstream 3.12.0 version
Thomas Lamprecht [Tue, 26 Mar 2019 06:47:39 +0000 (07:47 +0100)]
update to upstream 3.12.0 version

https://github.com/xtermjs/xterm.js/releases/tag/3.12.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofollowup: add comment and remove extra empty newline
Thomas Lamprecht [Tue, 26 Mar 2019 06:26:14 +0000 (07:26 +0100)]
followup: add comment and remove extra empty newline

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoallow xtermjs on ipv6 only host
Dominik Csapak [Mon, 25 Mar 2019 11:54:37 +0000 (12:54 +0100)]
allow xtermjs on ipv6 only host

the default sock options of LWP contains AI_ADDRCONFIG, which ignores
loopback addresses (which we need in order to connect to 127.0.0.1)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
5 years agobump version to 3.10.1-2
Thomas Lamprecht [Thu, 28 Feb 2019 10:14:03 +0000 (11:14 +0100)]
bump version to 3.10.1-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agosupport new 'cmd' parameter
Tim Marx [Wed, 27 Feb 2019 14:01:18 +0000 (15:01 +0100)]
support new 'cmd' parameter

We want to deprecate the 'upgrade' parameter in favor of a more
general 'cmd' parameter, which is easier to extend, e.g., for
installing pveceph through the WebUI.

Signed-off-by: Tim Marx <t.marx@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 3.10.1-1
Thomas Lamprecht [Fri, 18 Jan 2019 06:25:42 +0000 (07:25 +0100)]
bump version to 3.10.1-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agomain: replace depreacated term.destroy with .dispose
Thomas Lamprecht [Fri, 18 Jan 2019 07:39:03 +0000 (08:39 +0100)]
main: replace depreacated term.destroy with .dispose

term.destroy(); was depreacted with 3.4[0]

[0]: https://github.com/xtermjs/xterm.js/releases/tag/3.4.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoupdate source tarball to 3.10.1
Thomas Lamprecht [Fri, 18 Jan 2019 06:24:20 +0000 (07:24 +0100)]
update source tarball to 3.10.1

https://github.com/xtermjs/xterm.js/releases/tag/3.10.1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoAdd libpve-common-perl to Build-Depends
Rhonda D'Vine [Fri, 14 Dec 2018 13:04:52 +0000 (14:04 +0100)]
Add libpve-common-perl to Build-Depends

Also adjust the debhelper minimum version to what's noted down in
debian/compat.

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
6 years agobump version to 1.0-5
Dietmar Maurer [Tue, 8 May 2018 09:21:02 +0000 (11:21 +0200)]
bump version to 1.0-5

6 years agochange localhost to 127.0.0.1
Dominik Csapak [Tue, 8 May 2018 08:54:16 +0000 (10:54 +0200)]
change localhost to 127.0.0.1

since pvedaemon listens on 127.0.0.1 we should connect there and
not assume localhost resolves to 127.0.0.1

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-4
Dietmar Maurer [Mon, 7 May 2018 13:17:10 +0000 (15:17 +0200)]
bump version to 1.0-4

6 years agodo not try to reconnect the host shell
Dominik Csapak [Mon, 7 May 2018 13:06:55 +0000 (15:06 +0200)]
do not try to reconnect the host shell

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoreload on container reboot
Dominik Csapak [Fri, 27 Apr 2018 09:17:37 +0000 (11:17 +0200)]
reload on container reboot

if the container stays on the same node and the state is running,
we reload to reconnect

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agocheck if event is set
Dominik Csapak [Fri, 27 Apr 2018 09:17:36 +0000 (11:17 +0200)]
check if event is set

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofocus terminal when starting
Dominik Csapak [Fri, 27 Apr 2018 09:17:35 +0000 (11:17 +0200)]
focus terminal when starting

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofixup changelog
Fabian Grünbichler [Tue, 24 Apr 2018 11:30:28 +0000 (13:30 +0200)]
fixup changelog

6 years agoremove empty .gitmodules
Fabian Grünbichler [Tue, 24 Apr 2018 11:29:41 +0000 (13:29 +0200)]
remove empty .gitmodules

6 years agobump to 1.0-3
Dominik Csapak [Wed, 11 Apr 2018 12:34:08 +0000 (14:34 +0200)]
bump to 1.0-3

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoimplement reconnect logic
Dominik Csapak [Tue, 10 Apr 2018 12:03:28 +0000 (14:03 +0200)]
implement reconnect logic

this improves the closed gracefully/error logic
(detects an error if we disconnect immediately after connecting)
and implements a reconnect for vms/containers

if we have a disconnect, we check /cluster/resources
(and /nodes/<node>/lxc/<id>/status/current) if we are migrated
and reconnect the console window or reload the window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoimplement terminal settings for 3.x
Dominik Csapak [Tue, 10 Apr 2018 12:01:56 +0000 (14:01 +0200)]
implement terminal settings for 3.x

since xtermjs 3.0, the display is not via html anymore, but a canvas
so we cannot use css overrides anymore

this enables us to let the user set a fontsize/family/etc.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd xterm-3.2.0.tgz
Dominik Csapak [Tue, 10 Apr 2018 11:59:08 +0000 (13:59 +0200)]
add xterm-3.2.0.tgz

via make download

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agochange from submodule to tgz download and update to 3.2.0
Dominik Csapak [Wed, 10 Jan 2018 10:46:51 +0000 (11:46 +0100)]
change from submodule to tgz download and update to 3.2.0

since xtermjs does not ship the built version anymore in git
(starting with 3.0.0), we change it so that we have a download
target where we download the tarball from npm

6 years agobump version to 1.0-2
Dietmar Maurer [Mon, 11 Dec 2017 13:39:44 +0000 (14:39 +0100)]
bump version to 1.0-2

6 years agofix error message
Dominik Csapak [Mon, 11 Dec 2017 13:23:58 +0000 (14:23 +0100)]
fix error message

status_line is a method and cannot be expanded in a string

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agomake perm an optional parameter
Dominik Csapak [Mon, 11 Dec 2017 13:23:57 +0000 (14:23 +0100)]
make perm an optional parameter

and only pass it to the api call if it exists,
also delete the default path, since it is non-optional (and thus
a default makes no sense)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoremove dependcy to libpve-access-control
Dominik Csapak [Mon, 11 Dec 2017 13:23:56 +0000 (14:23 +0100)]
remove dependcy to libpve-access-control

since we do not use any functionality of the RPCEnvironment, we remove it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump to 1.0-1
Dominik Csapak [Thu, 7 Dec 2017 12:24:54 +0000 (13:24 +0100)]
bump to 1.0-1

6 years agocheck ticket via api instead of verify_vnc_ticket
Dominik Csapak [Thu, 7 Dec 2017 09:50:36 +0000 (10:50 +0100)]
check ticket via api instead of verify_vnc_ticket

since we do not want to depend on libpve-accesscontrol,
we check the ticket via the api on http://localhost:85

this means we have to pass the path and permission via the commandline

6 years agobump to 0.1-1
Dominik Csapak [Mon, 4 Dec 2017 09:37:13 +0000 (10:37 +0100)]
bump to 0.1-1

also update dependencies

6 years agogive pty object to process_queue on first call
Dominik Csapak [Mon, 4 Dec 2017 09:34:44 +0000 (10:34 +0100)]
give pty object to process_queue on first call

else we would overlook a resize event, sent directly after
connecting

6 years agoinitial commit
Dominik Csapak [Wed, 22 Nov 2017 15:45:34 +0000 (16:45 +0100)]
initial commit

working version of xtermjs client and termproxy as
authentication proxy between a command/socket and a tcp socket

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>