Implemented script code editor

This commit is contained in:
Luca Deri 2019-12-10 17:58:16 +01:00
parent f71194a062
commit 958fed3a54
1022 changed files with 684545 additions and 69 deletions

View file

@ -59,6 +59,8 @@ local function print_callbacks_config_table(descr, expert_view)
end
end
tprint(descr)
for mod_k, user_script in pairsByKeys(descr.modules, asc) do
local hooks_benchmarks = benchmarks[mod_k] or {}
local num_hooks = table.len(hooks_benchmarks)
@ -82,8 +84,10 @@ local function print_callbacks_config_table(descr, expert_view)
rowspan = string.format(' rowspan="%d"', num_hooks)
end
print("<tr><td ".. rowspan .."><b>".. title .."</b><br>")
print("<small>"..description..".</small></td>")
local url = '<A HREF="/lua/code_viewer.lua?lua_script_path=/plugins/'..mod_k..'/user_scripts/flow/'..mod_k..'.lua"><i class="fa fa-lg fa-binoculars"></i></A>'
url = "" -- TODO: remove this line as soon as we are able to select only the community scripts
print("<tr><td ".. rowspan .."><b>".. title .." "..url.."</b><br>")
print("<small>"..description.."</small></td>")
print("<td ".. rowspan .." class='text-center'>")