|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> |
| 6 | + <!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> --> |
| 7 | + <!-- <meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'"> --> |
| 8 | + <!-- <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" /> --> |
| 9 | + <link rel="stylesheet" type="text/css" href="./style.css" /> |
| 10 | + <title>vMix Snapshot Proxy</title> |
| 11 | + </head> |
| 12 | + <body> |
| 13 | + <div id="app"> |
| 14 | + <div id="status" :class="status">{{status}}</div> |
| 15 | + <h1>vMix Snapshot Proxy</h1> |
| 16 | + |
| 17 | + <h2>Instructions: <button @click="show_instructions = !show_instructions">{{show_instructions? 'HIDE':'SHOW'}}</button></h2> |
| 18 | + <div id="instructions" v-if="show_instructions"> |
| 19 | + <ul> |
| 20 | + <li>This app should be running on the same computer that's running vMix.</li> |
| 21 | + <li>vMix Settings must enable remote access over port 8088.</li> |
| 22 | + <li>You must configure the vMix Storage directory and select it here.</li> |
| 23 | + </ul> |
| 24 | + </div> |
| 25 | + |
| 26 | + <h2>Server Settings: <button @click="show_status = !show_status">{{show_status? 'HIDE':'SHOW'}}</button></h2> |
| 27 | + <div v-if="show_status"> |
| 28 | + <div> |
| 29 | + <label for="storage_dir">vMix Storage Directory: </label> |
| 30 | + <input name="storage_dir" id="storage_dir" v-model="storage_dir" @change="updateStorageDir" style="width: 100%" /> |
| 31 | + </div> |
| 32 | + <p><pre>{{msg}}</pre></p> |
| 33 | + </div> |
| 34 | + |
| 35 | + <h2>Debug: <button @click="show_debug = !show_debug">{{show_debug? 'HIDE':'SHOW'}}</button></h2> |
| 36 | + <div v-if="show_debug"> |
| 37 | + <p><pre>{{output}}</pre></p> |
| 38 | + </div> |
| 39 | + |
| 40 | + <h2>Inputs: <button @click="show_inputs = !show_inputs">{{show_inputs? 'HIDE':'SHOW'}}</button></h2> |
| 41 | + <p v-if="loading">loading inputs...</p> |
| 42 | + <div id="inputs" v-if="show_inputs" > |
| 43 | + <div v-for="input in inputs" class="input"> |
| 44 | + <img class="preview" v-if="input.url" v-bind:src="input.url" alt="" /> |
| 45 | + <div class="preview" v-if="!input.url"> </div> |
| 46 | + <div class="caption">{{input.number}}. {{input.text}}</div> |
| 47 | + </div> |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + <script src="./lib/vue.js"></script> |
| 51 | + <script src="./renderer.js"></script> |
| 52 | + </body> |
| 53 | +</html> |
0 commit comments