1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-26 10:39:46 +02:00

add remote building script support

This commit is contained in:
lxsang
2018-09-22 19:11:40 +02:00
parent 4709c5c3ed
commit 2b62fe27e9
17 changed files with 207 additions and 2264 deletions

View File

@ -0,0 +1,19 @@
BaseController:subclass("ScriptController", {
registry = {}
})
function ScriptController:index( name )
local path = WWW_ROOT..DIR_SEP.."assets"..DIR_SEP.."shs"..DIR_SEP..name..".sh"
if ulib.exists(path) then
std.header("text/plain")
std.f(path)
else
self:error("No script found")
end
return false
end
function ScriptController:actionnotfound(...)
return self:index(table.unpack({...}))
end

View File

@ -0,0 +1,13 @@
BaseController:subclass("WebVNCController", {
registry = {}
})
function WebVNCController:index( ... )
self.template:set("args", "['WebVNC']")
return true
end
function WebVNCController:actionnotfound(...)
self.template:setView("index")
return self:index(table.unpack({...}))
end

View File

@ -1,13 +0,0 @@
BaseController:subclass("WvncController", {
registry = {}
})
function WvncController:index( ... )
self.template:set("args", "['WVNC', 'wss://localhost:9192/wvnc', '#canvas']")
return true
end
function WvncController:actionnotfound(...)
self.template:setView("index")
return self:index(table.unpack({...}))
end