78 lines
No EOL
2.8 KiB
HTML
78 lines
No EOL
2.8 KiB
HTML
<html>
|
|
<head>
|
|
<title>Pillow Talk Control Interface</title>
|
|
<!-- development version, includes helpful console warnings -->
|
|
<script src="/js/vue.js"></script>
|
|
<script src="/js/reconnecting-websocket.js"></script>
|
|
<script src="/js/moment.min.js"></script>
|
|
<script src="/js/d3.v5.min.js"></script>
|
|
<script src="/js/crel.min.js"></script>
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="/css/styles.css"></link>
|
|
|
|
</head>
|
|
<body>
|
|
<div id="interface" class='showStatus'>
|
|
<div id='status'>
|
|
<div id='overview'>
|
|
<dl>
|
|
<dt>Uptime</dt>
|
|
<dd>{{uptime}}</dd>
|
|
</dl>
|
|
|
|
<ul id='languages'>
|
|
<li v-for="lang in languages" :title="lang.file"
|
|
:id="'lang-' + lang.code" class="btn lang--btn"
|
|
@click="loadNarrative(lang.code, lang.file)"><span
|
|
:class="['flag-icon', lang.code]"></span> {{lang.code}}</li>
|
|
</ul>
|
|
</div>
|
|
<div class='hugvey' v-for="hv in hugveys"
|
|
:class="[{'hugvey--on': hv.status != 'off'},'hugvey--' + hv.status]">
|
|
<h1>
|
|
{{ hv.id }}
|
|
</h1>
|
|
<div class='status'>{{ hv.status }}</div>
|
|
<div v-if="hv.status != 'off' && hv.status != 'gone'">
|
|
{{ hv.language }}
|
|
<div v-if="hv.finished != false"><img class='icon' :src="'/images/icon-finished.svg'" title="Finished"> {{timer(hv,
|
|
'finished')}}</div>
|
|
<div class='stats'>
|
|
<div class='count' v-for="c, key in hv.counts">
|
|
<img class='icon' :src="'/images/icon-' + key + '.svg'" :title="key">
|
|
{{c}}
|
|
</div>
|
|
<div class='position'>
|
|
<img class='icon' :src="'/images/icon-position.svg'" :title="key">
|
|
{{ hv.msg }}
|
|
</div>
|
|
</div>
|
|
<div class='btn' v-if="hv.status == 'running'" @click="pause(hv.id)">Pause</div>
|
|
<div class='btn' v-if="hv.status == 'paused'" @click="resume(hv.id)">Resume</div>
|
|
<div class='btn' v-if="hv.status == 'finished'" @click="restart(hv.id)">Restart</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id='story'>
|
|
<div id="controls">
|
|
<span id="current_lang"></span>
|
|
<div id="btn-save" class="btn">Save</div>
|
|
<div id="btn-addMsg" class="btn">Create message</div>
|
|
</div>
|
|
<div id="msg"></div>
|
|
<svg id='graph' viewbox="0 0 1280 1024"
|
|
preserveAspectRatio="xMidYMid">
|
|
<defs>
|
|
<marker markerHeight="8" markerWidth="8" refY="0"
|
|
refX="12" viewBox="0 -6 16 12" preserveAspectRatio="none"
|
|
orient="auto" id="arrowHead">
|
|
<path d="M0,-6L16,0L0,6" fill="black"></path></marker>
|
|
</defs>
|
|
<g id='container'>
|
|
</g>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
<script type='application/javascript' src="/js/hugvey_console.js"></script>
|
|
</body>
|
|
</html> |