small-package/luci-app-verysync/luasrc/model/cbi/verysync.lua

25 lines
951 B
Lua

-- Copyright 2008 Yanira <forum-2008@email.de>
-- Copyright 2020 KFERMercer <KFER.Mercer@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("verysync")
m.title = translate("Verysync")
m.description = translate("Simple and easy-to-use multi-platform file synchronization software, astonishing transmission speed is different from the greatest advantage of other products. Micro-force synchronization of intelligent P2P technology to accelerate synchronization, will split the file into several KB-only data synchronization, and the file will be AES encryption processing.")
m:section(SimpleSection).template = "verysync/verysync_status"
s = m:section(TypedSection, "verysync")
s.addremove = false
s.anonymous = true
o = s:option(Flag, "enabled", translate("Enable"))
o.rmempty = false
o = s:option(Value, "port", translate("Port"))
o.datatype = "port"
o.placeholder = "8886"
o.default = "8886"
o.rmempty = false
return m