-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jeffmikels/electron
Electron
- Loading branch information
Showing
11 changed files
with
1,185 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# this process assembles the electron app manually | ||
# assuming the binary has already been downloaded into the release directory | ||
|
||
TARGET=release/vmix-snapshot-proxy/resources/app | ||
if [[ ! -d $TARGET ]]; then mkdir "$TARGET"; fi | ||
rm -rf $TARGET/* | ||
mkdir "$TARGET/lib" | ||
|
||
install() { | ||
cp "$1" "$TARGET/$1" | ||
} | ||
|
||
install package.json | ||
install main.js | ||
install preload.js | ||
install renderer.js | ||
install index.html | ||
install lib/vue.js | ||
|
||
# install node_modules | ||
pushd "$TARGET" | ||
npm i --production | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | ||
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> --> | ||
<!-- <meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'"> --> | ||
<!-- <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" /> --> | ||
<link rel="stylesheet" type="text/css" href="./style.css" /> | ||
<title>vMix Snapshot Proxy</title> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<div id="status" :class="status">{{status}}</div> | ||
<h1>vMix Snapshot Proxy</h1> | ||
|
||
<h2>Instructions: <button @click="show_instructions = !show_instructions">{{show_instructions? 'HIDE':'SHOW'}}</button></h2> | ||
<div id="instructions" v-if="show_instructions"> | ||
<ul> | ||
<li>This app should be running on the same computer that's running vMix.</li> | ||
<li>vMix Settings must enable remote access over port 8088.</li> | ||
<li>You must configure the vMix Storage directory and select it here.</li> | ||
</ul> | ||
</div> | ||
|
||
<h2>Server Settings: <button @click="show_status = !show_status">{{show_status? 'HIDE':'SHOW'}}</button></h2> | ||
<div v-if="show_status"> | ||
<div> | ||
<label for="storage_dir">vMix Storage Directory: </label> | ||
<input name="storage_dir" id="storage_dir" v-model="storage_dir" @change="updateStorageDir" style="width: 100%" /> | ||
</div> | ||
<p><pre>{{msg}}</pre></p> | ||
</div> | ||
|
||
<h2>Debug: <button @click="show_debug = !show_debug">{{show_debug? 'HIDE':'SHOW'}}</button></h2> | ||
<div v-if="show_debug"> | ||
<p><pre>{{output}}</pre></p> | ||
</div> | ||
|
||
<h2>Inputs: <button @click="show_inputs = !show_inputs">{{show_inputs? 'HIDE':'SHOW'}}</button></h2> | ||
<p v-if="loading">loading inputs...</p> | ||
<div id="inputs" v-if="show_inputs" > | ||
<div v-for="input in inputs" class="input"> | ||
<img class="preview" v-if="input.url" v-bind:src="input.url" alt="" /> | ||
<div class="preview" v-if="!input.url"> </div> | ||
<div class="caption">{{input.number}}. {{input.text}}</div> | ||
</div> | ||
</div> | ||
</div> | ||
<script src="./lib/vue.js"></script> | ||
<script src="./renderer.js"></script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.