got it passing scripts and params but wtf is it bitching about with
x_opt = axis_options[x_type] TypeError: list indices must be integers or slices, not str
This commit is contained in:
parent
337f8ed399
commit
025d50a10e
3 changed files with 22 additions and 4 deletions
11
index.html
11
index.html
|
@ -312,7 +312,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Manual Scripts-->
|
<!-- Manual Scripts-->
|
||||||
<div id="ui-script" class="floating-window" style="right: 10px; top: 400px">
|
<div
|
||||||
|
id="ui-script"
|
||||||
|
class="floating-window"
|
||||||
|
style="right: 10px; top: 400px; display: none">
|
||||||
<div class="draggable floating-window-title">Manual Script</div>
|
<div class="draggable floating-window-title">Manual Script</div>
|
||||||
<div class="menu-container" style="min-width: 200px">
|
<div class="menu-container" style="min-width: 200px">
|
||||||
<div id="script-name" class="script-name">
|
<div id="script-name" class="script-name">
|
||||||
|
@ -321,10 +324,10 @@
|
||||||
<input id="script-name-input" />
|
<input id="script-name-input" />
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
<div id="script-json" class="script-json">
|
<div id="script-args" class="script-args">
|
||||||
<label for="script-json-input">Script JSON Object:</label>
|
<label for="script-args-input">Script Args List:</label>
|
||||||
<br />
|
<br />
|
||||||
<textarea id="script-json-input"></textarea>
|
<textarea id="script-args-input"></textarea>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,3 +29,11 @@ keyboard.onShortcut({key: "KeyU"}, () => {
|
||||||
keyboard.onShortcut({key: "KeyN"}, () => {
|
keyboard.onShortcut({key: "KeyN"}, () => {
|
||||||
tools.interrogate.enable();
|
tools.interrogate.enable();
|
||||||
});
|
});
|
||||||
|
keyboard.onShortcut({key: "Backquote"}, () => {
|
||||||
|
var hax0r = document.getElementById("ui-script");
|
||||||
|
if (hax0r.style.display === "none") {
|
||||||
|
hax0r.style.display = "block";
|
||||||
|
} else {
|
||||||
|
hax0r.style.display = "none";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
|
@ -96,6 +96,13 @@ const generating = (val) => {
|
||||||
*/
|
*/
|
||||||
const _dream = async (endpoint, request) => {
|
const _dream = async (endpoint, request) => {
|
||||||
const apiURL = `${host}${config.api.path}${endpoint}`;
|
const apiURL = `${host}${config.api.path}${endpoint}`;
|
||||||
|
// if script fields are populated add them to the request
|
||||||
|
var scriptName = document.getElementById("script-name-input").value;
|
||||||
|
var scriptArgs = document.getElementById("script-args-input").value;
|
||||||
|
if (scriptName.trim() != "" && scriptArgs.trim() != "") {
|
||||||
|
request.script_name = scriptName;
|
||||||
|
request.script_args = scriptArgs.split(",");
|
||||||
|
}
|
||||||
|
|
||||||
// Debugging is enabled
|
// Debugging is enabled
|
||||||
if (global.debug) {
|
if (global.debug) {
|
||||||
|
|
Loading…
Reference in a new issue