Include asciinema js and stub videos.

This commit is contained in:
Blallo 2019-03-22 10:01:10 +01:00
parent 05950ec995
commit 4806fe8adf
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F
3 changed files with 21 additions and 1 deletions

View file

@ -4,6 +4,7 @@
<title>Circolog</title>
<link rel="stylesheet" type="text/css" href="res/css/main.css">
<link rel="stylesheet" type="text/css" href="res/css/asciinema-player.css">
<script src="res/js/asciinema-player.js"></script>
</head>
<body>
<div class="section" id="title">
@ -34,7 +35,7 @@
</div>
<div class="pane" id="client">
<h3>Client</h3>
<asciinema-player src="res/media/server.cast"></asciinema-player>
<asciinema-player src="res/media/client.cast"></asciinema-player>
</div>
</div>
</div>

14
res/media/client.cast Normal file
View file

@ -0,0 +1,14 @@
{"version": 2, "width": 86, "height": 29, "timestamp": 1553200015, "env": {"SHELL": "/bin/zsh", "TERM": "xterm-256color"}}
[0.087873, "o", "2019/03/21 20:26:55 connecting to localhost:9080\r\n"]
[0.088539, "o", "2019/03/21 20:26:55 connected! ws://localhost:9080/ws?fmt=bson\r\n"]
[0.088619, "o", "21 Mar 19 20:26 UTC 882702613eef root: notice d Test log message\r\n"]
[21.659439, "o", "21 Mar 19 20:27 UTC 882702613eef root: notice This is the output of the circolog-tail client\r\n"]
[37.460315, "o", "21 Mar 19 20:27 UTC 882702613eef root: notice The daemon is circologd\r\n"]
[70.318165, "o", "21 Mar 19 20:28 UTC 882702613eef root: notice It binds by default on localhost:9514 and waits for syslog messages\r\n"]
[89.316769, "o", "21 Mar 19 20:28 UTC 882702613eef root: notice It binds by default on localhost:9080 and exposes a websocket endpoint\r\n"]
[107.010159, "o", "21 Mar 19 20:28 UTC 882702613eef root: notice circolog-tail queries that endpoint\r\n"]
[122.499668, "o", "21 Mar 19 20:28 UTC 882702613eef root: notice There is also a controller program: circologctl\r\n"]
[156.281111, "o", "21 Mar 19 20:29 UTC 882702613eef root"]
[156.281303, "o", ": notice circologd exposes a unix socket, by default at /tmp/circologd-ctl.sock\r\n"]
[169.066678, "o", "21 Mar 19 20:29 UTC 882702613eef root: notice circolog-ctl sends commands on that socket\r\n"]
[171.667286, "o", "^C"]

5
res/media/server.cast Normal file
View file

@ -0,0 +1,5 @@
{"version": 2, "width": 86, "height": 29, "timestamp": 1553199871, "env": {"SHELL": "/bin/zsh", "TERM": "xterm-256color"}}
[0.48397, "o", "Binding address `127.0.0.1:9514` [syslog]\r\nBinding address `127.0.0.1:9080` [http]\r\nBinding address `/tmp/circologd-ctl.sock` [http]\r\n"]
[4.384817, "o", "^C"]
[4.38539, "o", "2019/03/21 20:24:35 Quitting because of signal interrupt\r\n"]
[4.3861, "o", "Error cleaning /tmp/circologd-ctl.sock : remove /tmp/circologd-ctl.sock: no such file or directory\r\n"]