From dc8e09262904645d8329a9cd6d4e2369c5852c45 Mon Sep 17 00:00:00 2001 From: Nicole Sabourin Date: Tue, 30 Apr 2024 13:08:54 -0400 Subject: [PATCH 1/2] [DGW-110] Added webm and xterm players at jet/rec/play endpoint --- webapp/player/index.html | 215 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 webapp/player/index.html diff --git a/webapp/player/index.html b/webapp/player/index.html new file mode 100644 index 000000000..d40641534 --- /dev/null +++ b/webapp/player/index.html @@ -0,0 +1,215 @@ + + + + + + + + + + + + \ No newline at end of file From 1eee0e18c4b93c72f5e56b3ef7e906ccfee84dc4 Mon Sep 17 00:00:00 2001 From: Paul Dumais Date: Mon, 6 May 2024 09:08:45 -0400 Subject: [PATCH 2/2] [DGW-110] added xterm files locally --- webapp/player/css/xterm-player.min.css | 2 ++ webapp/player/css/xterm-player.min.css.map | 1 + webapp/player/index.html | 8 ++++---- webapp/player/js/xterm-player.min.js | 2 ++ webapp/player/js/xterm-player.min.js.map | 1 + webapp/player/js/xterm.js.map | 1 + webapp/player/js/xterm.min.js | 2 ++ 7 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 webapp/player/css/xterm-player.min.css create mode 100644 webapp/player/css/xterm-player.min.css.map create mode 100644 webapp/player/js/xterm-player.min.js create mode 100644 webapp/player/js/xterm-player.min.js.map create mode 100644 webapp/player/js/xterm.js.map create mode 100644 webapp/player/js/xterm.min.js diff --git a/webapp/player/css/xterm-player.min.css b/webapp/player/css/xterm-player.min.css new file mode 100644 index 000000000..bc7a9a594 --- /dev/null +++ b/webapp/player/css/xterm-player.min.css @@ -0,0 +1,2 @@ +.xterm{font-feature-settings:"liga" 0;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline} +/*# sourceMappingURL=xterm-player.min.css.map */ \ No newline at end of file diff --git a/webapp/player/css/xterm-player.min.css.map b/webapp/player/css/xterm-player.min.css.map new file mode 100644 index 000000000..b25b0b9b7 --- /dev/null +++ b/webapp/player/css/xterm-player.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["css ./node_modules/css-loader/dist/cjs.js!./node_modules/xterm/css/xterm.css"],"names":[],"mappings":"AAqCA,OACA,8BAAA,CACA,iBAAA,CACA,gBAAA,CACA,oBAAA,CACA,wBACA,CAEA,0BAEA,YACA,CAEA,sBACA,iBAAA,CACA,KAAA,CAKA,SACA,CAEA,8BAKA,iBAAA,CACA,SAAA,CACA,YAAA,CACA,KAAA,CACA,OAAA,CACA,QAAA,CACA,UAAA,CAEA,kBAAA,CACA,eAAA,CACA,WACA,CAEA,yBAEA,eAAA,CACA,UAAA,CACA,YAAA,CACA,iBAAA,CACA,kBAAA,CACA,SACA,CAEA,gCACA,aACA,CAEA,uBAEA,qBAAA,CACA,iBAAA,CACA,cAAA,CACA,iBAAA,CACA,OAAA,CACA,MAAA,CACA,KAAA,CACA,QACA,CAEA,qBACA,iBACA,CAEA,4BACA,iBAAA,CACA,MAAA,CACA,KACA,CAEA,0BACA,iBACA,CAEA,4BACA,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,KAAA,CACA,YAAA,CACA,kBACA,CAEA,OACA,WACA,CAEA,2BAEA,cACA,CAEA,4BACA,cACA,CAEA,2BAEA,gBACA,CAEA,kDAEA,iBAAA,CACA,MAAA,CACA,KAAA,CACA,QAAA,CACA,OAAA,CACA,UAAA,CACA,iBACA,CAEA,oBACA,iBAAA,CACA,YAAA,CACA,SAAA,CACA,UAAA,CACA,eACA,CAEA,WACA,UACA,CAEA,iBACA,yBACA","file":"xterm-player.min.css","sourcesContent":["/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author's permission):\n * Fabrice Bellard's javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */\n\n/**\n * Default styles for xterm.js\n */\n\n.xterm {\n font-feature-settings: \"liga\" 0;\n position: relative;\n user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n}\n\n.xterm.focus,\n.xterm:focus {\n outline: none;\n}\n\n.xterm .xterm-helpers {\n position: absolute;\n top: 0;\n /**\n * The z-index of the helpers must be higher than the canvases in order for\n * IMEs to appear on top.\n */\n z-index: 5;\n}\n\n.xterm .xterm-helper-textarea {\n /*\n * HACK: to fix IE's blinking cursor\n * Move textarea out of the screen to the far left, so that the cursor is not visible.\n */\n position: absolute;\n opacity: 0;\n left: -9999em;\n top: 0;\n width: 0;\n height: 0;\n z-index: -5;\n /** Prevent wrapping so the IME appears against the textarea at the correct position */\n white-space: nowrap;\n overflow: hidden;\n resize: none;\n}\n\n.xterm .composition-view {\n /* TODO: Composition position got messed up somewhere */\n background: #000;\n color: #FFF;\n display: none;\n position: absolute;\n white-space: nowrap;\n z-index: 1;\n}\n\n.xterm .composition-view.active {\n display: block;\n}\n\n.xterm .xterm-viewport {\n /* On OS X this is required in order for the scroll bar to appear fully opaque */\n background-color: #000;\n overflow-y: scroll;\n cursor: default;\n position: absolute;\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n}\n\n.xterm .xterm-screen {\n position: relative;\n}\n\n.xterm .xterm-screen canvas {\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.xterm .xterm-scroll-area {\n visibility: hidden;\n}\n\n.xterm-char-measure-element {\n display: inline-block;\n visibility: hidden;\n position: absolute;\n top: 0;\n left: -9999em;\n line-height: normal;\n}\n\n.xterm {\n cursor: text;\n}\n\n.xterm.enable-mouse-events {\n /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */\n cursor: default;\n}\n\n.xterm.xterm-cursor-pointer {\n cursor: pointer;\n}\n\n.xterm.column-select.focus {\n /* Column selection mode */\n cursor: crosshair;\n}\n\n.xterm .xterm-accessibility,\n.xterm .xterm-message {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 10;\n color: transparent;\n}\n\n.xterm .live-region {\n position: absolute;\n left: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\n.xterm-dim {\n opacity: 0.5;\n}\n\n.xterm-underline {\n text-decoration: underline;\n}\n"]} \ No newline at end of file diff --git a/webapp/player/index.html b/webapp/player/index.html index d40641534..97b9e09c3 100644 --- a/webapp/player/index.html +++ b/webapp/player/index.html @@ -1,10 +1,10 @@ - - - - + + + +