From 149fe75b1c870157abe161f5f52a2f44d479c880 Mon Sep 17 00:00:00 2001 From: Cat Date: Sun, 9 Jun 2013 11:46:35 +0200 Subject: [PATCH] LSP: conversion tab [NOTE: changes *untested* as no Mistcontroller build was available.] --- lsp/footer.html | 1 + lsp/functions.js | 23 +- lsp/main.js | 2845 +++++++++++++++++++++++++--------------------- lsp/server.html | 1 + 4 files changed, 1548 insertions(+), 1322 deletions(-) diff --git a/lsp/footer.html b/lsp/footer.html index 273ba354..37baf7a8 100644 --- a/lsp/footer.html +++ b/lsp/footer.html @@ -23,6 +23,7 @@
  • protocols
  • streams
  • limits
  • +
  • conversion
  • logs
  • server stats
  • disconnect
  • diff --git a/lsp/functions.js b/lsp/functions.js index 7d96f89f..ef4c8584 100644 --- a/lsp/functions.js +++ b/lsp/functions.js @@ -157,7 +157,8 @@ { "streams": {}, "capabilities": {}, - "statistics": {} + "statistics": {}, + "conversion": {} }, d); //IE breaks if the console isn't opened, so keep commented when committing @@ -393,7 +394,8 @@ "streams": {}, "capabilities": {}, "log": {}, - "statistics": {} + "statistics": {}, + "conversion": {} }, d) if (settings.settings.LTS == 1) { $('.LTSonly').show(); @@ -723,6 +725,23 @@ function buildLogsTable(){ return $table; } +/** + * At the conversion page, does a directory query to obtain input files + @params: - query: the directory query + */ + function conversionDirQuery(query) { + getData(function(data){ + var c = data.conversion.arrayoffilenamesreturnedbyquery + //todo change this ^ + + for (var i in c) { + $('#conv-edit-input').append( + $('