summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-11-02 19:09:02 +0100
committerGitHub <noreply@github.com>2021-11-02 19:09:02 +0100
commit0eda002942480a6e330df0077c8f6f74636176be (patch)
tree95cb4764e07ee22ac039177054448db46afe6632 /applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua
parent17389742fd49b2354cf59a9d2a0ae1af021b3ef3 (diff)
parentec5e336e553d3cbefe7274437cd1838494913529 (diff)
Merge pull request #5478 from BKPepe/drop-file-server
luci-app-rosy-file-server: drop
Diffstat (limited to 'applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua')
-rw-r--r--applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua26
1 files changed, 0 insertions, 26 deletions
diff --git a/applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua b/applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua
deleted file mode 100644
index 51efa9e814..0000000000
--- a/applications/luci-app-rosy-file-server/luasrc/model/cbi/rosy-file-server/rosyfs.lua
+++ /dev/null
@@ -1,26 +0,0 @@
--- Copyright 2019 Rosy Song <rosysong@rosinson.com>
--- Licensed to the public under the Apache License 2.0.
-
-local uci = require("luci.model.uci").cursor()
-local dis = uci:get("rosyfs", "default", "disabled")
-local tgt = uci:get("rosyfs", "default", "target")
-local tlt = uci:get("rosyfs", "default", "title")
-
-m = Map("rosyfs", translate("Rosy File Server Settings"))
-
-s = m:section(TypedSection, "rosyfs", nil)
-s.addremove = false
-s.anonymous = true
-
-e = s:option(Flag, "disabled", translate("Disable"), translate("Disable Rosy File Server"))
-e.default = dis or e.disabled
-e.rmempty = false
-
-a = s:option(Value, "target", translate("Target"), translate("Specify path to be mapped"))
-a.default = tgt or "/www"
-a.datatype = "directory"
-
-t = s:option(Value, "title", translate("Title"), translate("Title to be shown"))
-t.default = tlt or "Rosy File Server"
-
-return m