community scripts refactoring and cleanup

This commit is contained in:
Evgeny
2022-08-27 08:49:29 +03:00
parent 521c6852e0
commit 93990298e8
15 changed files with 72 additions and 42 deletions

View File

@@ -0,0 +1,22 @@
-- name = "Network file"
-- description = "Shows the contents of any file on the Internet"
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
-- version = "1.0"
function on_resume()
local args = settings:get()
if next(args) == nil then
ui:show_text("Tap to enter text file URL")
else
http:get(args[1])
end
end
function on_click()
aio:show_args_dialog()
end
function on_network_result(result)
ui:show_text(result)
end