Update to actix-web 1.0 and use handlebars
This commit is contained in:
+7
-7
@@ -7,12 +7,12 @@ SPDX-License-Identifier: BSD-3-Clause
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="stylesheet" href="{{ static_path|safe }}/xterm/dist/xterm.css" />
|
||||
<script src="{{ static_path|safe }}/xterm/dist/xterm.js"></script>
|
||||
<script src="{{ static_path|safe }}/xterm/dist/addons/attach/attach.js"></script>
|
||||
<script src="{{ static_path|safe }}/xterm/dist/addons/terminado/terminado.js"></script>
|
||||
<script src="{{ static_path|safe }}/xterm/dist/addons/fit/fit.js"></script>
|
||||
<script src="{{ static_path|safe }}/xterm/dist/addons/search/search.js"></script>
|
||||
<link rel="stylesheet" href="{{ static_path }}/xterm/dist/xterm.css" />
|
||||
<script src="{{ static_path }}/xterm/dist/xterm.js"></script>
|
||||
<script src="{{ static_path }}/xterm/dist/addons/attach/attach.js"></script>
|
||||
<script src="{{ static_path }}/xterm/dist/addons/terminado/terminado.js"></script>
|
||||
<script src="{{ static_path }}/xterm/dist/addons/fit/fit.js"></script>
|
||||
<script src="{{ static_path }}/xterm/dist/addons/search/search.js"></script>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
@@ -32,7 +32,7 @@ SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
var term = new Terminal();
|
||||
var protocol = (location.protocol === 'https:') ? 'wss://' : 'ws://';
|
||||
var socketURL = protocol + location.hostname + ((location.port) ? (':' + location.port) : '') + "{{ websocket_path|safe }}";
|
||||
var socketURL = protocol + location.hostname + ((location.port) ? (':' + location.port) : '') + "{{ websocket_path }}";
|
||||
var sock = new WebSocket(socketURL);
|
||||
|
||||
sock.addEventListener('open', function() {
|
||||
|
||||
Reference in New Issue
Block a user