2019-01-18 18:39:35 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2019-01-22 07:59:45 +00:00
|
|
|
<title>Pillow Talk Control Interface</title>
|
2019-01-18 18:39:35 +00:00
|
|
|
<!-- development version, includes helpful console warnings -->
|
2019-01-23 14:26:44 +00:00
|
|
|
<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>
|
2019-01-25 09:43:55 +00:00
|
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
|
2019-01-23 14:26:44 +00:00
|
|
|
<link rel="stylesheet" href="/css/styles.css"></link>
|
2019-01-22 07:59:45 +00:00
|
|
|
|
2019-01-18 18:39:35 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2019-01-24 13:27:04 +00:00
|
|
|
<div id="interface" class='showStatus'>
|
2019-01-23 14:26:44 +00:00
|
|
|
<div id='status'>
|
|
|
|
<div id='overview'>
|
|
|
|
<dl>
|
|
|
|
<dt>Uptime</dt>
|
|
|
|
<dd>{{uptime}}</dd>
|
|
|
|
</dl>
|
2019-01-25 09:43:55 +00:00
|
|
|
|
2019-01-24 13:27:04 +00:00
|
|
|
<ul id='languages'>
|
|
|
|
<li v-for="lang in languages" :title="lang.file"
|
2019-01-25 09:43:55 +00:00
|
|
|
:id="'lang-' + lang.code" class="btn lang--btn"
|
|
|
|
@click="loadNarrative(lang.code, lang.file)"><span
|
|
|
|
:class="['flag-icon', lang.code]"></span> {{lang.code}}</li>
|
2019-01-24 13:27:04 +00:00
|
|
|
</ul>
|
2019-01-23 14:26:44 +00:00
|
|
|
</div>
|
|
|
|
<div class='hugvey' v-for="hv in hugveys"
|
2019-01-25 09:43:55 +00:00
|
|
|
:class="[{'hugvey--on': hv.status != 'off'},'hugvey--' + hv.status]">
|
2019-01-23 14:26:44 +00:00
|
|
|
<h1>
|
|
|
|
{{ hv.id }}
|
|
|
|
</h1>
|
2019-01-25 09:43:55 +00:00
|
|
|
<div class='status'>{{ hv.status }}</div>
|
2019-01-25 10:59:03 +00:00
|
|
|
<div v-if="hv.status != 'off' && hv.status != 'gone' && hv.status != 'loading'">
|
|
|
|
<select v-model="hv.language" @change="change_lang(hv, hv.language)">
|
|
|
|
<option v-for="lang in languages" :title="lang.file"
|
|
|
|
:value="lang.code">
|
|
|
|
<span :class="['flag-icon', lang.code]"></span>
|
|
|
|
{{lang.code}}
|
|
|
|
</option>
|
|
|
|
</select>
|
2019-01-25 10:17:10 +00:00
|
|
|
{{ hv.language }}
|
2019-01-25 09:43:55 +00:00
|
|
|
<div v-if="hv.finished != false"><img class='icon' :src="'/images/icon-finished.svg'" title="Finished"> {{timer(hv,
|
2019-01-23 14:26:44 +00:00
|
|
|
'finished')}}</div>
|
2019-01-25 10:17:10 +00:00
|
|
|
<div class='stats'>
|
2019-01-25 09:43:55 +00:00
|
|
|
<div class='count' v-for="c, key in hv.counts">
|
|
|
|
<img class='icon' :src="'/images/icon-' + key + '.svg'" :title="key">
|
|
|
|
{{c}}
|
|
|
|
</div>
|
2019-01-25 10:17:10 +00:00
|
|
|
<div class='position'>
|
2019-01-25 10:59:03 +00:00
|
|
|
<img class='icon' src="/images/icon-position.svg" title="position">
|
|
|
|
{{ hv.msg }}
|
2019-01-25 10:17:10 +00:00
|
|
|
</div>
|
2019-01-23 14:26:44 +00:00
|
|
|
</div>
|
2019-01-25 10:59:03 +00:00
|
|
|
<div class='btn' v-if="hv.status == 'running'" @click="pause(hv)">Pause</div>
|
|
|
|
<div class='btn' v-if="hv.status == 'paused'" @click="resume(hv)">Resume</div>
|
|
|
|
<div class='btn' v-if="hv.status == 'finished'" @click="restart(hv)">Restart</div>
|
|
|
|
</div>
|
2019-01-22 07:59:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-01-23 14:26:44 +00:00
|
|
|
<div id='story'>
|
|
|
|
<div id="controls">
|
2019-01-24 13:27:04 +00:00
|
|
|
<span id="current_lang"></span>
|
2019-01-23 14:26:44 +00:00
|
|
|
<div id="btn-save" class="btn">Save</div>
|
|
|
|
<div id="btn-addMsg" class="btn">Create message</div>
|
|
|
|
</div>
|
2019-01-23 14:41:40 +00:00
|
|
|
<div id="msg"></div>
|
2019-01-23 14:26:44 +00:00
|
|
|
<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>
|
2019-01-22 07:59:45 +00:00
|
|
|
</div>
|
2019-01-23 14:26:44 +00:00
|
|
|
<script type='application/javascript' src="/js/hugvey_console.js"></script>
|
2019-01-18 18:39:35 +00:00
|
|
|
</body>
|
|
|
|
</html>
|